Skip to content

jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library #2113

@ioggstream

Description

@ioggstream

I expect

  • no DeprecationWarning
  • Assess feature gap between python-jsonschema/referencing and RefResolver
  • eventually file an issue against python-jsonschema or migrate

Instead

I got

../.tox/api/lib/python3.12/site-packages/connexion/json_schema.py:16
  /app/.tox/api/lib/python3.12/site-packages/connexion/json_schema.py:16: 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.
    from jsonschema import Draft4Validator, RefResolver

Notes

If someone has hints on the replacement, I'm willing to contribute

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions