Comparing version 0.2.2 to 0.2.3
@@ -98,3 +98,3 @@ {{# def.definitions }} | ||
{{? $breakOnError }} {{=$valid}} = true; {{?}} | ||
if ({{=$data}}.hasOwnProperty('{{= $propertyKey }}')) { | ||
if ({{=$data}}['{{= $propertyKey }}'] !== undefined) { | ||
{{ /* TODO cache data types and paths by keys for patternProperties */ }} | ||
@@ -101,0 +101,0 @@ {{ var $useKey = '"' + $propertyKey + '"'; }} |
@@ -7,3 +7,3 @@ {{# def.definitions }} | ||
{{? $i}} && {{?}} | ||
{{=$data}}.hasOwnProperty('{{= it.escapeQuotes($property) }}') | ||
{{=$data}}['{{= it.escapeQuotes($property) }}'] !== undefined | ||
{{~}}; | ||
@@ -14,3 +14,3 @@ {{??}} | ||
for (var i{{=$lvl}} = 0; i{{=$lvl}} < schema{{=$lvl}}.length; i{{=$lvl}}++) { | ||
{{=$valid}} = data.hasOwnProperty(schema{{=$lvl}}[i{{=$lvl}}]); | ||
{{=$valid}} = data[schema{{=$lvl}}[i{{=$lvl}}]] !== undefined; | ||
if (!{{=$valid}}) break; | ||
@@ -17,0 +17,0 @@ } |
{ | ||
"name": "ajv", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"description": "Another JSON schema Validator", | ||
@@ -5,0 +5,0 @@ "main": "lib/ajv.js", |
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
189513