summaryrefslogtreecommitdiff
path: root/json/tests/draft2019-09/contains.json
diff options
context:
space:
mode:
Diffstat (limited to 'json/tests/draft2019-09/contains.json')
-rw-r--r--json/tests/draft2019-09/contains.json21
1 files changed, 21 insertions, 0 deletions
diff --git a/json/tests/draft2019-09/contains.json b/json/tests/draft2019-09/contains.json
index c5471cc..215da98 100644
--- a/json/tests/draft2019-09/contains.json
+++ b/json/tests/draft2019-09/contains.json
@@ -125,5 +125,26 @@
"valid": false
}
]
+ },
+ {
+ "description": "contains with false if subschema",
+ "schema": {
+ "contains": {
+ "if": false,
+ "else": true
+ }
+ },
+ "tests": [
+ {
+ "description": "any non-empty array is valid",
+ "data": ["foo"],
+ "valid": true
+ },
+ {
+ "description": "empty array is invalid",
+ "data": [],
+ "valid": false
+ }
+ ]
}
]