summaryrefslogtreecommitdiff
path: root/json/tests/draft2020-12/uniqueItems.json
diff options
context:
space:
mode:
Diffstat (limited to 'json/tests/draft2020-12/uniqueItems.json')
-rw-r--r--json/tests/draft2020-12/uniqueItems.json20
1 files changed, 20 insertions, 0 deletions
diff --git a/json/tests/draft2020-12/uniqueItems.json b/json/tests/draft2020-12/uniqueItems.json
index b3762cb..85c619d 100644
--- a/json/tests/draft2020-12/uniqueItems.json
+++ b/json/tests/draft2020-12/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