Comparing version 0.5.10 to 0.5.11
@@ -132,3 +132,3 @@ 'use strict'; | ||
$it.schema = $sch; | ||
$it.schemaPath = it.schemaPath + '.patternProperties.' + $pProperty; | ||
$it.schemaPath = it.schemaPath + '.patternProperties' + it.util.getProperty($pProperty); | ||
out += ' for (var key' + ($lvl) + ' in ' + ($data) + ') { if (/' + (it.util.escapeRegExp($pProperty)) + '/.test(key' + ($lvl) + ')) { '; | ||
@@ -135,0 +135,0 @@ $it.errorPath = (it.errorPath + ' + "[\'" + key' + $lvl + ' + "\']"').replace('" + "', ''); |
{ | ||
"name": "ajv", | ||
"version": "0.5.10", | ||
"version": "0.5.11", | ||
"description": "Another JSON Schema Validator", | ||
@@ -5,0 +5,0 @@ "main": "lib/ajv.js", |
@@ -153,3 +153,2 @@ # ajv - Another JSON Schema Validator | ||
Returns the text with all errors in a String. Options can have these properties: | ||
- separator: string used to separate errors, ", " is used by default. | ||
@@ -172,3 +171,3 @@ - dataVar: the variable name that dataPaths are prefixed with, "data" by default. | ||
- _beautify_: format the generated function with [js-beautify](https://github.com/beautify-web/js-beautify) (the validating function is generated without line-breaks). `npm install js-beautify` to use this option. `true` or js-beautify options can be passed. | ||
- _cache_: an optional instance of cache to store compiled schemas using stable-stringified schema as a key. For example, set-associative cache [sacjs](https://github.com/epoberezkin/sacjs) can be used. In not passed then a simple hash is used which is good enough for the common use case (a limited number of statically defined schemas). Cache should have methods `put(key, value)` and `get(key)`. | ||
- _cache_: an optional instance of cache to store compiled schemas using stable-stringified schema as a key. For example, set-associative cache [sacjs](https://github.com/epoberezkin/sacjs) can be used. If not passed then a simple hash is used which is good enough for the common use case (a limited number of statically defined schemas). Cache should have methods `put(key, value)` and `get(key)`. | ||
@@ -175,0 +174,0 @@ |
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
339078
154
9072
224