json-schema
Advanced tools
Comparing version 0.2.5 to 0.3.0
@@ -171,7 +171,7 @@ /** | ||
} | ||
if(typeof schema.minimum !== undefined && typeof value == typeof schema.minimum && | ||
if(typeof schema.minimum !== 'undefined' && typeof value == typeof schema.minimum && | ||
schema.minimum > value){ | ||
addError("must have a minimum value of " + schema.minimum); | ||
} | ||
if(typeof schema.maximum !== undefined && typeof value == typeof schema.maximum && | ||
if(typeof schema.maximum !== 'undefined' && typeof value == typeof schema.maximum && | ||
schema.maximum < value){ | ||
@@ -178,0 +178,0 @@ addError("must have a maximum value of " + schema.maximum); |
{ | ||
"name": "json-schema", | ||
"version": "0.2.5", | ||
"version": "0.3.0", | ||
"author": "Kris Zyp", | ||
@@ -5,0 +5,0 @@ "description": "JSON Schema validation and specifications", |
@@ -1,5 +0,3 @@ | ||
JSON Schema is a repository for the JSON Schema specification, reference schemas and a CommonJS implementation of JSON Schema (not the only JavaScript implementation of JSON Schema, JSV is another excellent JavaScript validator). | ||
This is a historical repository for the early development of the JSON Schema specification and implementation. This package is considered "finished": it holds the earlier draft specification and a simple, efficient, lightweight implementation of the original core elements of JSON Schema. This repository does not house the latest specifications nor does it implement the latest versions of JSON Schema. This package seeks to maintain the stability (in behavior and size) of this original implementation for the sake of the numerous packages that rely on it. For the latest JSON Schema specifications and implementations, please visit the [JSON Schema site](https://json-schema.org/). | ||
Code is licensed under the AFL or BSD 3-Clause license as part of the Persevere | ||
project which is administered under the Dojo foundation, | ||
and all contributions require a Dojo CLA. | ||
Code is licensed under the AFL or BSD 3-Clause license. |
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
25940
4