Skip to content

jsonschema version is not constrained: jsonschema.RefResolver is deprecated as of v4.18.0 #1840

Closed
@timonviola

Description

@timonviola

Description

jsonschema version is not constrained by this package and we are seeing warning in our test runs.

jsonschema 4.23.0 An implementation of JSON Schema valid

============================== warnings summary ===============================
.venv/lib/python3.10/site-packages/confluent_kafka/schema_registry/json_schema.py:23
.venv/lib/python3.10/site-packages/confluent_kafka/schema_registry/json_schema.py:23
  /Users/timon/work/kafka-log/kafka-log/.venv/lib/python3.10/site-packages/confluent_kafka/schema_registry/json_schema.py:23: 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 validate, ValidationError, RefResolver

How to reproduce

Create a fresh installation of the package with json extras.

Checklist

Please provide the following information:

  • confluent-kafka-python and librdkafka version (confluent_kafka.version() and confluent_kafka.libversion()):
    • confluent-kafka 2.6.0
    • confluent_kafka.libversion() ('2.3.0', 33751295)
  • Critical issue: Not a critical issue, but it will be, when jsonschema releases a new breaking change

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions