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

Function validateLicense

eng/external-plugin-validation.mjs:181–192  ·  view source on GitHub ↗
(license, prefix, errors, required)

Source from the content-addressed store, hash-verified

179}
180
181function validateLicense(license, prefix, errors, required) {
182 if (license === undefined) {
183 if (required) {
184 errors.push(`${prefix}: "license" is required`);
185 }
186 return;
187 }
188
189 if (!isNonEmptyString(license)) {
190 errors.push(`${prefix}: "license" must be a non-empty string`);
191 }
192}
193
194function validateRepository(repository, prefix, errors, required) {
195 if (repository === undefined) {

Callers 1

validateExternalPluginFunction · 0.85

Calls 1

isNonEmptyStringFunction · 0.85

Tested by

no test coverage detected