diff --git a/swagger/options.go b/swagger/options.go index 5769c4f..c04b018 100644 --- a/swagger/options.go +++ b/swagger/options.go @@ -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