Azure / Azure/typespec-azure

[TCGC] Could not support discriminated type of corner case

Open
#2,935 0 comments 0 reactions 0 assignees View on GitHub
lib:tcgc
Dominant language
TypeScript
Stars
27
Forks
90
Avg merge
1d 22h
Merged PRs (30d)
156

Description

[Playground](https://azure.github.io/typespec-azure/playground/?c=QHNlcnZpY2UNCm5hbWVzcGFjZSBUZXN0Ow0KDQpAZGlzY3JpbWluYXRvcigia2luZCIpDQptb2RlbCBCYXNlIHsNCiAgxBg6IHN0cmluZzsNCn3EPMYkQSBleHRlbmRzyy5wcm9wMdYvQskvQcxaIkIizihD1yhDxyg%3D&e=%40azure-tools%2Ftypespec-autorest&options=%7B%7D)https://[azure.github.io/typespec-azure/playground/?c=QHNlcnZpY2UNCm5hbWVzcGFjZSBUZXN0Ow0KDQpAZGlzY3JpbWluYXRvcigia2luZCIpDQptb2RlbCBCYXNlIHsNCiAgxBg6IHN0cmluZzsNCn3EPMYkQSBleHRlbmRzyy5wcm9wMdYvQskvQcxaIkIizihD1yhDxyg%3D&e=%40azure-tools%2Ftypespec-autorest&options=%7B%7D](https://azure.github.io/typespec-azure/playground/?c=QHNlcnZpY2UNCm5hbWVzcGFjZSBUZXN0Ow0KDQpAZGlzY3JpbWluYXRvcigia2luZCIpDQptb2RlbCBCYXNlIHsNCiAgxBg6IHN0cmluZzsNCn3EPMYkQSBleHRlbmRzyy5wcm9wMdYvQskvQcxaIkIizihD1yhDxyg%3D&e=%40azure-tools%2Ftypespec-autorest&options=%7B%7D)

Contributor guide

Open the contributing guide

Research direction

Open the linked TypeSpec Azure Playground example and reproduce the discriminated-type corner case. Trace the generated result to determine what is unsupported, then verify the corrected behavior against the same example; the issue does not name a source file or test to run.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
backend-api-design
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.