Skip to content

Commit 5a52e4f

Browse files
CaiCandongGiteaBot
authored andcommitted
fix Missing 404 swagger response docs for /admin/users/{username} (go-gitea#26086)
close go-gitea#26079
1 parent 8d91936 commit 5a52e4f

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

routers/api/v1/admin/user.go

+2
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,8 @@ func DeleteUser(ctx *context.APIContext) {
312312
// "$ref": "#/responses/empty"
313313
// "403":
314314
// "$ref": "#/responses/forbidden"
315+
// "404":
316+
// "$ref": "#/responses/notFound"
315317
// "422":
316318
// "$ref": "#/responses/validationError"
317319

templates/swagger/v1_json.tmpl

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)