diff --git a/routers/api/v1/org/mirror.go b/routers/api/v1/org/mirror.go index fa6b2385dfe..4f5933f4441 100644 --- a/routers/api/v1/org/mirror.go +++ b/routers/api/v1/org/mirror.go @@ -80,8 +80,6 @@ func RegenerateMirrorSSHKey(ctx *context.APIContext) { // type: string // "403": // "$ref": "#/responses/forbidden" - // "500": - // "$ref": "#/responses/internalServerError" keypair, err := mirror_service.RegenerateSSHKeypairForOrg(ctx, ctx.Org.Organization.ID) if err != nil { diff --git a/routers/api/v1/user/mirror.go b/routers/api/v1/user/mirror.go index 61f11271522..6ddc4946a1c 100644 --- a/routers/api/v1/user/mirror.go +++ b/routers/api/v1/user/mirror.go @@ -64,8 +64,6 @@ func RegenerateMirrorSSHKey(ctx *context.APIContext) { // type: string // fingerprint: // type: string - // "500": - // "$ref": "#/responses/internalServerError" keypair, err := mirror_service.RegenerateSSHKeypairForUser(ctx, ctx.Doer.ID) if err != nil { diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index 8230d564d70..0e8c310c12c 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -3390,9 +3390,6 @@ }, "403": { "$ref": "#/responses/forbidden" - }, - "500": { - "$ref": "#/responses/internalServerError" } } } @@ -19768,9 +19765,6 @@ } } } - }, - "500": { - "$ref": "#/responses/internalServerError" } } }