Skip to content

Add optional Tag parameter to Legacy Operations template#4530

Merged
markcowl merged 2 commits into
mainfrom
copilot/add-tag-parameter-to-legacy-operations
Jun 2, 2026
Merged

Add optional Tag parameter to Legacy Operations template#4530
markcowl merged 2 commits into
mainfrom
copilot/add-tag-parameter-to-legacy-operations

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jun 1, 2026

The Azure.ResourceManager.Legacy.Operations template hardcodes @tag("Operations"), preventing services (e.g. Compute) from specifying a different OpenAPI tag for their operations list endpoint. The @@tag augment decorator only adds tags rather than replacing, so a template parameter is needed.

  • Added optional Tag template parameter (defaults to "Operations" for backward compatibility)
  • Regenerated reference documentation
// Use a custom tag for Operations_List
interface Operations extends Azure.ResourceManager.Legacy.Operations<Tag = "Compute"> {}

Copilot AI linked an issue Jun 1, 2026 that may be closed by this pull request
… template

Co-authored-by: markcowl <1054056+markcowl@users.noreply.github.com>
Copilot AI changed the title [WIP] Add tag parameter to legacy operations Add optional Tag parameter to Legacy Operations template Jun 1, 2026
@microsoft-github-policy-service microsoft-github-policy-service Bot added lib:azure-resource-manager Issues for @azure-tools/typespec-azure-core library meta:website TypeSpec.io updates labels Jun 1, 2026
Copilot AI requested a review from markcowl June 1, 2026 18:42
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Jun 1, 2026

Open in StackBlitz

npm i https://pkg.pr.new/@azure-tools/typespec-azure-resource-manager@4530

commit: 5f64167

@markcowl markcowl marked this pull request as ready for review June 1, 2026 20:52
@azure-sdk
Copy link
Copy Markdown
Collaborator

All changed packages have been documented.

  • @azure-tools/typespec-azure-resource-manager
Show changes

@azure-tools/typespec-azure-resource-manager - feature ✏️

Add optional Tag template parameter to Azure.ResourceManager.Legacy.Operations to allow overriding the openapi tag value.

@azure-sdk
Copy link
Copy Markdown
Collaborator

You can try these changes here

🛝 Playground 🌐 Website

@markcowl markcowl added this pull request to the merge queue Jun 2, 2026
Merged via the queue into main with commit 91987e9 Jun 2, 2026
30 checks passed
@markcowl markcowl deleted the copilot/add-tag-parameter-to-legacy-operations branch June 2, 2026 01:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lib:azure-resource-manager Issues for @azure-tools/typespec-azure-core library meta:website TypeSpec.io updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add tag parameter to legacy operations

4 participants