[Bug]: In-consistant generated name for anonymous model caused breaking between m4 and tcgc #1717
Open
4 tasks done
Labels
bug
Something isn't working
lib:azure-resource-manager
Issues for @azure-tools/typespec-azure-core library
Describe the bug
This happened in common types but I believe this breaking would be a general issue for anonymous model when we migrate swagger to typespec. For case with below and here is the difference.
AccessRulePropertiesSubscriptionsItem
and the pattern is${Modelname}${Propertyname}Item
AccessRulePropertiesSubscription
and the pattern is${Modelname}${Singular(Propertyname)}
The common types in typespec is here.
And relevant swagger definition is here.
Possible solutions
Reproduction
NA
Checklist
The text was updated successfully, but these errors were encountered: