diff --git a/changelogs/internal/newsfragments/1556.clarification b/changelogs/internal/newsfragments/1556.clarification new file mode 100644 index 000000000..05c5897ec --- /dev/null +++ b/changelogs/internal/newsfragments/1556.clarification @@ -0,0 +1 @@ +Bump jsonschema to validate JSON Schemas against Draft 2020-12. diff --git a/scripts/check-event-schema-examples.py b/scripts/check-event-schema-examples.py index e5261c879..c61913216 100755 --- a/scripts/check-event-schema-examples.py +++ b/scripts/check-event-schema-examples.py @@ -88,7 +88,7 @@ def check_example_file(examplepath, schemapath): fileurl = "file://" + os.path.abspath(schemapath) schema["id"] = fileurl - resolver = jsonschema.RefResolver(schemapath, schema, handlers={"file": load_file}) + resolver = jsonschema.RefResolver(fileurl, schema, handlers={"file": load_file}) print ("Checking schema for: %r %r" % (examplepath, schemapath)) try: diff --git a/scripts/requirements.txt b/scripts/requirements.txt index 9d9f11679..a3ff4f0b0 100644 --- a/scripts/requirements.txt +++ b/scripts/requirements.txt @@ -1,9 +1,8 @@ # no doubt older versions would be fine for many of these but these were # current at the time of writing -# jsonschema 3.0.0 objects to the $refs in our schema file. TODO: figure out -# why. -jsonschema >= 2.6.0, < 3.0.0 +# we need at least version 4.0.0 for support of JSON Schema Draft 2020-12. +jsonschema >= 4.0.0 PyYAML >= 3.12 requests >= 2.18.4