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 8560d43 commit e0cb400Copy full SHA for e0cb400
tests/Constraints/OfPropertiesTest.php
@@ -213,7 +213,33 @@ public function getInvalidTests()
213
}
214
215
}'
216
- )
+ ),
217
+ array(
218
+ '{"prop1": ["a", "b"]}',
219
+ '{
220
+ "type": "object",
221
+ "properties": {
222
+ "prop1": {
223
+ "anyOf": [
224
+ {
225
+ "type": "array",
226
+ "items": {
227
+ "type": "string",
228
+ "enum": ["b","c"]
229
+ }
230
+ },
231
232
233
234
235
+ "enum": ["c","d"]
236
237
238
+ ]
239
240
241
+ }'
242
243
);
244
245
0 commit comments