summaryrefslogtreecommitdiff
path: root/tests/draft2019-09/dependentSchemas.json
diff options
context:
space:
mode:
authorJulian Berman <Julian@GrayVines.com>2021-10-20 10:18:25 -0400
committerJulian Berman <Julian@GrayVines.com>2021-10-20 10:18:25 -0400
commitddef3b4a06be6f66dc1384e31a408ee7658bac1a (patch)
tree81b3cb77d5115f0bb556d6e45233326ee7142f85 /tests/draft2019-09/dependentSchemas.json
parent4ecbea58e0828696f7714abba624e2160518fddd (diff)
downloadjsonschema-ddef3b4a06be6f66dc1384e31a408ee7658bac1a.tar.gz
Squashed 'json/' changes from ba3a90534..329efe59c
329efe59c Update the language around coverage, draft2020-12 is just as usable :) 068131278 Ensure dependentSchemas also properly ignores non-object instances. git-subtree-dir: json git-subtree-split: 329efe59c65ea9f49af9c5c07dd6f5d22cb67ef4
Diffstat (limited to 'tests/draft2019-09/dependentSchemas.json')
-rw-r--r--tests/draft2019-09/dependentSchemas.json15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/draft2019-09/dependentSchemas.json b/tests/draft2019-09/dependentSchemas.json
index e7921d1..2ba1a75 100644
--- a/tests/draft2019-09/dependentSchemas.json
+++ b/tests/draft2019-09/dependentSchemas.json
@@ -36,6 +36,21 @@
"description": "wrong type both",
"data": {"foo": "quux", "bar": "quux"},
"valid": false
+ },
+ {
+ "description": "ignores arrays",
+ "data": ["bar"],
+ "valid": true
+ },
+ {
+ "description": "ignores strings",
+ "data": "foobar",
+ "valid": true
+ },
+ {
+ "description": "ignores other non-objects",
+ "data": 12,
+ "valid": true
}
]
},