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

Allows instance names to be configured #174

Closed
wants to merge 1 commit into from

Conversation

writethesky
Copy link

@writethesky writethesky commented Oct 30, 2021

Describe the PR
Allows instance names to be configured

Relation issue
swaggo/swag#1022

Additional context
When there are multiple Swagger documents, you need to be able to specify the instance name.
e. g.
swag.Register("v1", &s{})

r.GET("/swagger/v1/*any", ginSwagger.WrapHandler(swaggerFiles.Handler, func(c *ginSwagger.Config) {
    c.InstanceName = "v1"
}))

@ubogdan ubogdan closed this Apr 22, 2022
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