summaryrefslogtreecommitdiff
path: root/json/tests/draft2019-09/unevaluatedItems.json
diff options
context:
space:
mode:
Diffstat (limited to 'json/tests/draft2019-09/unevaluatedItems.json')
-rw-r--r--json/tests/draft2019-09/unevaluatedItems.json23
1 files changed, 23 insertions, 0 deletions
diff --git a/json/tests/draft2019-09/unevaluatedItems.json b/json/tests/draft2019-09/unevaluatedItems.json
index a0b1f33..53565a0 100644
--- a/json/tests/draft2019-09/unevaluatedItems.json
+++ b/json/tests/draft2019-09/unevaluatedItems.json
@@ -600,5 +600,28 @@
"valid": true
}
]
+ },
+ {
+ "description": "unevaluatedItems can see annotations from if without then and else",
+ "schema": {
+ "$schema": "https://json-schema.org/draft/2019-09/schema",
+ "if": {
+ "items": [{"const": "a"}]
+ },
+ "unevaluatedItems": false
+ },
+ "tests": [
+ {
+ "description": "valid in case if is evaluated",
+ "data": [ "a" ],
+ "valid": true
+ },
+ {
+ "description": "invalid in case if is evaluated",
+ "data": [ "b" ],
+ "valid": false
+ }
+
+ ]
}
]