diff --git a/LICENSE b/LICENSE index 3dca8a28..e237d808 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2012 +Copyright (c) 2012 Julian Berman Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -17,3 +17,8 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +If you make any changes to the data stord underneath the directory +tests, you may no longer call this body of work the +JSON-Schema-Test-Suite unless you provide your changes to Julian +Berman at \ No newline at end of file diff --git a/tests/draft3/items.json b/tests/draft3/items.json index 9e162633..ba72a1ea 100644 --- a/tests/draft3/items.json +++ b/tests/draft3/items.json @@ -10,11 +10,21 @@ "data": [ 1, 2, 3 ], "valid": true }, + { + "description": "valid items with extras", + "data": [ 1, 2, 3 ], + "valid": false + }, { "description": "wrong type of items", "data": [1, "x"], "valid": false } + { + "description": "wrong type for items", + "data": "foo", + "valid": false + } ] }, { diff --git a/tests/draft3/maxItems.json b/tests/draft3/maxItems.json index da13fc24..266b242a 100644 --- a/tests/draft3/maxItems.json +++ b/tests/draft3/maxItems.json @@ -17,7 +17,10 @@ "description": "too long is invalid", "data": [1, 2, 3], "valid": false - } + }, + { "description": "maxItem can't be applied to a has h" , + "data": {"ga":"ba"} + } ] } ] diff --git a/tests/draft3/maxLength.json b/tests/draft3/maxLength.json index 36cba1d8..ceb25320 100644 --- a/tests/draft3/maxLength.json +++ b/tests/draft3/maxLength.json @@ -18,6 +18,11 @@ "data": "foo", "valid": false } + { + "description": "maxLength is for strings, not arrays" , + "data": [1,2,3], + "valid": false + } ] } ] diff --git a/tests/draft3/maximum.json b/tests/draft3/maximum.json index 3c8cd86b..fae0cccc 100644 --- a/tests/draft3/maximum.json +++ b/tests/draft3/maximum.json @@ -1,3 +1,5 @@ +// I'd line to figure out a way to test +// that implementations are doing correct rounding. [ { "description": "maximum validation", diff --git a/tests/draft3/type.json b/tests/draft3/type.json index 8f108899..fe1df4c3 100644 --- a/tests/draft3/type.json +++ b/tests/draft3/type.json @@ -8,6 +8,11 @@ "data": 1, "valid": true }, + { + "description": "an integer with a . in it is an integer", + "data": 1.0, + "valid": false + }, { "description": "a float is not an integer", "data": 1.1, diff --git a/tests/draft3/uniqueItems.json b/tests/draft3/uniqueItems.json index 50b7b4e5..4bb04574 100644 --- a/tests/draft3/uniqueItems.json +++ b/tests/draft3/uniqueItems.json @@ -8,6 +8,11 @@ "data": [1, 2], "valid": true }, + { + "description": "non-unique array of integers is invalid", + "data": [1, 1.0], + "valid": false + }, { "description": "non-unique array of integers is invalid", "data": [1, 1],