diff --git a/tests/JsonSchema/Tests/RequiredPropertyTest.php b/tests/JsonSchema/Tests/RequiredPropertyTest.php index eb813d0e..66225e4f 100644 --- a/tests/JsonSchema/Tests/RequiredPropertyTest.php +++ b/tests/JsonSchema/Tests/RequiredPropertyTest.php @@ -41,6 +41,50 @@ public function getValidTests() "number":{"type":"string"} } }' + ), + array( + '{ + "number": 0 + }', + '{ + "type":"object", + "properties":{ + "number":{"type":"integer","required":true} + } + }' + ), + array( + '{ + "is_active": false + }', + '{ + "type":"object", + "properties":{ + "is_active":{"type":"boolean","required":true} + } + }' + ), + array( + '{ + "status": null + }', + '{ + "type":"object", + "properties":{ + "status":{"type":"null","required":true} + } + }' + ), + array( + '{ + "users": [] + }', + '{ + "type":"object", + "properties":{ + "users":{"type":"array","required":true} + } + }' ) ); }