Comparing version 0.5.11 to 0.5.12
@@ -10,3 +10,2 @@ 'use strict'; | ||
getProperty: getProperty, | ||
escapeQuotes: escapeQuotes, | ||
escapeRegExp: escapeRegExp, | ||
@@ -89,11 +88,6 @@ ucs2length: ucs2length, | ||
? '.' + key | ||
: "['" + key + "']"; | ||
: "['" + key.replace(/'/g, "\\'") + "']"; | ||
} | ||
function escapeQuotes(str) { | ||
return str.replace(/'/g, "\\'"); | ||
} | ||
var ESCAPE_REGEXP = /[\/]/g | ||
@@ -100,0 +94,0 @@ function escapeRegExp(str) { |
@@ -80,3 +80,3 @@ 'use strict'; | ||
$it.schema = $sch; | ||
$it.schemaPath = $schemaPath + "['" + it.util.escapeQuotes($property) + "']"; | ||
$it.schemaPath = $schemaPath + it.util.getProperty($property); | ||
out += ' ' + (it.validate($it)) + ' } '; | ||
@@ -83,0 +83,0 @@ if ($breakOnError) { |
@@ -97,5 +97,5 @@ 'use strict'; | ||
$it.schema = $sch; | ||
$it.schemaPath = $schemaPath + "['" + it.util.escapeQuotes($propertyKey) + "']"; | ||
var $prop = it.util.getProperty($propertyKey), | ||
$passData = $data + $prop; | ||
$it.schemaPath = $schemaPath + $prop; | ||
$it.errorPath = (it.errorPath + ' + "' + $prop + '"').replace('" + "', ''); | ||
@@ -102,0 +102,0 @@ $it.dataPath = it.dataPath + $prop; |
{ | ||
"name": "ajv", | ||
"version": "0.5.11", | ||
"version": "0.5.12", | ||
"description": "Another JSON Schema Validator", | ||
@@ -5,0 +5,0 @@ "main": "lib/ajv.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
355387
156
9568