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

[Bug]: Add ARM linting rule to flag @get operation override on ArmResourceActionAsync and ArmProviderActionAsync #1672

Open
4 tasks done
allenjzhang opened this issue Oct 11, 2024 · 1 comment · May be fixed by #1741
Open
4 tasks done
Assignees
Labels
bug Something isn't working needs-area

Comments

@allenjzhang
Copy link
Member

Describe the bug

Default Action verb is @post, but we do allow verb override to such as @get. Should have linting rule to flag error on anything other than @post.

Reproduction

Playground

Checklist

  • Follow our Code of Conduct
  • Check that this issue is about the Azure libraries for typespec. For bug in the typespec language or core libraries file it in the TypeSpec repo
  • Check that there isn't already an issue that request the same bug to avoid creating a duplicate.
  • The provided reproduction is a minimal reproducible example of the bug.
@allenjzhang allenjzhang added the bug Something isn't working label Oct 11, 2024
@AlitzelMendez AlitzelMendez self-assigned this Oct 11, 2024
@AlitzelMendez AlitzelMendez linked a pull request Oct 16, 2024 that will close this issue
@AlitzelMendez
Copy link
Member

talked with Allen offline and the purpose of this issue: a new rule to flag anything other than get and post as error.

@AlitzelMendez AlitzelMendez linked a pull request Oct 24, 2024 that will close this issue
@AlitzelMendez AlitzelMendez linked a pull request Oct 24, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-area
Projects
None yet
2 participants