prevent scope change if definitions uses id

master
Evgeny Poberezkin 2016-01-04 22:28:05 +00:00
parent 5f2cc30449
commit a1afce910c
2 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,7 @@ function resolveRecursive(root, ref, parsedRef) {
}
var PREVENT_SCOPE_CHANGE = util.toHash(['properties', 'patternProperties', 'enum', 'dependencies']);
var PREVENT_SCOPE_CHANGE = util.toHash(['properties', 'patternProperties', 'enum', 'dependencies', 'definitions']);
function getJsonPointer(parsedRef, baseId, schema, root) {
/* jshint validthis: true */
parsedRef.hash = parsedRef.hash || '';

View File

@ -1,6 +1,6 @@
{
"name": "ajv",
"version": "3.1.0",
"version": "3.1.1",
"description": "Another JSON Schema Validator",
"main": "lib/ajv.js",
"files": [