Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Address warning from jsonschema 4.18.x #102

Closed
allanlewis opened this issue Jul 18, 2023 · 2 comments · Fixed by #103
Closed

Address warning from jsonschema 4.18.x #102

allanlewis opened this issue Jul 18, 2023 · 2 comments · Fixed by #103

Comments

@allanlewis
Copy link

As of v4.18.0, jsonschema emits the following warning related to jsonschema.exceptions.RefResolutionError:

DeprecationWarning: jsonschema.exceptions.RefResolutionError is deprecated as of version 4.18.0. If you wish to catch potential reference resolution errors, directly catch referencing.exceptions.Unresolvable.

It would be good if this package could address this warning before RefResolutionError is removed in some future version.

@allanlewis
Copy link
Author

In ignoring this warning in my project (I set PYTHONWARNINGS=error when running unit tests) I then get another warning:

DeprecationWarning: jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, which provides more compliant referencing behavior as well as more flexible APIs for customization. A future release will remove RefResolver. Please file a feature request (on referencing) if you are missing an API for the kind of customization you need.

So there might be a chain of deprecations to handle here 😕

@allanlewis
Copy link
Author

These changes are documented in the release notes for jsonschema 4.18.0: https://github.com/python-jsonschema/jsonschema/releases/tag/v4.18.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant