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 6956f20 commit 77e0411Copy full SHA for 77e0411
tests/draft6/properties.json
@@ -88,5 +88,36 @@
88
"valid": false
89
}
90
]
91
+ },
92
+ {
93
+ "description": "properties with boolean schema",
94
+ "schema": {
95
+ "properties": {
96
+ "foo": true,
97
+ "bar": false
98
+ }
99
100
+ "tests": [
101
102
+ "description": "no property present is valid",
103
+ "data": {},
104
+ "valid": true
105
106
107
+ "description": "only 'true' property present is valid",
108
+ "data": {"foo": 1},
109
110
111
112
+ "description": "only 'false' property present is invalid",
113
+ "data": {"bar": 2},
114
+ "valid": false
115
116
117
+ "description": "both properties present is invalid",
118
+ "data": {"foo": 1, "bar": 2},
119
120
121
+ ]
122
123
0 commit comments