microsoft / microsoft/typespec

Adopt new `discriminated` decorator for discriminated unions

Open
#6,426 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.