Skip to content

Commit 20c983e

Browse files
johnrengelmanJohn Engelman
and
John Engelman
authored
fix: Append all credentials for OpenAPI security infos (#661)
Co-authored-by: John Engelman <[email protected]>
1 parent 9ea9b9c commit 20c983e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/loader/openapi.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ func getOpenAPITools(t *openapi3.T, defaultHost, source, targetToolName string)
305305
if err != nil {
306306
return nil, fmt.Errorf("failed to parse operation server URL: %w", err)
307307
}
308-
tool.Credentials = info.GetCredentialToolStrings(operationServerURL.Hostname())
308+
tool.Credentials = append(tool.Credentials, info.GetCredentialToolStrings(operationServerURL.Hostname())...)
309309
}
310310
}
311311

0 commit comments

Comments
 (0)