Skip to content

Commit 85024c2

Browse files
Query all secure bundles for Astra token
1 parent f23bf75 commit 85024c2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

astra/bundle.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,11 @@ func generateSecureBundleURLWithResponse(url, databaseID, token string, ctx cont
149149
if err != nil {
150150
return nil, err
151151
}
152-
res, err := client.GenerateSecureBundleURLWithResponse(ctx, databaseID, &astra.GenerateSecureBundleURLParams{})
152+
// return all bundles, as returning only one causes issue with response deserializing
153+
// client code generated by Go from Swagger definition does not support 'oneOf' clause
154+
// (https://github.com/oapi-codegen/oapi-codegen/issues/1665)
155+
returnAllBundles := true
156+
res, err := client.GenerateSecureBundleURLWithResponse(ctx, databaseID, &astra.GenerateSecureBundleURLParams{All: &returnAllBundles})
153157
if err != nil {
154158
return nil, fmt.Errorf("error generating bundle urls: %v", err)
155159
}

0 commit comments

Comments
 (0)