meta: use draft 4 of jsonschema to validate

We currently don't seem to use anything that requires us to use
the draft 7 of the specification. The minimum version that we
need is draft 4, which is also supported by the python-jsonschema
version in RHEL 8.2 (which is 2.6.0).
This commit is contained in:
Christian Kellner 2020-05-12 20:12:21 +02:00 committed by Lars Karlitski
parent 20a4ba45c6
commit 016d520dda

View file

@ -232,7 +232,7 @@ class Schema:
return res
try:
Validator = jsonschema.Draft7Validator
Validator = jsonschema.Draft4Validator
Validator.check_schema(self.data)
self._validator = Validator(self.data)
except jsonschema.exceptions.SchemaError as err: