Skip to content

Commit

Permalink
Merge pull request #2148 from rwblair/legacy/fix-ajv-calls
Browse files Browse the repository at this point in the history
FIX: Disable strictSchema for legacy validator JSON schema validation
  • Loading branch information
effigies authored Oct 3, 2024
2 parents 0a2530b + 434733d commit f85d51f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bids-validator/validators/json/json.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import utils from '../../utils'
import Ajv from 'ajv'
const ajv = new Ajv({ allErrors: true })
const ajv = new Ajv({ allErrors: true, strictSchema: false })
ajv.addMetaSchema(require('ajv/lib/refs/json-schema-draft-06.json'))
ajv.addSchema(require('./schemas/common_definitions.json'))
const Issue = utils.issues.Issue
Expand Down

0 comments on commit f85d51f

Please sign in to comment.