From c7e9e1825f0ab8ee0f800e07ea2ed3cacb7aac50 Mon Sep 17 00:00:00 2001 From: Bailin He Date: Mon, 30 Sep 2024 16:39:11 +0000 Subject: [PATCH] use success instead of ok Signed-off-by: Bailin He --- internal/api/httpsrv/handler_group_members.go | 2 +- openapi-v1.yaml | 4 +- pkg/api/v1/types.gen.go | 86 +++++++++---------- 3 files changed, 46 insertions(+), 46 deletions(-) diff --git a/internal/api/httpsrv/handler_group_members.go b/internal/api/httpsrv/handler_group_members.go index c0fbf62c..c46c0859 100644 --- a/internal/api/httpsrv/handler_group_members.go +++ b/internal/api/httpsrv/handler_group_members.go @@ -57,7 +57,7 @@ func (h *apiHandler) AddGroupMembers(ctx context.Context, req AddGroupMembersReq return nil, err } - return AddGroupMembers200JSONResponse{Ok: true}, nil + return AddGroupMembers200JSONResponse{Success: true}, nil } // ListGroupMembers lists the members of a group diff --git a/openapi-v1.yaml b/openapi-v1.yaml index 34eea901..bd1f33de 100644 --- a/openapi-v1.yaml +++ b/openapi-v1.yaml @@ -651,9 +651,9 @@ components: AddGroupMembersResponse: required: - - ok + - success properties: - ok: + success: type: boolean description: true if the members were added successfully diff --git a/pkg/api/v1/types.gen.go b/pkg/api/v1/types.gen.go index 4364699d..6ab5b0f3 100644 --- a/pkg/api/v1/types.gen.go +++ b/pkg/api/v1/types.gen.go @@ -25,8 +25,8 @@ type AddGroupMembers struct { // AddGroupMembersResponse defines model for AddGroupMembersResponse. type AddGroupMembersResponse struct { - // Ok true if the members were added successfully - Ok bool `json:"ok"` + // Success true if the members were added successfully + Success bool `json:"success"` } // CreateGroup defines model for CreateGroup. @@ -311,47 +311,47 @@ type CreateIssuerJSONRequestBody = CreateIssuer // Base64 encoded, gzipped, json marshaled Swagger object var swaggerSpec = []string{ - "H4sIAAAAAAAC/+xb3VPjOBL/V1S+e7irMjHsPh1vs7BFZY+54chQszWz1JRidxINtuSVZCBH+X+/0oe/", - "ZccJgQtz8wSxpVb3rz/U3ZKfvJAlKaNApfBOn7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WvwBH9s86ovAYVEeEytXd1OcViAWeeN1Njmy529HtUB", + "ybpOTLU0oJExKYQs9sf5WhcjiEbu7AFW68sg/pdKPMispPGxcTcvcYDu0mtePuvUBIV6JOIMVRtW4yqV", + "1OIOTWx+HldObySpm2gUNXtxkVWOWbg0pPrHu9LL7/L/BgAA//+ed8WcTkQAAA==", } // GetSwagger returns the content of the embedded swagger specification file