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