Skip to content

Fix URLs in SchemaRegistryClient docs #2014

New issue

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

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

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

fangnx
Copy link
Member

@fangnx fangnx commented Aug 1, 2025

What

Fix the incorrect URLs and add default version param to get_version, as proposed by #1595. I raised this PR as the previous the contributor license agreement was not signed in the original one

Checklist

  • Contains customer facing changes? Including API/behavior changes
    • No-op; only changes in Python function docs
  • Did you add sufficient unit test and/or integration test coverage for this PR?
    • N/A

References

JIRA:

Test & Review

Open questions / Follow-ups

@Copilot Copilot AI review requested due to automatic review settings August 1, 2025 17:54
@fangnx fangnx requested review from MSeal and a team as code owners August 1, 2025 17:54
@confluent-cla-assistant
Copy link

🎉 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.

Copy link

@Copilot 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

This PR fixes documentation issues in SchemaRegistryClient classes by correcting incorrect API reference URLs and improving method signatures. The changes ensure that the documentation links point to the correct Confluent Schema Registry API endpoints and standardize method descriptions.

  • Corrected API reference URLs in docstrings to point to accurate Schema Registry endpoints
  • Added default parameter value "latest" to the get_version method for better usability
  • Fixed minor grammatical inconsistency in docstring descriptions

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/confluent_kafka/schema_registry/_sync/schema_registry_client.py Updated docstring URLs and added default parameter to get_version method
src/confluent_kafka/schema_registry/_async/schema_registry_client.py Applied identical documentation fixes to async version of the client

@@ -908,7 +908,7 @@ def get_latest_with_metadata(
return registered_schema

def get_version(
self, subject_name: str, version: int,
self, subject_name: str, version: Union[int, str] = "latest",
Copy link
Preview

Copilot AI Aug 1, 2025

Choose a reason for hiding this comment

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

Adding a default parameter value to an existing method parameter changes the API signature and could be a breaking change. Consider whether this change maintains backward compatibility with existing callers that may rely on the previous required parameter behavior.

Suggested change
self, subject_name: str, version: Union[int, str] = "latest",
self, subject_name: str, version: Union[int, str],

Copilot uses AI. Check for mistakes.

@@ -908,7 +908,7 @@ async def get_latest_with_metadata(
return registered_schema

async def get_version(
self, subject_name: str, version: int,
self, subject_name: str, version: Union[int, str] = "latest",
Copy link
Preview

Copilot AI Aug 1, 2025

Choose a reason for hiding this comment

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

Adding a default parameter value to an existing method parameter changes the API signature and could be a breaking change. Consider whether this change maintains backward compatibility with existing callers that may rely on the previous required parameter behavior.

Suggested change
self, subject_name: str, version: Union[int, str] = "latest",
self, subject_name: str, version: Union[int, str],

Copilot uses AI. Check for mistakes.

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.

1 participant