Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linter arm-resource-operation shouldn't be reported on non-resource operation #2081

Open
Tracked by #1850
pshao25 opened this issue Jan 15, 2025 · 0 comments
Open
Tracked by #1850
Assignees
Labels
bug Something isn't working lib:azure-resource-manager Issues for @azure-tools/typespec-azure-core library triaged:core

Comments

@pshao25
Copy link
Member

pshao25 commented Jan 15, 2025

See this playground, listByLocation is not a resource operation.

Actual: it reports "Resource GET operation must be decorated with @armResourceRead or @armResourceList."
Expected: no warning.

Additional information: If I call ArmProviderActionAsync directly instead of ComputeProviderActionAsync, there is no warning.

@markcowl markcowl added bug Something isn't working lib:azure-resource-manager Issues for @azure-tools/typespec-azure-core library labels Jan 22, 2025
@markcowl markcowl added this to the [2025] February milestone Jan 22, 2025
@AlitzelMendez AlitzelMendez self-assigned this Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working lib:azure-resource-manager Issues for @azure-tools/typespec-azure-core library triaged:core
Projects
None yet
Development

No branches or pull requests

3 participants