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
The example code you show for gin doesn't compile and it doesn't even make sense:
func SetupHandler() {
var myApi PetStoreImpl
r := gin.Default()
r.Use(middleware.OapiRequestValidator(swagger))
r = api.RegisterHandlers(r, petStore)
}
What are swagger and petstore? What are we supposed to do with myApi?
Activity
jamietanna commentedon Feb 15, 2023
Hey, https://github.com/deepmap/oapi-codegen/tree/master/examples/petstore-expanded/gin is a fully-fledged example that may be more helpful!