Comparing version 0.4.6 to 0.4.7
@@ -6,7 +6,8 @@ {{# def.definitions }} | ||
var $exclusive = it.schema.exclusiveMaximum === true | ||
, $op = $exclusive ? '<' : '<='; | ||
, $op = $exclusive ? '<' : '<=' /*used in error*/ | ||
, $notOp = $exclusive ? '>=' : '>'; | ||
}} | ||
if (! ({{=$data}} {{=$op}} {{=$schema}}) ) { | ||
if ({{=$data}} {{=$notOp}} {{=$schema}}) { | ||
{{# def.error:'maximum' }} | ||
} {{? $breakOnError }} else { {{?}} |
@@ -6,7 +6,8 @@ {{# def.definitions }} | ||
var $exclusive = it.schema.exclusiveMinimum === true | ||
, $op = $exclusive ? '>' : '>='; | ||
, $op = $exclusive ? '>' : '>=' /*used in error*/ | ||
, $notOp = $exclusive ? '<=' : '<'; | ||
}} | ||
if (!( {{=$data}} {{=$op}} {{=$schema}} )) { | ||
if ({{=$data}} {{=$notOp}} {{=$schema}}) { | ||
{{# def.error:'minimum' }} | ||
} {{? $breakOnError }} else { {{?}} |
{{# def.definitions }} | ||
{{# def.setup:'minItems' }} | ||
if ({{=$data}}.length < {{=$schema}}) { | ||
if ({{=$data}}.length < {{=$schema}}) { | ||
{{# def.error:'minItems' }} | ||
} {{? $breakOnError }} else { {{?}} |
{ | ||
"name": "ajv", | ||
"version": "0.4.6", | ||
"version": "0.4.7", | ||
"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
267188
7963