Skip to content

Commit 194aae7

Browse files
committed
...
1 parent d6302f9 commit 194aae7

File tree

5 files changed

+3
-23
lines changed

5 files changed

+3
-23
lines changed

coderd/apidoc/docs.go

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/apidoc/swagger.json

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/members.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ func (api *API) postOrganizationMember(rw http.ResponseWriter, r *http.Request)
8383
// @Summary Remove organization member
8484
// @ID remove-organization-member
8585
// @Security CoderSessionToken
86-
// @Produce json
8786
// @Tags Members
8887
// @Param organization path string true "Organization ID"
8988
// @Param user path string true "User ID, name, or me"
@@ -163,6 +162,7 @@ func (api *API) listMembers(rw http.ResponseWriter, r *http.Request) {
163162
// @ID assign-role-to-organization-member
164163
// @Security CoderSessionToken
165164
// @Accept json
165+
// @Produce json
166166
// @Tags Members
167167
// @Param organization path string true "Organization ID"
168168
// @Param user path string true "User ID, name, or me"

codersdk/users.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ func (c *Client) DeleteOrganizationMember(ctx context.Context, organizationID uu
402402
return err
403403
}
404404
defer res.Body.Close()
405-
if res.StatusCode != http.StatusOK {
405+
if res.StatusCode != http.StatusNoContent {
406406
return ReadBodyAsError(res)
407407
}
408408
return nil

docs/api/members.md

Lines changed: 1 addition & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)