From 3609cb57b93303cac520bb6783f9bb83b2851768 Mon Sep 17 00:00:00 2001 From: Chongyi Zheng Date: Mon, 11 Apr 2022 17:46:32 -0400 Subject: [PATCH 1/2] Document 409 error returned by repos/migrate api --- routers/api/v1/repo/migrate.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/routers/api/v1/repo/migrate.go b/routers/api/v1/repo/migrate.go index d2c2d8ba14631..f5851bfcae666 100644 --- a/routers/api/v1/repo/migrate.go +++ b/routers/api/v1/repo/migrate.go @@ -52,6 +52,8 @@ func Migrate(ctx *context.APIContext) { // "$ref": "#/responses/Repository" // "403": // "$ref": "#/responses/forbidden" + // "409": + // description: The repository with the same name already exists. // "422": // "$ref": "#/responses/validationError" From fbb8e17dc78f0c7308be0885e55d0e53fbadd0a0 Mon Sep 17 00:00:00 2001 From: Chongyi Zheng Date: Mon, 11 Apr 2022 19:28:03 -0400 Subject: [PATCH 2/2] Generate swagger spec --- templates/swagger/v1_json.tmpl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index 16b0c76400b0b..4bf3874bae284 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -2222,6 +2222,9 @@ "403": { "$ref": "#/responses/forbidden" }, + "409": { + "description": "The repository with the same name already exists." + }, "422": { "$ref": "#/responses/validationError" }