Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

json-schema

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-schema - npm Package Compare versions

Comparing version 0.2.3 to 0.2.4

LICENSE

4

lib/validate.js

@@ -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.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc