Skip to content

feat(openapi): Add flatten_oneofs plugin option#16

Merged
amckinney merged 1 commit intomainfrom
amckinney/oneof
Mar 15, 2026
Merged

feat(openapi): Add flatten_oneofs plugin option#16
amckinney merged 1 commit intomainfrom
amckinney/oneof

Conversation

@amckinney
Copy link

Re: google#251

Tthis adds a new flatten_oneofs plugin option which ensures the generated OpenAPI spec matches the ProtoJSON format.

Note that this means the generated REST SDK makes no distinction between oneof properties and regular optional properties -- an additional extension (e.g. x-fern-oneof) is required to strengthen oneof generation in client SDKs.

@amckinney amckinney merged commit 8af97f8 into main Mar 15, 2026
1 check passed
@amckinney
Copy link
Author

Further discussion for future work: fern-api/fern#13552

@amckinney amckinney deleted the amckinney/oneof branch March 15, 2026 16:49
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.

2 participants