Skip to content

fix(gen): allOf optional/nullable field boxing#1647

Open
zguydev wants to merge 2 commits intoogen-go:mainfrom
zguydev:fix/allof-field-boxing
Open

fix(gen): allOf optional/nullable field boxing#1647
zguydev wants to merge 2 commits intoogen-go:mainfrom
zguydev:fix/allof-field-boxing

Conversation

@zguydev
Copy link
Copy Markdown
Contributor

@zguydev zguydev commented Mar 13, 2026

Fixes #1512

The issue was with the allOf merging logic inside the generator, which did 2 passes for the check if the field could be represented as generic OptNilDateTime, rewritten so it now does this in one pass and generates a proper type

@zguydev
Copy link
Copy Markdown
Contributor Author

zguydev commented Mar 13, 2026

This PR doesn't affect current example schemas. Also fixed local test that uses DecodeMAC which always failed because of the new stdlib behavior

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.

gen: allOf and nullable generate broken code

1 participant