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
failed to generate code when defined components/requestBodies have multiple content types #1881
Generating code with components/requestBodies xtype which have multiple content types are failing with
error generating code for type definitions: duplicate typename xtype
providing example here server-types and openapi spec in attachment
running command oapi-codegen -config server-types.yaml patch-me-api.yaml
give me error error generating code: error generating type definitions: error generating code for type definitions: duplicate typename 'AddressRequest' detected, can't auto-rename, please use x-go-name to specify your own name for one of them
Activity
feat: multi-pass type name resolution
feat: multi-pass type name resolution
feat: multi-pass type name resolution
feat: multi-pass type name resolution
feat: multi-pass type name resolution
feat: multi-pass type name resolution
feat: multi-pass type name resolution
feat: multi-pass type name resolution
feat: multi-pass type name resolution (#2213)
mromaszewicz commentedon Mar 2, 2026
This was addressed in #2213, please enable name conflict resolution via the output options and file a new issue if it doesn't work for you