Skip to content

Commit

Permalink
use success instead of ok
Browse files Browse the repository at this point in the history
Signed-off-by: Bailin He <[email protected]>
  • Loading branch information
bailinhe committed Sep 30, 2024
1 parent 95b8171 commit c7e9e18
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 46 deletions.
2 changes: 1 addition & 1 deletion internal/api/httpsrv/handler_group_members.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions openapi-v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -651,9 +651,9 @@ components:

AddGroupMembersResponse:
required:
- ok
- success
properties:
ok:
success:
type: boolean
description: true if the members were added successfully

Expand Down
86 changes: 43 additions & 43 deletions pkg/api/v1/types.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c7e9e18

Please sign in to comment.