aboutsummaryrefslogtreecommitdiffstats
path: root/templates/swagger
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2020-09-23 21:25:46 +0100
committerGitHub <noreply@github.com>2020-09-23 15:25:46 -0500
commit3f522cdaad6e8ca30aefbb642cc88dfedcc94495 (patch)
treeca3361e061aebd832fdb5e9787f18b205d6915cc /templates/swagger
parentf215e015df7d03684ecab28e3a27d24620d5c8a2 (diff)
downloadgitea-3f522cdaad6e8ca30aefbb642cc88dfedcc94495.tar.gz
gitea-3f522cdaad6e8ca30aefbb642cc88dfedcc94495.zip
Fix handling of migration errors (#12928)
* Fix handling of migration errors The migration type selection screen PR did not correctly handle errors and any user input error on the migration page would simply redirect back to the selection page. This meant that the error would simply be lost and the user would be none the wiser as to what happened. Signed-off-by: Andrew Thornton <art27@cantab.net> * make gen-swagger Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'templates/swagger')
-rw-r--r--templates/swagger/v1_json.tmpl10
1 files changed, 7 insertions, 3 deletions
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl
index 6792f7444b..6c0d8c1b32 100644
--- a/templates/swagger/v1_json.tmpl
+++ b/templates/swagger/v1_json.tmpl
@@ -13231,6 +13231,12 @@
},
"x-go-package": "code.gitea.io/gitea/modules/structs"
},
+ "GitServiceType": {
+ "description": "GitServiceType represents a git service",
+ "type": "integer",
+ "format": "int64",
+ "x-go-package": "code.gitea.io/gitea/modules/structs"
+ },
"GitTreeResponse": {
"description": "GitTreeResponse returns a git tree",
"type": "object",
@@ -13658,9 +13664,7 @@
"x-go-name": "RepoName"
},
"service": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "Service"
+ "$ref": "#/definitions/GitServiceType"
},
"uid": {
"type": "integer",