diff --git a/internal/api/openapi/pullreq.go b/internal/api/openapi/pullreq.go index 14eff0e04..0b9817847 100644 --- a/internal/api/openapi/pullreq.go +++ b/internal/api/openapi/pullreq.go @@ -384,7 +384,7 @@ func pullReqOperations(reflector *openapi3.Reflector) { reviewerAdd.WithTags("pullreq") reviewerAdd.WithMapOfAnything(map[string]interface{}{"operationId": "reviewerAddPullReq"}) _ = reflector.SetRequest(&reviewerAdd, new(reviewerAddPullReqRequest), http.MethodPut) - _ = reflector.SetJSONResponse(&reviewerAdd, nil, http.StatusNoContent) + _ = reflector.SetJSONResponse(&reviewerAdd, new(types.PullReqReviewer), http.StatusOK) _ = reflector.SetJSONResponse(&reviewerAdd, new(usererror.Error), http.StatusBadRequest) _ = reflector.SetJSONResponse(&reviewerAdd, new(usererror.Error), http.StatusInternalServerError) _ = reflector.SetJSONResponse(&reviewerAdd, new(usererror.Error), http.StatusUnauthorized) @@ -396,7 +396,7 @@ func pullReqOperations(reflector *openapi3.Reflector) { reviewerList.WithTags("pullreq") reviewerList.WithMapOfAnything(map[string]interface{}{"operationId": "reviewerListPullReq"}) _ = reflector.SetRequest(&reviewerList, new(reviewerListPullReqRequest), http.MethodGet) - _ = reflector.SetJSONResponse(&reviewerList, nil, http.StatusNoContent) + _ = reflector.SetJSONResponse(&reviewerList, new([]*types.PullReqReviewer), http.StatusOK) _ = reflector.SetJSONResponse(&reviewerList, new(usererror.Error), http.StatusBadRequest) _ = reflector.SetJSONResponse(&reviewerList, new(usererror.Error), http.StatusInternalServerError) _ = reflector.SetJSONResponse(&reviewerList, new(usererror.Error), http.StatusUnauthorized)