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

Add no-string-discriminator linter rule #693

Merged

Conversation

timotheeguerin
Copy link
Member

fix #97 add linter rule to recommend the discriminator property to be explicitly defined as an extensible union

@azure-sdk
Copy link
Collaborator

azure-sdk commented Apr 18, 2024

All changed packages have been documented.

  • @azure-tools/typespec-azure-core
Show changes

@azure-tools/typespec-azure-core - fix ✏️

Add new no-string-discriminator linter rule suggesting using an explicit extensible union as the discriminator kind.

@azure-sdk
Copy link
Collaborator

github-merge-queue bot pushed a commit that referenced this pull request May 16, 2024
All rules about the previous state of `@fixed` and open enums
- no `@fixed` - we should deprecate it as its a noop
- no fixed enum discriminator - new rule taking over recommending unions
#693

---------

Co-authored-by: Mark Cowlishaw <markcowl@microsoft.com>
@timotheeguerin timotheeguerin added this pull request to the merge queue Jun 3, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jun 3, 2024
@timotheeguerin timotheeguerin added this pull request to the merge queue Jun 3, 2024
Merged via the queue into Azure:main with commit 9b7a6a2 Jun 3, 2024
21 checks passed
@timotheeguerin timotheeguerin deleted the linter/no-string-discriminator branch June 3, 2024 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Azure.Core linter rule to encourage open union for discriminator
3 participants