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

Function validateVersion

eng/external-plugin-validation.mjs:83–92  ·  view source on GitHub ↗
(version, prefix, errors)

Source from the content-addressed store, hash-verified

81}
82
83function validateVersion(version, prefix, errors) {
84 if (!isNonEmptyString(version)) {
85 errors.push(`${prefix}: "version" is required and must be a non-empty string`);
86 return;
87 }
88
89 if (version.length > 100) {
90 errors.push(`${prefix}: "version" must be 100 characters or fewer`);
91 }
92}
93
94function validateKeywords(keywords, prefix, errors, warnings, required) {
95 if (keywords === undefined) {

Callers 1

validateExternalPluginFunction · 0.70

Calls 1

isNonEmptyStringFunction · 0.85

Tested by

no test coverage detected