Azure / typespec-azure

About TypeSpec Azure Libraries
https://azure.github.io/typespec-azure/
MIT License
8 stars 28 forks source link

Removing $armRenameListByOperation decorator so operation id is directly derived from op name #1093

Closed allenjzhang closed 2 days ago

allenjzhang commented 1 week ago

Closes #37

azure-sdk commented 1 week ago

All changed packages have been documented.

Show changes ### `@azure-tools/typespec-azure-resource-manager` - _breaking_ [✏️](https://github.com/allenjzhang/typespec-azure/edit/azhang_ArmResourceListByParentOpId/.chronus/changes/azhang_ArmResourceListByParentOpId-2024-5-27-17-25-9.md?pr=/Azure/typespec-azure/pull/1093) > Removing $armRenameListByOperation decorator so operation id is directly derived from operation name. Previously operation id is statically resolved and fixed :,> ,> - For top level resources, `[Resource]_ListByResourceGroup`,> - For child resources, `[Resource]_ListBy[ParentResource]`,> ,> With this change, the operation name will form the second part of the operation id, just like other ARM operation templates.,> ,> ```diff,> -list is ArmResourceListByParent;,> +listByLocation is ArmResourceListByParent;,> ```,> ,> You can modify the operation name to match existing spec to avoid breaking changes.
azure-sdk commented 1 week ago

You can try these changes at https://cadlplayground.z22.web.core.windows.net/typespec-azure/prs/1093/

Check the website changes at https://tspwebsitepr.z22.web.core.windows.net/typespec-azure/prs/1093/