Skip to content

Remove resolver param passed to validate() in JSON schema #2186

Merged
Robert Yokota (rayokota) merged 1 commit intomasterfrom
fix/inc-8778-json-schema-resolver-bug
Feb 6, 2026
Merged

Remove resolver param passed to validate() in JSON schema #2186
Robert Yokota (rayokota) merged 1 commit intomasterfrom
fix/inc-8778-json-schema-resolver-bug

Conversation

@fangnx
Copy link
Copy Markdown
Member

@fangnx Naxin Fang (fangnx) commented Feb 6, 2026

What

RefResolver is deprecated as of 4.18.0 and we are using 4.24.0 of jsonschema library: https://github.com/python-jsonschema/jsonschema/blob/cbaf0f8fe9be1825477419f2ac02f835cc292198/jsonschema/validators.py#L471

What happens:

Checklist

  • Contains customer facing changes? Including API/behavior changes
  • Did you add sufficient unit test and/or integration test coverage for this PR?
    • If not, please explain why it is not required

References

JIRA: https://confluentinc.atlassian.net/browse/INC-8778

Test & Review

Open questions / Follow-ups

Copilot AI review requested due to automatic review settings February 6, 2026 16:29
@confluent-cla-assistant
Copy link
Copy Markdown

🎉 All Contributor License Agreements have been signed. Ready to merge.
Please push an empty commit if you would like to re-run the checks to verify CLA status for all contributors.

@fangnx Naxin Fang (fangnx) changed the title remove passing resolver in json validate Remove resolver param passed to validate() in JSON schema Feb 6, 2026
Copy link
Copy Markdown
Member

@rayokota Robert Yokota (rayokota) left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Naxin Fang (@fangnx) , LGTM

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes passing a resolver into JSON Schema validation to avoid AttributeError caused by jsonschema’s deprecated RefResolver behavior and incompatibility with referencing.Resolver.

Changes:

  • Stop passing resolver=... into validate() when validating resolved subschemas.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/confluent_kafka/schema_registry/common/json_schema.py
@sonarqube-confluent
Copy link
Copy Markdown

@rayokota Robert Yokota (rayokota) merged commit 0eac76f into master Feb 6, 2026
7 of 9 checks passed
@rayokota Robert Yokota (rayokota) deleted the fix/inc-8778-json-schema-resolver-bug branch February 6, 2026 19:12
Copilot AI mentioned this pull request Feb 26, 2026
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants