fix: [CODE-1926]: Fix incorrect error code in openai commit files api (#2049)

ui/offscreen-diff-contents
Shubham Agrawal 2024-05-24 06:30:11 +00:00 committed by Harness
parent 43897cd593
commit 226fc83849
1 changed files with 1 additions and 0 deletions

View File

@ -925,6 +925,7 @@ func repoOperations(reflector *openapi3.Reflector) {
_ = reflector.SetJSONResponse(&opCommitFiles, new(usererror.Error), http.StatusUnauthorized)
_ = reflector.SetJSONResponse(&opCommitFiles, new(usererror.Error), http.StatusForbidden)
_ = reflector.SetJSONResponse(&opCommitFiles, new(usererror.Error), http.StatusNotFound)
_ = reflector.SetJSONResponse(&opCommitFiles, new(usererror.Error), http.StatusPreconditionFailed)
_ = reflector.SetJSONResponse(&opCommitFiles, new(types.RulesViolations), http.StatusUnprocessableEntity)
_ = reflector.Spec.AddOperation(http.MethodPost, "/repos/{repo_ref}/commits", opCommitFiles)