Azure / autorest.python

Extension for AutoRest (https://github.com/Azure/autorest) that generates Python code
MIT License
80 stars 57 forks source link

[typespec] support scenario for enum `xx.xxx` #2003

Open msyyc opened 1 year ago

msyyc commented 1 year ago

context: https://teams.microsoft.com/l/message/19:906c1efbbec54dc8949ac736633e6bdf@thread.skype/1688764873522?tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47&groupId=3e17dcb0-4257-4a30-b843-77f47f1d4121&parentMessageId=1687550732319&teamName=Azure%20SDK&channelName=TypeSpec%20(Cadl)%20Discussion%20%F0%9F%90%AE&createdTime=1688764873522

tadelesh commented 1 year ago

It seems some renaming should be applied to enum key name.

iscai-msft commented 1 year ago

@johanste @lmazuel I feel we should be able to directly support this, where we automatically generate with name AR_MICROSOFT. Thoughts?

lmazuel commented 1 year ago

@johanste @lmazuel I feel we should be able to directly support this, where we automatically generate with name AR_MICROSOFT. Thoughts?

Agree, we should replace the . but _ here.

iscai-msft commented 11 months ago

@msyyc is this still an issue