Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Closed
2 tasks done
timonviola opened this issue Oct 18, 2024 · 1 comment
Closed
2 tasks done

Comments

@timonviola
Copy link

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
@rayokota
Copy link
Member

Fixed by #1852

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

3 participants