Skip to content

Commit 7c02d06

Browse files
committed
added unevaluatedProperties test file; resolves #310
1 parent 1899a5a commit 7c02d06

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
[
2+
{
3+
"description": "can peer inside allOf, results in no-op",
4+
"schema": {
5+
"$schema": "https://json-schema.org/draft/2019-09/schema",
6+
"unevaluatedProperties": false,
7+
"allOf": [
8+
{
9+
"properties": {
10+
"foo": { "type": "string", "null" },
11+
"bar": { "type": "string", "null" }
12+
}
13+
},
14+
{
15+
"additionalProperties": {
16+
"not": { "enum": [ null ] }
17+
}
18+
}
19+
]
20+
},
21+
"tests": [
22+
{
23+
"description": "valid",
24+
"data": { "bar": "foo", "bob": "who?" },
25+
"valid": true
26+
},
27+
{
28+
"description": "valid",
29+
"data": { "bar": "foo", "bob": null },
30+
"valid": false
31+
}
32+
]
33+
}
34+
]

0 commit comments

Comments
 (0)