diff options
Diffstat (limited to 'json/tests/draft6/uniqueItems.json')
-rw-r--r-- | json/tests/draft6/uniqueItems.json | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/json/tests/draft6/uniqueItems.json b/json/tests/draft6/uniqueItems.json index 4846c77..2ccf666 100644 --- a/json/tests/draft6/uniqueItems.json +++ b/json/tests/draft6/uniqueItems.json @@ -14,6 +14,11 @@ "valid": false }, { + "description": "non-unique array of more than two integers is invalid", + "data": [1, 2, 1], + "valid": false + }, + { "description": "numbers are unique if mathematically unequal", "data": [1.0, 1.00, 1], "valid": false @@ -29,6 +34,16 @@ "valid": true }, { + "description": "unique array of strings is valid", + "data": ["foo", "bar", "baz"], + "valid": true + }, + { + "description": "non-unique array of strings is invalid", + "data": ["foo", "bar", "foo"], + "valid": false + }, + { "description": "unique array of objects is valid", "data": [{"foo": "bar"}, {"foo": "baz"}], "valid": true @@ -65,6 +80,11 @@ "valid": false }, { + "description": "non-unique array of more than two arrays is invalid", + "data": [["foo"], ["bar"], ["foo"]], + "valid": false + }, + { "description": "1 and true are unique", "data": [1, true], "valid": true |