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({ ajv = Ajv({
allErrors: true, allErrors: true,
verbose: true, verbose: true,
schemaId: 'auto' schemaId: 'auto',
$data: true
}); });
// support both draft-04 and draft-06 alongside the latest draft-07 // support both draft-04 and draft-06 alongside the latest draft-07