[python] Add payload/xml mock API coverage for PR #10558 union formatting scenario#10645
Draft
Copilot wants to merge 2 commits into
Draft
[python] Add payload/xml mock API coverage for PR #10558 union formatting scenario#10645Copilot wants to merge 2 commits into
Copilot wants to merge 2 commits into
Conversation
…case Agent-Logs-Url: https://github.com/microsoft/typespec/sessions/80206c2b-0013-4855-bda0-684655fbd257 Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add test case for pull request 10558
[python] Add payload/xml mock API coverage for PR #10558 union formatting scenario
May 11, 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.
PR #10558 changed
payload/xmlscenario shape formatting (XmlErrorValue.get()union layout). This updates python mock API coverage to explicitly validate behavior for that scenario path in both sync and async clients.Spec alignment
@typespec/http-specsto a version containing the updatedpayload/xmlSpector case (0.1.0-alpha.37-dev.6).Mock API test coverage (shared sync + async)
tests/mock_api/shared/test_payload_xml.pytests/mock_api/shared/asynctests/test_payload_xml_async.pyxml_error_value.get()error response content type to ensure XML response handling remains stable with the updated union scenario shape.Changelog
.chronus/changes/*entry for@typespec/http-client-python(changeKind: internal).