Flag a discriminator property that is defined as an extensible enum
Open
- Dominant language
- TypeScript
- Stars
- 104
- Forks
- 62
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 5
Description
`oav` should issue an error message for a property that is defined as the discriminator for a schema when it is an extensible enum, I.e.`x-ms-enum: { modelAsString: true }`, because changing the set of values for a discriminator is a breaking change.
Contributor guide
Research direction
No file or test is named. Start by locating oav's schema-validation path for discriminator properties and its handling of x-ms-enum with modelAsString: true. Done means this combination produces an error because changing discriminator values is breaking, while unaffected discriminator cases retain their existing behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100