feat: fix repo rule swagger (#1103)

pull/3484/head
Abhinav Singh 2024-03-07 01:07:26 +00:00 committed by Harness
parent 55124d6566
commit e1927fd162
1 changed files with 1 additions and 1 deletions

View File

@ -897,7 +897,7 @@ func repoOperations(reflector *openapi3.Reflector) {
repoRequest
Identifier string `path:"rule_identifier"`
}{}, http.MethodGet)
_ = reflector.SetJSONResponse(&opRuleGet, []rule{}, http.StatusOK)
_ = reflector.SetJSONResponse(&opRuleGet, rule{}, http.StatusOK)
_ = reflector.SetJSONResponse(&opRuleGet, new(usererror.Error), http.StatusInternalServerError)
_ = reflector.SetJSONResponse(&opRuleGet, new(usererror.Error), http.StatusUnauthorized)
_ = reflector.SetJSONResponse(&opRuleGet, new(usererror.Error), http.StatusForbidden)