diff --git a/tests/Constraints/OfPropertiesTest.php b/tests/Constraints/OfPropertiesTest.php index 17623f49..d3233308 100644 --- a/tests/Constraints/OfPropertiesTest.php +++ b/tests/Constraints/OfPropertiesTest.php @@ -213,7 +213,33 @@ public function getInvalidTests() } } }' - ) + ), + array( + '{"prop1": ["a", "b"]}', + '{ + "type": "object", + "properties": { + "prop1": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string", + "enum": ["b","c"] + } + }, + { + "type": "array", + "items": { + "type": "string", + "enum": ["c","d"] + } + } + ] + } + } + }' + ), ); }