From f2245fa79c0a6158ac1527aa7434ed062b9ff2a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20Ga=C4=87e=C5=A1a?= Date: Fri, 4 Apr 2025 11:27:43 +0000 Subject: [PATCH] feat: [CODE-3450]: fix openapi for pullreq count API (#3635) * fix openapi for pullreq count API --- app/api/openapi/space.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/openapi/space.go b/app/api/openapi/space.go index 00b6755ac..af0a58939 100644 --- a/app/api/openapi/space.go +++ b/app/api/openapi/space.go @@ -692,7 +692,7 @@ func spaceOperations(reflector *openapi3.Reflector) { queryParameterAuthorID, queryParameterCommenterID, queryParameterMentionedID, queryParameterReviewerID, queryParameterReviewDecision) _ = reflector.SetRequest(&countPullReq, new(spaceRequest), http.MethodGet) - _ = reflector.SetJSONResponse(&countPullReq, new([]types.PullReqRepo), http.StatusOK) + _ = reflector.SetJSONResponse(&countPullReq, int64(0), http.StatusOK) _ = reflector.SetJSONResponse(&countPullReq, new(usererror.Error), http.StatusBadRequest) _ = reflector.SetJSONResponse(&countPullReq, new(usererror.Error), http.StatusInternalServerError) _ = reflector.SetJSONResponse(&countPullReq, new(usererror.Error), http.StatusUnauthorized)