Skip to content

The operation does not carry the decorator defined for its namespace/interface when it is reference to other interface #1466

@chunyu3

Description

@chunyu3

Hi all

When we defined operation one in main.cadl, and reference in client.cadl as following:
main.cadl

namespace Azure.ClientAndOperationGroupService;

@autoRoute
namespace Alpha {​​
    #suppress "@azure-tools/cadl-azure-core/use-standard-operations" "This is test code."
    @action
    op one(): string;
}​​

client.cadl

@client({​​
  name: "NewOperationGroupService",
  service: Azure.ClientAndOperationGroupService
}​​)
interface NewOperationGroupService{​​
    oneFun is Azure.ClientAndOperationGroupService.Alpha.one;
}​​

The @autoRoute decorator will not pass-down to the operation oneFun. Is it the expected behavior? 

Metadata

Metadata

Assignees

Labels

design:neededA design request has been raised that needs a proposal

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions