Skip to content
This repository was archived by the owner on Jun 16, 2026. It is now read-only.
This repository was archived by the owner on Jun 16, 2026. It is now read-only.

TCGC decorator @clientLocation might break the resource detection logic #5360

Description

Recently we added a feature that we would only mark a thing as resource when its interface has the @armResourceOperations decorator (PR).
The @clientLocation decorator from TCGC allows TCGC to create new clients for operation for client side reorganization.
When we reorganize resource operations, the new created clients will never have @armResourceOperations and this would break our detection rule for resources.

Currently we have to introduce workarounds to fix this, by adding the !csharp scope to all such occurrence of decorators to ensure the resource detection.
One of the side effect of this workaround is that this breaks the operationId building logic in TCGC, which changes the operationId displayed in our xml doc of operations, and also breaks the mechanism of finding corresponding example files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions