Skip to content

Add tagged_discriminator feature to generate cleaner OpenAPI schemas … - #1501

Open
juliuslipp wants to merge 1 commit into
juhaku:masterfrom
juliuslipp:feature/issue-1456-tagged-discriminator
Open

Add tagged_discriminator feature to generate cleaner OpenAPI schemas …#1501
juliuslipp wants to merge 1 commit into
juhaku:masterfrom
juliuslipp:feature/issue-1456-tagged-discriminator

Conversation

@juliuslipp

Copy link
Copy Markdown

…for internally tagged enums (fixes #1456)

@juliuslipp
juliuslipp force-pushed the feature/issue-1456-tagged-discriminator branch from ae83b6f to ddde00b Compare November 22, 2025 22:56
@baughmann

Copy link
Copy Markdown

Any idea when this might be merged? Looking forward to this

UMCEKO added a commit to UMCEKO/arcadipa that referenced this pull request Jul 2, 2026
Arcadipa merges fixes as default behavior. Internally tagged serde enums
now always document as oneOf of named components + discriminator:
newtype variants as bare $refs (PR juhaku#1501), struct variants
as synthesized `{Enum}{Variant}` components with the tag property
included. Generic enums keep the upstream inline shape.

Updated the five affected snapshots; full utoipa-gen + utoipa suites green.
@UMCEKO UMCEKO mentioned this pull request Jul 2, 2026
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.

Improve support for serde tagged enums / OneOf generation

2 participants