Skip to content

Commit 93f0060

Browse files
author
Mathieu Rochette
committed
reproduce bug when applying defaults
1 parent 2553ebd commit 93f0060

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/Constraints/DefaultPropertiesTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,11 @@ public function getValidTests()
149149
'{"items":[{"default":null}]}',
150150
'[null]'
151151
),
152+
array(// #21 items might be an array of schema (instead of an array of schema)
153+
'[{}]',
154+
'{"items":{"properties":{"propertyOne":{"default":"valueOne"}},"required":[]}}',
155+
'[{"propertyOne":"valueOne"}]'
156+
),
152157
);
153158
}
154159

0 commit comments

Comments
 (0)