summaryrefslogtreecommitdiff
path: root/json/tests/draft2019-09/contains.json
diff options
context:
space:
mode:
Diffstat (limited to 'json/tests/draft2019-09/contains.json')
-rw-r--r--json/tests/draft2019-09/contains.json15
1 files changed, 15 insertions, 0 deletions
diff --git a/json/tests/draft2019-09/contains.json b/json/tests/draft2019-09/contains.json
index 215da98..a6add6b 100644
--- a/json/tests/draft2019-09/contains.json
+++ b/json/tests/draft2019-09/contains.json
@@ -146,5 +146,20 @@
"valid": false
}
]
+ },
+ {
+ "description": "contains should properly handle null data",
+ "schema": {
+ "contains": {
+ "type": "null"
+ }
+ },
+ "tests": [
+ {
+ "description": "null items allowed",
+ "data": [ null ],
+ "valid": true
+ }
+ ]
}
]