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