Azure / Azure/typespec-azure

Add proper decorator for interface holding non-resource operations

Open
#3,250 0 comments 0 reactions 0 assignees View on GitHub
feature lib:azure-resource-manager
Dominant language
TypeScript
Stars
27
Forks
90
Avg merge
1d 21h
Merged PRs (30d)
164

Description

For the operations in the file `routes.tsp`, they are all non-resource operations. So the interface shouldn't be decorated by `@armResourceOperations`. If we don't decorate it with `@armResourceOperations`, the linter `@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator` violates.

We need a proper decorator and modify the message for `@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator`

Contributor guide

Open the contributing guide

Research direction

Start by reading routes.tsp and the implementation of @azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator, then run the linter against the interface. Done means non-resource operations have an appropriate decorator and the diagnostic message no longer incorrectly requires @armResourceOperations.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.