diff options
Diffstat (limited to 'json/tests/draft2020-12/patternProperties.json')
-rw-r--r-- | json/tests/draft2020-12/patternProperties.json | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/json/tests/draft2020-12/patternProperties.json b/json/tests/draft2020-12/patternProperties.json index c10ffcc..34b2e85 100644 --- a/json/tests/draft2020-12/patternProperties.json +++ b/json/tests/draft2020-12/patternProperties.json @@ -152,5 +152,20 @@ "valid": true } ] + }, + { + "description": "patternProperties should properly handle null data", + "schema": { + "patternProperties": { + "^.*bar$": {"type": "null"} + } + }, + "tests": [ + { + "description": "null properties allowed", + "data": {"foobar": null}, + "valid": true + } + ] } ] |