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.
2 parents 1899a5a + de00479 commit 1ffe03eCopy full SHA for 1ffe03e
tests/draft2019-09/unevaluatedProperties.json
@@ -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": "string props valid",
24
+ "data": { "bar": "foo", "bob": "who?" },
25
+ "valid": true
26
27
28
+ "description": "null prop is invalid",
29
+ "data": { "bar": "foo", "bob": null },
30
+ "valid": false
31
32
33
34
+]
0 commit comments