Configure option `$data: true` for Ajv

This commit is contained in:
jos 2019-06-12 15:25:33 +02:00
parent 9dfc1aab39
commit 4813cd79a1
1 changed files with 2 additions and 1 deletions

View File

@ -358,7 +358,8 @@ JSONEditor.prototype.setSchema = function (schema, schemaRefs) {
ajv = Ajv({
allErrors: true,
verbose: true,
schemaId: 'auto'
schemaId: 'auto',
$data: true
});
// support both draft-04 and draft-06 alongside the latest draft-07