Skip to content
Open
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,7 @@ async def lookup_schema(
SchemaRegistryError: If schema or subject can't be found

See Also:
`POST Subject API Reference <https://docs.confluent.io/current/schema-registry/develop/api.html#post--subjects-(string-%20subject)-versions>`_
`POST Subject API Reference <https://docs.confluent.io/current/schema-registry/develop/api.html#post--subjects-(string-%20subject)>`_
""" # noqa: E501

registered_schema = self._cache.get_registered_by_subject_schema(subject_name, schema)
Expand Down Expand Up @@ -794,7 +794,7 @@ async def get_subjects(self) -> List[str]:
SchemaRegistryError: if subjects can't be found

See Also:
`GET subjects API Reference <https://docs.confluent.io/current/schema-registry/develop/api.html#get--subjects-(string-%20subject)-versions>`_
`GET subjects API Reference <https://docs.confluent.io/current/schema-registry/develop/api.html#get--subjects>`_
""" # noqa: E501

return await self._rest_client.get('subjects')
Expand Down Expand Up @@ -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",
deleted: bool = False, fmt: Optional[str] = None
) -> 'RegisteredSchema':
"""
Expand Down Expand Up @@ -959,7 +959,7 @@ async def get_versions(self, subject_name: str) -> List[int]:
SchemaRegistryError: If subject can't be found

See Also:
`GET Subject Versions API Reference <https://docs.confluent.io/current/schema-registry/develop/api.html#post--subjects-(string-%20subject)-versions>`_
`GET Subject Versions API Reference <https://docs.confluent.io/current/schema-registry/develop/api.html#get--subjects-(string-%20subject)-versions>`_
""" # noqa: E501

return await self._rest_client.get('subjects/{}/versions'.format(_urlencode(subject_name)))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,7 @@ def lookup_schema(
SchemaRegistryError: If schema or subject can't be found

See Also:
`POST Subject API Reference <https://docs.confluent.io/current/schema-registry/develop/api.html#post--subjects-(string-%20subject)-versions>`_
`POST Subject API Reference <https://docs.confluent.io/current/schema-registry/develop/api.html#post--subjects-(string-%20subject)>`_
""" # noqa: E501

registered_schema = self._cache.get_registered_by_subject_schema(subject_name, schema)
Expand Down Expand Up @@ -794,7 +794,7 @@ def get_subjects(self) -> List[str]:
SchemaRegistryError: if subjects can't be found

See Also:
`GET subjects API Reference <https://docs.confluent.io/current/schema-registry/develop/api.html#get--subjects-(string-%20subject)-versions>`_
`GET subjects API Reference <https://docs.confluent.io/current/schema-registry/develop/api.html#get--subjects>`_
""" # noqa: E501

return self._rest_client.get('subjects')
Expand Down Expand Up @@ -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

Copilot AI Jul 29, 2025

Choose a reason for hiding this comment

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

Adding a default value to an existing parameter is a breaking change for callers using positional arguments. Consider whether this change maintains backward compatibility with existing code that may call get_version(subject, version, deleted=True).

Suggested change
self, subject_name: str, version: Union[int, str] = "latest",
self, subject_name: str, version: Union[int, str] = "latest", *,
Copilot uses AI. Check for mistakes.
deleted: bool = False, fmt: Optional[str] = None
) -> 'RegisteredSchema':
"""
Expand Down Expand Up @@ -959,7 +959,7 @@ def get_versions(self, subject_name: str) -> List[int]:
SchemaRegistryError: If subject can't be found

See Also:
`GET Subject Versions API Reference <https://docs.confluent.io/current/schema-registry/develop/api.html#post--subjects-(string-%20subject)-versions>`_
`GET Subject Versions API Reference <https://docs.confluent.io/current/schema-registry/develop/api.html#get--subjects-(string-%20subject)-versions>`_
""" # noqa: E501

return self._rest_client.get('subjects/{}/versions'.format(_urlencode(subject_name)))
Expand Down