mirror of
https://github.com/Fishwaldo/huma.git
synced 2025-03-15 19:31:27 +00:00
fix: include servers in rendered OpenAPI
This commit is contained in:
parent
aeb9863598
commit
af6b118745
1 changed files with 4 additions and 0 deletions
|
@ -73,6 +73,10 @@ func (r *Router) OpenAPI() *gabs.Container {
|
|||
doc.Set(r.description, "info", "description")
|
||||
}
|
||||
|
||||
if len(r.servers) > 0 {
|
||||
doc.Set(r.servers, "servers")
|
||||
}
|
||||
|
||||
components := &oaComponents{
|
||||
Schemas: map[string]*schema.Schema{},
|
||||
SecuritySchemes: r.securitySchemes,
|
||||
|
|
Loading…
Add table
Reference in a new issue