summaryrefslogtreecommitdiff
path: root/json/tests/draft2019-09/unevaluatedProperties.json
diff options
context:
space:
mode:
Diffstat (limited to 'json/tests/draft2019-09/unevaluatedProperties.json')
-rw-r--r--json/tests/draft2019-09/unevaluatedProperties.json36
1 files changed, 36 insertions, 0 deletions
diff --git a/json/tests/draft2019-09/unevaluatedProperties.json b/json/tests/draft2019-09/unevaluatedProperties.json
index 7cb56bd..6384cb8 100644
--- a/json/tests/draft2019-09/unevaluatedProperties.json
+++ b/json/tests/draft2019-09/unevaluatedProperties.json
@@ -1307,5 +1307,41 @@
"valid": false
}
]
+ },
+ {
+ "description": "non-object instances are valid",
+ "schema": {"unevaluatedProperties": false},
+ "tests": [
+ {
+ "description": "ignores booleans",
+ "data": true,
+ "valid": true
+ },
+ {
+ "description": "ignores integers",
+ "data": 123,
+ "valid": true
+ },
+ {
+ "description": "ignores floats",
+ "data": 1.0,
+ "valid": true
+ },
+ {
+ "description": "ignores arrays",
+ "data": [],
+ "valid": true
+ },
+ {
+ "description": "ignores strings",
+ "data": "foo",
+ "valid": true
+ },
+ {
+ "description": "ignores null",
+ "data": null,
+ "valid": true
+ }
+ ]
}
]