Closed
feat(http-client-python): add mock API tests for reserved operation body param names#10534
Conversation
…params (PR #10529) Agent-Logs-Url: https://github.com/microsoft/typespec/sessions/3646352b-123b-42b2-93f9-d2824237c1a4 Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add test case for pull request 10529
feat(http-client-python): add mock API tests for reserved operation body param names
Apr 28, 2026
msyyc
marked this pull request as ready for review
June 10, 2026 05:43
msyyc
requested review from
ChenxiJiang333,
catalinaperalta,
iscai-msft,
l0lawrence,
lmazuel,
tadelesh and
timotheeguerin
as code owners
June 10, 2026 05:43
Contributor
|
@copilot resolve the merge conflicts in this pull request |
…-for-pull-10529 # Conflicts: # packages/http-client-python/package-lock.json # packages/http-client-python/package.json Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
Contributor
Author
Resolved the merge conflicts in |
Contributor
|
move to #10944 |
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.
Adds Python SDK mock API test coverage for the
SpecialWords_ReservedOperationBodyParams_withItemsscenario — verifying that an operation parameter nameditems(a PythonMappingprotocol method) is serialized as"items"on the wire, not mangled to"items_property".Changes
package.json: Sets@typespec/http-specsto the stable0.1.0-alpha.37, which contains the new scenario (aligned withmainafter a merge)mock_api/azure/test_special_words.py+mock_api/unbranded/test_special_words.py: Addstest_reserved_operation_body_params_with_items(sync)mock_api/azure/asynctests/test_special_words_async.py+mock_api/unbranded/asynctests/test_special_words_async.py: Adds async counterpartThe mock expects
POST /special-words/operations/body-param-reservedwith body{"items": ["item"]}→ 204.