json-schema
Advanced tools
Comparing version 0.2.3 to 0.2.4
@@ -110,3 +110,3 @@ /** | ||
!(type == 'integer' && value%1===0)){ | ||
return [{property:path,message:(typeof value) + " value found, but a " + type + " is required"}]; | ||
return [{property:path,message:value + " - " + (typeof value) + " value found, but a " + type + " is required"}]; | ||
} | ||
@@ -235,3 +235,3 @@ if(type instanceof Array){ | ||
} else { | ||
errors.push({property:path,message:(typeof value) + "The property " + i + | ||
errors.push({property:path,message:"The property " + i + | ||
" is not defined in the schema and the schema does not allow additional properties"}); | ||
@@ -238,0 +238,0 @@ } |
{ | ||
"name": "json-schema", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"author": "Kris Zyp", | ||
@@ -12,12 +12,6 @@ "description": "JSON Schema validation and specifications", | ||
], | ||
"licenses": [ | ||
{ | ||
"type": "AFLv2.1", | ||
"url": "http://trac.dojotoolkit.org/browser/dojo/trunk/LICENSE#L43" | ||
}, | ||
{ | ||
"type": "BSD", | ||
"url": "http://trac.dojotoolkit.org/browser/dojo/trunk/LICENSE#L13" | ||
} | ||
"files": [ | ||
"lib" | ||
], | ||
"license": "(AFL-2.1 OR BSD-3-Clause)", | ||
"repository": { | ||
@@ -32,2 +26,1 @@ "type":"git", | ||
} | ||
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). | ||
Code is licensed under the AFL or BSD license as part of the Persevere | ||
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. |
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
Mixed license
License(Experimental) Package contains multiple licenses.
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
0
25747
5
330