enable disable swagger

This commit is contained in:
Marek Goc 2023-04-11 23:38:24 +02:00
parent ca242a55f8
commit 774f27d97c

View File

@ -66,6 +66,18 @@ func License(License *openapi3.License) Option {
}
}
func RedocEnable(enable bool) Option {
return func(swagger *Swagger) {
swagger.RedocEnable = enable
}
}
func SwaggerEnable(enable bool) Option {
return func(swagger *Swagger) {
swagger.SwaggerEnable = enable
}
}
func SwaggerOptions(options map[string]interface{}) Option {
return func(swagger *Swagger) {
swagger.SwaggerOptions = options