Skip to content

feat: use enum discriminant name for type name #1051

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MJDSys
Copy link

@MJDSys MJDSys commented Jun 8, 2025

When generating the different union discriminant, use the name of the discriminant instead of the name of the type inside the discriminant. This allows reuse of the type for multiple enumeration discriminants.

BREAKING CHANGE: the type names in the generated OpenAPI spec are changed, but the contents of the types are the same.

Fixes #1038

When generating the different union discriminant, use the name of the
discriminant instead of the name of the type inside the discriminant.
This allows reuse of the type for multiple enumeration discriminants.

BREAKING CHANGE: the type names in the generated OpenAPI spec are
changed, but the contents of the types are the same.

Fixes poem-web#1038
@attila-lin attila-lin added the breaking breaking change label Jun 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Union intermediate types don't include the variant name
2 participants