Skip to content

gin code shown is incorrect #961

Closed
Closed

Description

@dwschulze

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?

Do you have an example that works?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions