Skip to content

Commit bdf46cf

Browse files
committed
chore: auto update client api apecloud/apecloud@e529ca9
1 parent c74ba10 commit bdf46cf

File tree

5 files changed

+7
-3
lines changed

5 files changed

+7
-3
lines changed

.generator/schemas/adminapi.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,8 @@ paths:
217217
schema:
218218
$ref: '#/components/schemas/apikeyWithSK'
219219
description: A successful response.
220+
'400':
221+
$ref: '#/components/responses/400'
220222
'401':
221223
$ref: '#/components/responses/401'
222224
'403':

.generator/schemas/openapi.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,8 @@ paths:
306306
schema:
307307
$ref: '#/components/schemas/apikeyWithSK'
308308
description: A successful response.
309+
'400':
310+
$ref: '#/components/responses/400'
309311
'401':
310312
$ref: '#/components/responses/401'
311313
'403':

apecloud

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit ee36483b809dbc2926bfc2551c1a3639b5d8c8b1
1+
Subproject commit e529ca9797063f52fab310db20f33c4cdf06afd0

api/kbcloud/admin/api_user.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func (a *UserApi) CreateUserApikey(ctx _context.Context, body ApikeyCreate) (Api
7575
ErrorBody: localVarBody,
7676
ErrorMessage: localVarHTTPResponse.Status,
7777
}
78-
if localVarHTTPResponse.StatusCode == 401 || localVarHTTPResponse.StatusCode == 403 {
78+
if localVarHTTPResponse.StatusCode == 400 || localVarHTTPResponse.StatusCode == 401 || localVarHTTPResponse.StatusCode == 403 {
7979
var v APIErrorResponse
8080
err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
8181
if err != nil {

api/kbcloud/api_user.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func (a *UserApi) CreateUserApikey(ctx _context.Context, body ApikeyCreate) (Api
7575
ErrorBody: localVarBody,
7676
ErrorMessage: localVarHTTPResponse.Status,
7777
}
78-
if localVarHTTPResponse.StatusCode == 401 || localVarHTTPResponse.StatusCode == 403 {
78+
if localVarHTTPResponse.StatusCode == 400 || localVarHTTPResponse.StatusCode == 401 || localVarHTTPResponse.StatusCode == 403 {
7979
var v APIErrorResponse
8080
err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
8181
if err != nil {

0 commit comments

Comments
 (0)