feat: [CODE-3450]: fix openapi for pullreq count API (#3635)

* fix openapi for pullreq count API
main
Marko Gaćeša 2025-04-04 11:27:43 +00:00 committed by Harness
parent 28f012c577
commit f2245fa79c
1 changed files with 1 additions and 1 deletions

View File

@ -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)