diff options
author | Julian Berman <Julian@GrayVines.com> | 2021-11-03 18:35:19 -0400 |
---|---|---|
committer | Julian Berman <Julian@GrayVines.com> | 2021-11-03 18:35:19 -0400 |
commit | 1c6c965bca748d8e55674c17b79bd5ea6386933b (patch) | |
tree | 812454a8645925310c166c682fd75d943002ab99 /json/tests/draft2020-12 | |
parent | 7ea736588af24e4489294dcd383f70a352a114b6 (diff) | |
parent | c9b74362198d21cea59794c414f0877452ab9fa7 (diff) | |
download | jsonschema-1c6c965bca748d8e55674c17b79bd5ea6386933b.tar.gz |
Merge commit 'c9b74362198d21cea59794c414f0877452ab9fa7'
* commit 'c9b74362198d21cea59794c414f0877452ab9fa7':
Squashed 'json/' changes from 329efe59c..9263b5250
Diffstat (limited to 'json/tests/draft2020-12')
-rw-r--r-- | json/tests/draft2020-12/uniqueItems.json | 20 |
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 |