Skip to content
This repository was archived by the owner on May 22, 2026. It is now read-only.

Add enum and extensible enum array encoding test cases - #3303

Closed
Yuchao Yan (msyyc) with Copilot wants to merge 8 commits into
mainfrom
copilot/sub-pr-3302
Closed

Add enum and extensible enum array encoding test cases#3303
Yuchao Yan (msyyc) with Copilot wants to merge 8 commits into
mainfrom
copilot/sub-pr-3302

Conversation

Copilot AI commented Jan 20, 2026

Copy link
Copy Markdown
Contributor

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
Base automatically changed from auto-microsoft-copilot/add-test-case-http-client to main January 20, 2026 08:24
@msyyc
Yuchao Yan (msyyc) marked this pull request as ready for review January 20, 2026 08:34
@msyyc

Copy link
Copy Markdown
Member

move to #3304

@msyyc
Yuchao Yan (msyyc) deleted the copilot/sub-pr-3302 branch January 20, 2026 08:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants