diff options
author | 6543 <6543@obermui.de> | 2020-05-28 23:25:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-28 17:25:54 -0400 |
commit | 560744fb3399b33b8006e5a6a54a473696cc5b34 (patch) | |
tree | 6cfb6b38c72f711069106591f07dae006cab6aa7 /templates | |
parent | 9f5576980411385a21668ce5930e53b89be67a5e (diff) | |
download | gitea-560744fb3399b33b8006e5a6a54a473696cc5b34.tar.gz gitea-560744fb3399b33b8006e5a6a54a473696cc5b34.zip |
Handle expected errors in AddGPGkey API (#11644)
* handle GPG Parse & Email Errors
* correct TEST
* update Swagger
* more Docu
Diffstat (limited to 'templates')
-rw-r--r-- | templates/swagger/v1_json.tmpl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index b7fa714a64..0cbe33bd24 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -9105,6 +9105,9 @@ "201": { "$ref": "#/responses/GPGKey" }, + "404": { + "$ref": "#/responses/notFound" + }, "422": { "$ref": "#/responses/validationError" } @@ -9165,6 +9168,9 @@ }, "403": { "$ref": "#/responses/forbidden" + }, + "404": { + "$ref": "#/responses/notFound" } } } |