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