Skip to content

Commit a5e3079

Browse files
fix: use ajv for schema ref resolving (#462)
* fix: use ajv for schema ref resolving * add tests for #350 and #417 * Don't print root schema id * fix: remove schema setting by $id and key at the same time * fix: clone external schemas * Disable ajv schema validation * Check is external schema exist
1 parent d7c3a55 commit a5e3079

File tree

5 files changed

+768
-322
lines changed

5 files changed

+768
-322
lines changed

ajv.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const ajvFormats = require('ajv-formats')
77
module.exports = buildAjv
88

99
function buildAjv (options) {
10-
const ajvInstance = new Ajv({ ...options, strictSchema: false, uriResolver: fastUri })
10+
const ajvInstance = new Ajv({ ...options, strictSchema: false, validateSchema: false, uriResolver: fastUri })
1111
ajvFormats(ajvInstance)
1212

1313
const validateDateTimeFormat = ajvFormats.get('date-time').validate

0 commit comments

Comments
 (0)