summaryrefslogtreecommitdiff
path: root/json/tests/draft2020-12/unevaluatedProperties.json
diff options
context:
space:
mode:
Diffstat (limited to 'json/tests/draft2020-12/unevaluatedProperties.json')
-rw-r--r--json/tests/draft2020-12/unevaluatedProperties.json25
1 files changed, 25 insertions, 0 deletions
diff --git a/json/tests/draft2020-12/unevaluatedProperties.json b/json/tests/draft2020-12/unevaluatedProperties.json
index b52c879..31bb691 100644
--- a/json/tests/draft2020-12/unevaluatedProperties.json
+++ b/json/tests/draft2020-12/unevaluatedProperties.json
@@ -741,6 +741,31 @@
]
},
{
+ "description": "unevaluatedProperties can't see inside cousins (reverse order)",
+ "schema": {
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "allOf": [
+ {
+ "unevaluatedProperties": false
+ },
+ {
+ "properties": {
+ "foo": true
+ }
+ }
+ ]
+ },
+ "tests": [
+ {
+ "description": "always fails",
+ "data": {
+ "foo": 1
+ },
+ "valid": false
+ }
+ ]
+ },
+ {
"description": "nested unevaluatedProperties, outer false, inner true, properties outside",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",