MCPcopy Index your code
hub / github.com/SchemaStore/schemastore / check

Function check

cli.js:1613–1625  ·  view source on GitHub ↗
(
    /** @type {string[]} */ schemaNames,
    /** @type {string} */ propertyName,
  )

Source from the content-addressed store, hash-verified

1611
1612function assertSchemaValidationJsonHasValidSkipTest() {
1613 const check = (
1614 /** @type {string[]} */ schemaNames,
1615 /** @type {string} */ propertyName,
1616 ) => {
1617 for (const schemaName of schemaNames) {
1618 if (SchemaValidation.skiptest.includes(schemaName)) {
1619 printErrorAndExit(new Error(), [
1620 `Did not expect to find filename "${schemaName}" in file "${SchemaValidationFile}" under property "${propertyName}[]"`,
1621 `Because filename "${schemaName}" is listed under "skiptest", it should not be referenced anywhere else in the file`,
1622 ])
1623 }
1624 }
1625 }
1626
1627 check(SchemaValidation.ajvNotStrictMode, 'ajvNotStrictMode')
1628 check(SchemaValidation.missingCatalogUrl, 'missingCatalogUrl')

Calls 1

printErrorAndExitFunction · 0.85

Tested by

no test coverage detected