diff options
author | Julian Berman <Julian+git@GrayVines.com> | 2012-10-31 20:17:44 -0400 |
---|---|---|
committer | Julian Berman <Julian+git@GrayVines.com> | 2012-10-31 20:21:04 -0400 |
commit | 897f198f311bd1cd41f0762f1b97dba05f1c0064 (patch) | |
tree | 2583cd04cc083bb473202066a3805f22191ba3e7 /json | |
parent | 88937bd9021e1456dd432bc602206ea314a78c4d (diff) | |
download | jsonschema-897f198f311bd1cd41f0762f1b97dba05f1c0064.tar.gz |
Git I don't even begin to understand you.
Diffstat (limited to 'json')
-rw-r--r-- | json/tests/draft3/enum.json | 2 | ||||
-rw-r--r-- | json/tests/draft3/uniqueItems.json | 19 |
2 files changed, 8 insertions, 13 deletions
diff --git a/json/tests/draft3/enum.json b/json/tests/draft3/enum.json index 3bf90f2..a539edb 100644 --- a/json/tests/draft3/enum.json +++ b/json/tests/draft3/enum.json @@ -17,7 +17,7 @@ }, { "description": "heterogeneous enum validation", - "schema": {"enum": [1, "foo", [], true, {"foo": 12}]}, + "schema": {"enum": [6, "foo", [], true, {"foo": 12}]}, "tests": [ { "description": "one of the enum is valid", diff --git a/json/tests/draft3/uniqueItems.json b/json/tests/draft3/uniqueItems.json index 50b7b4e..15a493a 100644 --- a/json/tests/draft3/uniqueItems.json +++ b/json/tests/draft3/uniqueItems.json @@ -52,23 +52,18 @@ ] }, { - "description": "heterogeneous enum validation", - "schema": {"enum": [1, "foo", [], true, {"foo": 12}]}, + "description": "uniqueItems booleans and integers", + "schema": {"uniqueItems": true}, "tests": [ { - "description": "one of the enum is valid", - "data": [], + "description": "1 and true are unique", + "data": [1, true], "valid": true }, { - "description": "something else is invalid", - "data": null, - "valid": false - }, - { - "description": "objects are deep compared", - "data": {"foo": false}, - "valid": false + "description": "0 and false are unique", + "data": [0, false], + "valid": true } ] } |