Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update gin example to use most recent release changes #554

Merged
merged 1 commit into from May 4, 2022

Conversation

ericvolp12
Copy link
Contributor

The most recent release of oapi-codegen (v1.10.0) included changes
that broke the existing examples which were introduced in #530

This change updates the gin example by regenerating the code-generated files and
updating the router registration to work with the new generated code.

It's worth considering whether we should update the gin template to return a concrete
type instead of the IRouter interface.

When the IRouter interface was introduced it seemed to exist just to allow mocking of the
interface (gin-gonic/gin#1607) so I think it may be reasonable to just return
a gin.RouterGroup from the RegisterHandlersWithOptions and RegisterHandlers generated functions.

The most recent release of `oapi-codegen` (v1.10.0) included changes
that broke the existing examples which were introduced in deepmap#530

This change updates the `gin` example by regening the code-generated files and
updating the router registration to work with the new generated code.
@ericvolp12
Copy link
Contributor Author

ericvolp12 commented May 4, 2022

This example was in response to #530 which has since been rolled back, I don't think this should have been merged unless we decide to re-roll out the changes in #530 with a version bump that makes sense since they are breaking. Without the changes in #530 this example is invalid.

@deepmap-marcinr
Copy link
Contributor

deepmap-marcinr commented May 4, 2022 via email

deepmap-marcinr pushed a commit that referenced this pull request May 4, 2022
This reverts commit 09c1d86. I merged
it after rolling back a change that it was dependent on.

#554 (comment)
adrianpk pushed a commit to foorester/oapi-codegen that referenced this pull request Jan 16, 2024
The most recent release of `oapi-codegen` (v1.10.0) included changes
that broke the existing examples which were introduced in deepmap#530

This change updates the `gin` example by regening the code-generated files and
updating the router registration to work with the new generated code.
adrianpk pushed a commit to foorester/oapi-codegen that referenced this pull request Jan 16, 2024
…p#554)"

This reverts commit d9f6567. I merged
it after rolling back a change that it was dependent on.

deepmap#554 (comment)
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.

None yet

2 participants