Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SchemaStore/schemastore
/ functions
Functions
91 in github.com/SchemaStore/schemastore
⨍
Functions
91
◇
Types & classes
0
↓ 49 callers
Function
printErrorAndExit
* @param {unknown} error * @param {string[]} [messages] * @param {string} [extraText] * @returns {never}
cli.js:390
↓ 11 callers
Function
isIgnoredFile
(/** @type {string} */ file)
cli.js:196
↓ 9 callers
Function
toFile
(/** @type {string} */ schemaPath)
cli.js:322
↓ 6 callers
Function
forEachFile
* @typedef {Object} ExtraParams @property {any} spinner } * @typedef {Object} ForEachTestFile * @property {string} [actionName] * @property {(ar
cli.js:222
↓ 5 callers
Function
assertFilePassesJsonLint
( /** @type {DataFile} */ file, /** @type {Record<string, unknown> | undefined} */ options = {}, )
cli.js:1706
↓ 5 callers
Function
collectValuesByPath
(data, path)
src/helpers/coverage.js:61
↓ 5 callers
Function
forEachCatalogUrl
( /** @type {((arg0: string) => (void | Promise<void>))} */ fn, )
cli.js:200
↓ 5 callers
Function
schemaNamesMustExist
( /** @type {string[]} */ schemaNames, /** @type {string} */ propertyName, )
cli.js:1481
↓ 5 callers
Function
walkProperties
* 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 callers
Function
check
( /** @type {string[]} */ schemaNames, /** @type {string} */ propertyName, )
cli.js:1613
↓ 4 callers
Function
exists
* @typedef {Object} DataFile * @property {Buffer} buffer * @property {string} text * @property {Record<PropertyKey, unknown>} json * @property {st
cli.js:177
↓ 4 callers
Function
onTestDir
(/** @type {string} */ rootTestDir)
cli.js:1224
↓ 3 callers
Function
ajvFactory
* Returns the correct and configured Ajv instance for a particular $schema version
cli.js:433
↓ 3 callers
Function
assertFileHasCorrectExtensions
( /** @type {string} */ pathname, /** @type {string[]} */ allowedExtensions, )
cli.js:1670
↓ 3 callers
Function
assertFileHasNoBom
(/** @type {DataFile} */ file)
cli.js:1682
↓ 3 callers
Function
collectPropertyValues
* 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 callers
Function
printSchemaValidationErrorAndExit
* @param {string} filepath * @param {string} schemaFilepath * @param {unknown[] | null | undefined} ajvErrors * @returns {never}
cli.js:558
↓ 3 callers
Function
readJsonFile
(/** @type {string} */ filename)
cli.js:192
↓ 2 callers
Function
assertFileValidatesAgainstSchema
( /** @type {string} */ filepath, /** @type {string} */ schemaFilepath, )
cli.js:1726
↓ 2 callers
Function
assertJsonOrYaml
( /** @type {string} */ url, /** @type {string} */ str, )
cli.js:905
↓ 2 callers
Function
assertTestFileHasSchemaPragma
( /** @type {SchemaFile} */ schemaFile, /** @type {DataFile} */ testFile, /** @type {Ora} */ spinner, )
cli.js:1538
↓ 2 callers
Function
collectAllKeys
* Recursively collect all keys from parsed data. * @param {unknown} data * @returns {Set<string>}
src/helpers/coverage.js:12
↓ 2 callers
Function
exists
* 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 callers
Function
extractDomain
* Extracts the domain from a URL. * @param {string} url - The URL to parse. * @returns {string} - The extracted domain.
scripts/build-xregistry.js:85
↓ 2 callers
Function
findObjectsWithRequired
* 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 callers
Function
getSchemaDialect
(/** @type {string} */ schemaUrl)
cli.js:411
↓ 2 callers
Function
getSchemaOptions
(/** @type {string} */ schemaName)
cli.js:540
↓ 2 callers
Function
parseSchemaFormat
* 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 callers
Function
printSimpleStatistics
()
cli.js:1961
↓ 2 callers
Function
readFirstLine
(/** @type {string} */ filepath)
cli.js:1600
↓ 1 callers
Function
assertCatalogJsonHasNoBadFields
()
cli.js:1315
↓ 1 callers
Function
assertCatalogJsonHasNoDuplicateNames
()
cli.js:1293
↓ 1 callers
Function
assertCatalogJsonHasNoFileMatchConflict
()
cli.js:1373
↓ 1 callers
Function
assertCatalogJsonLocalURLsAreOneToOne
()
cli.js:1406
↓ 1 callers
Function
assertFileSystemIsValid
()
cli.js:1201
↓ 1 callers
Function
assertSchemaHasValidIdField
(/** @type {SchemaFile} */ schema)
cli.js:1775
↓ 1 callers
Function
assertSchemaHasValidSchemaField
( /** @type {SchemaFile} */ schema, )
cli.js:1747
↓ 1 callers
Function
assertSchemaValidationJsonHasValidSkipTest
()
cli.js:1612
↓ 1 callers
Function
assertSchemaValidationJsonReferencesNoNonexistentFiles
()
cli.js:1480
↓ 1 callers
Function
assertTopLevelRefIsStandalone
(/** @type {SchemaFile} */ schema)
cli.js:1879
↓ 1 callers
Function
buildXRegistry
* Executes the xRegistry build process
cli.js:2110
↓ 1 callers
Function
buildXRegistry
()
scripts/build-xregistry.js:262
↓ 1 callers
Function
checkDefaultCoverage
(schema, positiveTests)
src/helpers/coverage.js:633
↓ 1 callers
Function
checkDescriptionCoverage
(schema)
src/helpers/coverage.js:391
↓ 1 callers
Function
checkEnumCoverage
(schema, positiveTests, negativeTests)
src/helpers/coverage.js:444
↓ 1 callers
Function
checkNegativeIsolation
(schema, negativeTests)
src/helpers/coverage.js:696
↓ 1 callers
Function
checkPatternCoverage
(schema, positiveTests, negativeTests)
src/helpers/coverage.js:503
↓ 1 callers
Function
checkRequiredCoverage
(schema, negativeTests)
src/helpers/coverage.js:584
↓ 1 callers
Function
checkTestCompleteness
(schema, positiveTests)
src/helpers/coverage.js:412
↓ 1 callers
Function
checkUnusedDefs
(schema)
src/helpers/coverage.js:337
↓ 1 callers
Function
collectAllStrings
(current)
src/helpers/coverage.js:91
↓ 1 callers
Function
collectRefs
(obj)
src/helpers/coverage.js:354
↓ 1 callers
Function
deepCollect
(current)
src/helpers/coverage.js:71
↓ 1 callers
Function
ensureDirectory
* Ensures a directory exists, creating it if necessary. * @param {string} dirPath - The directory path.
scripts/build-xregistry.js:55
↓ 1 callers
Function
formatIssue
(item)
src/helpers/coverage.js:864
↓ 1 callers
Function
getSchemaFormat
* 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 callers
Function
handleInput
(/** @type {string} */ schemaName = '')
cli.js:581
↓ 1 callers
Function
normalizeVersions
* 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 callers
Function
populate
(data)
src/js/site.js:36
↓ 1 callers
Function
prefetchSchemaFormats
* 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 callers
Function
printCoverageReport
(schemaName, results)
src/helpers/coverage.js:882
↓ 1 callers
Function
printSchemaReport
()
cli.js:1891
↓ 1 callers
Function
processDirectories
(dir)
scripts/postprocess-xregistry-site.js:70
↓ 1 callers
Function
purgeTargetDirectory
()
scripts/build-xregistry.js:239
↓ 1 callers
Function
readDataFile
( /** @type {{filepath: string, text: string }} */ obj, )
cli.js:334
↓ 1 callers
Function
readJsonFile
* 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 callers
Function
renameJsonFiles
(dir)
scripts/postprocess-xregistry-site.js:11
↓ 1 callers
Function
run
()
scripts/postprocess-xregistry-site.js:142
↓ 1 callers
Function
sanitizeName
* 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 callers
Function
schemaUrlsMustExist
( /** @type {string[]} */ schemaUrls, /** @type {string} */ propertyName, )
cli.js:1513
↓ 1 callers
Function
traverse
(current, remaining)
src/helpers/coverage.js:110
↓ 1 callers
Function
writeJsonFile
* 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 callers
Function
writeRootConfig
()
scripts/postprocess-xregistry-site.js:35
Function
assertSchemaHasCorrectMetadata
( /** @type {SchemaFile} */ schema, )
cli.js:1810
Function
assertSchemaNoSmartQuotes
(/** @type {SchemaFile} */ schema)
cli.js:1853
Function
groupByDomain
* 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
Function
ignoreOnlyENOENT
(/** @type {unknown} */ err)
cli.js:309
Function
onNegativeTestFile
(schema, testFile, _data, { spinner })
cli.js:722
Function
onPositiveTestFile
(schema, testFile, _data, { spinner })
cli.js:709
Function
onSchemaFile
(schema)
cli.js:633
Function
printDowngradableSchemaVersions
()
cli.js:1896
Function
taskBuildWebsite
()
cli.js:926
Function
taskBuildXRegistry
* Task to build the xRegistry
cli.js:2149
Function
taskCheck
()
cli.js:672
Function
taskCheckRemote
()
cli.js:846
Function
taskCheckStrict
()
cli.js:810
Function
taskCoverage
()
cli.js:2159
Function
taskLint
()
cli.js:628
Function
taskMaintenance
()
cli.js:854
Function
taskNewSchema
()
cli.js:573
Function
taskReport
()
cli.js:850