Skip to content

error invalid-discriminated-union-variant should give you the union type name #10198

@baywet

Description

@baywet

Currently the rule invalid-discriminated-union-variant gives you the following error

Discriminated union only allow a single default variant(Without a variant name)

It'd be more actionable if it provided the following error message instead

Discriminated union Foo only allow a single default variant(Without a variant name)

Metadata

Metadata

Assignees

Labels

compiler:coreIssues for @typespec/compiler

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions