Skip to content

Add support to externally tagged unions #1043

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 8 commits into
base: master
Choose a base branch
from

Conversation

luca-iachini
Copy link
Contributor

@luca-iachini luca-iachini commented May 31, 2025

This PR adds support for externally tagged unions, which is the default representation used by serde.
I'm currently adding OpenAPI specifications to APIs that accept JSON in this format. Since I can't change the existing JSON payloads, this change makes it possible to generate the OpenAPI spec simply by setting the externally_tagged attribute.
(I chose the externally_tagged attribute name, but I'm open to renaming it if a better alternative comes up.)

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