Skip to content

Commit 9ba9433

Browse files
authored
[go][client] Fix API docs example generation (#7489)
* [go][client] Fix API docs example * Generate samples
1 parent f3fbc7d commit 9ba9433

File tree

15 files changed

+64
-64
lines changed

15 files changed

+64
-64
lines changed

modules/openapi-generator/src/main/resources/go/api_doc.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func main() {
3939

4040
configuration := {{goImportAlias}}.NewConfiguration()
4141
api_client := {{goImportAlias}}.NewAPIClient(configuration)
42-
resp, r, err := api_client.{{classname}}.{{operationId}}(context.Background(), {{#requiredParams}}{{paramName}}{{^-last}}, {{/-last}}{{/requiredParams}}){{#optionalParams}}.{{{vendorExtensions.x-export-param-name}}}({{{paramName}}}){{/optionalParams}}.Execute()
42+
resp, r, err := api_client.{{classname}}.{{operationId}}(context.Background(){{#pathParams}}, {{paramName}}{{/pathParams}}){{#allParams}}{{^isPathParam}}.{{vendorExtensions.x-export-param-name}}({{paramName}}){{/isPathParam}}{{/allParams}}.Execute()
4343
if err != nil {
4444
fmt.Fprintf(os.Stderr, "Error when calling `{{classname}}.{{operationId}}``: %v\n", err)
4545
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)

samples/client/petstore/go/go-petstore/docs/AnotherFakeApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func main() {
3333

3434
configuration := openapiclient.NewConfiguration()
3535
api_client := openapiclient.NewAPIClient(configuration)
36-
resp, r, err := api_client.AnotherFakeApi.Call123TestSpecialTags(context.Background(), body).Execute()
36+
resp, r, err := api_client.AnotherFakeApi.Call123TestSpecialTags(context.Background()).Body(body).Execute()
3737
if err != nil {
3838
fmt.Fprintf(os.Stderr, "Error when calling `AnotherFakeApi.Call123TestSpecialTags``: %v\n", err)
3939
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)

samples/client/petstore/go/go-petstore/docs/FakeApi.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func main() {
4646

4747
configuration := openapiclient.NewConfiguration()
4848
api_client := openapiclient.NewAPIClient(configuration)
49-
resp, r, err := api_client.FakeApi.CreateXmlItem(context.Background(), xmlItem).Execute()
49+
resp, r, err := api_client.FakeApi.CreateXmlItem(context.Background()).XmlItem(xmlItem).Execute()
5050
if err != nil {
5151
fmt.Fprintf(os.Stderr, "Error when calling `FakeApi.CreateXmlItem``: %v\n", err)
5252
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -110,7 +110,7 @@ func main() {
110110

111111
configuration := openapiclient.NewConfiguration()
112112
api_client := openapiclient.NewAPIClient(configuration)
113-
resp, r, err := api_client.FakeApi.FakeOuterBooleanSerialize(context.Background(), ).Body(body).Execute()
113+
resp, r, err := api_client.FakeApi.FakeOuterBooleanSerialize(context.Background()).Body(body).Execute()
114114
if err != nil {
115115
fmt.Fprintf(os.Stderr, "Error when calling `FakeApi.FakeOuterBooleanSerialize``: %v\n", err)
116116
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -176,7 +176,7 @@ func main() {
176176

177177
configuration := openapiclient.NewConfiguration()
178178
api_client := openapiclient.NewAPIClient(configuration)
179-
resp, r, err := api_client.FakeApi.FakeOuterCompositeSerialize(context.Background(), ).Body(body).Execute()
179+
resp, r, err := api_client.FakeApi.FakeOuterCompositeSerialize(context.Background()).Body(body).Execute()
180180
if err != nil {
181181
fmt.Fprintf(os.Stderr, "Error when calling `FakeApi.FakeOuterCompositeSerialize``: %v\n", err)
182182
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -242,7 +242,7 @@ func main() {
242242

243243
configuration := openapiclient.NewConfiguration()
244244
api_client := openapiclient.NewAPIClient(configuration)
245-
resp, r, err := api_client.FakeApi.FakeOuterNumberSerialize(context.Background(), ).Body(body).Execute()
245+
resp, r, err := api_client.FakeApi.FakeOuterNumberSerialize(context.Background()).Body(body).Execute()
246246
if err != nil {
247247
fmt.Fprintf(os.Stderr, "Error when calling `FakeApi.FakeOuterNumberSerialize``: %v\n", err)
248248
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -308,7 +308,7 @@ func main() {
308308

309309
configuration := openapiclient.NewConfiguration()
310310
api_client := openapiclient.NewAPIClient(configuration)
311-
resp, r, err := api_client.FakeApi.FakeOuterStringSerialize(context.Background(), ).Body(body).Execute()
311+
resp, r, err := api_client.FakeApi.FakeOuterStringSerialize(context.Background()).Body(body).Execute()
312312
if err != nil {
313313
fmt.Fprintf(os.Stderr, "Error when calling `FakeApi.FakeOuterStringSerialize``: %v\n", err)
314314
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -374,7 +374,7 @@ func main() {
374374

375375
configuration := openapiclient.NewConfiguration()
376376
api_client := openapiclient.NewAPIClient(configuration)
377-
resp, r, err := api_client.FakeApi.TestBodyWithFileSchema(context.Background(), body).Execute()
377+
resp, r, err := api_client.FakeApi.TestBodyWithFileSchema(context.Background()).Body(body).Execute()
378378
if err != nil {
379379
fmt.Fprintf(os.Stderr, "Error when calling `FakeApi.TestBodyWithFileSchema``: %v\n", err)
380380
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -437,7 +437,7 @@ func main() {
437437

438438
configuration := openapiclient.NewConfiguration()
439439
api_client := openapiclient.NewAPIClient(configuration)
440-
resp, r, err := api_client.FakeApi.TestBodyWithQueryParams(context.Background(), query, body).Execute()
440+
resp, r, err := api_client.FakeApi.TestBodyWithQueryParams(context.Background()).Query(query).Body(body).Execute()
441441
if err != nil {
442442
fmt.Fprintf(os.Stderr, "Error when calling `FakeApi.TestBodyWithQueryParams``: %v\n", err)
443443
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -502,7 +502,7 @@ func main() {
502502

503503
configuration := openapiclient.NewConfiguration()
504504
api_client := openapiclient.NewAPIClient(configuration)
505-
resp, r, err := api_client.FakeApi.TestClientModel(context.Background(), body).Execute()
505+
resp, r, err := api_client.FakeApi.TestClientModel(context.Background()).Body(body).Execute()
506506
if err != nil {
507507
fmt.Fprintf(os.Stderr, "Error when calling `FakeApi.TestClientModel``: %v\n", err)
508508
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -581,7 +581,7 @@ func main() {
581581

582582
configuration := openapiclient.NewConfiguration()
583583
api_client := openapiclient.NewAPIClient(configuration)
584-
resp, r, err := api_client.FakeApi.TestEndpointParameters(context.Background(), number, double, patternWithoutDelimiter, byte_).Integer(integer).Int32_(int32_).Int64_(int64_).Float(float).String_(string_).Binary(binary).Date(date).DateTime(dateTime).Password(password).Callback(callback).Execute()
584+
resp, r, err := api_client.FakeApi.TestEndpointParameters(context.Background()).Number(number).Double(double).PatternWithoutDelimiter(patternWithoutDelimiter).Byte_(byte_).Integer(integer).Int32_(int32_).Int64_(int64_).Float(float).String_(string_).Binary(binary).Date(date).DateTime(dateTime).Password(password).Callback(callback).Execute()
585585
if err != nil {
586586
fmt.Fprintf(os.Stderr, "Error when calling `FakeApi.TestEndpointParameters``: %v\n", err)
587587
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -665,7 +665,7 @@ func main() {
665665

666666
configuration := openapiclient.NewConfiguration()
667667
api_client := openapiclient.NewAPIClient(configuration)
668-
resp, r, err := api_client.FakeApi.TestEnumParameters(context.Background(), ).EnumHeaderStringArray(enumHeaderStringArray).EnumHeaderString(enumHeaderString).EnumQueryStringArray(enumQueryStringArray).EnumQueryString(enumQueryString).EnumQueryInteger(enumQueryInteger).EnumQueryDouble(enumQueryDouble).EnumFormStringArray(enumFormStringArray).EnumFormString(enumFormString).Execute()
668+
resp, r, err := api_client.FakeApi.TestEnumParameters(context.Background()).EnumHeaderStringArray(enumHeaderStringArray).EnumHeaderString(enumHeaderString).EnumQueryStringArray(enumQueryStringArray).EnumQueryString(enumQueryString).EnumQueryInteger(enumQueryInteger).EnumQueryDouble(enumQueryDouble).EnumFormStringArray(enumFormStringArray).EnumFormString(enumFormString).Execute()
669669
if err != nil {
670670
fmt.Fprintf(os.Stderr, "Error when calling `FakeApi.TestEnumParameters``: %v\n", err)
671671
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -741,7 +741,7 @@ func main() {
741741

742742
configuration := openapiclient.NewConfiguration()
743743
api_client := openapiclient.NewAPIClient(configuration)
744-
resp, r, err := api_client.FakeApi.TestGroupParameters(context.Background(), requiredStringGroup, requiredBooleanGroup, requiredInt64Group).StringGroup(stringGroup).BooleanGroup(booleanGroup).Int64Group(int64Group).Execute()
744+
resp, r, err := api_client.FakeApi.TestGroupParameters(context.Background()).RequiredStringGroup(requiredStringGroup).RequiredBooleanGroup(requiredBooleanGroup).RequiredInt64Group(requiredInt64Group).StringGroup(stringGroup).BooleanGroup(booleanGroup).Int64Group(int64Group).Execute()
745745
if err != nil {
746746
fmt.Fprintf(os.Stderr, "Error when calling `FakeApi.TestGroupParameters``: %v\n", err)
747747
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -808,7 +808,7 @@ func main() {
808808

809809
configuration := openapiclient.NewConfiguration()
810810
api_client := openapiclient.NewAPIClient(configuration)
811-
resp, r, err := api_client.FakeApi.TestInlineAdditionalProperties(context.Background(), param).Execute()
811+
resp, r, err := api_client.FakeApi.TestInlineAdditionalProperties(context.Background()).Param(param).Execute()
812812
if err != nil {
813813
fmt.Fprintf(os.Stderr, "Error when calling `FakeApi.TestInlineAdditionalProperties``: %v\n", err)
814814
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -871,7 +871,7 @@ func main() {
871871

872872
configuration := openapiclient.NewConfiguration()
873873
api_client := openapiclient.NewAPIClient(configuration)
874-
resp, r, err := api_client.FakeApi.TestJsonFormData(context.Background(), param, param2).Execute()
874+
resp, r, err := api_client.FakeApi.TestJsonFormData(context.Background()).Param(param).Param2(param2).Execute()
875875
if err != nil {
876876
fmt.Fprintf(os.Stderr, "Error when calling `FakeApi.TestJsonFormData``: %v\n", err)
877877
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -940,7 +940,7 @@ func main() {
940940

941941
configuration := openapiclient.NewConfiguration()
942942
api_client := openapiclient.NewAPIClient(configuration)
943-
resp, r, err := api_client.FakeApi.TestQueryParameterCollectionFormat(context.Background(), pipe, ioutil, http, url, context).Execute()
943+
resp, r, err := api_client.FakeApi.TestQueryParameterCollectionFormat(context.Background()).Pipe(pipe).Ioutil(ioutil).Http(http).Url(url).Context(context).Execute()
944944
if err != nil {
945945
fmt.Fprintf(os.Stderr, "Error when calling `FakeApi.TestQueryParameterCollectionFormat``: %v\n", err)
946946
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)

samples/client/petstore/go/go-petstore/docs/FakeClassnameTags123Api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func main() {
3333

3434
configuration := openapiclient.NewConfiguration()
3535
api_client := openapiclient.NewAPIClient(configuration)
36-
resp, r, err := api_client.FakeClassnameTags123Api.TestClassname(context.Background(), body).Execute()
36+
resp, r, err := api_client.FakeClassnameTags123Api.TestClassname(context.Background()).Body(body).Execute()
3737
if err != nil {
3838
fmt.Fprintf(os.Stderr, "Error when calling `FakeClassnameTags123Api.TestClassname``: %v\n", err)
3939
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)

samples/client/petstore/go/go-petstore/docs/PetApi.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func main() {
3939

4040
configuration := openapiclient.NewConfiguration()
4141
api_client := openapiclient.NewAPIClient(configuration)
42-
resp, r, err := api_client.PetApi.AddPet(context.Background(), body).Execute()
42+
resp, r, err := api_client.PetApi.AddPet(context.Background()).Body(body).Execute()
4343
if err != nil {
4444
fmt.Fprintf(os.Stderr, "Error when calling `PetApi.AddPet``: %v\n", err)
4545
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -171,7 +171,7 @@ func main() {
171171

172172
configuration := openapiclient.NewConfiguration()
173173
api_client := openapiclient.NewAPIClient(configuration)
174-
resp, r, err := api_client.PetApi.FindPetsByStatus(context.Background(), status).Execute()
174+
resp, r, err := api_client.PetApi.FindPetsByStatus(context.Background()).Status(status).Execute()
175175
if err != nil {
176176
fmt.Fprintf(os.Stderr, "Error when calling `PetApi.FindPetsByStatus``: %v\n", err)
177177
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -237,7 +237,7 @@ func main() {
237237

238238
configuration := openapiclient.NewConfiguration()
239239
api_client := openapiclient.NewAPIClient(configuration)
240-
resp, r, err := api_client.PetApi.FindPetsByTags(context.Background(), tags).Execute()
240+
resp, r, err := api_client.PetApi.FindPetsByTags(context.Background()).Tags(tags).Execute()
241241
if err != nil {
242242
fmt.Fprintf(os.Stderr, "Error when calling `PetApi.FindPetsByTags``: %v\n", err)
243243
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -371,7 +371,7 @@ func main() {
371371

372372
configuration := openapiclient.NewConfiguration()
373373
api_client := openapiclient.NewAPIClient(configuration)
374-
resp, r, err := api_client.PetApi.UpdatePet(context.Background(), body).Execute()
374+
resp, r, err := api_client.PetApi.UpdatePet(context.Background()).Body(body).Execute()
375375
if err != nil {
376376
fmt.Fprintf(os.Stderr, "Error when calling `PetApi.UpdatePet``: %v\n", err)
377377
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -577,7 +577,7 @@ func main() {
577577

578578
configuration := openapiclient.NewConfiguration()
579579
api_client := openapiclient.NewAPIClient(configuration)
580-
resp, r, err := api_client.PetApi.UploadFileWithRequiredFile(context.Background(), petId, requiredFile).AdditionalMetadata(additionalMetadata).Execute()
580+
resp, r, err := api_client.PetApi.UploadFileWithRequiredFile(context.Background(), petId).RequiredFile(requiredFile).AdditionalMetadata(additionalMetadata).Execute()
581581
if err != nil {
582582
fmt.Fprintf(os.Stderr, "Error when calling `PetApi.UploadFileWithRequiredFile``: %v\n", err)
583583
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)

samples/client/petstore/go/go-petstore/docs/StoreApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ func main() {
103103

104104
configuration := openapiclient.NewConfiguration()
105105
api_client := openapiclient.NewAPIClient(configuration)
106-
resp, r, err := api_client.StoreApi.GetInventory(context.Background(), ).Execute()
106+
resp, r, err := api_client.StoreApi.GetInventory(context.Background()).Execute()
107107
if err != nil {
108108
fmt.Fprintf(os.Stderr, "Error when calling `StoreApi.GetInventory``: %v\n", err)
109109
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -233,7 +233,7 @@ func main() {
233233

234234
configuration := openapiclient.NewConfiguration()
235235
api_client := openapiclient.NewAPIClient(configuration)
236-
resp, r, err := api_client.StoreApi.PlaceOrder(context.Background(), body).Execute()
236+
resp, r, err := api_client.StoreApi.PlaceOrder(context.Background()).Body(body).Execute()
237237
if err != nil {
238238
fmt.Fprintf(os.Stderr, "Error when calling `StoreApi.PlaceOrder``: %v\n", err)
239239
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)

samples/client/petstore/go/go-petstore/docs/UserApi.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func main() {
4040

4141
configuration := openapiclient.NewConfiguration()
4242
api_client := openapiclient.NewAPIClient(configuration)
43-
resp, r, err := api_client.UserApi.CreateUser(context.Background(), body).Execute()
43+
resp, r, err := api_client.UserApi.CreateUser(context.Background()).Body(body).Execute()
4444
if err != nil {
4545
fmt.Fprintf(os.Stderr, "Error when calling `UserApi.CreateUser``: %v\n", err)
4646
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -102,7 +102,7 @@ func main() {
102102

103103
configuration := openapiclient.NewConfiguration()
104104
api_client := openapiclient.NewAPIClient(configuration)
105-
resp, r, err := api_client.UserApi.CreateUsersWithArrayInput(context.Background(), body).Execute()
105+
resp, r, err := api_client.UserApi.CreateUsersWithArrayInput(context.Background()).Body(body).Execute()
106106
if err != nil {
107107
fmt.Fprintf(os.Stderr, "Error when calling `UserApi.CreateUsersWithArrayInput``: %v\n", err)
108108
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -164,7 +164,7 @@ func main() {
164164

165165
configuration := openapiclient.NewConfiguration()
166166
api_client := openapiclient.NewAPIClient(configuration)
167-
resp, r, err := api_client.UserApi.CreateUsersWithListInput(context.Background(), body).Execute()
167+
resp, r, err := api_client.UserApi.CreateUsersWithListInput(context.Background()).Body(body).Execute()
168168
if err != nil {
169169
fmt.Fprintf(os.Stderr, "Error when calling `UserApi.CreateUsersWithListInput``: %v\n", err)
170170
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -363,7 +363,7 @@ func main() {
363363

364364
configuration := openapiclient.NewConfiguration()
365365
api_client := openapiclient.NewAPIClient(configuration)
366-
resp, r, err := api_client.UserApi.LoginUser(context.Background(), username, password).Execute()
366+
resp, r, err := api_client.UserApi.LoginUser(context.Background()).Username(username).Password(password).Execute()
367367
if err != nil {
368368
fmt.Fprintf(os.Stderr, "Error when calling `UserApi.LoginUser``: %v\n", err)
369369
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -427,7 +427,7 @@ func main() {
427427

428428
configuration := openapiclient.NewConfiguration()
429429
api_client := openapiclient.NewAPIClient(configuration)
430-
resp, r, err := api_client.UserApi.LogoutUser(context.Background(), ).Execute()
430+
resp, r, err := api_client.UserApi.LogoutUser(context.Background()).Execute()
431431
if err != nil {
432432
fmt.Fprintf(os.Stderr, "Error when calling `UserApi.LogoutUser``: %v\n", err)
433433
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -488,7 +488,7 @@ func main() {
488488

489489
configuration := openapiclient.NewConfiguration()
490490
api_client := openapiclient.NewAPIClient(configuration)
491-
resp, r, err := api_client.UserApi.UpdateUser(context.Background(), username, body).Execute()
491+
resp, r, err := api_client.UserApi.UpdateUser(context.Background(), username).Body(body).Execute()
492492
if err != nil {
493493
fmt.Fprintf(os.Stderr, "Error when calling `UserApi.UpdateUser``: %v\n", err)
494494
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)

samples/openapi3/client/extensions/x-auth-id-alias/go-experimental/docs/UsageApi.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func main() {
3535

3636
configuration := openapiclient.NewConfiguration()
3737
api_client := openapiclient.NewAPIClient(configuration)
38-
resp, r, err := api_client.UsageApi.AnyKey(context.Background(), ).Execute()
38+
resp, r, err := api_client.UsageApi.AnyKey(context.Background()).Execute()
3939
if err != nil {
4040
fmt.Fprintf(os.Stderr, "Error when calling `UsageApi.AnyKey``: %v\n", err)
4141
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -96,7 +96,7 @@ func main() {
9696

9797
configuration := openapiclient.NewConfiguration()
9898
api_client := openapiclient.NewAPIClient(configuration)
99-
resp, r, err := api_client.UsageApi.BothKeys(context.Background(), ).Execute()
99+
resp, r, err := api_client.UsageApi.BothKeys(context.Background()).Execute()
100100
if err != nil {
101101
fmt.Fprintf(os.Stderr, "Error when calling `UsageApi.BothKeys``: %v\n", err)
102102
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -157,7 +157,7 @@ func main() {
157157

158158
configuration := openapiclient.NewConfiguration()
159159
api_client := openapiclient.NewAPIClient(configuration)
160-
resp, r, err := api_client.UsageApi.KeyInHeader(context.Background(), ).Execute()
160+
resp, r, err := api_client.UsageApi.KeyInHeader(context.Background()).Execute()
161161
if err != nil {
162162
fmt.Fprintf(os.Stderr, "Error when calling `UsageApi.KeyInHeader``: %v\n", err)
163163
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -218,7 +218,7 @@ func main() {
218218

219219
configuration := openapiclient.NewConfiguration()
220220
api_client := openapiclient.NewAPIClient(configuration)
221-
resp, r, err := api_client.UsageApi.KeyInQuery(context.Background(), ).Execute()
221+
resp, r, err := api_client.UsageApi.KeyInQuery(context.Background()).Execute()
222222
if err != nil {
223223
fmt.Fprintf(os.Stderr, "Error when calling `UsageApi.KeyInQuery``: %v\n", err)
224224
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)

0 commit comments

Comments
 (0)