[Spec PR] there should be an error when preview is not the last enum value
Open
Spec PR Tools
- Dominant language
- C#
- Stars
- 135
- Forks
- 260
- Avg merge
- 3d 1h
- Merged PRs (30d)
- 144
Description
Preview is not the last enum value, which is against the [TypeSpec Azure guidance](https://azure.github.io/typespec-azure/docs/howtos/versioning/01-preview-version/).
A problematic PR is https://github.com/Azure/azure-rest-api-specs/pull/41138/changes#diff-b26148005e681285ec1daa360430d71aed1454a824900836e0298754c4b1ca52
Contributor guide
Research direction
Start by reading the linked TypeSpec Azure guidance and the problematic azure-rest-api-specs PR, then locate the validation path used for enum versioning in this tools repository. Done means a spec PR where Preview is not the last enum value produces an error, with coverage for that case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, csharp
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100