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

RefResolver deprecation #255

Open
FulecoRafa opened this issue Sep 12, 2023 · 0 comments
Open

RefResolver deprecation #255

FulecoRafa opened this issue Sep 12, 2023 · 0 comments
Labels
bug Something isn't working scripts scripts related issues

Comments

@FulecoRafa
Copy link
Collaborator

🐜 Bug Report

The script spec_stats.py has deprecation warnings when using the jsonschema.RefResolver class, which will be removed in the future.

Expected Behavior

  • This deprecation warning should not appear when running the script

Current Behavior

  • Running the script shows:
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.
  ref_resolver: jsonschema.RefResolver

Possible Solution

  • Update script logic to not need this class anymore

Steps to Reproduce

  1. Run the script passing any openapi.yml file as an argument

Context (Environment)

  • This issue prevents pushes to remote that have changes to this script.
@FulecoRafa FulecoRafa added bug Something isn't working scripts scripts related issues labels Sep 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working scripts scripts related issues
Projects
None yet
Development

No branches or pull requests

1 participant