We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent afd6fab commit 1aecb7bCopy full SHA for 1aecb7b
tests/draft6/const.json
@@ -46,6 +46,27 @@
46
}
47
]
48
},
49
+ {
50
+ "description": "const with array",
51
+ "schema": {"const": [{ "foo": "bar" }]},
52
+ "tests": [
53
54
+ "description": "same array is valid",
55
+ "data": [{"foo": "bar"}],
56
+ "valid": true
57
+ },
58
59
+ "description": "another array item is invalid",
60
+ "data": [2],
61
+ "valid": false
62
63
64
+ "description": "array with additional items is invalid",
65
+ "data": [1, 2, 3],
66
67
+ }
68
+ ]
69
70
{
71
"description": "const with null",
72
"schema": {"const": null},
0 commit comments