Bump the version of jsonschema

OpenAPI 3.1 uses JSON Schema Draft 2020-12 so we need a version that
supports it.

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
Kévin Commaille 2023-06-07 19:22:56 +02:00
parent 45b6aaf07a
commit c90f3c7674
No known key found for this signature in database
GPG key ID: 29A48C1F03620416
2 changed files with 3 additions and 4 deletions

View file

@ -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:

View file

@ -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