Skip to content

Commit b1ed85b

Browse files
harryzcylunny
authored andcommitted
Document 409 error returned by repos/migrate api (go-gitea#19376)
* Document 409 error returned by repos/migrate api * Generate swagger spec Co-authored-by: Lunny Xiao <[email protected]>
1 parent e9f9601 commit b1ed85b

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

routers/api/v1/repo/migrate.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ func Migrate(ctx *context.APIContext) {
4848
// "$ref": "#/responses/Repository"
4949
// "403":
5050
// "$ref": "#/responses/forbidden"
51+
// "409":
52+
// description: The repository with the same name already exists.
5153
// "422":
5254
// "$ref": "#/responses/validationError"
5355

templates/swagger/v1_json.tmpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2222,6 +2222,9 @@
22222222
"403": {
22232223
"$ref": "#/responses/forbidden"
22242224
},
2225+
"409": {
2226+
"description": "The repository with the same name already exists."
2227+
},
22252228
"422": {
22262229
"$ref": "#/responses/validationError"
22272230
}

0 commit comments

Comments
 (0)