summaryrefslogtreecommitdiff
path: root/jsonschema/_legacy_validators.py
diff options
context:
space:
mode:
authorHarald Nezbeda <hn@nezhar.com>2021-06-25 14:40:34 +0200
committerHarald Nezbeda <hn@nezhar.com>2021-07-20 17:08:47 +0200
commit98b49be3f533c4acaa6524d0adeb384e89002474 (patch)
tree725851e98acd9c84d780386c9f9b4799198baf5e /jsonschema/_legacy_validators.py
parent16d00de8bf5c47ff6dfa5b9ca04938ec2129f0d2 (diff)
downloadjsonschema-98b49be3f533c4acaa6524d0adeb384e89002474.tar.gz
Julian/jsonschema#782: Adapt validator test for draft2020-12, fixes code styles
Diffstat (limited to 'jsonschema/_legacy_validators.py')
-rw-r--r--jsonschema/_legacy_validators.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/jsonschema/_legacy_validators.py b/jsonschema/_legacy_validators.py
index 8e46190..54b5fad 100644
--- a/jsonschema/_legacy_validators.py
+++ b/jsonschema/_legacy_validators.py
@@ -27,12 +27,17 @@ def dependencies_draft3(validator, dependencies, instance, schema):
yield ValidationError(message % (each, property))
-def dependencies_draft4_draft6_draft7(validator, dependencies, instance, schema):
+def dependencies_draft4_draft6_draft7(
+ validator,
+ dependencies,
+ instance,
+ schema,
+):
"""
Support for the ``dependencies`` validator from pre-draft 2019-09.
- In later drafts, the validator was split into separate ``dependentRequired``
- and ``dependentSchemas`` validators.
+ In later drafts, the validator was split into separate
+ ``dependentRequired`` and ``dependentSchemas`` validators.
"""
if not validator.is_type(instance, "object"):
return