Open MaryGao opened 1 week ago
@allenjzhang I'd like to clarify from typespec ARM side, do we have any preference on how to avoid this breaking? Since anonymous model is not recommanded to use, do we plan to not use any anonymous models in common types?
Moved to TCGC - if anaonymous models are used, changes in naming are always possible.
@markcowl Since anaonymous models are not a good practice do we have a plan in common types to not using it?
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