Bump the version of jsonschema (#1556)
* 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> * Add changelog Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr> * Fix PR number Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr> --------- Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
parent
45b6aaf07a
commit
f4aa7c0327
3 changed files with 4 additions and 4 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue