Skip to content

Various jsonschema DeprecationWarnings #1786

@andrewelamb

Description

@andrewelamb

Description

When using connexion I see these warnigns popping up:

.venv/lib/python3.10/site-packages/connexion/decorators/validation.py:16
  /workspaces/sage-monorepo/apps/schematic/api/.venv/lib/python3.10/site-packages/connexion/decorators/validation.py:16: DeprecationWarning: Accessing jsonschema.draft4_format_checker is deprecated and will be removed in a future release. Instead, use the FORMAT_CHECKER attribute on the corresponding Validator.
    from jsonschema import Draft4Validator, ValidationError, draft4_format_checker

.venv/lib/python3.10/site-packages/connexion/json_schema.py:16
.venv/lib/python3.10/site-packages/connexion/json_schema.py:16
  /workspaces/sage-monorepo/apps/schematic/api/.venv/lib/python3.10/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

.venv/lib/python3.10/site-packages/connexion/json_schema.py:17
  /workspaces/sage-monorepo/apps/schematic/api/.venv/lib/python3.10/site-packages/connexion/json_schema.py:17: 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.
    from jsonschema.exceptions import RefResolutionError, ValidationError  # noqa

I'm using v4.19.2 of jsonschema and v2.14.1 of connexion to get the above warnings, but it looks like they would persist in v3.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions