Skip to content

Commit 24b9599

Browse files
author
John Engelman
committed
fix: Append all credentials for OpenAPI security infos
1 parent faaee65 commit 24b9599

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: pkg/loader/openapi.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,9 @@ func getOpenAPITools(t *openapi3.T, defaultHost string) ([]types.Tool, error) {
295295
if err != nil {
296296
return nil, fmt.Errorf("failed to parse operation server URL: %w", err)
297297
}
298-
tool.Credentials = info.GetCredentialToolStrings(operationServerURL.Hostname())
298+
for _, cred := range info.GetCredentialToolStrings(operationServerURL.Hostname()) {
299+
tool.Credentials = append(tool.Credentials, cred)
300+
}
299301
}
300302
}
301303

0 commit comments

Comments
 (0)