swag
swag copied to clipboard
Support custom ignore tag
Is your feature request related to a problem? Please describe.
When I'm using restful api, the id parameter is bound on the url path. The framework I use is gin, so the uri:id
tag will be used on the request object, but I still need to add an additional swaggerignore=true
tag to ignore swagger to generate documentation
Describe the solution you'd like I want to be able to customize ignore tags
Describe alternatives you've considered .
Additional context .
Can you please provide a full example, so we better understand the issue?
Restful put api like /user/:id
with request body {"name": "tom"}
bind to struct
type user struct {
ID string `uri:"id"`
Name string `json:"name"`
...<other field>
}
The uri
tag is used to bind path variable, so I need add a swaggerignore
tag to ignore in swaggo
Are there plans to work on this ?