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

Function getSchemaOptions

cli.js:540–550  ·  view source on GitHub ↗
(/** @type {string} */ schemaName)

Source from the content-addressed store, hash-verified

538}
539
540function getSchemaOptions(/** @type {string} */ schemaName) {
541 const options = SchemaValidation.options[schemaName] ?? {}
542
543 return {
544 unknownFormats: options.unknownFormat ?? [],
545 unknownKeywords: options.unknownKeywords ?? [],
546 unknownSchemas: (options.externalSchema ?? []).map((schemaName2) => {
547 return path.join(SchemaDir, schemaName2)
548 }),
549 }
550}
551
552/**
553 * @param {string} filepath

Callers 1

onSchemaFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected