Skip to content

[python] fix casing enum#10329

Open
iscai-msft wants to merge 2 commits intomicrosoft:mainfrom
iscai-msft:python/fixCasingEnum
Open

[python] fix casing enum#10329
iscai-msft wants to merge 2 commits intomicrosoft:mainfrom
iscai-msft:python/fixCasingEnum

Conversation

@iscai-msft
Copy link
Copy Markdown
Member

fixes #10312

@microsoft-github-policy-service microsoft-github-policy-service bot added the emitter:client:python Issue for the Python client emitter: @typespec/http-client-python label Apr 9, 2026
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Apr 9, 2026

Open in StackBlitz

npm i https://pkg.pr.new/@typespec/http-client-python@10329

commit: 02bab07

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 9, 2026

All changed packages have been documented.

  • @typespec/http-client-python
Show changes

@typespec/http-client-python - fix ✏️

Fix casing for enums with mix of numbers and letters

@azure-sdk
Copy link
Copy Markdown
Collaborator

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

@iscai-msft
Copy link
Copy Markdown
Member Author

@msyyc I definitely will investigate this more. I think overall I like the new casing for enums better, but I'm going to go through the rest api specs repo to see how many specs would be affected. Also regardless, I think we need some kind of decorator in tcgc that is like "this is the exact client name, don't change casing or anything", what are your thgouths @tadelesh. Something like @clientNameOverride

@tadelesh
Copy link
Copy Markdown
Member

tadelesh commented Apr 10, 2026

@msyyc I definitely will investigate this more. I think overall I like the new casing for enums better, but I'm going to go through the rest api specs repo to see how many specs would be affected. Also regardless, I think we need some kind of decorator in tcgc that is like "this is the exact client name, don't change casing or anything", what are your thgouths @tadelesh. Something like @clientNameOverride

We had a issue to track this: Azure/typespec-azure#3607. Let's prioritize it. I don't think we need a new decorator. We could just add a flag to tell if the name has been customized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

emitter:client:python Issue for the Python client emitter: @typespec/http-client-python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[python] Enum member names drop underscores before date segments

4 participants