[python] Add mock API tests for extensible enum with special word member names#9952
[python] Add mock API tests for extensible enum with special word member names#9952
Conversation
…d member names Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
|
@copilot There is 1 possible bug: We should remove the |
… names Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
Fixed in 67e797d. Root cause: Fix: added After the fix: |
Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
|
All changed packages have been documented.
Show changes
|
|
@copilot fix ci failure |
|
@copilot Fix the following CI error: |
…ares models folder path Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
... Fixed in 9b100c8. Root cause: The namespace iteration loop in
This caused Fix: Sort namespaces deepest-first before processing so shallower namespaces (which write the proper models folder |
commit: |
…group shares models folder path" This reverts commit 9b100c8.
@typespec/http-specsdependency to0.1.0-alpha.33-dev.5test_extensible_stringstests to azure and unbranded (sync + async)preprocess/__init__.py— skippad_reserved_wordsforenumvaluetypes to remove incorrectEnumsuffix from member namesmodels.ExtensibleString.CLASSinstead ofmodels.ExtensibleString.CLASSEnum)python-fix-enum-member-reserved-word-suffix-2026-03-06-12-00-00.md)pygen/codegen/serializers/__init__.py— process namespaces deepest-first so the models folder__init__.py(with enum exports) is never overwritten by a pkgutil namespace init from a deeper sub-namespace that shares the same path (e.g.specialwords.modelsoperation group overwriting thespecialwords/models/__init__.pydata models init)python-fix-namespace-models-init-overwrite-2026-03-06-13-00-00.md)test_null_serializationenv issue)Original prompt
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.