Skip to content

just pr#1

Merged
ernado merged 3 commits intoogen-go:mainfrom
shadowspore:xjem/dev
Sep 4, 2021
Merged

just pr#1
ernado merged 3 commits intoogen-go:mainfrom
shadowspore:xjem/dev

Conversation

@shadowspore
Copy link
Member

No description provided.

@ernado ernado merged commit 9b8b37f into ogen-go:main Sep 4, 2021
ernado pushed a commit that referenced this pull request Nov 24, 2025
Prevents duplicate case statements when multiple response patterns
(e.g., 2XX, 3XX) share the same schema reference. Previously, this
caused Go compilation errors due to duplicate cases in type switches.

The fix introduces uniqueResponseTypes() to filter responses by
Type.Name before generating case statements. This is safe because
responses with identical type names have the same encoding logic.

Includes integration test to prevent regression.

Fixes #1
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