Skip to content

Commit 9099c23

Browse files
committed
Add a couple more tests to verify post-coercion validation
1 parent c9e1276 commit 9099c23

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/Constraints/CoerciveTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,14 @@ public function getInvalidCoerceTests()
367367
"additionalProperties":false
368368
}',
369369
),
370+
array( // #8
371+
'{"array":"string"}',
372+
'{"properties":{"array":{"type":"array","items":[{"type":"number"}]}}}'
373+
),
374+
array( // #9
375+
'{"number":"45"}',
376+
'{"properties":{"number":{"type":"number","maximum":40}}}'
377+
),
370378
);
371379
}
372380
}

0 commit comments

Comments
 (0)