You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling RemoveReviewers when you want to only remove teams elicits a 422, due to how omitempty prevents the golang client from serializing the empty reviewers slice. This field is required on the server, so the golang client needed to send reviewers: [].
Workaround
Work around this by exploiting delete idempotency =) Just pass it a bogus username alongside real team slugs.
The text was updated successfully, but these errors were encountered:
Summary
Calling
RemoveReviewers
when you want to only remove teams elicits a 422, due to howomitempty
prevents the golang client from serializing the emptyreviewers
slice. This field is required on the server, so the golang client needed to sendreviewers: []
.Workaround
Work around this by exploiting delete idempotency =) Just pass it a bogus username alongside real team slugs.
The text was updated successfully, but these errors were encountered: