Skip to content

Commit

Permalink
prevent scope change if definitions uses id
Browse files Browse the repository at this point in the history
  • Loading branch information
epoberezkin committed Jan 4, 2016
1 parent 5f2cc30 commit a1afce9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/compile/resolve.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 || '';
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ajv",
"version": "3.1.0",
"version": "3.1.1",
"description": "Another JSON Schema Validator",
"main": "lib/ajv.js",
"files": [
Expand Down

0 comments on commit a1afce9

Please sign in to comment.