Skip to content

fix(response): added an option to override the response suffix - #493

Merged
2 commits merged into
oapi-codegen:masterfrom
wolfeidau:fix_response_name
May 14, 2022
Merged

2 commits merged into
oapi-codegen:masterfrom
wolfeidau:fix_response_name

Conversation

@wolfeidau

Copy link
Copy Markdown
Contributor

This should resolve #386 which is still an issue for clients, the changes in #436 fixed it for types and server but not clients.

This small change enables users to override the suffix where it could clash with existing names.

I have updated the client template to ensure use of the provided suffix.

This should resolve oapi-codegen#386 which is still an issue for clients, the changes in oapi-codegen#436 fixed it for types and server but not clients.

This small change enables users to override the suffix where it could clash with existing names.
@leedsalex

Copy link
Copy Markdown

@deepmap-marcinr Any chance this can get pulled into the next release. My team is running into the same issue that this resolves.

@ghost
ghost merged commit 4fd677d into oapi-codegen:master May 14, 2022
This pull request was closed.
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.

'Response' suffix causes duplicated structs

2 participants