Skip to content

feat: handle nullable anyOf#1551

Merged
ernado merged 2 commits intoogen-go:mainfrom
bamorim:transform-nullable-any-of
Oct 11, 2025
Merged

feat: handle nullable anyOf#1551
ernado merged 2 commits intoogen-go:mainfrom
bamorim:transform-nullable-any-of

Conversation

@bamorim
Copy link
Copy Markdown
Contributor

@bamorim bamorim commented Oct 9, 2025

This extends what was done in #1532 by also supporting anyOf.

The reason I'm doing this is because I've been having a blast using typespec.io and their default union type generated is using anyOf.

I've only copied the basic type tests because since the rest of the code is the same for oneOf I felt it was the right thing to do to not inflate the test suite too much, but if you want I can do something else.

@ernado ernado merged commit a03f73e into ogen-go:main Oct 11, 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