(/** @type {string} */ schemaUrl)
| 409 | } |
| 410 | |
| 411 | function 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 |