ajv
Advanced tools
Comparing version 0.2.3 to 0.2.4
{ | ||
"name": "ajv", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"description": "Another JSON schema Validator", | ||
@@ -29,3 +29,2 @@ "main": "lib/ajv.js", | ||
"devDependencies": { | ||
"JSON-Schema-Test-Suite": "git+ssh://git@github.com/json-schema/JSON-Schema-Test-Suite.git", | ||
"glob": "^5.0.10", | ||
@@ -32,0 +31,0 @@ "mocha": "^2.2.5" |
@@ -45,1 +45,9 @@ # ajv - Another JSON schema Validator | ||
- _unicode_: if false, sting.length will be used and the string lengths with unicode pairs will be "incorrect" because each unicode pair will be counted as two characters (true by default - string lengths are calculated correctly but it is slower) | ||
## Tests | ||
``` | ||
git submodule update --init | ||
npm test | ||
``` |
@@ -78,2 +78,3 @@ JSON Schema Test Suite [![Build Status](https://travis-ci.org/json-schema/JSON-Schema-Test-Suite.png?branch=develop)](https://travis-ci.org/json-schema/JSON-Schema-Test-Suite) | ||
* [gojsonschema](https://github.com/sigu-399/gojsonschema) | ||
* [validate-json](https://github.com/cesanta/validate-json) | ||
@@ -80,0 +81,0 @@ ### Haskell ### |
@@ -22,3 +22,14 @@ [ | ||
] | ||
}, | ||
{ | ||
"description": "pattern is not anchored", | ||
"schema": {"pattern": "a+"}, | ||
"tests": [ | ||
{ | ||
"description": "matches a substring", | ||
"data": "xxaayy", | ||
"valid": true | ||
} | ||
] | ||
} | ||
] |
@@ -89,3 +89,3 @@ [ | ||
{ | ||
"description": "slash", | ||
"description": "slash invalid", | ||
"data": {"slash": "aoeu"}, | ||
@@ -95,3 +95,3 @@ "valid": false | ||
{ | ||
"description": "tilda", | ||
"description": "tilda invalid", | ||
"data": {"tilda": "aoeu"}, | ||
@@ -101,5 +101,20 @@ "valid": false | ||
{ | ||
"description": "percent", | ||
"description": "percent invalid", | ||
"data": {"percent": "aoeu"}, | ||
"valid": false | ||
}, | ||
{ | ||
"description": "slash valid", | ||
"data": {"slash": 123}, | ||
"valid": true | ||
}, | ||
{ | ||
"description": "tilda valid", | ||
"data": {"tilda": 123}, | ||
"valid": true | ||
}, | ||
{ | ||
"description": "percent valid", | ||
"data": {"percent": 123}, | ||
"valid": true | ||
} | ||
@@ -106,0 +121,0 @@ ] |
@@ -33,10 +33,5 @@ [ | ||
{ | ||
"description": "objects are deep compared - invalid", | ||
"description": "objects are deep compared", | ||
"data": {"foo": false}, | ||
"valid": false | ||
}, | ||
{ | ||
"description": "objects are deep compared - valid", | ||
"data": {"foo": 12}, | ||
"valid": true | ||
} | ||
@@ -43,0 +38,0 @@ ] |
@@ -22,3 +22,14 @@ [ | ||
] | ||
}, | ||
{ | ||
"description": "pattern is not anchored", | ||
"schema": {"pattern": "a+"}, | ||
"tests": [ | ||
{ | ||
"description": "matches a substring", | ||
"data": "xxaayy", | ||
"valid": true | ||
} | ||
] | ||
} | ||
] |
@@ -89,3 +89,3 @@ [ | ||
{ | ||
"description": "slash", | ||
"description": "slash invalid", | ||
"data": {"slash": "aoeu"}, | ||
@@ -95,3 +95,3 @@ "valid": false | ||
{ | ||
"description": "tilda", | ||
"description": "tilda invalid", | ||
"data": {"tilda": "aoeu"}, | ||
@@ -101,5 +101,20 @@ "valid": false | ||
{ | ||
"description": "percent", | ||
"description": "percent invalid", | ||
"data": {"percent": "aoeu"}, | ||
"valid": false | ||
}, | ||
{ | ||
"description": "slash valid", | ||
"data": {"slash": 123}, | ||
"valid": true | ||
}, | ||
{ | ||
"description": "tilda valid", | ||
"data": {"tilda": 123}, | ||
"valid": true | ||
}, | ||
{ | ||
"description": "percent valid", | ||
"data": {"percent": 123}, | ||
"valid": true | ||
} | ||
@@ -106,0 +121,0 @@ ] |
Sorry, the diff of this file is not supported yet
190844
2
5856
53