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:
parent
20a4ba45c6
commit
016d520dda
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue