Update parser.go
fix
This commit is contained in:
parent
80775cf7ef
commit
5c5157d75d
@ -58,7 +58,9 @@ func applyGenerate(p *plugin2.Plugin, host string, basePath string) (*swaggerObj
|
||||
newSecDefValue.Type = "apiKey"
|
||||
newSecDefValue.In = "header"
|
||||
s.SecurityDefinitions["apiKey"] = newSecDefValue
|
||||
s.Security = append(s.Security, swaggerSecurityRequirementObject{"apiKey": []string{}})
|
||||
|
||||
|
||||
requestResponseRefs := refMap{}
|
||||
renderServiceRoutes(p.Api.Service, p.Api.Service.Groups, s.Paths, requestResponseRefs)
|
||||
m := messageMap{}
|
||||
|
Loading…
x
Reference in New Issue
Block a user