MCPcopy Create free account

hub / github.com/SchemaStore/schemastore / functions

Functions91 in github.com/SchemaStore/schemastore

↓ 49 callersFunctionprintErrorAndExit
* @param {unknown} error * @param {string[]} [messages] * @param {string} [extraText] * @returns {never}
cli.js:390
↓ 11 callersFunctionisIgnoredFile
(/** @type {string} */ file)
cli.js:196
↓ 9 callersFunctiontoFile
(/** @type {string} */ schemaPath)
cli.js:322
↓ 6 callersFunctionforEachFile
* @typedef {Object} ExtraParams @property {any} spinner } * @typedef {Object} ForEachTestFile * @property {string} [actionName] * @property {(ar
cli.js:222
↓ 5 callersFunctionassertFilePassesJsonLint
( /** @type {DataFile} */ file, /** @type {Record<string, unknown> | undefined} */ options = {}, )
cli.js:1706
↓ 5 callersFunctioncollectValuesByPath
(data, path)
src/helpers/coverage.js:61
↓ 5 callersFunctionforEachCatalogUrl
( /** @type {((arg0: string) => (void | Promise<void>))} */ fn, )
cli.js:200
↓ 5 callersFunctionschemaNamesMustExist
( /** @type {string[]} */ schemaNames, /** @type {string} */ propertyName, )
cli.js:1481
↓ 5 callersFunctionwalkProperties
* Walk schema and collect all properties with their paths. * @param {Record<string, unknown>} schema * @param {string} [currentPath] * @returns {Ar
src/helpers/coverage.js:161
↓ 4 callersFunctioncheck
( /** @type {string[]} */ schemaNames, /** @type {string} */ propertyName, )
cli.js:1613
↓ 4 callersFunctionexists
* @typedef {Object} DataFile * @property {Buffer} buffer * @property {string} text * @property {Record<PropertyKey, unknown>} json * @property {st
cli.js:177
↓ 4 callersFunctiononTestDir
(/** @type {string} */ rootTestDir)
cli.js:1224
↓ 3 callersFunctionajvFactory
* Returns the correct and configured Ajv instance for a particular $schema version
cli.js:433
↓ 3 callersFunctionassertFileHasCorrectExtensions
( /** @type {string} */ pathname, /** @type {string[]} */ allowedExtensions, )
cli.js:1670
↓ 3 callersFunctionassertFileHasNoBom
(/** @type {DataFile} */ file)
cli.js:1682
↓ 3 callersFunctioncollectPropertyValues
* Recursively collect all values assigned to a specific property name (name-based, not path-aware). * @param {unknown} data * @param {string} propNa
src/helpers/coverage.js:33
↓ 3 callersFunctionprintSchemaValidationErrorAndExit
* @param {string} filepath * @param {string} schemaFilepath * @param {unknown[] | null | undefined} ajvErrors * @returns {never}
cli.js:558
↓ 3 callersFunctionreadJsonFile
(/** @type {string} */ filename)
cli.js:192
↓ 2 callersFunctionassertFileValidatesAgainstSchema
( /** @type {string} */ filepath, /** @type {string} */ schemaFilepath, )
cli.js:1726
↓ 2 callersFunctionassertJsonOrYaml
( /** @type {string} */ url, /** @type {string} */ str, )
cli.js:905
↓ 2 callersFunctionassertTestFileHasSchemaPragma
( /** @type {SchemaFile} */ schemaFile, /** @type {DataFile} */ testFile, /** @type {Ora} */ spinner, )
cli.js:1538
↓ 2 callersFunctioncollectAllKeys
* Recursively collect all keys from parsed data. * @param {unknown} data * @returns {Set<string>}
src/helpers/coverage.js:12
↓ 2 callersFunctionexists
* Checks if a file or directory exists. * @param {string} filepath - The path to check. * @returns {Promise<boolean>} - True if the file exists, fal
scripts/build-xregistry.js:38
↓ 2 callersFunctionextractDomain
* Extracts the domain from a URL. * @param {string} url - The URL to parse. * @returns {string} - The extracted domain.
scripts/build-xregistry.js:85
↓ 2 callersFunctionfindObjectsWithRequired
* Find all objects in schema that have required arrays. * @param {Record<string, unknown>} schema * @param {string} [currentPath] * @returns {Array
src/helpers/coverage.js:282
↓ 2 callersFunctiongetSchemaDialect
(/** @type {string} */ schemaUrl)
cli.js:411
↓ 2 callersFunctiongetSchemaOptions
(/** @type {string} */ schemaName)
cli.js:540
↓ 2 callersFunctionparseSchemaFormat
* Parses a $schema URI into a format string. * @param {string} schemaUri - The $schema value. * @returns {string} - The schema format (e.g., JsonSch
scripts/build-xregistry.js:119
↓ 2 callersFunctionprintSimpleStatistics
()
cli.js:1961
↓ 2 callersFunctionreadFirstLine
(/** @type {string} */ filepath)
cli.js:1600
↓ 1 callersFunctionassertCatalogJsonHasNoBadFields
()
cli.js:1315
↓ 1 callersFunctionassertCatalogJsonHasNoDuplicateNames
()
cli.js:1293
↓ 1 callersFunctionassertCatalogJsonHasNoFileMatchConflict
()
cli.js:1373
↓ 1 callersFunctionassertCatalogJsonLocalURLsAreOneToOne
()
cli.js:1406
↓ 1 callersFunctionassertFileSystemIsValid
()
cli.js:1201
↓ 1 callersFunctionassertSchemaHasValidIdField
(/** @type {SchemaFile} */ schema)
cli.js:1775
↓ 1 callersFunctionassertSchemaHasValidSchemaField
( /** @type {SchemaFile} */ schema, )
cli.js:1747
↓ 1 callersFunctionassertSchemaValidationJsonHasValidSkipTest
()
cli.js:1612
↓ 1 callersFunctionassertSchemaValidationJsonReferencesNoNonexistentFiles
()
cli.js:1480
↓ 1 callersFunctionassertTopLevelRefIsStandalone
(/** @type {SchemaFile} */ schema)
cli.js:1879
↓ 1 callersFunctionbuildXRegistry
* Executes the xRegistry build process
cli.js:2110
↓ 1 callersFunctionbuildXRegistry
()
scripts/build-xregistry.js:262
↓ 1 callersFunctioncheckDefaultCoverage
(schema, positiveTests)
src/helpers/coverage.js:633
↓ 1 callersFunctioncheckDescriptionCoverage
(schema)
src/helpers/coverage.js:391
↓ 1 callersFunctioncheckEnumCoverage
(schema, positiveTests, negativeTests)
src/helpers/coverage.js:444
↓ 1 callersFunctioncheckNegativeIsolation
(schema, negativeTests)
src/helpers/coverage.js:696
↓ 1 callersFunctioncheckPatternCoverage
(schema, positiveTests, negativeTests)
src/helpers/coverage.js:503
↓ 1 callersFunctioncheckRequiredCoverage
(schema, negativeTests)
src/helpers/coverage.js:584
↓ 1 callersFunctioncheckTestCompleteness
(schema, positiveTests)
src/helpers/coverage.js:412
↓ 1 callersFunctioncheckUnusedDefs
(schema)
src/helpers/coverage.js:337
↓ 1 callersFunctioncollectAllStrings
(current)
src/helpers/coverage.js:91
↓ 1 callersFunctioncollectRefs
(obj)
src/helpers/coverage.js:354
↓ 1 callersFunctiondeepCollect
(current)
src/helpers/coverage.js:71
↓ 1 callersFunctionensureDirectory
* Ensures a directory exists, creating it if necessary. * @param {string} dirPath - The directory path.
scripts/build-xregistry.js:55
↓ 1 callersFunctionformatIssue
(item)
src/helpers/coverage.js:864
↓ 1 callersFunctiongetSchemaFormat
* Determines the schema format for a local schemastore.org schema by reading * the file directly, or for an external schema by fetching it. * @param
scripts/build-xregistry.js:133
↓ 1 callersFunctionhandleInput
(/** @type {string} */ schemaName = '')
cli.js:581
↓ 1 callersFunctionnormalizeVersions
* Normalizes and validates versions using semver. * @param {string[]} versions - An array of version strings. * @returns {Array<{ version: string, i
scripts/build-xregistry.js:218
↓ 1 callersFunctionpopulate
(data)
src/js/site.js:36
↓ 1 callersFunctionprefetchSchemaFormats
* Pre-fetches schema formats for all catalog entries in parallel (batched). * Using a concurrency of 20 balances speed against overwhelming remote se
scripts/build-xregistry.js:167
↓ 1 callersFunctionprintCoverageReport
(schemaName, results)
src/helpers/coverage.js:882
↓ 1 callersFunctionprintSchemaReport
()
cli.js:1891
↓ 1 callersFunctionprocessDirectories
(dir)
scripts/postprocess-xregistry-site.js:70
↓ 1 callersFunctionpurgeTargetDirectory
()
scripts/build-xregistry.js:239
↓ 1 callersFunctionreadDataFile
( /** @type {{filepath: string, text: string }} */ obj, )
cli.js:334
↓ 1 callersFunctionreadJsonFile
* Reads a JSON file and parses its content. * @param {string} filename - The file to read. * @returns {Promise<any>} - The parsed JSON content.
scripts/build-xregistry.js:66
↓ 1 callersFunctionrenameJsonFiles
(dir)
scripts/postprocess-xregistry-site.js:11
↓ 1 callersFunctionrun
()
scripts/postprocess-xregistry-site.js:142
↓ 1 callersFunctionsanitizeName
* Sanitizes a name by replacing invalid characters with underscores. * @param {string} name - The name to sanitize. * @returns {string} - The saniti
scripts/build-xregistry.js:190
↓ 1 callersFunctionschemaUrlsMustExist
( /** @type {string[]} */ schemaUrls, /** @type {string} */ propertyName, )
cli.js:1513
↓ 1 callersFunctiontraverse
(current, remaining)
src/helpers/coverage.js:110
↓ 1 callersFunctionwriteJsonFile
* Writes data to a JSON file. * @param {string} filename - The file to write to. * @param {any} data - The data to write.
scripts/build-xregistry.js:76
↓ 1 callersFunctionwriteRootConfig
()
scripts/postprocess-xregistry-site.js:35
FunctionassertSchemaHasCorrectMetadata
( /** @type {SchemaFile} */ schema, )
cli.js:1810
FunctionassertSchemaNoSmartQuotes
(/** @type {SchemaFile} */ schema)
cli.js:1853
FunctiongroupByDomain
* Groups schemas by their domain. * @param {Array<{ url: string }>} schemas - The schemas to group. * @returns {Record<string, Array<{ url: string }
scripts/build-xregistry.js:100
FunctionignoreOnlyENOENT
(/** @type {unknown} */ err)
cli.js:309
FunctiononNegativeTestFile
(schema, testFile, _data, { spinner })
cli.js:722
FunctiononPositiveTestFile
(schema, testFile, _data, { spinner })
cli.js:709
FunctiononSchemaFile
(schema)
cli.js:633
FunctionprintDowngradableSchemaVersions
()
cli.js:1896
FunctiontaskBuildWebsite
()
cli.js:926
FunctiontaskBuildXRegistry
* Task to build the xRegistry
cli.js:2149
FunctiontaskCheck
()
cli.js:672
FunctiontaskCheckRemote
()
cli.js:846
FunctiontaskCheckStrict
()
cli.js:810
FunctiontaskCoverage
()
cli.js:2159
FunctiontaskLint
()
cli.js:628
FunctiontaskMaintenance
()
cli.js:854
FunctiontaskNewSchema
()
cli.js:573
FunctiontaskReport
()
cli.js:850