(/** @type {string} */ schemaName)
| 538 | } |
| 539 | |
| 540 | function 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 |