Azure / Azure/typespec-azure

Adding value to an enum(Fixed) in a new version(with `@added`) should be flagged as breaking change

Open
#469 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
27
Forks
90
Avg merge
1d 21h
Merged PRs (30d)
164

Description

```tsp
enum Abc {
a,
@added(v2)
b
}
```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the TypeSpec enum example with `@added(v2)` and inspect the breaking-change validation entry point that handles fixed enums. Done means adding a value in a later version is flagged as a breaking change, while the reported example serves as the regression case.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.