diff options
author | zeripath <art27@cantab.net> | 2020-09-23 21:25:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-23 15:25:46 -0500 |
commit | 3f522cdaad6e8ca30aefbb642cc88dfedcc94495 (patch) | |
tree | ca3361e061aebd832fdb5e9787f18b205d6915cc /templates/swagger | |
parent | f215e015df7d03684ecab28e3a27d24620d5c8a2 (diff) | |
download | gitea-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.tmpl | 10 |
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", |