Skip to content

Fix enum discriminator type#2774

Open
reneklacan wants to merge 1 commit into
ferdikoomen:mainfrom
pragmaplatform:fix-enums
Open

Fix enum discriminator type#2774
reneklacan wants to merge 1 commit into
ferdikoomen:mainfrom
pragmaplatform:fix-enums

Conversation

@reneklacan

Copy link
Copy Markdown

Fixes generated TypeScript for composed/discriminated models so each union branch uses the specific enum member type instead of the full enum type.

Before -> After example diff:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant