[python] Fix XML deserialization for enum/datetime types and add mock API tests#9724
Open
[python] Fix XML deserialization for enum/datetime types and add mock API tests#9724
Conversation
…n for enum/datetime types Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add test case for Typespec pull request 9660
Fix XML deserialization for enum/datetime types and add mock API tests
Feb 14, 2026
12 tasks
commit: |
Contributor
|
All changed packages have been documented.
Show changes
|
Collaborator
|
You can try these changes here
|
annatisch
reviewed
Feb 17, 2026
packages/http-client-python/generator/pygen/codegen/templates/model_base.py.jinja2
Outdated
Show resolved
Hide resolved
…lables Co-authored-by: annatisch <8689453+annatisch@users.noreply.github.com>
Co-authored-by: annatisch <8689453+annatisch@users.noreply.github.com>
annatisch
reviewed
Feb 17, 2026
packages/http-client-python/generator/pygen/codegen/templates/model_base.py.jinja2
Outdated
Show resolved
Hide resolved
Co-authored-by: annatisch <8689453+annatisch@users.noreply.github.com>
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.
payload/xmlModelWithEnum and ModelWithDatetime)@typespec/http-specsdependency to0.1.0-alpha.33-dev.2inpackages/http-client-python/package.jsonpayload/xmlgenerated clientmodel_base.py.jinja2value.textbefore passing to_DESERIALIZE_MAPPING/_DESERIALIZE_MAPPING_WITHFORMATcallablesgeneric_mock_api_tests/test_payload_xml.pyfor ModelWithEnum and ModelWithDatetimegeneric_mock_api_tests/asynctests/test_payload_xml_async.pyfor ModelWithEnum and ModelWithDatetime.chronus/changesSecurity Summary
No security vulnerabilities were introduced or discovered.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.