[http-client-python] Refine api_version argument doc#10348
Merged
iscai-msft merged 7 commits intomainfrom Apr 15, 2026
Merged
Conversation
For optional api_version parameters: - Known values now include "and None" since None is valid - Default value shows None instead of the version string - Adds note: "If not set, the operation's default API version will be used." - Removes "Note that overriding this default value may result in unsupported behavior." Agent-Logs-Url: https://github.com/microsoft/typespec/sessions/0ef852ae-fc44-4ef7-9ec1-8ae7ec0e062d Co-authored-by: tadelesh <1726438+tadelesh@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix api_version argument documentation
[http-client-python] Refine api_version argument doc
Apr 13, 2026
tadelesh
reviewed
Apr 13, 2026
tadelesh
reviewed
Apr 13, 2026
…ters Agent-Logs-Url: https://github.com/microsoft/typespec/sessions/73bd662d-7b42-4b56-a125-107799d617ff Co-authored-by: tadelesh <1726438+tadelesh@users.noreply.github.com>
Agent-Logs-Url: https://github.com/microsoft/typespec/sessions/99c1d213-7362-4e48-a2bf-e3c44ce9a519 Co-authored-by: tadelesh <1726438+tadelesh@users.noreply.github.com>
commit: |
Member
The api_version parameter typically has optional=False with a client_default_value set. The previous condition (self.is_api_version and self.optional) never triggered for this case. Changed to check self.is_api_version regardless of optional flag, and also include api_version in the "Known values" section. Agent-Logs-Url: https://github.com/microsoft/typespec/sessions/3d55c9dd-061c-409f-941c-b67ca483eefc Co-authored-by: tadelesh <1726438+tadelesh@users.noreply.github.com>
Contributor
Author
The issue was that my condition checked |
Contributor
|
❌ There is undocummented changes. Run The following packages have changes but are not documented.
Show changes |
Member
|
@copilot Add changeset. |
Agent-Logs-Url: https://github.com/microsoft/typespec/sessions/40a269d1-2c7a-4dfa-865d-a2757190d03c Co-authored-by: tadelesh <1726438+tadelesh@users.noreply.github.com>
Contributor
Author
Added in |
iscai-msft
approved these changes
Apr 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Noneas default value for optionalapi_versionparamsNonein known values forapi_versionoptional=Falseapi_version params (typical case)