Skip to content

Conversation

smorimoto
Copy link
Collaborator

Resolve discriminator mapping generation to use literal values when generateUnionEnums is enabled to avoid emitting enum member references. Add regression coverage that snapshots the discriminator output with union enums.

Closes #1417

Resolve discriminator mapping generation to use literal values when
generateUnionEnums is enabled to avoid emitting enum member references.
Add regression coverage that snapshots the discriminator output with
union enums.

Signed-off-by: Sora Morimoto <sora@morimoto.io>
@smorimoto smorimoto added the bug Something isn't working label Sep 18, 2025
Copy link

changeset-bot bot commented Sep 18, 2025

🦋 Changeset detected

Latest commit: 6b6e9dd

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
swagger-typescript-api Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@smorimoto smorimoto merged commit aa79764 into main Sep 18, 2025
9 checks passed
@smorimoto smorimoto deleted the ensure-discriminator-mappings-use-union-enum-literals branch September 18, 2025 22:13
@github-actions github-actions bot mentioned this pull request Sep 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TypeScript error 2702 with Mapping types when 'generateUnionEnums' is true
1 participant