Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 20, 2026

Syncs test cases from microsoft/typespec#9407 to the autorest.python repository to validate enum type support for array encoding.

Changes

  • Added 8 new test cases to test_encode_array.py and test_encode_array_async.py:
    • Enum array tests for comma, space, pipe, and newline delimited formats
    • Extensible enum array tests for comma, space, pipe, and newline delimited formats

Tests verify that enum values (e.g., models.Colors.BLUE) and extensible enum values (e.g., models.ColorsExtensibleEnum.BLUE) are correctly encoded and decoded when used in array properties with different delimiter formats.


💡 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.

Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
Copilot AI changed the title [WIP] Support enum type for array encode Add enum and extensible enum array encoding test cases Jan 20, 2026
Copilot AI requested a review from msyyc January 20, 2026 08:23
Base automatically changed from auto-microsoft-copilot/add-test-case-http-client to main January 20, 2026 08:24
@msyyc msyyc marked this pull request as ready for review January 20, 2026 08:34
@msyyc
Copy link
Member

msyyc commented Jan 20, 2026

move to #3304

@msyyc msyyc closed this Jan 20, 2026
@msyyc msyyc deleted the copilot/sub-pr-3302 branch January 20, 2026 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants