fix Missing 404 swagger response docs for /admin/users/{username} (#26086) (#26089)

Backport #26086 by @CaiCandong

close #26079

Co-authored-by: caicandong <50507092+CaiCandong@users.noreply.github.com>
(cherry picked from commit 59713541b6)
This commit is contained in:
Giteabot 2023-07-24 06:07:39 -04:00 committed by Earl Warren
parent 942d02f8e9
commit 1cd4d4b00e
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
2 changed files with 5 additions and 0 deletions

View file

@ -312,6 +312,8 @@ func DeleteUser(ctx *context.APIContext) {
// "$ref": "#/responses/empty"
// "403":
// "$ref": "#/responses/forbidden"
// "404":
// "$ref": "#/responses/notFound"
// "422":
// "$ref": "#/responses/validationError"

View file

@ -620,6 +620,9 @@
"403": {
"$ref": "#/responses/forbidden"
},
"404": {
"$ref": "#/responses/notFound"
},
"422": {
"$ref": "#/responses/validationError"
}