From 9dcbc687f55f4f0652d49fca5372840bb8398e1d Mon Sep 17 00:00:00 2001 From: Andy Truong Date: Thu, 17 Oct 2019 17:00:31 +1000 Subject: [PATCH] Test basic types with examples option. --- tests/Constraints/BasicTypesTest.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/tests/Constraints/BasicTypesTest.php b/tests/Constraints/BasicTypesTest.php index 0e88ef42..e8344c98 100644 --- a/tests/Constraints/BasicTypesTest.php +++ b/tests/Constraints/BasicTypesTest.php @@ -144,7 +144,20 @@ public function getValidTests() }, "additionalProperties":false }' - ) + ), + array( + '{"null":null}', + '{ + "type": "object", + "properties": { + "null": { + "type": "null", + "default": null, + "examples": [null] + } + } + }', + ), ); } }