mirror of
https://github.com/harness/drone.git
synced 2025-05-13 23:50:47 +08:00
feat: fix repo rule swagger (#1103)
This commit is contained in:
parent
55124d6566
commit
e1927fd162
@ -897,7 +897,7 @@ func repoOperations(reflector *openapi3.Reflector) {
|
|||||||
repoRequest
|
repoRequest
|
||||||
Identifier string `path:"rule_identifier"`
|
Identifier string `path:"rule_identifier"`
|
||||||
}{}, http.MethodGet)
|
}{}, 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.StatusInternalServerError)
|
||||||
_ = reflector.SetJSONResponse(&opRuleGet, new(usererror.Error), http.StatusUnauthorized)
|
_ = reflector.SetJSONResponse(&opRuleGet, new(usererror.Error), http.StatusUnauthorized)
|
||||||
_ = reflector.SetJSONResponse(&opRuleGet, new(usererror.Error), http.StatusForbidden)
|
_ = reflector.SetJSONResponse(&opRuleGet, new(usererror.Error), http.StatusForbidden)
|
||||||
|
Loading…
Reference in New Issue
Block a user