Skip to content
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

improvement: add a flag to allow python to generate discriminated unions as undiscriminated unions #3740

Merged
merged 13 commits into from
Jun 3, 2024

Conversation

armandobelardo
Copy link
Contributor

@armandobelardo armandobelardo commented May 30, 2024

This PR adds a config for API settings (use-undiscriminated-unions-with-literals) that creates discriminated unions as undiscriminated unions, forcing the discriminant as a literal property on the members

This PR also allows the OpenAPI parsing/conversion step to now take into account the generation language

@dsinghvi
Copy link
Member

dsinghvi commented Jun 3, 2024

@armandobelardo cloning this now to play around, will merge after

@dsinghvi dsinghvi merged commit e9d64a0 into main Jun 3, 2024
24 of 27 checks passed
@dsinghvi dsinghvi deleted the ab/discUnionsAsUndisc branch June 3, 2024 21:12
chdeskur pushed a commit that referenced this pull request Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants