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

Function getSchemaDialect

cli.js:411–418  ·  view source on GitHub ↗
(/** @type {string} */ schemaUrl)

Source from the content-addressed store, hash-verified

409}
410
411function getSchemaDialect(/** @type {string} */ schemaUrl) {
412 const schemaDialect = SchemaDialects.find((obj) => schemaUrl === obj.url)
413 if (!schemaDialect) {
414 throw new Error(`No schema dialect found for url: ${schemaUrl}`)
415 }
416
417 return schemaDialect
418}
419
420/**
421 * @typedef {Object} AjvFactoryOptions

Callers 1

onSchemaFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected