Skip to content

feat: handle nullable oneOf#1532

Merged
ernado merged 2 commits intoogen-go:mainfrom
ngalaiko:push-qqwmlvzsuqql
Sep 20, 2025
Merged

feat: handle nullable oneOf#1532
ernado merged 2 commits intoogen-go:mainfrom
ngalaiko:push-qqwmlvzsuqql

Conversation

@ngalaiko
Copy link
Contributor

This is a refined version of #1531

I have added more tests to make sure that all cases are covered.

Also implementation was changed to handle the translation on generate()
function level instead of a lower-lever oneOf().

Second commit introduced a transform() stage to prepare Schema before generation in a more generic way.

@ernado ernado merged commit 4daa719 into ogen-go:main Sep 20, 2025
15 checks passed
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