mirror of https://github.com/harness/drone.git
feat: [CODE-3450]: fix openapi for pullreq count API (#3635)
* fix openapi for pullreq count APImain
parent
28f012c577
commit
f2245fa79c
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue