Unverified Commit cb8fb910 authored by Simon Esposito's avatar Simon Esposito Committed by GitHub
Browse files

Add missing user_ids param from swagger group demote (#450)

Make user_ids param required on group demote api
parent 85a285cc
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -1748,6 +1748,16 @@
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "user_ids",
            "description": "The users to demote.",
            "in": "query",
            "required": true,
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        ],
        "tags": [
+1 −1
Original line number Diff line number Diff line
@@ -712,7 +712,7 @@ func (s *ApiServer) DemoteGroupUsers(ctx context.Context, in *api.DemoteGroupUse
	}

	if len(in.GetUserIds()) == 0 {
		return &empty.Empty{}, nil
		return nil, status.Error(codes.InvalidArgument, "User IDs must be set.")
	}

	userIDs := make([]uuid.UUID, 0, len(in.GetUserIds()))