microsoft / microsoft/typespec
Adopt new `discriminated` decorator for discriminated unions
Open
emitter:client:csharp
- Dominant language
- Java
- Stars
- 5.9k
- Forks
- 394
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 104
Description
The old way of doing this with the `discriminator` decorator has been removed in https://github.com/microsoft/typespec/pull/6286.
Here is the design - https://github.com/microsoft/typespec/issues/2738
Prior to GA, TCGC will report an error. After GA, TCGC will add support for this decorator, so we will need to adopt it and re-enable the now failing Spector tests.
Contributor guide
Assessment
This issue has not been assessed yet.