diff --git a/changelogs/internal/newsfragments/1556.clarification b/changelogs/internal/newsfragments/1556.clarification new file mode 100644 index 00000000..05c5897e --- /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 e5261c87..c6191321 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 9d9f1167..a3ff4f0b 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