Comparing version 0.4.7 to 0.4.8
@@ -5,11 +5,17 @@ {{# def.definitions }} | ||
{{? $schema == '#' || $schema == '#/' }} | ||
var errors{{=$lvl}} = validate.errors; | ||
if (!validate({{=$data}}, (dataPath || '') + {{= it.errorPath }})) { | ||
if (errors{{=$lvl}} !== null) { | ||
validate.errors = errors{{=$lvl}}.concat(validate.errors); | ||
} | ||
errors = validate.errors.length; | ||
} {{? $breakOnError }} else { {{?}} | ||
{{? $breakOnError && it.wasRoot }} | ||
if (!validate({{=$data}}, (dataPath || '') + {{= it.errorPath }})) | ||
return false; | ||
else { | ||
{{??}} | ||
var errors{{=$lvl}} = validate.errors; | ||
if (!validate({{=$data}}, (dataPath || '') + {{= it.errorPath }})) { | ||
if (errors{{=$lvl}} !== null) { | ||
validate.errors = errors{{=$lvl}}.concat(validate.errors); | ||
} | ||
errors = validate.errors.length; | ||
} {{? $breakOnError }} else { {{?}} | ||
{{?}} | ||
{{??}} | ||
{{ $id = it.resolveRef(it.baseId, $schema); }} | ||
{{ $id = it.resolveRef(it.baseId, $schema, it.rootId); }} | ||
{{? $id === undefined }} | ||
@@ -16,0 +22,0 @@ {{# def.error:'$ref' }} |
{ | ||
"name": "ajv", | ||
"version": "0.4.7", | ||
"version": "0.4.8", | ||
"description": "Another JSON schema Validator", | ||
@@ -5,0 +5,0 @@ "main": "lib/ajv.js", |
@@ -31,3 +31,3 @@ [ | ||
{ | ||
"description": "invalid", | ||
"description": "child numbers are invalid", | ||
"data": { | ||
@@ -43,3 +43,3 @@ "name": "foo", | ||
{ | ||
"description": "invalid", | ||
"description": "child arrays are invalid", | ||
"data": { | ||
@@ -46,0 +46,0 @@ "name": "foo", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
267404
7969