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

jsonschema deprecation warning #154

Open
juliangilbey opened this issue Apr 8, 2024 · 0 comments
Open

jsonschema deprecation warning #154

juliangilbey opened this issue Apr 8, 2024 · 0 comments

Comments

@juliangilbey
Copy link

juliangilbey commented Apr 8, 2024

Running the tests using jsonschema version 4.19.2, I received the following warning:

../../../../../usr/lib/python3/dist-packages/sphinxcontrib/openapi/utils.py:27
  /usr/lib/python3/dist-packages/sphinxcontrib/openapi/utils.py:27: 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.
    class OpenApiRefResolver(jsonschema.RefResolver):

So utils.py should be updated at some point, probably in the not-too-distant future.

[EDIT: manually wrapped the long warning message to avoid having to scroll as far]

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

No branches or pull requests

1 participant