3 "description": "uniqueItems validation",
4 "schema": {"uniqueItems": true},
7 "description": "unique array of integers is valid",
12 "description": "non-unique array of integers is invalid",
17 "description": "numbers are unique if mathematically unequal",
18 "data": [1.0, 1.00, 1],
22 "description": "unique array of objects is valid",
23 "data": [{"foo": "bar"}, {"foo": "baz"}],
27 "description": "non-unique array of objects is invalid",
28 "data": [{"foo": "bar"}, {"foo": "bar"}],
32 "description": "unique array of nested objects is valid",
34 {"foo": {"bar" : {"baz" : true}}},
35 {"foo": {"bar" : {"baz" : false}}}
40 "description": "non-unique array of nested objects is invalid",
42 {"foo": {"bar" : {"baz" : true}}},
43 {"foo": {"bar" : {"baz" : true}}}
48 "description": "unique array of arrays is valid",
49 "data": [["foo"], ["bar"]],
53 "description": "non-unique array of arrays is invalid",
54 "data": [["foo"], ["foo"]],
58 "description": "1 and true are unique",
63 "description": "0 and false are unique",
68 "description": "unique heterogeneous types are valid",
69 "data": [{}, [1], true, null, 1],
73 "description": "non-unique heterogeneous types are invalid",
74 "data": [{}, [1], true, null, {}, 1],