You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"merging two sets of defaults is undefined" is occured when allOf with default value #1379
$ oapi-codegen /tmp/openapi.yaml error generating code: error creating operation definitions: error describing global parameters for GET//tasks: error generating type for param (sort): error merging schemas: error merging schemas for AllOf: merging two sets of defaults is undefined
Activity
podhmo commentedon Dec 8, 2023
Ah, OK. This is bug.
&&is correct instead of||https://github.com/deepmap/oapi-codegen/blob/1f53862bcc64573d3d0c4c105c71a8143e7b1816/pkg/codegen/merge_schemas.go#L142-L151
podhmo commentedon Dec 8, 2023
we need more work in kin-openapi repository
florentchauveau commentedon Mar 19, 2024
@jamietanna hello there! can we get this merged? 🙏
it's been fixed on kin-openapi as well.
dharmab commentedon Oct 3, 2024
I ran into this today, is there anything I can do to help #1379?
podhmo commentedon Oct 4, 2024
This PR is already ready for review, so a merge should fix it.
fix: allOf/anyOf/oneOf generation bugs, with an aggregate test matrix (…