Closed NOMORECOFFEE closed 5 years ago
What do you mean by checking them? What should we check for @ that if?
if len(options) > 0 || len(d.opts.SwaggerDefaultOpts) > 0 {
...
}
test case
var s interface{ConfigurableServiceDesc; ServiceDesc} = ...
s.Apply(WithSwaggerOptions(removeSwaggeSpec)) // or change Version
spec := s.SwaggerDef() // wait changes ☝️
Thanks!
I think these options (d.opts.SwaggerDefaultOpts) should be present in this condition
If a service is
ConfigurableServiceDesc
, we can append additional swagger option but not check it