You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Better document/warn requirement for unsetting doc.Servers #882
// Clear out the servers array in the swagger spec, that skips validating// that server names match. We don't know how this thing will be run.swagger.Servers=nil
I recommend we log a warning if we see that Servers != nil.
This won't break anyone's builds or expectations if they're needing it, but will make it clear that this could be a problem.
It's a problem I've hit several times and so have others I've worked with, so we should try and preemptively alert folks!
Reacted by Firmino, Buğra Eren Yılmaz and Waldemar Lehner
Activity
Warn when using a non-empty `spec.Servers`
Warn when using a non-empty `spec.Servers` (#883)
Warn when using a non-empty `spec.Servers` (oapi-codegen#883)
Warn when using a non-empty `spec.Servers` (oapi-codegen#883)
Warn when using a non-empty `spec.Servers` (oapi-codegen#883)