MCPcopy Create free account
hub / github.com/github/awesome-copilot / validateDescription

Function validateDescription

eng/external-plugin-validation.mjs:72–81  ·  view source on GitHub ↗
(description, prefix, errors)

Source from the content-addressed store, hash-verified

70}
71
72function validateDescription(description, prefix, errors) {
73 if (!isNonEmptyString(description)) {
74 errors.push(`${prefix}: "description" is required and must be a non-empty string`);
75 return;
76 }
77
78 if (description.length > 500) {
79 errors.push(`${prefix}: "description" must be 500 characters or fewer`);
80 }
81}
82
83function validateVersion(version, prefix, errors) {
84 if (!isNonEmptyString(version)) {

Callers 1

validateExternalPluginFunction · 0.70

Calls 1

isNonEmptyStringFunction · 0.85

Tested by

no test coverage detected