diff options
author | yp05327 <576951401@qq.com> | 2024-01-15 15:51:43 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-15 06:51:43 +0000 |
commit | ce0225c1b87d682f53b87496c8dd6ccee0396f0b (patch) | |
tree | 2ab05a9d17869c2a16e5d0e21522106043d823d5 /templates/swagger/v1_json.tmpl | |
parent | b820019fec1bd955b6cb9dba1ce2f2571924ae64 (diff) | |
download | gitea-ce0225c1b87d682f53b87496c8dd6ccee0396f0b.tar.gz gitea-ce0225c1b87d682f53b87496c8dd6ccee0396f0b.zip |
Forbid removing the last admin user (#28337)
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'templates/swagger/v1_json.tmpl')
-rw-r--r-- | templates/swagger/v1_json.tmpl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index de3bc331f1..c5d939fee5 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -677,6 +677,9 @@ "200": { "$ref": "#/responses/User" }, + "400": { + "$ref": "#/responses/error" + }, "403": { "$ref": "#/responses/forbidden" }, |