From c3cff4ab082fb61db265d84f8d93fe4efe056ce6 Mon Sep 17 00:00:00 2001 From: Gitea Bot Date: Mon, 2 Nov 2026 03:39:31 +0000 Subject: [PATCH] Update the latest api documents (#627) Automated update of static/swagger-latest.json and static/openapi3-latest.json from the gitea main branch, opened by the "update api spec files" scheduled workflow. Preview: https://pr-627.docs-gitea-com.pages.dev Reviewed-on: https://gitea.com/gitea/docs/pulls/627 Reviewed-by: Lunny Xiao Co-authored-by: Gitea Bot --- static/openapi3-latest.json | 3404 +++++++++-------------------------- static/swagger-latest.json | 3379 +++++++++------------------------- 2 files changed, 1778 insertions(+), 5005 deletions(-) diff --git a/static/openapi3-latest.json b/static/openapi3-latest.json index 845f102d..48728a64 100644 --- a/static/openapi3-latest.json +++ b/static/openapi3-latest.json @@ -445,16 +445,6 @@ }, "description": "EmailList" }, - "EmptyRepository": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" - } - } - }, - "description": "EmptyRepository" - }, "FileDeleteResponse": { "content": { "application/json": { @@ -1675,9 +1665,6 @@ }, "description": "WorkflowRunsList" }, - "conflict": { - "description": "APIConflict is a conflict empty response" - }, "empty": { "description": "APIEmpty is an empty response" }, @@ -1696,57 +1683,6 @@ } } }, - "forbidden": { - "description": "APIForbiddenError is a forbidden error response", - "headers": { - "message": { - "schema": { - "type": "string" - } - }, - "url": { - "schema": { - "type": "string" - } - } - } - }, - "invalidTopicsError": { - "description": "APIInvalidTopicsError is error format response to invalid topics", - "headers": { - "invalidTopics": { - "schema": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "message": { - "schema": { - "type": "string" - } - } - } - }, - "notFound": { - "description": "APINotFound is a not found empty response" - }, - "repoArchivedError": { - "description": "APIRepoArchivedError is an error that is raised when an archived repo should be modified", - "headers": { - "message": { - "schema": { - "type": "string" - } - }, - "url": { - "schema": { - "type": "string" - } - } - } - }, "string": { "content": { "application/json": { @@ -1756,57 +1692,9 @@ } }, "description": "APIString is a string response" - }, - "unauthorized": { - "description": "APIUnauthorizedError is an unauthorized error response", - "headers": { - "message": { - "schema": { - "type": "string" - } - }, - "url": { - "schema": { - "type": "string" - } - } - } - }, - "validationError": { - "description": "APIValidationError is error format response related to input validation", - "headers": { - "message": { - "schema": { - "type": "string" - } - }, - "url": { - "schema": { - "type": "string" - } - } - } } }, "schemas": { - "APIError": { - "description": "APIError is an api error with a message", - "properties": { - "message": { - "description": "Message contains the error description", - "type": "string", - "x-go-name": "Message" - }, - "url": { - "description": "URL contains the documentation URL for this error", - "format": "uri", - "type": "string", - "x-go-name": "URL" - } - }, - "type": "object", - "x-go-package": "gitea.dev/modules/structs" - }, "AccessLevelName": { "enum": [ "none", @@ -3775,6 +3663,7 @@ "example": [ "all", "read:activitypub", + "write:commitstatus", "read:issue", "write:misc", "read:notification", @@ -8089,7 +7978,8 @@ "codebase", "codecommit", "bitbucketserver", - "forgejo" + "forgejo", + "bitbucket" ], "type": "string", "x-go-name": "Service" @@ -8618,6 +8508,14 @@ "type": "string", "x-go-name": "Name" }, + "properties": { + "additionalProperties": { + "type": "string" + }, + "description": "The type specific properties locating the package file, e.g. the distribution and component of a Debian package", + "type": "object", + "x-go-name": "Properties" + }, "sha1": { "description": "The SHA1 hash of the package file", "type": "string", @@ -11516,14 +11414,8 @@ "200": { "$ref": "#/components/responses/WorkflowJobsList" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" } }, "summary": "Lists all jobs", @@ -11549,11 +11441,8 @@ "200": { "$ref": "#/components/responses/RunnerList" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "Get all runners", @@ -11594,11 +11483,8 @@ "204": { "description": "runner has been deleted" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "Delete a global runner", @@ -11623,11 +11509,8 @@ "200": { "$ref": "#/components/responses/Runner" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "Get a global runner", @@ -11662,14 +11545,8 @@ "200": { "$ref": "#/components/responses/Runner" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" } }, "summary": "Update a global runner", @@ -11743,11 +11620,8 @@ "200": { "$ref": "#/components/responses/WorkflowRunsList" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "Lists all runs", @@ -11781,8 +11655,8 @@ "200": { "$ref": "#/components/responses/CronList" }, - "403": { - "$ref": "#/components/responses/forbidden" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List cron tasks", @@ -11809,8 +11683,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Run cron task", @@ -11844,8 +11718,8 @@ "200": { "$ref": "#/components/responses/EmailList" }, - "403": { - "$ref": "#/components/responses/forbidden" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List all emails", @@ -11887,8 +11761,8 @@ "200": { "$ref": "#/components/responses/EmailList" }, - "403": { - "$ref": "#/components/responses/forbidden" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Search all emails", @@ -12075,8 +11949,8 @@ "200": { "$ref": "#/components/responses/OrganizationList" }, - "403": { - "$ref": "#/components/responses/forbidden" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List all organizations", @@ -12150,8 +12024,8 @@ "200": { "$ref": "#/components/responses/PackageList" }, - "403": { - "$ref": "#/components/responses/forbidden" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List all packages", @@ -12193,8 +12067,8 @@ "200": { "$ref": "#/components/responses/StringSlice" }, - "403": { - "$ref": "#/components/responses/forbidden" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List unadopted repositories", @@ -12230,8 +12104,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Delete unadopted files", @@ -12265,11 +12139,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Adopt unadopted files as a repository", @@ -12392,11 +12263,8 @@ "200": { "$ref": "#/components/responses/UserList" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Search users according filter conditions", @@ -12420,17 +12288,8 @@ "201": { "$ref": "#/components/responses/User" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "409": { - "$ref": "#/components/responses/error" - }, - "422": { - "$ref": "#/components/responses/validationError" } }, "summary": "Create a user", @@ -12465,14 +12324,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Delete a user", @@ -12507,17 +12360,8 @@ "200": { "$ref": "#/components/responses/User" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "409": { - "$ref": "#/components/responses/error" - }, - "422": { - "$ref": "#/components/responses/validationError" } }, "summary": "Edit an existing user", @@ -12554,11 +12398,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Remove a badge from a user", @@ -12583,8 +12424,8 @@ "200": { "$ref": "#/components/responses/BadgeList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List a user's badges", @@ -12619,8 +12460,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Add a badge to a user", @@ -12657,11 +12498,8 @@ "201": { "$ref": "#/components/responses/PublicKey" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Add a public key on behalf of a user", @@ -12698,11 +12536,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Delete a user's public key", @@ -12740,11 +12575,8 @@ "201": { "$ref": "#/components/responses/Organization" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Create an organization", @@ -12782,11 +12614,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Rename a user", @@ -12824,20 +12653,8 @@ "201": { "$ref": "#/components/responses/Repository" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "409": { - "$ref": "#/components/responses/error" - }, - "422": { - "$ref": "#/components/responses/validationError" } }, "summary": "Create a repository on behalf of a user", @@ -12878,8 +12695,8 @@ "200": { "$ref": "#/components/responses/GitignoreTemplateInfo" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Returns information about a gitignore template", @@ -12920,8 +12737,8 @@ "200": { "$ref": "#/components/responses/LabelTemplateInfo" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Returns all labels in a template", @@ -12962,8 +12779,8 @@ "200": { "$ref": "#/components/responses/LicenseTemplateInfo" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Returns information about a license template", @@ -12989,8 +12806,8 @@ "200": { "$ref": "#/components/responses/MarkdownRender" }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Render a markdown document as HTML", @@ -13018,8 +12835,8 @@ "200": { "$ref": "#/components/responses/MarkdownRender" }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Render raw markdown as HTML", @@ -13045,8 +12862,8 @@ "200": { "$ref": "#/components/responses/MarkupRender" }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Render a markup document as HTML", @@ -13229,11 +13046,8 @@ "200": { "$ref": "#/components/responses/NotificationThread" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get notification thread by ID", @@ -13267,11 +13081,8 @@ "205": { "$ref": "#/components/responses/NotificationThread" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Mark notification thread as read by ID", @@ -13309,14 +13120,8 @@ "201": { "$ref": "#/components/responses/Repository" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Create a repository in an organization", @@ -13373,11 +13178,8 @@ "201": { "$ref": "#/components/responses/Organization" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Create an organization", @@ -13404,8 +13206,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Delete an organization", @@ -13430,8 +13232,8 @@ "200": { "$ref": "#/components/responses/Organization" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get an organization", @@ -13467,8 +13269,8 @@ "200": { "$ref": "#/components/responses/Organization" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Edit an organization", @@ -13519,11 +13321,8 @@ "200": { "$ref": "#/components/responses/WorkflowJobsList" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "Get org-level workflow jobs", @@ -13558,11 +13357,8 @@ "200": { "$ref": "#/components/responses/RunnerList" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "Get org-level runners", @@ -13623,11 +13419,8 @@ "204": { "description": "runner has been deleted" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "Delete an org-level runner", @@ -13661,11 +13454,8 @@ "200": { "$ref": "#/components/responses/Runner" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "Get an org-level runner", @@ -13709,14 +13499,8 @@ "200": { "$ref": "#/components/responses/Runner" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" } }, "summary": "Update an org-level runner", @@ -13799,11 +13583,8 @@ "200": { "$ref": "#/components/responses/WorkflowRunsList" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "Get org-level workflow runs", @@ -13846,8 +13627,8 @@ "200": { "$ref": "#/components/responses/SecretList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List an organization's actions secrets", @@ -13883,11 +13664,8 @@ "204": { "description": "delete one secret of the organization" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "Delete a secret in an organization", @@ -13934,11 +13712,8 @@ "204": { "description": "response when updating a secret" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "Create or Update a secret value in an organization", @@ -13981,11 +13756,8 @@ "200": { "$ref": "#/components/responses/VariableList" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "Get an org-level variables list", @@ -14027,11 +13799,8 @@ "204": { "description": "response when deleting a variable" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "Delete an org-level variable", @@ -14065,11 +13834,8 @@ "200": { "$ref": "#/components/responses/ActionVariable" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "Get an org-level variable", @@ -14113,13 +13879,7 @@ "201": { "description": "successfully created the org-level variable" }, - "400": { - "$ref": "#/components/responses/error" - }, - "409": { - "description": "variable name already exists." - }, - "500": { + "default": { "$ref": "#/components/responses/error" } }, @@ -14167,11 +13927,8 @@ "204": { "description": "response when updating an org-level variable" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "Update an org-level variable", @@ -14223,8 +13980,8 @@ "200": { "$ref": "#/components/responses/ActivityFeedsList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List an organization's activity feeds", @@ -14251,8 +14008,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Delete Avatar", @@ -14287,8 +14044,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Update Avatar", @@ -14365,11 +14122,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Unblock a user", @@ -14403,8 +14157,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Check if a user is blocked by the organization", @@ -14446,11 +14200,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Block a user", @@ -14493,8 +14244,8 @@ "200": { "$ref": "#/components/responses/HookList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List an organization's webhooks", @@ -14530,8 +14281,8 @@ "201": { "$ref": "#/components/responses/Hook" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Create a hook", @@ -14568,8 +14319,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Delete a hook", @@ -14604,8 +14355,8 @@ "200": { "$ref": "#/components/responses/Hook" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get a hook", @@ -14650,8 +14401,8 @@ "200": { "$ref": "#/components/responses/Hook" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Update a hook", @@ -14694,8 +14445,8 @@ "200": { "$ref": "#/components/responses/LabelList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List an organization's labels", @@ -14730,11 +14481,8 @@ "201": { "$ref": "#/components/responses/Label" }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Create a label for an organization", @@ -14757,13 +14505,12 @@ } }, { - "description": "id of the label to delete", + "description": "id of the label to delete, or its name when not numeric", "in": "path", "name": "id", "required": true, "schema": { - "format": "int64", - "type": "integer" + "type": "string" } } ], @@ -14771,8 +14518,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Delete a label", @@ -14793,13 +14540,12 @@ } }, { - "description": "id of the label to get", + "description": "id of the label to get, or its name when not numeric", "in": "path", "name": "id", "required": true, "schema": { - "format": "int64", - "type": "integer" + "type": "string" } } ], @@ -14807,8 +14553,8 @@ "200": { "$ref": "#/components/responses/Label" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get a single label", @@ -14829,13 +14575,12 @@ } }, { - "description": "id of the label to edit", + "description": "id of the label to edit, or its name when not numeric", "in": "path", "name": "id", "required": true, "schema": { - "format": "int64", - "type": "integer" + "type": "string" } } ], @@ -14853,11 +14598,8 @@ "200": { "$ref": "#/components/responses/Label" }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Update a label", @@ -14900,8 +14642,8 @@ "200": { "$ref": "#/components/responses/UserList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List an organization's members", @@ -14937,8 +14679,8 @@ "204": { "description": "member removed" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Remove a member from an organization", @@ -14975,8 +14717,8 @@ "303": { "description": "redirection to /orgs/{org}/public_members/{username}" }, - "404": { - "description": "user is not a member" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Check if a user is a member of an organization", @@ -15033,8 +14775,8 @@ "200": { "$ref": "#/components/responses/ProjectList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List an organization's projects", @@ -15069,11 +14811,8 @@ "201": { "$ref": "#/components/responses/Project" }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Create a project owned by an organization", @@ -15110,8 +14849,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Delete a project", @@ -15146,8 +14885,8 @@ "200": { "$ref": "#/components/responses/Project" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get a project", @@ -15192,11 +14931,8 @@ "200": { "$ref": "#/components/responses/Project" }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Edit a project", @@ -15249,8 +14985,8 @@ "200": { "$ref": "#/components/responses/ProjectColumnList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List a project's columns", @@ -15295,14 +15031,8 @@ "201": { "$ref": "#/components/responses/ProjectColumn" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Create a column in a project", @@ -15350,14 +15080,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Reorder a project's columns", @@ -15405,14 +15129,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Delete a project column", @@ -15457,8 +15175,8 @@ "200": { "$ref": "#/components/responses/ProjectColumn" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get a project column", @@ -15513,14 +15231,8 @@ "200": { "$ref": "#/components/responses/ProjectColumn" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Edit a project column", @@ -15568,11 +15280,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Set a project's default column", @@ -15635,8 +15344,8 @@ "200": { "$ref": "#/components/responses/IssueList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List the issues in a project column", @@ -15693,14 +15402,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "423": { - "$ref": "#/components/responses/repoArchivedError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Remove an issue from a project column", @@ -15756,17 +15459,8 @@ "201": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" - }, - "423": { - "$ref": "#/components/responses/repoArchivedError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Add an issue to a project column", @@ -15823,17 +15517,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" - }, - "423": { - "$ref": "#/components/responses/repoArchivedError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Move an issue between a project's columns", @@ -15886,8 +15571,8 @@ "200": { "$ref": "#/components/responses/ProjectWorkflowList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List a project's workflows", @@ -15932,14 +15617,8 @@ "201": { "$ref": "#/components/responses/ProjectWorkflow" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Create a project workflow", @@ -15986,11 +15665,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Delete a project workflow", @@ -16035,8 +15711,8 @@ "200": { "$ref": "#/components/responses/ProjectWorkflow" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get a project workflow", @@ -16091,14 +15767,8 @@ "200": { "$ref": "#/components/responses/ProjectWorkflow" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Edit a project workflow", @@ -16141,8 +15811,8 @@ "200": { "$ref": "#/components/responses/UserList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List an organization's public members", @@ -16178,11 +15848,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Conceal a user's membership", @@ -16216,8 +15883,8 @@ "204": { "description": "user is a public member" }, - "404": { - "description": "user is not a public member" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Check if a user is a public member of an organization", @@ -16251,11 +15918,8 @@ "204": { "description": "membership publicized" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Publicize a user's membership", @@ -16293,11 +15957,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Rename an organization", @@ -16327,11 +15988,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Delete all repositories in an organization", @@ -16372,8 +16030,8 @@ "200": { "$ref": "#/components/responses/RepositoryList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List an organization's repos", @@ -16408,14 +16066,8 @@ "201": { "$ref": "#/components/responses/Repository" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "Create a repository in an organization", @@ -16458,8 +16110,8 @@ "200": { "$ref": "#/components/responses/TeamList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List an organization's teams", @@ -16494,11 +16146,8 @@ "201": { "$ref": "#/components/responses/Team" }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Create a team", @@ -16575,8 +16224,8 @@ }, "description": "SearchResults of a successful search" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Search for teams within an organization", @@ -16659,8 +16308,8 @@ "200": { "$ref": "#/components/responses/PackageList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Gets all packages of an owner", @@ -16705,8 +16354,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Delete a package", @@ -16765,8 +16414,8 @@ "200": { "$ref": "#/components/responses/PackageList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Gets all versions of a package", @@ -16811,8 +16460,8 @@ "200": { "$ref": "#/components/responses/Package" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Gets the latest version of a package", @@ -16866,8 +16515,8 @@ "201": { "$ref": "#/components/responses/empty" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Link a package to a repository", @@ -16912,8 +16561,8 @@ "201": { "$ref": "#/components/responses/empty" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Unlink a package from a repository", @@ -16967,8 +16616,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Delete a package version", @@ -17020,8 +16669,8 @@ "200": { "$ref": "#/components/responses/Package" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Gets a package", @@ -17075,8 +16724,8 @@ "200": { "$ref": "#/components/responses/PackageFileList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Gets all files of a package", @@ -17250,11 +16899,8 @@ "200": { "$ref": "#/components/responses/IssueList" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "422": { - "$ref": "#/components/responses/validationError" } }, "summary": "Search for issues across the repositories that the user has access to", @@ -17280,14 +16926,8 @@ "201": { "$ref": "#/components/responses/Repository" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "409": { - "description": "The repository with the same name already exists." - }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Migrate a remote git repository", @@ -17445,8 +17085,8 @@ "200": { "$ref": "#/components/responses/SearchResults" }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Search for repositories", @@ -17482,11 +17122,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Delete a repository", @@ -17520,8 +17157,8 @@ "200": { "$ref": "#/components/responses/Repository" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get a repository", @@ -17566,14 +17203,8 @@ "200": { "$ref": "#/components/responses/Repository" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Edit a repository's properties. Only fields that are set will be changed.", @@ -17617,11 +17248,8 @@ "200": { "$ref": "#/components/responses/ArtifactsList" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "Lists all artifacts for a repository", @@ -17666,11 +17294,8 @@ "204": { "description": "No Content" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "Deletes a specific artifact for a workflow run", @@ -17713,11 +17338,8 @@ "200": { "$ref": "#/components/responses/Artifact" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "Gets a specific artifact for a workflow run", @@ -17762,11 +17384,8 @@ "302": { "description": "redirect to the blob download" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "Downloads a specific artifact for a workflow run redirects to blob url", @@ -17842,14 +17461,8 @@ "200": { "$ref": "#/components/responses/WorkflowJobsList" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" } }, "summary": "Lists all jobs for a repository", @@ -17894,11 +17507,8 @@ "200": { "$ref": "#/components/responses/WorkflowJob" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "Gets a specific workflow job for a workflow run", @@ -17943,11 +17553,8 @@ "200": { "description": "output blob content" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "Downloads the job logs for a workflow run", @@ -17991,11 +17598,8 @@ "200": { "$ref": "#/components/responses/RunnerList" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "Get repo-level runners", @@ -18074,11 +17678,8 @@ "204": { "description": "runner has been deleted" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "Delete a repo-level runner", @@ -18121,11 +17722,8 @@ "200": { "$ref": "#/components/responses/Runner" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "Get a repo-level runner", @@ -18178,14 +17776,8 @@ "200": { "$ref": "#/components/responses/Runner" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" } }, "summary": "Update a repo-level runner", @@ -18285,11 +17877,8 @@ "200": { "$ref": "#/components/responses/WorkflowRunsList" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "Lists all runs for a repository run", @@ -18334,11 +17923,8 @@ "204": { "description": "No Content" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "Delete a workflow run", @@ -18381,11 +17967,8 @@ "200": { "$ref": "#/components/responses/WorkflowRun" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "Gets a specific workflow run", @@ -18430,17 +18013,8 @@ "200": { "$ref": "#/components/responses/WorkflowRun" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "409": { - "$ref": "#/components/responses/conflict" } }, "summary": "Approve a workflow run that requires approval", @@ -18493,11 +18067,8 @@ "200": { "$ref": "#/components/responses/ArtifactsList" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "Lists all artifacts for a repository run", @@ -18551,11 +18122,8 @@ "200": { "$ref": "#/components/responses/WorkflowRun" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "Gets a specific workflow run attempt", @@ -18633,11 +18201,8 @@ "200": { "$ref": "#/components/responses/WorkflowJobsList" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "Lists all jobs for a workflow run attempt", @@ -18682,17 +18247,8 @@ "200": { "$ref": "#/components/responses/WorkflowRun" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "409": { - "$ref": "#/components/responses/conflict" } }, "summary": "Cancel a workflow run and its jobs", @@ -18738,17 +18294,8 @@ "200": { "$ref": "#/components/responses/WorkflowRun" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "409": { - "$ref": "#/components/responses/conflict" } }, "summary": "Force-cancel a workflow run", @@ -18833,14 +18380,8 @@ "200": { "$ref": "#/components/responses/WorkflowJobsList" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" } }, "summary": "Lists all jobs for a workflow run", @@ -18894,20 +18435,8 @@ "201": { "$ref": "#/components/responses/WorkflowJob" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "409": { - "$ref": "#/components/responses/error" - }, - "422": { - "$ref": "#/components/responses/validationError" } }, "summary": "Reruns a specific workflow job in a run", @@ -18952,8 +18481,8 @@ "200": { "description": "Logs archive" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Download workflow run logs as archive", @@ -18998,20 +18527,8 @@ "201": { "$ref": "#/components/responses/WorkflowRun" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "409": { - "$ref": "#/components/responses/error" - }, - "422": { - "$ref": "#/components/responses/validationError" } }, "summary": "Reruns an entire workflow run", @@ -19056,20 +18573,8 @@ "201": { "$ref": "#/components/responses/empty" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "409": { - "$ref": "#/components/responses/error" - }, - "422": { - "$ref": "#/components/responses/validationError" } }, "summary": "Reruns all failed jobs in a workflow run", @@ -19121,8 +18626,8 @@ "200": { "$ref": "#/components/responses/SecretList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List a repo's actions secrets", @@ -19167,11 +18672,8 @@ "204": { "description": "delete one secret of the repository" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "Delete a secret in a repository", @@ -19227,11 +18729,8 @@ "204": { "description": "response when updating a secret" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "Create or Update a secret value in a repository", @@ -19283,20 +18782,8 @@ "200": { "$ref": "#/components/responses/TasksList" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "409": { - "$ref": "#/components/responses/conflict" - }, - "422": { - "$ref": "#/components/responses/validationError" } }, "summary": "List a repository's action tasks", @@ -19348,11 +18835,8 @@ "200": { "$ref": "#/components/responses/VariableList" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "Get repo-level variables list", @@ -19403,11 +18887,8 @@ "204": { "description": "response when deleting a variable" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "Delete a repo-level variable", @@ -19450,11 +18931,8 @@ "200": { "$ref": "#/components/responses/ActionVariable" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "Get a repo-level variable", @@ -19507,13 +18985,7 @@ "201": { "description": "response when creating a repo-level variable" }, - "400": { - "$ref": "#/components/responses/error" - }, - "409": { - "description": "variable name already exists." - }, - "500": { + "default": { "$ref": "#/components/responses/error" } }, @@ -19570,11 +19042,8 @@ "204": { "description": "response when updating a repo-level variable" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "Update a repo-level variable", @@ -19610,19 +19079,7 @@ "200": { "$ref": "#/components/responses/ActionWorkflowList" }, - "400": { - "$ref": "#/components/responses/error" - }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" - }, - "500": { + "default": { "$ref": "#/components/responses/error" } }, @@ -19668,19 +19125,7 @@ "200": { "$ref": "#/components/responses/ActionWorkflow" }, - "400": { - "$ref": "#/components/responses/error" - }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" - }, - "500": { + "default": { "$ref": "#/components/responses/error" } }, @@ -19726,17 +19171,8 @@ "204": { "description": "No Content" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" } }, "summary": "Disable a workflow", @@ -19811,17 +19247,8 @@ "204": { "description": "No Content, if return_run_details is missing or false" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" } }, "summary": "Create a workflow dispatch event", @@ -19866,20 +19293,8 @@ "204": { "description": "No Content" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "409": { - "$ref": "#/components/responses/conflict" - }, - "422": { - "$ref": "#/components/responses/validationError" } }, "summary": "Enable a workflow", @@ -19997,14 +19412,8 @@ "200": { "$ref": "#/components/responses/WorkflowRunsList" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "List runs for a workflow", @@ -20065,8 +19474,8 @@ "200": { "$ref": "#/components/responses/ActivityFeedsList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List a repository's activity feeds", @@ -20124,8 +19533,8 @@ "200": { "description": "success" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get an archive of a repository", @@ -20161,8 +19570,8 @@ "200": { "$ref": "#/components/responses/UserList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Return all users that have write access and can be assigned to issues", @@ -20207,11 +19616,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "Check if a user can be assigned to issues in a repository", @@ -20247,8 +19653,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Delete avatar", @@ -20292,8 +19698,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Update avatar", @@ -20371,17 +19777,8 @@ "201": { "$ref": "#/components/responses/BranchProtection" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" - }, - "423": { - "$ref": "#/components/responses/repoArchivedError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Create a branch protections for a repository", @@ -20427,14 +19824,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" - }, - "423": { - "$ref": "#/components/responses/repoArchivedError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Update the priorities of branch protections for a repository.", @@ -20479,8 +19870,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Delete a specific branch protection for the repository", @@ -20523,8 +19914,8 @@ "200": { "$ref": "#/components/responses/BranchProtection" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get a specific branch protection for the repository", @@ -20577,14 +19968,8 @@ "200": { "$ref": "#/components/responses/BranchProtection" }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" - }, - "423": { - "$ref": "#/components/responses/repoArchivedError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Edit a branch protections for a repository. Only fields that are set will be changed", @@ -20686,17 +20071,8 @@ "201": { "$ref": "#/components/responses/Branch" }, - "403": { - "description": "The branch is archived or a mirror." - }, - "404": { - "description": "The old branch does not exist." - }, - "409": { - "description": "The branch with the same name already exists." - }, - "423": { - "$ref": "#/components/responses/repoArchivedError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Create a branch", @@ -20741,14 +20117,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "403": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "423": { - "$ref": "#/components/responses/repoArchivedError" } }, "summary": "Delete a specific branch from a repository", @@ -20791,8 +20161,8 @@ "200": { "$ref": "#/components/responses/Branch" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Retrieve a specific branch from a repository, including its effective branch protection", @@ -20845,14 +20215,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Rename a branch", @@ -20905,17 +20269,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "409": { - "$ref": "#/components/responses/conflict" - }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Update a branch reference to a new commit", @@ -20967,8 +20322,8 @@ "200": { "$ref": "#/components/responses/UserList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List a repository's collaborators", @@ -21013,11 +20368,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Delete a collaborator from a repository", @@ -21060,11 +20412,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Check if a user is a collaborator of a repository", @@ -21117,14 +20466,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Add or Update a collaborator to a repository", @@ -21169,11 +20512,8 @@ "200": { "$ref": "#/components/responses/RepoCollaboratorPermission" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get repository permissions for a user", @@ -21291,11 +20631,8 @@ "200": { "$ref": "#/components/responses/CommitList" }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "409": { - "$ref": "#/components/responses/EmptyRepository" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get a list of all commits from a repository", @@ -21356,11 +20693,8 @@ "200": { "$ref": "#/components/responses/CombinedStatus" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "Get a commit's combined status, by branch/tag/commit reference", @@ -21451,11 +20785,8 @@ "200": { "$ref": "#/components/responses/CommitStatusList" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "Get a commit's statuses, by branch/tag/commit reference", @@ -21500,8 +20831,8 @@ "200": { "$ref": "#/components/responses/PullRequest" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get the merged pull request of the commit", @@ -21575,11 +20906,8 @@ "200": { "$ref": "#/components/responses/Compare" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "Get commit comparison information", @@ -21624,8 +20952,8 @@ "200": { "$ref": "#/components/responses/ContentsListResponse" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Gets the metadata of all the entries of the root dir.", @@ -21670,17 +20998,8 @@ "201": { "$ref": "#/components/responses/FilesResponse" }, - "403": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/error" - }, - "423": { - "$ref": "#/components/responses/repoArchivedError" } }, "summary": "Modify multiple files in a repository", @@ -21742,8 +21061,8 @@ "200": { "$ref": "#/components/responses/ContentsExtResponse" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "The extended \"contents\" API, to get file metadata and/or content, or list a directory.", @@ -21799,20 +21118,8 @@ "200": { "$ref": "#/components/responses/FileDeleteResponse" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "403": { - "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/error" - }, - "422": { - "$ref": "#/components/responses/error" - }, - "423": { - "$ref": "#/components/responses/repoArchivedError" } }, "summary": "Delete a file in a repository", @@ -21864,8 +21171,8 @@ "200": { "$ref": "#/components/responses/ContentsResponse" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Gets the metadata and contents (if a file) of an entry in a repository, or a list of entries if a dir.", @@ -21919,17 +21226,8 @@ "201": { "$ref": "#/components/responses/FileResponse" }, - "403": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/error" - }, - "423": { - "$ref": "#/components/responses/repoArchivedError" } }, "summary": "Create a file in a repository", @@ -21986,17 +21284,8 @@ "201": { "$ref": "#/components/responses/FileResponse" }, - "403": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/error" - }, - "423": { - "$ref": "#/components/responses/repoArchivedError" } }, "summary": "Update a file in a repository if SHA is set, or create the file if SHA is not set", @@ -22043,11 +21332,8 @@ "200": { "$ref": "#/components/responses/FileResponse" }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "423": { - "$ref": "#/components/responses/repoArchivedError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Apply diff patch to repository", @@ -22100,8 +21386,8 @@ "200": { "description": "success" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get the EditorConfig definitions of a file in a repository", @@ -22155,8 +21441,8 @@ "200": { "$ref": "#/components/responses/ContentsListResponse" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get the metadata and contents of requested files", @@ -22210,8 +21496,8 @@ "200": { "$ref": "#/components/responses/ContentsListResponse" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get the metadata and contents of requested files", @@ -22263,8 +21549,8 @@ "200": { "$ref": "#/components/responses/RepositoryList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List a repository's forks", @@ -22308,17 +21594,8 @@ "202": { "$ref": "#/components/responses/Repository" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "409": { - "description": "The repository with the same name already exists." - }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Fork a repository", @@ -22363,11 +21640,8 @@ "200": { "$ref": "#/components/responses/GitBlobResponse" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "Gets the blob of a repository.", @@ -22436,11 +21710,8 @@ "200": { "$ref": "#/components/responses/Commit" }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get a single commit from a repository, it has a GitHub-compatible alias \"/repos/{owner}/{repo}/commits/{ref}\"", @@ -22498,8 +21769,8 @@ "200": { "$ref": "#/components/responses/string" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get a commit's diff or patch", @@ -22560,11 +21831,8 @@ "200": { "$ref": "#/components/responses/Note" }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get a note corresponding to a single commit from a repository", @@ -22600,8 +21868,8 @@ "200": { "$ref": "#/components/responses/ReferenceList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get specified ref or filtered repository's refs", @@ -22646,8 +21914,8 @@ "200": { "$ref": "#/components/responses/ReferenceList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get specified ref or filtered repository's refs", @@ -22692,11 +21960,8 @@ "200": { "$ref": "#/components/responses/AnnotatedTag" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "Gets the tag object of an annotated tag (not lightweight tags)", @@ -22765,11 +22030,8 @@ "200": { "$ref": "#/components/responses/GitTreeResponse" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "Gets the tree of a repository.", @@ -22821,8 +22083,8 @@ "200": { "$ref": "#/components/responses/HookList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List the hooks in a repository", @@ -22866,8 +22128,8 @@ "201": { "$ref": "#/components/responses/Hook" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Create a hook", @@ -22903,8 +22165,8 @@ "200": { "$ref": "#/components/responses/GitHookList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List the Git hooks in a repository", @@ -22949,8 +22211,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Delete a Git hook in a repository", @@ -22993,8 +22255,8 @@ "200": { "$ref": "#/components/responses/GitHook" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get a Git hook", @@ -23047,8 +22309,8 @@ "200": { "$ref": "#/components/responses/GitHook" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Edit a Git hook in a repository", @@ -23094,8 +22356,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Delete a hook in a repository", @@ -23139,8 +22401,8 @@ "200": { "$ref": "#/components/responses/Hook" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get a hook", @@ -23194,8 +22456,8 @@ "200": { "$ref": "#/components/responses/Hook" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Edit a hook in a repository", @@ -23257,8 +22519,8 @@ "200": { "$ref": "#/components/responses/HookDeliveryList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List the deliveries of a hook in a repository", @@ -23313,8 +22575,8 @@ "200": { "$ref": "#/components/responses/HookDelivery" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get a delivery of a hook in a repository", @@ -23368,8 +22630,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Test a push webhook", @@ -23405,8 +22667,8 @@ "200": { "$ref": "#/components/responses/RepoIssueConfig" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Returns the issue config for a repo", @@ -23442,8 +22704,8 @@ "200": { "$ref": "#/components/responses/RepoIssueConfigValidation" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Returns the validation information for a issue config", @@ -23479,8 +22741,8 @@ "200": { "$ref": "#/components/responses/IssueTemplates" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get available issue templates for a repository", @@ -23623,8 +22885,8 @@ "200": { "$ref": "#/components/responses/IssueList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List a repository's issues", @@ -23668,20 +22930,8 @@ "201": { "$ref": "#/components/responses/Issue" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "412": { + "default": { "$ref": "#/components/responses/error" - }, - "422": { - "$ref": "#/components/responses/validationError" - }, - "423": { - "$ref": "#/components/responses/repoArchivedError" } }, "summary": "Create an issue. If using deadline only the date will be taken into account, and time of day ignored.", @@ -23751,8 +23001,8 @@ "200": { "$ref": "#/components/responses/CommentList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List all comments in a repository", @@ -23798,11 +23048,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Delete a comment", @@ -23849,11 +23096,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get a comment", @@ -23910,14 +23154,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "423": { - "$ref": "#/components/responses/repoArchivedError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Edit a comment", @@ -23963,7 +23201,7 @@ "200": { "$ref": "#/components/responses/AttachmentList" }, - "404": { + "default": { "$ref": "#/components/responses/error" } }, @@ -24036,23 +23274,8 @@ "201": { "$ref": "#/components/responses/Attachment" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/error" - }, - "413": { - "$ref": "#/components/responses/error" - }, - "422": { - "$ref": "#/components/responses/validationError" - }, - "423": { - "$ref": "#/components/responses/repoArchivedError" } }, "summary": "Create a comment attachment", @@ -24108,11 +23331,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "404": { + "default": { "$ref": "#/components/responses/error" - }, - "423": { - "$ref": "#/components/responses/repoArchivedError" } }, "summary": "Delete a comment attachment", @@ -24166,7 +23386,7 @@ "200": { "$ref": "#/components/responses/Attachment" }, - "404": { + "default": { "$ref": "#/components/responses/error" } }, @@ -24231,14 +23451,8 @@ "201": { "$ref": "#/components/responses/Attachment" }, - "404": { + "default": { "$ref": "#/components/responses/error" - }, - "422": { - "$ref": "#/components/responses/validationError" - }, - "423": { - "$ref": "#/components/responses/repoArchivedError" } }, "summary": "Edit a comment attachment", @@ -24294,11 +23508,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Remove a reaction from a comment of an issue", @@ -24342,11 +23553,8 @@ "200": { "$ref": "#/components/responses/ReactionList" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get a list of reactions from a comment of an issue", @@ -24403,11 +23611,8 @@ "201": { "$ref": "#/components/responses/Reaction" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Add a reaction to a comment of an issue", @@ -24443,8 +23648,8 @@ "200": { "$ref": "#/components/responses/IssueList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List a repo's pinned issues", @@ -24490,14 +23695,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "423": { - "$ref": "#/components/responses/repoArchivedError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Delete an issue", @@ -24541,8 +23740,8 @@ "200": { "$ref": "#/components/responses/Issue" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get an issue", @@ -24597,17 +23796,8 @@ "201": { "$ref": "#/components/responses/Issue" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "412": { + "default": { "$ref": "#/components/responses/error" - }, - "423": { - "$ref": "#/components/responses/repoArchivedError" } }, "summary": "Edit an issue. If using deadline only the date will be taken into account, and time of day ignored.", @@ -24653,7 +23843,7 @@ "200": { "$ref": "#/components/responses/AttachmentList" }, - "404": { + "default": { "$ref": "#/components/responses/error" } }, @@ -24726,20 +23916,8 @@ "201": { "$ref": "#/components/responses/Attachment" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/error" - }, - "413": { - "$ref": "#/components/responses/error" - }, - "422": { - "$ref": "#/components/responses/validationError" - }, - "423": { - "$ref": "#/components/responses/repoArchivedError" } }, "summary": "Create an issue attachment", @@ -24795,11 +23973,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "404": { + "default": { "$ref": "#/components/responses/error" - }, - "423": { - "$ref": "#/components/responses/repoArchivedError" } }, "summary": "Delete an issue attachment", @@ -24853,7 +24028,7 @@ "200": { "$ref": "#/components/responses/Attachment" }, - "404": { + "default": { "$ref": "#/components/responses/error" } }, @@ -24918,14 +24093,8 @@ "201": { "$ref": "#/components/responses/Attachment" }, - "404": { + "default": { "$ref": "#/components/responses/error" - }, - "422": { - "$ref": "#/components/responses/validationError" - }, - "423": { - "$ref": "#/components/responses/repoArchivedError" } }, "summary": "Edit an issue attachment", @@ -24982,14 +24151,8 @@ "200": { "$ref": "#/components/responses/Issue" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Remove assignees from an issue", @@ -25044,17 +24207,8 @@ "201": { "$ref": "#/components/responses/Issue" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" } }, "summary": "Add assignees to an issue", @@ -25109,11 +24263,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "Check if a user can be assigned to an issue", @@ -25168,8 +24319,8 @@ "200": { "$ref": "#/components/responses/Issue" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Unblock the issue given in the body by the issue in path", @@ -25228,8 +24379,8 @@ "200": { "$ref": "#/components/responses/IssueList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List issues that are blocked by this issue", @@ -25282,8 +24433,8 @@ "201": { "$ref": "#/components/responses/Issue" }, - "404": { - "description": "the issue does not exist" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Block the issue given in the body by the issue in path", @@ -25347,8 +24498,8 @@ "200": { "$ref": "#/components/responses/CommentList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List all comments on an issue", @@ -25402,14 +24553,8 @@ "201": { "$ref": "#/components/responses/Comment" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "423": { - "$ref": "#/components/responses/repoArchivedError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Add a comment to an issue", @@ -25465,11 +24610,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Delete a comment", @@ -25536,11 +24678,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Edit a comment", @@ -25596,11 +24735,8 @@ "201": { "$ref": "#/components/responses/IssueDeadline" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Set an issue deadline. If set to null, the deadline is deleted. If using deadline only the date will be taken into account, and time of day ignored.", @@ -25655,11 +24791,8 @@ "200": { "$ref": "#/components/responses/Issue" }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "423": { - "$ref": "#/components/responses/repoArchivedError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Remove an issue dependency", @@ -25718,8 +24851,8 @@ "200": { "$ref": "#/components/responses/IssueList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List an issue's dependencies, i.e all issues that block this issue.", @@ -25772,11 +24905,8 @@ "201": { "$ref": "#/components/responses/Issue" }, - "404": { - "description": "the issue does not exist" - }, - "423": { - "$ref": "#/components/responses/repoArchivedError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Make the issue in the url depend on the issue in the form.", @@ -25822,14 +24952,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "423": { - "$ref": "#/components/responses/repoArchivedError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Remove all labels from an issue", @@ -25873,8 +24997,8 @@ "200": { "$ref": "#/components/responses/LabelList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get an issue's labels", @@ -25928,14 +25052,8 @@ "200": { "$ref": "#/components/responses/LabelList" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "423": { - "$ref": "#/components/responses/repoArchivedError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Add a label to an issue", @@ -25989,14 +25107,8 @@ "200": { "$ref": "#/components/responses/LabelList" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "423": { - "$ref": "#/components/responses/repoArchivedError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Replace an issue's labels", @@ -26052,17 +25164,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" - }, - "423": { - "$ref": "#/components/responses/repoArchivedError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Remove a label from an issue", @@ -26108,11 +25211,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Unlock an issue", @@ -26166,11 +25266,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Lock an issue", @@ -26216,11 +25313,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Unpin an Issue", @@ -26264,11 +25358,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Pin an Issue", @@ -26324,11 +25415,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Moves the Pin to the given Position", @@ -26384,11 +25472,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Remove a reaction from an issue", @@ -26448,11 +25533,8 @@ "200": { "$ref": "#/components/responses/ReactionList" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get a list reactions of an issue", @@ -26509,11 +25591,8 @@ "201": { "$ref": "#/components/responses/Reaction" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Add a reaction to an issue", @@ -26559,14 +25638,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "403": { - "description": "Not repo writer, user does not have rights to toggle stopwatch" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "409": { - "description": "Cannot cancel a non-existent stopwatch" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Delete an issue's existing stopwatch.", @@ -26612,14 +25685,8 @@ "201": { "$ref": "#/components/responses/empty" }, - "403": { - "description": "Not repo writer, user does not have rights to toggle stopwatch" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "409": { - "description": "Cannot start a stopwatch again if it already exists" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Start stopwatch on an issue.", @@ -26665,14 +25732,8 @@ "201": { "$ref": "#/components/responses/empty" }, - "403": { - "description": "Not repo writer, user does not have rights to toggle stopwatch" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "409": { - "description": "Cannot stop a non-existent stopwatch" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Stop an issue's existing stopwatch.", @@ -26734,8 +25795,8 @@ "200": { "$ref": "#/components/responses/UserList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get users who subscribed on an issue.", @@ -26781,8 +25842,8 @@ "200": { "$ref": "#/components/responses/WatchInfo" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Check if user is subscribed to an issue", @@ -26843,8 +25904,8 @@ "304": { "description": "User can only subscribe itself if he is no admin" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Unsubscribe user from issue", @@ -26903,8 +25964,8 @@ "304": { "description": "User can only subscribe itself if he is no admin" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Subscribe user to issue", @@ -26984,8 +26045,8 @@ "200": { "$ref": "#/components/responses/TimelineList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List all comments and events on an issue", @@ -27031,14 +26092,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "Reset a tracked time of an issue", @@ -27124,8 +26179,8 @@ "200": { "$ref": "#/components/responses/TrackedTimeList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List an issue's tracked times", @@ -27179,14 +26234,8 @@ "200": { "$ref": "#/components/responses/TrackedTime" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "Add tracked time to a issue", @@ -27242,14 +26291,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "Delete specific tracked time", @@ -27317,8 +26360,8 @@ "200": { "$ref": "#/components/responses/DeployKeyList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List a repository's keys", @@ -27362,11 +26405,8 @@ "201": { "$ref": "#/components/responses/DeployKey" }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Add a key to a repository", @@ -27412,11 +26452,8 @@ "201": { "$ref": "#/components/responses/DeployKey" }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Add a deploy token to a repository, it authenticates git over HTTPS", @@ -27462,11 +26499,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Delete a key from a repository", @@ -27510,8 +26544,8 @@ "200": { "$ref": "#/components/responses/DeployKey" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get a repository's key by id", @@ -27563,8 +26597,8 @@ "200": { "$ref": "#/components/responses/LabelList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get all of a repository's labels", @@ -27608,11 +26642,8 @@ "201": { "$ref": "#/components/responses/Label" }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Create a label", @@ -27644,13 +26675,12 @@ } }, { - "description": "id of the label to delete", + "description": "id of the label to delete, or its name when not numeric", "in": "path", "name": "id", "required": true, "schema": { - "format": "int64", - "type": "integer" + "type": "string" } } ], @@ -27658,8 +26688,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Delete a label", @@ -27689,13 +26719,12 @@ } }, { - "description": "id of the label to get", + "description": "id of the label to get, or its name when not numeric", "in": "path", "name": "id", "required": true, "schema": { - "format": "int64", - "type": "integer" + "type": "string" } } ], @@ -27703,8 +26732,8 @@ "200": { "$ref": "#/components/responses/Label" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get a single label", @@ -27734,13 +26763,12 @@ } }, { - "description": "id of the label to edit", + "description": "id of the label to edit, or its name when not numeric", "in": "path", "name": "id", "required": true, "schema": { - "format": "int64", - "type": "integer" + "type": "string" } } ], @@ -27758,11 +26786,8 @@ "200": { "$ref": "#/components/responses/Label" }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Update a label", @@ -27798,8 +26823,8 @@ "200": { "$ref": "#/components/responses/LanguageStatistics" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get languages and number of bytes of code written", @@ -27835,8 +26860,8 @@ "200": { "$ref": "#/components/responses/LicensesList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get repo licenses", @@ -27897,8 +26922,8 @@ }, "description": "Returns raw file content." }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get a file or it's LFS object from a repository", @@ -27944,13 +26969,7 @@ "200": { "$ref": "#/components/responses/MergeUpstreamResponse" }, - "400": { - "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "409": { + "default": { "$ref": "#/components/responses/error" } }, @@ -28019,8 +27038,8 @@ "200": { "$ref": "#/components/responses/MilestoneList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get all of a repository's opened milestones", @@ -28064,8 +27083,8 @@ "201": { "$ref": "#/components/responses/Milestone" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Create a milestone", @@ -28110,8 +27129,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Delete a milestone", @@ -28154,8 +27173,8 @@ "200": { "$ref": "#/components/responses/Milestone" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get a milestone", @@ -28208,8 +27227,8 @@ "200": { "$ref": "#/components/responses/Milestone" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Update a milestone", @@ -28245,11 +27264,8 @@ "200": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Sync a mirrored repository", @@ -28285,8 +27301,8 @@ "200": { "$ref": "#/components/responses/RepoNewIssuePinsAllowed" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Returns if new Issue Pins are allowed", @@ -28530,8 +27546,8 @@ "200": { "$ref": "#/components/responses/ProjectList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List a repository's projects", @@ -28575,14 +27591,8 @@ "201": { "$ref": "#/components/responses/Project" }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" - }, - "423": { - "$ref": "#/components/responses/repoArchivedError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Create a project owned by a repository", @@ -28628,11 +27638,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "423": { - "$ref": "#/components/responses/repoArchivedError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Delete a project", @@ -28676,8 +27683,8 @@ "200": { "$ref": "#/components/responses/Project" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get a project", @@ -28731,14 +27738,8 @@ "200": { "$ref": "#/components/responses/Project" }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" - }, - "423": { - "$ref": "#/components/responses/repoArchivedError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Edit a project", @@ -28800,8 +27801,8 @@ "200": { "$ref": "#/components/responses/ProjectColumnList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List a project's columns", @@ -28855,17 +27856,8 @@ "201": { "$ref": "#/components/responses/ProjectColumn" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" - }, - "423": { - "$ref": "#/components/responses/repoArchivedError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Create a column in a project", @@ -28922,17 +27914,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" - }, - "423": { - "$ref": "#/components/responses/repoArchivedError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Reorder a project's columns", @@ -28989,17 +27972,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" - }, - "423": { - "$ref": "#/components/responses/repoArchivedError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Delete a project column", @@ -29053,8 +28027,8 @@ "200": { "$ref": "#/components/responses/ProjectColumn" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get a project column", @@ -29118,17 +28092,8 @@ "200": { "$ref": "#/components/responses/ProjectColumn" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" - }, - "423": { - "$ref": "#/components/responses/repoArchivedError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Edit a project column", @@ -29185,14 +28150,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "423": { - "$ref": "#/components/responses/repoArchivedError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Set a project's default column", @@ -29264,8 +28223,8 @@ "200": { "$ref": "#/components/responses/IssueList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List the issues in a project column", @@ -29331,14 +28290,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "423": { - "$ref": "#/components/responses/repoArchivedError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Remove an issue from a project column", @@ -29403,17 +28356,8 @@ "201": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" - }, - "423": { - "$ref": "#/components/responses/repoArchivedError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Add an issue to a project column", @@ -29479,17 +28423,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" - }, - "423": { - "$ref": "#/components/responses/repoArchivedError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Move an issue between a project's columns", @@ -29551,8 +28486,8 @@ "200": { "$ref": "#/components/responses/ProjectWorkflowList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List a project's workflows", @@ -29606,17 +28541,8 @@ "201": { "$ref": "#/components/responses/ProjectWorkflow" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" - }, - "423": { - "$ref": "#/components/responses/repoArchivedError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Create a project workflow", @@ -29672,14 +28598,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "423": { - "$ref": "#/components/responses/repoArchivedError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Delete a project workflow", @@ -29733,8 +28653,8 @@ "200": { "$ref": "#/components/responses/ProjectWorkflow" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get a project workflow", @@ -29798,17 +28718,8 @@ "200": { "$ref": "#/components/responses/ProjectWorkflow" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" - }, - "423": { - "$ref": "#/components/responses/repoArchivedError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Edit a project workflow", @@ -29933,10 +28844,7 @@ "200": { "$ref": "#/components/responses/PullRequestList" }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "500": { + "default": { "$ref": "#/components/responses/error" } }, @@ -29981,20 +28889,8 @@ "201": { "$ref": "#/components/responses/PullRequest" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "409": { + "default": { "$ref": "#/components/responses/error" - }, - "422": { - "$ref": "#/components/responses/validationError" - }, - "423": { - "$ref": "#/components/responses/repoArchivedError" } }, "summary": "Create a pull request", @@ -30040,14 +28936,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "400": { - "$ref": "#/components/responses/validationError" - }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Resolve a pull request review comment", @@ -30093,14 +28983,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "400": { - "$ref": "#/components/responses/validationError" - }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Unresolve a pull request review comment", @@ -30136,8 +29020,8 @@ "200": { "$ref": "#/components/responses/PullRequestList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List a repo's pinned pull requests", @@ -30191,8 +29075,8 @@ "200": { "$ref": "#/components/responses/PullRequest" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get a pull request by base and head", @@ -30238,8 +29122,8 @@ "200": { "$ref": "#/components/responses/PullRequest" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get a pull request", @@ -30293,23 +29177,8 @@ "201": { "$ref": "#/components/responses/PullRequest" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "409": { - "$ref": "#/components/responses/error" - }, - "412": { - "$ref": "#/components/responses/error" - }, - "422": { - "$ref": "#/components/responses/validationError" } }, "summary": "Update a pull request. If using deadline only the date will be taken into account, and time of day ignored.", @@ -30376,8 +29245,8 @@ "200": { "$ref": "#/components/responses/string" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get a pull request diff or patch", @@ -30444,14 +29313,8 @@ "201": { "$ref": "#/components/responses/PullReviewComment" }, - "400": { - "$ref": "#/components/responses/validationError" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Reply to a pull request review comment", @@ -30529,8 +29392,8 @@ "200": { "$ref": "#/components/responses/CommitList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get commits for a pull request", @@ -30614,8 +29477,8 @@ "200": { "$ref": "#/components/responses/ChangedFileList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get changed files for a pull request", @@ -30661,14 +29524,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "423": { - "$ref": "#/components/responses/repoArchivedError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Cancel the scheduled auto merge for the given pull request", @@ -30712,8 +29569,8 @@ "204": { "description": "pull request has been merged" }, - "404": { - "description": "pull request has not been merged" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Check if a pull request has been merged", @@ -30767,20 +29624,8 @@ "200": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "405": { - "$ref": "#/components/responses/empty" - }, - "409": { + "default": { "$ref": "#/components/responses/error" - }, - "423": { - "$ref": "#/components/responses/repoArchivedError" } }, "summary": "Merge a pull request", @@ -30837,14 +29682,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "cancel review requests for a pull request", @@ -30899,11 +29738,8 @@ "201": { "$ref": "#/components/responses/PullReviewList" }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "create review requests for a pull request", @@ -30965,8 +29801,8 @@ "200": { "$ref": "#/components/responses/PullReviewList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List all reviews for a pull request", @@ -31021,11 +29857,8 @@ "200": { "$ref": "#/components/responses/PullReview" }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Create a review to a pull request", @@ -31081,11 +29914,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Delete a specific review from a pull request", @@ -31139,8 +29969,8 @@ "200": { "$ref": "#/components/responses/PullReview" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get a specific review for a pull request", @@ -31205,11 +30035,8 @@ "200": { "$ref": "#/components/responses/PullReview" }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Submit a pending review to a pull request", @@ -31265,8 +30092,8 @@ "200": { "$ref": "#/components/responses/PullReviewCommentList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get a specific review for a pull request", @@ -31333,14 +30160,8 @@ "200": { "$ref": "#/components/responses/PullReview" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Dismiss a review for a pull request", @@ -31396,14 +30217,8 @@ "200": { "$ref": "#/components/responses/PullReview" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Cancel to dismiss a review for a pull request", @@ -31461,17 +30276,8 @@ "200": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "409": { + "default": { "$ref": "#/components/responses/error" - }, - "422": { - "$ref": "#/components/responses/validationError" } }, "summary": "Merge PR's baseBranch into headBranch", @@ -31523,14 +30329,8 @@ "200": { "$ref": "#/components/responses/PushMirrorList" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "Get all push mirrors of the repository", @@ -31574,14 +30374,8 @@ "200": { "$ref": "#/components/responses/PushMirror" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "add a push mirror to the repository", @@ -31617,17 +30411,8 @@ "200": { "$ref": "#/components/responses/empty" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" } }, "summary": "Sync all push mirrored repository", @@ -31672,11 +30457,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "deletes a push mirror from a repository by remoteName", @@ -31719,14 +30501,8 @@ "200": { "$ref": "#/components/responses/PushMirror" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "Get push mirror of the repository by remoteName", @@ -31787,8 +30563,8 @@ }, "description": "Returns raw file content." }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get a file from a repository", @@ -31864,8 +30640,8 @@ "200": { "$ref": "#/components/responses/ReleaseList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List a repo's releases", @@ -31909,14 +30685,8 @@ "201": { "$ref": "#/components/responses/Release" }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "409": { + "default": { "$ref": "#/components/responses/error" - }, - "422": { - "$ref": "#/components/responses/validationError" } }, "summary": "Create a release", @@ -31952,8 +30722,8 @@ "200": { "$ref": "#/components/responses/Release" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Gets the most recent non-prerelease, non-draft release of a repository, sorted by created_at", @@ -31998,11 +30768,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Delete a release by tag name", @@ -32045,8 +30812,8 @@ "200": { "$ref": "#/components/responses/Release" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get a release by tag name", @@ -32092,11 +30859,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Delete a release", @@ -32140,8 +30904,8 @@ "200": { "$ref": "#/components/responses/Release" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get a release", @@ -32195,8 +30959,8 @@ "200": { "$ref": "#/components/responses/Release" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Update a release", @@ -32242,8 +31006,8 @@ "200": { "$ref": "#/components/responses/AttachmentList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List release's attachments", @@ -32325,13 +31089,7 @@ "201": { "$ref": "#/components/responses/Attachment" }, - "400": { - "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "413": { + "default": { "$ref": "#/components/responses/error" } }, @@ -32388,8 +31146,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Delete a release attachment", @@ -32443,8 +31201,8 @@ "200": { "$ref": "#/components/responses/Attachment" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get a release attachment", @@ -32508,11 +31266,8 @@ "201": { "$ref": "#/components/responses/Attachment" }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Edit a release attachment", @@ -32548,8 +31303,8 @@ "200": { "$ref": "#/components/responses/UserList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Return all users that can be requested to review in this repo", @@ -32683,11 +31438,8 @@ "200": { "$ref": "#/components/responses/UserList" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List a repo's stargazers", @@ -32778,11 +31530,8 @@ "200": { "$ref": "#/components/responses/CommitStatusList" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "Get a commit's statuses", @@ -32835,11 +31584,8 @@ "201": { "$ref": "#/components/responses/CommitStatus" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "Create a commit status", @@ -32891,8 +31637,8 @@ "200": { "$ref": "#/components/responses/UserList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List a repo's watchers", @@ -32928,8 +31674,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Unwatch a repo", @@ -32963,8 +31709,8 @@ "200": { "$ref": "#/components/responses/WatchInfo" }, - "404": { - "description": "User is not watching this repo or repo do not exist" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Check if the current user is watching a repo", @@ -32998,11 +31744,8 @@ "200": { "$ref": "#/components/responses/WatchInfo" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Watch a repo", @@ -33080,17 +31823,8 @@ "201": { "$ref": "#/components/responses/TagProtection" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" - }, - "423": { - "$ref": "#/components/responses/repoArchivedError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Create a tag protections for a repository", @@ -33135,8 +31869,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Delete a specific tag protection for the repository", @@ -33179,8 +31913,8 @@ "200": { "$ref": "#/components/responses/TagProtection" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get a specific tag protection for the repository", @@ -33233,14 +31967,8 @@ "200": { "$ref": "#/components/responses/TagProtection" }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" - }, - "423": { - "$ref": "#/components/responses/repoArchivedError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Edit a tag protections for a repository. Only fields that are set will be changed", @@ -33292,8 +32020,8 @@ "200": { "$ref": "#/components/responses/TagList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List a repository's tags", @@ -33337,20 +32065,8 @@ "200": { "$ref": "#/components/responses/Tag" }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "405": { - "$ref": "#/components/responses/empty" - }, - "409": { - "$ref": "#/components/responses/conflict" - }, - "422": { - "$ref": "#/components/responses/validationError" - }, - "423": { - "$ref": "#/components/responses/repoArchivedError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Create a new git tag in a repository", @@ -33395,20 +32111,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "405": { - "$ref": "#/components/responses/empty" - }, - "409": { - "$ref": "#/components/responses/conflict" - }, - "422": { - "$ref": "#/components/responses/validationError" - }, - "423": { - "$ref": "#/components/responses/repoArchivedError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Delete a repository's tag by name", @@ -33451,8 +32155,8 @@ "200": { "$ref": "#/components/responses/Tag" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get the tag of a repository by tag name", @@ -33488,8 +32192,8 @@ "200": { "$ref": "#/components/responses/TeamList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List a repository's teams", @@ -33534,17 +32238,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "405": { + "default": { "$ref": "#/components/responses/error" - }, - "422": { - "$ref": "#/components/responses/validationError" } }, "summary": "Delete a team from a repository", @@ -33587,10 +32282,7 @@ "200": { "$ref": "#/components/responses/Team" }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "405": { + "default": { "$ref": "#/components/responses/error" } }, @@ -33634,17 +32326,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "405": { + "default": { "$ref": "#/components/responses/error" - }, - "422": { - "$ref": "#/components/responses/validationError" } }, "summary": "Add a team to a repository", @@ -33722,14 +32405,8 @@ "200": { "$ref": "#/components/responses/TrackedTimeList" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "List a repo's tracked times", @@ -33775,14 +32452,8 @@ "200": { "$ref": "#/components/responses/TrackedTimeList" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "List a user's tracked times in a repo", @@ -33834,8 +32505,8 @@ "200": { "$ref": "#/components/responses/TopicNames" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get list of topics that a repository has", @@ -33879,14 +32550,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/invalidTopicsError" - }, - "423": { - "$ref": "#/components/responses/repoArchivedError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Replace list of topics for a repository", @@ -33931,14 +32596,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/invalidTopicsError" - }, - "423": { - "$ref": "#/components/responses/repoArchivedError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Delete a topic from a repository", @@ -33981,14 +32640,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/invalidTopicsError" - }, - "423": { - "$ref": "#/components/responses/repoArchivedError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Add a topic to a repository", @@ -34036,14 +32689,8 @@ "202": { "$ref": "#/components/responses/Repository" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Transfer a repo ownership", @@ -34079,11 +32726,8 @@ "202": { "$ref": "#/components/responses/Repository" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Accept a repo transfer", @@ -34119,11 +32763,8 @@ "200": { "$ref": "#/components/responses/Repository" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Reject a repo transfer", @@ -34169,17 +32810,8 @@ "201": { "$ref": "#/components/responses/WikiPage" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "423": { - "$ref": "#/components/responses/repoArchivedError" } }, "summary": "Create a wiki page", @@ -34224,14 +32856,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "423": { - "$ref": "#/components/responses/repoArchivedError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Delete a wiki page", @@ -34274,8 +32900,8 @@ "200": { "$ref": "#/components/responses/WikiPage" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get a wiki page", @@ -34328,17 +32954,8 @@ "200": { "$ref": "#/components/responses/WikiPage" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "423": { - "$ref": "#/components/responses/repoArchivedError" } }, "summary": "Edit a wiki page", @@ -34390,8 +33007,8 @@ "200": { "$ref": "#/components/responses/WikiPageList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get all wiki pages", @@ -34444,8 +33061,8 @@ "200": { "$ref": "#/components/responses/WikiCommitList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get revisions of a wiki page", @@ -34491,17 +33108,8 @@ "201": { "$ref": "#/components/responses/Repository" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "409": { - "description": "The repository with the same name already exists." - }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Create a repository using a template", @@ -34529,8 +33137,8 @@ "200": { "$ref": "#/components/responses/Repository" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get a repository by id", @@ -34656,8 +33264,8 @@ "204": { "description": "team deleted" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Delete a team", @@ -34683,8 +33291,8 @@ "200": { "$ref": "#/components/responses/Team" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get a team", @@ -34719,8 +33327,8 @@ "200": { "$ref": "#/components/responses/Team" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Edit a team", @@ -34773,8 +33381,8 @@ "200": { "$ref": "#/components/responses/ActivityFeedsList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List a team's activity feeds", @@ -34818,8 +33426,8 @@ "200": { "$ref": "#/components/responses/UserList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List a team's members", @@ -34856,8 +33464,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Remove a team member", @@ -34892,8 +33500,8 @@ "200": { "$ref": "#/components/responses/User" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List a particular member of team", @@ -34928,11 +33536,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Add a team member", @@ -34976,8 +33581,8 @@ "200": { "$ref": "#/components/responses/RepositoryList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List a team's repos", @@ -35024,11 +33629,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Remove a repository from a team", @@ -35072,8 +33674,8 @@ "200": { "$ref": "#/components/responses/Repository" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List a particular repo of team", @@ -35117,11 +33719,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Add a repository to a team", @@ -35190,11 +33789,8 @@ "200": { "$ref": "#/components/responses/TopicListResponse" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "search topics via keyword", @@ -35266,14 +33862,8 @@ "200": { "$ref": "#/components/responses/WorkflowJobsList" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" } }, "summary": "Get workflow jobs", @@ -35299,11 +33889,8 @@ "200": { "$ref": "#/components/responses/RunnerList" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "Get user-level runners", @@ -35344,11 +33931,8 @@ "204": { "description": "runner has been deleted" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "Delete a user-level runner", @@ -35373,11 +33957,8 @@ "200": { "$ref": "#/components/responses/Runner" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "Get a user-level runner", @@ -35412,14 +33993,8 @@ "200": { "$ref": "#/components/responses/Runner" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" } }, "summary": "Update a user-level runner", @@ -35493,11 +34068,8 @@ "200": { "$ref": "#/components/responses/WorkflowRunsList" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "Get workflow runs", @@ -35524,11 +34096,8 @@ "204": { "description": "delete one secret of the user" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "Delete a secret in a user scope", @@ -35566,11 +34135,8 @@ "204": { "description": "response when updating a secret" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "Create or Update a secret value in a user scope", @@ -35604,11 +34170,8 @@ "200": { "$ref": "#/components/responses/VariableList" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "Get the user-level list of variables which is created by current doer", @@ -35638,11 +34201,8 @@ "204": { "description": "response when deleting a variable" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "Delete a user-level variable which is created by current doer", @@ -35667,11 +34227,8 @@ "200": { "$ref": "#/components/responses/ActionVariable" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "Get a user-level variable which is created by current doer", @@ -35706,11 +34263,8 @@ "201": { "description": "successfully created the user-level variable" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "409": { - "description": "variable name already exists." } }, "summary": "Create a user-level variable", @@ -35748,11 +34302,8 @@ "204": { "description": "response when updating a variable" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "Update a user-level variable which is created by current doer", @@ -35809,7 +34360,7 @@ "201": { "$ref": "#/components/responses/OAuth2Application" }, - "400": { + "default": { "$ref": "#/components/responses/error" } }, @@ -35838,8 +34389,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "delete an OAuth2 Application", @@ -35865,8 +34416,8 @@ "200": { "$ref": "#/components/responses/OAuth2Application" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "get an OAuth2 Application", @@ -35903,11 +34454,8 @@ "200": { "$ref": "#/components/responses/OAuth2Application" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "404": { - "$ref": "#/components/responses/notFound" } }, "summary": "update an OAuth2 Application, this includes regenerating the client secret", @@ -36002,11 +34550,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Unblock a user", @@ -36031,8 +34576,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Check if a user is blocked by the authenticated user", @@ -36065,11 +34610,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Block a user", @@ -36095,8 +34637,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Delete email addresses", @@ -36132,14 +34674,8 @@ "201": { "$ref": "#/components/responses/EmailList" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "409": { - "$ref": "#/components/responses/error" - }, - "422": { - "$ref": "#/components/responses/validationError" } }, "summary": "Add email addresses", @@ -36230,8 +34766,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Unfollow a user", @@ -36256,8 +34792,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Check whether a user is followed by the authenticated user", @@ -36282,11 +34818,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Follow a user", @@ -36302,14 +34835,8 @@ "200": { "$ref": "#/components/responses/string" }, - "401": { - "$ref": "#/components/responses/unauthorized" - }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get a Token to verify", @@ -36325,17 +34852,8 @@ "201": { "$ref": "#/components/responses/GPGKey" }, - "401": { - "$ref": "#/components/responses/unauthorized" - }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Verify a GPG key", @@ -36369,11 +34887,8 @@ "200": { "$ref": "#/components/responses/GPGKeyList" }, - "401": { - "$ref": "#/components/responses/unauthorized" - }, - "403": { - "$ref": "#/components/responses/forbidden" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List the authenticated user's GPG keys", @@ -36397,17 +34912,8 @@ "201": { "$ref": "#/components/responses/GPGKey" }, - "401": { - "$ref": "#/components/responses/unauthorized" - }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Create a GPG key", @@ -36435,14 +34941,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "401": { - "$ref": "#/components/responses/unauthorized" - }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Remove a GPG key", @@ -36468,14 +34968,8 @@ "200": { "$ref": "#/components/responses/GPGKey" }, - "401": { - "$ref": "#/components/responses/unauthorized" - }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get a GPG key", @@ -36656,11 +35150,8 @@ "200": { "$ref": "#/components/responses/PublicKeyList" }, - "401": { - "$ref": "#/components/responses/unauthorized" - }, - "403": { - "$ref": "#/components/responses/forbidden" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List the authenticated user's public keys", @@ -36684,14 +35175,8 @@ "201": { "$ref": "#/components/responses/PublicKey" }, - "401": { - "$ref": "#/components/responses/unauthorized" - }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Create a public key", @@ -36719,14 +35204,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "401": { - "$ref": "#/components/responses/unauthorized" - }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Delete a public key", @@ -36752,14 +35231,8 @@ "200": { "$ref": "#/components/responses/PublicKey" }, - "401": { - "$ref": "#/components/responses/unauthorized" - }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get a public key", @@ -36793,8 +35266,8 @@ "200": { "$ref": "#/components/responses/OrganizationList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List the current user's organizations", @@ -36864,8 +35337,8 @@ "201": { "$ref": "#/components/responses/Project" }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Create a project owned by the authenticated user", @@ -36893,8 +35366,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Delete a project", @@ -36920,8 +35393,8 @@ "200": { "$ref": "#/components/responses/Project" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get a project", @@ -36957,11 +35430,8 @@ "200": { "$ref": "#/components/responses/Project" }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Edit a project", @@ -37005,8 +35475,8 @@ "200": { "$ref": "#/components/responses/ProjectColumnList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List a project's columns", @@ -37042,14 +35512,8 @@ "201": { "$ref": "#/components/responses/ProjectColumn" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Create a column in a project", @@ -37088,14 +35552,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Reorder a project's columns", @@ -37134,14 +35592,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Delete a project column", @@ -37177,8 +35629,8 @@ "200": { "$ref": "#/components/responses/ProjectColumn" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get a project column", @@ -37224,14 +35676,8 @@ "200": { "$ref": "#/components/responses/ProjectColumn" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Edit a project column", @@ -37270,11 +35716,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Set a project's default column", @@ -37328,8 +35771,8 @@ "200": { "$ref": "#/components/responses/IssueList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List the issues in a project column", @@ -37377,14 +35820,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "423": { - "$ref": "#/components/responses/repoArchivedError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Remove an issue from a project column", @@ -37431,17 +35868,8 @@ "201": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" - }, - "423": { - "$ref": "#/components/responses/repoArchivedError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Add an issue to a project column", @@ -37489,17 +35917,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" - }, - "423": { - "$ref": "#/components/responses/repoArchivedError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Move an issue between a project's columns", @@ -37543,8 +35962,8 @@ "200": { "$ref": "#/components/responses/ProjectWorkflowList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List a project's workflows", @@ -37580,14 +35999,8 @@ "201": { "$ref": "#/components/responses/ProjectWorkflow" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Create a project workflow", @@ -37625,11 +36038,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Delete a project workflow", @@ -37665,8 +36075,8 @@ "200": { "$ref": "#/components/responses/ProjectWorkflow" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get a project workflow", @@ -37712,14 +36122,8 @@ "200": { "$ref": "#/components/responses/ProjectWorkflow" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { - "$ref": "#/components/responses/validationError" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Edit a project workflow", @@ -37775,14 +36179,8 @@ "201": { "$ref": "#/components/responses/Repository" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "409": { - "description": "The repository with the same name already exists." - }, - "422": { - "$ref": "#/components/responses/validationError" } }, "summary": "Create a repository", @@ -37852,8 +36250,8 @@ "200": { "$ref": "#/components/responses/RepositoryList" }, - "403": { - "$ref": "#/components/responses/forbidden" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "The repos that the authenticated user has starred", @@ -37889,11 +36287,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Unstar the given repo", @@ -37927,11 +36322,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Whether the authenticated is starring the repo", @@ -37965,11 +36357,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Star the given repo", @@ -38209,8 +36598,8 @@ "200": { "$ref": "#/components/responses/User" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get a user", @@ -38270,8 +36659,8 @@ "200": { "$ref": "#/components/responses/ActivityFeedsList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List a user's activity feeds", @@ -38314,8 +36703,8 @@ "200": { "$ref": "#/components/responses/UserList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List the given user's followers", @@ -38358,8 +36747,8 @@ "200": { "$ref": "#/components/responses/UserList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List the users that the given user is following", @@ -38395,8 +36784,8 @@ "204": { "$ref": "#/components/responses/empty" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Check if one user is following another user", @@ -38439,8 +36828,8 @@ "200": { "$ref": "#/components/responses/GPGKeyList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List the given user's GPG keys", @@ -38467,8 +36856,8 @@ "200": { "$ref": "#/components/responses/UserHeatmapData" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get a user's heatmap", @@ -38519,8 +36908,8 @@ "200": { "$ref": "#/components/responses/PublicKeyList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List the given user's public keys", @@ -38563,8 +36952,8 @@ "200": { "$ref": "#/components/responses/OrganizationList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List a user's organizations", @@ -38600,11 +36989,8 @@ "200": { "$ref": "#/components/responses/OrganizationPermissions" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "Get user permissions in organization", @@ -38661,8 +37047,8 @@ "200": { "$ref": "#/components/responses/ProjectList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List a user's projects", @@ -38705,8 +37091,8 @@ "200": { "$ref": "#/components/responses/RepositoryList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List the repos owned by the given user", @@ -38749,11 +37135,8 @@ "200": { "$ref": "#/components/responses/RepositoryList" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "The repos that the given user has starred", @@ -38796,8 +37179,8 @@ "200": { "$ref": "#/components/responses/RepositoryList" }, - "404": { - "$ref": "#/components/responses/notFound" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List the repositories watched by a user", @@ -38840,8 +37223,8 @@ "200": { "$ref": "#/components/responses/AccessTokenList" }, - "403": { - "$ref": "#/components/responses/forbidden" + "default": { + "$ref": "#/components/responses/error" } }, "summary": "List the authenticated user's access tokens", @@ -38876,11 +37259,8 @@ "201": { "$ref": "#/components/responses/AccessToken" }, - "400": { + "default": { "$ref": "#/components/responses/error" - }, - "403": { - "$ref": "#/components/responses/forbidden" } }, "summary": "Create an access token", @@ -38916,13 +37296,7 @@ "204": { "$ref": "#/components/responses/empty" }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - }, - "422": { + "default": { "$ref": "#/components/responses/error" } }, diff --git a/static/swagger-latest.json b/static/swagger-latest.json index d678215e..fdcc0be8 100644 --- a/static/swagger-latest.json +++ b/static/swagger-latest.json @@ -67,14 +67,8 @@ "200": { "$ref": "#/responses/WorkflowJobsList" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" } } } @@ -101,11 +95,8 @@ "200": { "$ref": "#/responses/RunnerList" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" } } } @@ -150,11 +141,8 @@ "200": { "$ref": "#/responses/Runner" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" } } }, @@ -180,11 +168,8 @@ "204": { "description": "runner has been deleted" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" } } }, @@ -220,14 +205,8 @@ "200": { "$ref": "#/responses/Runner" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" } } } @@ -290,11 +269,8 @@ "200": { "$ref": "#/responses/WorkflowRunsList" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" } } } @@ -327,8 +303,8 @@ "200": { "$ref": "#/responses/CronList" }, - "403": { - "$ref": "#/responses/forbidden" + "default": { + "$ref": "#/responses/error" } } } @@ -356,8 +332,8 @@ "204": { "$ref": "#/responses/empty" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -390,8 +366,8 @@ "200": { "$ref": "#/responses/EmailList" }, - "403": { - "$ref": "#/responses/forbidden" + "default": { + "$ref": "#/responses/error" } } } @@ -430,8 +406,8 @@ "200": { "$ref": "#/responses/EmailList" }, - "403": { - "$ref": "#/responses/forbidden" + "default": { + "$ref": "#/responses/error" } } } @@ -622,8 +598,8 @@ "200": { "$ref": "#/responses/OrganizationList" }, - "403": { - "$ref": "#/responses/forbidden" + "default": { + "$ref": "#/responses/error" } } } @@ -692,8 +668,8 @@ "200": { "$ref": "#/responses/PackageList" }, - "403": { - "$ref": "#/responses/forbidden" + "default": { + "$ref": "#/responses/error" } } } @@ -732,8 +708,8 @@ "200": { "$ref": "#/responses/StringSlice" }, - "403": { - "$ref": "#/responses/forbidden" + "default": { + "$ref": "#/responses/error" } } } @@ -768,11 +744,8 @@ "204": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -805,8 +778,8 @@ "204": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" + "default": { + "$ref": "#/responses/error" } } } @@ -906,11 +879,8 @@ "200": { "$ref": "#/responses/UserList" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } }, @@ -939,17 +909,8 @@ "201": { "$ref": "#/responses/User" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "403": { - "$ref": "#/responses/forbidden" - }, - "409": { - "$ref": "#/responses/error" - }, - "422": { - "$ref": "#/responses/validationError" } } } @@ -983,14 +944,8 @@ "204": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } }, @@ -1026,17 +981,8 @@ "200": { "$ref": "#/responses/User" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "403": { - "$ref": "#/responses/forbidden" - }, - "409": { - "$ref": "#/responses/error" - }, - "422": { - "$ref": "#/responses/validationError" } } } @@ -1064,8 +1010,8 @@ "200": { "$ref": "#/responses/BadgeList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -1101,8 +1047,8 @@ "204": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" + "default": { + "$ref": "#/responses/error" } } }, @@ -1135,11 +1081,8 @@ "204": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } } @@ -1177,11 +1120,8 @@ "201": { "$ref": "#/responses/PublicKey" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } } @@ -1217,11 +1157,8 @@ "204": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -1260,11 +1197,8 @@ "201": { "$ref": "#/responses/Organization" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } } @@ -1300,11 +1234,8 @@ "204": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } } @@ -1343,20 +1274,8 @@ "201": { "$ref": "#/responses/Repository" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "409": { - "$ref": "#/responses/error" - }, - "422": { - "$ref": "#/responses/validationError" } } } @@ -1401,8 +1320,8 @@ "200": { "$ref": "#/responses/GitignoreTemplateInfo" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -1447,8 +1366,8 @@ "200": { "$ref": "#/responses/LabelTemplateInfo" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -1493,8 +1412,8 @@ "200": { "$ref": "#/responses/LicenseTemplateInfo" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -1525,8 +1444,8 @@ "200": { "$ref": "#/responses/MarkdownRender" }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } } @@ -1559,8 +1478,8 @@ "200": { "$ref": "#/responses/MarkdownRender" }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } } @@ -1591,8 +1510,8 @@ "200": { "$ref": "#/responses/MarkupRender" }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } } @@ -1766,11 +1685,8 @@ "200": { "$ref": "#/responses/NotificationThread" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -1806,11 +1722,8 @@ "205": { "$ref": "#/responses/NotificationThread" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -1849,14 +1762,8 @@ "201": { "$ref": "#/responses/Repository" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } } @@ -1917,11 +1824,8 @@ "201": { "$ref": "#/responses/Organization" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } } @@ -1949,8 +1853,8 @@ "200": { "$ref": "#/responses/Organization" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -1976,8 +1880,8 @@ "204": { "$ref": "#/responses/empty" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -2014,8 +1918,8 @@ "200": { "$ref": "#/responses/Organization" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -2061,11 +1965,8 @@ "200": { "$ref": "#/responses/WorkflowJobsList" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" } } } @@ -2099,11 +2000,8 @@ "200": { "$ref": "#/responses/RunnerList" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" } } } @@ -2164,11 +2062,8 @@ "200": { "$ref": "#/responses/Runner" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" } } }, @@ -2201,11 +2096,8 @@ "204": { "description": "runner has been deleted" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" } } }, @@ -2248,14 +2140,8 @@ "200": { "$ref": "#/responses/Runner" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" } } } @@ -2325,11 +2211,8 @@ "200": { "$ref": "#/responses/WorkflowRunsList" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" } } } @@ -2369,8 +2252,8 @@ "200": { "$ref": "#/responses/SecretList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -2418,11 +2301,8 @@ "204": { "description": "response when updating a secret" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" } } }, @@ -2458,11 +2338,8 @@ "204": { "description": "delete one secret of the organization" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" } } } @@ -2502,11 +2379,8 @@ "200": { "$ref": "#/responses/VariableList" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" } } } @@ -2541,11 +2415,8 @@ "200": { "$ref": "#/responses/ActionVariable" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" } } }, @@ -2591,11 +2462,8 @@ "204": { "description": "response when updating an org-level variable" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" } } }, @@ -2638,13 +2506,7 @@ "201": { "description": "successfully created the org-level variable" }, - "400": { - "$ref": "#/responses/error" - }, - "409": { - "description": "variable name already exists." - }, - "500": { + "default": { "$ref": "#/responses/error" } } @@ -2684,11 +2546,8 @@ "204": { "description": "response when deleting a variable" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" } } } @@ -2735,8 +2594,8 @@ "200": { "$ref": "#/responses/ActivityFeedsList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -2771,8 +2630,8 @@ "204": { "$ref": "#/responses/empty" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -2798,8 +2657,8 @@ "204": { "$ref": "#/responses/empty" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -2869,8 +2728,8 @@ "204": { "$ref": "#/responses/empty" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -2906,11 +2765,8 @@ "204": { "$ref": "#/responses/empty" }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } }, @@ -2940,11 +2796,8 @@ "204": { "$ref": "#/responses/empty" }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } } @@ -2984,8 +2837,8 @@ "200": { "$ref": "#/responses/HookList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -3022,8 +2875,8 @@ "201": { "$ref": "#/responses/Hook" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -3059,8 +2912,8 @@ "200": { "$ref": "#/responses/Hook" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -3094,8 +2947,8 @@ "204": { "$ref": "#/responses/empty" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -3139,8 +2992,8 @@ "200": { "$ref": "#/responses/Hook" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -3180,8 +3033,8 @@ "200": { "$ref": "#/responses/LabelList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -3217,11 +3070,8 @@ "201": { "$ref": "#/responses/Label" }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } } @@ -3245,9 +3095,8 @@ "required": true }, { - "type": "integer", - "format": "int64", - "description": "id of the label to get", + "type": "string", + "description": "id of the label to get, or its name when not numeric", "name": "id", "in": "path", "required": true @@ -3257,8 +3106,8 @@ "200": { "$ref": "#/responses/Label" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -3277,9 +3126,8 @@ "required": true }, { - "type": "integer", - "format": "int64", - "description": "id of the label to delete", + "type": "string", + "description": "id of the label to delete, or its name when not numeric", "name": "id", "in": "path", "required": true @@ -3289,8 +3137,8 @@ "204": { "$ref": "#/responses/empty" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -3315,9 +3163,8 @@ "required": true }, { - "type": "integer", - "format": "int64", - "description": "id of the label to edit", + "type": "string", + "description": "id of the label to edit, or its name when not numeric", "name": "id", "in": "path", "required": true @@ -3334,11 +3181,8 @@ "200": { "$ref": "#/responses/Label" }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } } @@ -3378,8 +3222,8 @@ "200": { "$ref": "#/responses/UserList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -3414,8 +3258,8 @@ "303": { "description": "redirection to /orgs/{org}/public_members/{username}" }, - "404": { - "description": "user is not a member" + "default": { + "$ref": "#/responses/error" } } }, @@ -3448,8 +3292,8 @@ "204": { "description": "member removed" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -3501,8 +3345,8 @@ "200": { "$ref": "#/responses/ProjectList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -3538,11 +3382,8 @@ "201": { "$ref": "#/responses/Project" }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } } @@ -3578,8 +3419,8 @@ "200": { "$ref": "#/responses/Project" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -3610,8 +3451,8 @@ "204": { "$ref": "#/responses/empty" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -3655,11 +3496,8 @@ "200": { "$ref": "#/responses/Project" }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } } @@ -3707,8 +3545,8 @@ "200": { "$ref": "#/responses/ProjectColumnList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -3752,14 +3590,8 @@ "201": { "$ref": "#/responses/ProjectColumn" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } } @@ -3803,14 +3635,8 @@ "204": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } } @@ -3854,8 +3680,8 @@ "200": { "$ref": "#/responses/ProjectColumn" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -3895,14 +3721,8 @@ "204": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } }, @@ -3954,14 +3774,8 @@ "200": { "$ref": "#/responses/ProjectColumn" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } } @@ -4003,11 +3817,8 @@ "204": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -4063,8 +3874,8 @@ "200": { "$ref": "#/responses/IssueList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -4114,17 +3925,8 @@ "201": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" - }, - "423": { - "$ref": "#/responses/repoArchivedError" + "default": { + "$ref": "#/responses/error" } } }, @@ -4171,14 +3973,8 @@ "204": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "423": { - "$ref": "#/responses/repoArchivedError" + "default": { + "$ref": "#/responses/error" } } } @@ -4229,17 +4025,8 @@ "204": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" - }, - "423": { - "$ref": "#/responses/repoArchivedError" + "default": { + "$ref": "#/responses/error" } } } @@ -4287,8 +4074,8 @@ "200": { "$ref": "#/responses/ProjectWorkflowList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -4332,14 +4119,8 @@ "201": { "$ref": "#/responses/ProjectWorkflow" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } } @@ -4383,8 +4164,8 @@ "200": { "$ref": "#/responses/ProjectWorkflow" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -4423,11 +4204,8 @@ "204": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -4479,14 +4257,8 @@ "200": { "$ref": "#/responses/ProjectWorkflow" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } } @@ -4526,8 +4298,8 @@ "200": { "$ref": "#/responses/UserList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -4559,8 +4331,8 @@ "204": { "description": "user is a public member" }, - "404": { - "description": "user is not a public member" + "default": { + "$ref": "#/responses/error" } } }, @@ -4593,11 +4365,8 @@ "204": { "description": "membership publicized" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -4630,11 +4399,8 @@ "204": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -4670,11 +4436,8 @@ "204": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } } @@ -4714,8 +4477,8 @@ "200": { "$ref": "#/responses/RepositoryList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -4751,14 +4514,8 @@ "201": { "$ref": "#/responses/Repository" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" } } }, @@ -4787,11 +4544,8 @@ "204": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -4831,8 +4585,8 @@ "200": { "$ref": "#/responses/TeamList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -4868,11 +4622,8 @@ "201": { "$ref": "#/responses/Team" }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } } @@ -4938,8 +4689,8 @@ } } }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -5015,8 +4766,8 @@ "200": { "$ref": "#/responses/PackageList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -5070,8 +4821,8 @@ "200": { "$ref": "#/responses/PackageList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -5108,8 +4859,8 @@ "204": { "$ref": "#/responses/empty" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -5151,8 +4902,8 @@ "200": { "$ref": "#/responses/Package" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -5198,8 +4949,8 @@ "201": { "$ref": "#/responses/empty" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -5238,8 +4989,8 @@ "201": { "$ref": "#/responses/empty" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -5288,8 +5039,8 @@ "200": { "$ref": "#/responses/Package" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -5333,8 +5084,8 @@ "204": { "$ref": "#/responses/empty" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -5383,8 +5134,8 @@ "200": { "$ref": "#/responses/PackageFileList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -5527,11 +5278,8 @@ "200": { "$ref": "#/responses/IssueList" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "422": { - "$ref": "#/responses/validationError" } } } @@ -5562,14 +5310,8 @@ "201": { "$ref": "#/responses/Repository" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "409": { - "description": "The repository with the same name already exists." - }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } } @@ -5696,8 +5438,8 @@ "200": { "$ref": "#/responses/SearchResults" }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } } @@ -5732,8 +5474,8 @@ "200": { "$ref": "#/responses/Repository" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -5766,11 +5508,8 @@ "204": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -5811,14 +5550,8 @@ "200": { "$ref": "#/responses/Repository" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } } @@ -5859,11 +5592,8 @@ "200": { "$ref": "#/responses/ArtifactsList" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" } } } @@ -5905,11 +5635,8 @@ "200": { "$ref": "#/responses/Artifact" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" } } }, @@ -5949,11 +5676,8 @@ "204": { "description": "No Content" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" } } } @@ -5995,11 +5719,8 @@ "302": { "description": "redirect to the blob download" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" } } } @@ -6064,14 +5785,8 @@ "200": { "$ref": "#/responses/WorkflowJobsList" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" } } } @@ -6113,11 +5828,8 @@ "200": { "$ref": "#/responses/WorkflowJob" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" } } } @@ -6159,11 +5871,8 @@ "200": { "description": "output blob content" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" } } } @@ -6204,11 +5913,8 @@ "200": { "$ref": "#/responses/RunnerList" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" } } } @@ -6283,11 +5989,8 @@ "200": { "$ref": "#/responses/Runner" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" } } }, @@ -6327,11 +6030,8 @@ "204": { "description": "runner has been deleted" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" } } }, @@ -6381,14 +6081,8 @@ "200": { "$ref": "#/responses/Runner" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" } } } @@ -6471,11 +6165,8 @@ "200": { "$ref": "#/responses/WorkflowRunsList" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" } } } @@ -6517,11 +6208,8 @@ "200": { "$ref": "#/responses/WorkflowRun" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" } } }, @@ -6561,11 +6249,8 @@ "204": { "description": "No Content" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" } } } @@ -6607,17 +6292,8 @@ "200": { "$ref": "#/responses/WorkflowRun" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "409": { - "$ref": "#/responses/conflict" } } } @@ -6665,11 +6341,8 @@ "200": { "$ref": "#/responses/ArtifactsList" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" } } } @@ -6718,11 +6391,8 @@ "200": { "$ref": "#/responses/WorkflowRun" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" } } } @@ -6789,11 +6459,8 @@ "200": { "$ref": "#/responses/WorkflowJobsList" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" } } } @@ -6835,17 +6502,8 @@ "200": { "$ref": "#/responses/WorkflowRun" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "409": { - "$ref": "#/responses/conflict" } } } @@ -6888,17 +6546,8 @@ "200": { "$ref": "#/responses/WorkflowRun" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "409": { - "$ref": "#/responses/conflict" } } } @@ -6970,14 +6619,8 @@ "200": { "$ref": "#/responses/WorkflowJobsList" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" } } } @@ -7026,20 +6669,8 @@ "201": { "$ref": "#/responses/WorkflowJob" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "409": { - "$ref": "#/responses/error" - }, - "422": { - "$ref": "#/responses/validationError" } } } @@ -7081,8 +6712,8 @@ "200": { "description": "Logs archive" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -7124,20 +6755,8 @@ "201": { "$ref": "#/responses/WorkflowRun" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "409": { - "$ref": "#/responses/error" - }, - "422": { - "$ref": "#/responses/validationError" } } } @@ -7176,20 +6795,8 @@ "201": { "$ref": "#/responses/empty" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "409": { - "$ref": "#/responses/error" - }, - "422": { - "$ref": "#/responses/validationError" } } } @@ -7236,8 +6843,8 @@ "200": { "$ref": "#/responses/SecretList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -7292,11 +6899,8 @@ "204": { "description": "response when updating a secret" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" } } }, @@ -7339,11 +6943,8 @@ "204": { "description": "delete one secret of the repository" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" } } } @@ -7390,20 +6991,8 @@ "200": { "$ref": "#/responses/TasksList" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "409": { - "$ref": "#/responses/conflict" - }, - "422": { - "$ref": "#/responses/validationError" } } } @@ -7450,11 +7039,8 @@ "200": { "$ref": "#/responses/VariableList" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" } } } @@ -7496,11 +7082,8 @@ "200": { "$ref": "#/responses/ActionVariable" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" } } }, @@ -7550,11 +7133,8 @@ "204": { "description": "response when updating a repo-level variable" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" } } }, @@ -7601,13 +7181,7 @@ "201": { "description": "response when creating a repo-level variable" }, - "400": { - "$ref": "#/responses/error" - }, - "409": { - "description": "variable name already exists." - }, - "500": { + "default": { "$ref": "#/responses/error" } } @@ -7654,11 +7228,8 @@ "204": { "description": "response when deleting a variable" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" } } } @@ -7693,19 +7264,7 @@ "200": { "$ref": "#/responses/ActionWorkflowList" }, - "400": { - "$ref": "#/responses/error" - }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" - }, - "500": { + "default": { "$ref": "#/responses/error" } } @@ -7748,19 +7307,7 @@ "200": { "$ref": "#/responses/ActionWorkflow" }, - "400": { - "$ref": "#/responses/error" - }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" - }, - "500": { + "default": { "$ref": "#/responses/error" } } @@ -7803,17 +7350,8 @@ "204": { "description": "No Content" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" } } } @@ -7878,17 +7416,8 @@ "204": { "description": "No Content, if return_run_details is missing or false" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" } } } @@ -7930,20 +7459,8 @@ "204": { "description": "No Content" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "409": { - "$ref": "#/responses/conflict" - }, - "422": { - "$ref": "#/responses/validationError" } } } @@ -8040,14 +7557,8 @@ "200": { "$ref": "#/responses/WorkflowRunsList" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" } } } @@ -8101,8 +7612,8 @@ "200": { "$ref": "#/responses/ActivityFeedsList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -8154,8 +7665,8 @@ "200": { "description": "success" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -8190,8 +7701,8 @@ "200": { "$ref": "#/responses/UserList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -8233,11 +7744,8 @@ "204": { "$ref": "#/responses/empty" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" } } } @@ -8279,8 +7787,8 @@ "204": { "$ref": "#/responses/empty" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -8313,8 +7821,8 @@ "204": { "$ref": "#/responses/empty" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -8390,17 +7898,8 @@ "201": { "$ref": "#/responses/BranchProtection" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" - }, - "423": { - "$ref": "#/responses/repoArchivedError" + "default": { + "$ref": "#/responses/error" } } } @@ -8445,14 +7944,8 @@ "204": { "$ref": "#/responses/empty" }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" - }, - "423": { - "$ref": "#/responses/repoArchivedError" + "default": { + "$ref": "#/responses/error" } } } @@ -8494,8 +7987,8 @@ "200": { "$ref": "#/responses/BranchProtection" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -8535,8 +8028,8 @@ "204": { "$ref": "#/responses/empty" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -8586,14 +8079,8 @@ "200": { "$ref": "#/responses/BranchProtection" }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" - }, - "423": { - "$ref": "#/responses/repoArchivedError" + "default": { + "$ref": "#/responses/error" } } } @@ -8687,17 +8174,8 @@ "201": { "$ref": "#/responses/Branch" }, - "403": { - "description": "The branch is archived or a mirror." - }, - "404": { - "description": "The old branch does not exist." - }, - "409": { - "description": "The branch with the same name already exists." - }, - "423": { - "$ref": "#/responses/repoArchivedError" + "default": { + "$ref": "#/responses/error" } } } @@ -8739,8 +8217,8 @@ "200": { "$ref": "#/responses/Branch" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -8790,17 +8268,8 @@ "204": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "409": { - "$ref": "#/responses/conflict" - }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } }, @@ -8840,14 +8309,8 @@ "204": { "$ref": "#/responses/empty" }, - "403": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "423": { - "$ref": "#/responses/repoArchivedError" } } }, @@ -8897,14 +8360,8 @@ "204": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } } @@ -8951,8 +8408,8 @@ "200": { "$ref": "#/responses/UserList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -8994,11 +8451,8 @@ "204": { "$ref": "#/responses/empty" }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } }, @@ -9045,14 +8499,8 @@ "204": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } }, @@ -9092,11 +8540,8 @@ "204": { "$ref": "#/responses/empty" }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } } @@ -9138,11 +8583,8 @@ "200": { "$ref": "#/responses/RepoCollaboratorPermission" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -9239,11 +8681,8 @@ "200": { "$ref": "#/responses/CommitList" }, - "404": { - "$ref": "#/responses/notFound" - }, - "409": { - "$ref": "#/responses/EmptyRepository" + "default": { + "$ref": "#/responses/error" } } } @@ -9297,11 +8736,8 @@ "200": { "$ref": "#/responses/CombinedStatus" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" } } } @@ -9381,11 +8817,8 @@ "200": { "$ref": "#/responses/CommitStatusList" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" } } } @@ -9427,8 +8860,8 @@ "200": { "$ref": "#/responses/PullRequest" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -9494,11 +8927,8 @@ "200": { "$ref": "#/responses/Compare" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" } } } @@ -9540,8 +8970,8 @@ "200": { "$ref": "#/responses/ContentsListResponse" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -9585,17 +9015,8 @@ "201": { "$ref": "#/responses/FilesResponse" }, - "403": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/error" - }, - "423": { - "$ref": "#/responses/repoArchivedError" } } } @@ -9650,8 +9071,8 @@ "200": { "$ref": "#/responses/ContentsExtResponse" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -9700,8 +9121,8 @@ "200": { "$ref": "#/responses/ContentsResponse" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -9755,17 +9176,8 @@ "201": { "$ref": "#/responses/FileResponse" }, - "403": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/error" - }, - "423": { - "$ref": "#/responses/repoArchivedError" } } }, @@ -9816,17 +9228,8 @@ "201": { "$ref": "#/responses/FileResponse" }, - "403": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/error" - }, - "423": { - "$ref": "#/responses/repoArchivedError" } } }, @@ -9877,20 +9280,8 @@ "200": { "$ref": "#/responses/FileDeleteResponse" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "403": { - "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/error" - }, - "422": { - "$ref": "#/responses/error" - }, - "423": { - "$ref": "#/responses/repoArchivedError" } } } @@ -9936,11 +9327,8 @@ "200": { "$ref": "#/responses/FileResponse" }, - "404": { - "$ref": "#/responses/notFound" - }, - "423": { - "$ref": "#/responses/repoArchivedError" + "default": { + "$ref": "#/responses/error" } } } @@ -9988,8 +9376,8 @@ "200": { "description": "success" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -10038,8 +9426,8 @@ "200": { "$ref": "#/responses/ContentsListResponse" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -10087,8 +9475,8 @@ "200": { "$ref": "#/responses/ContentsListResponse" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -10135,8 +9523,8 @@ "200": { "$ref": "#/responses/RepositoryList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -10176,17 +9564,8 @@ "202": { "$ref": "#/responses/Repository" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "409": { - "description": "The repository with the same name already exists." - }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } } @@ -10228,11 +9607,8 @@ "200": { "$ref": "#/responses/GitBlobResponse" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" } } } @@ -10292,11 +9668,8 @@ "200": { "$ref": "#/responses/Commit" }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } } @@ -10349,8 +9722,8 @@ "200": { "$ref": "#/responses/string" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -10404,11 +9777,8 @@ "200": { "$ref": "#/responses/Note" }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } } @@ -10443,8 +9813,8 @@ "200": { "$ref": "#/responses/ReferenceList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -10486,8 +9856,8 @@ "200": { "$ref": "#/responses/ReferenceList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -10529,11 +9899,8 @@ "200": { "$ref": "#/responses/AnnotatedTag" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" } } } @@ -10593,11 +9960,8 @@ "200": { "$ref": "#/responses/GitTreeResponse" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" } } } @@ -10644,8 +10008,8 @@ "200": { "$ref": "#/responses/HookList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -10688,8 +10052,8 @@ "201": { "$ref": "#/responses/Hook" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -10724,8 +10088,8 @@ "200": { "$ref": "#/responses/GitHookList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -10767,8 +10131,8 @@ "200": { "$ref": "#/responses/GitHook" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -10808,8 +10172,8 @@ "204": { "$ref": "#/responses/empty" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -10856,8 +10220,8 @@ "200": { "$ref": "#/responses/GitHook" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -10900,8 +10264,8 @@ "200": { "$ref": "#/responses/Hook" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -10942,8 +10306,8 @@ "204": { "$ref": "#/responses/empty" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -10991,8 +10355,8 @@ "200": { "$ref": "#/responses/Hook" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -11047,8 +10411,8 @@ "200": { "$ref": "#/responses/HookDeliveryList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -11098,8 +10462,8 @@ "200": { "$ref": "#/responses/HookDelivery" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -11148,8 +10512,8 @@ "204": { "$ref": "#/responses/empty" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -11184,8 +10548,8 @@ "200": { "$ref": "#/responses/RepoIssueConfig" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -11220,8 +10584,8 @@ "200": { "$ref": "#/responses/RepoIssueConfigValidation" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -11256,8 +10620,8 @@ "200": { "$ref": "#/responses/IssueTemplates" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -11375,8 +10739,8 @@ "200": { "$ref": "#/responses/IssueList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -11419,20 +10783,8 @@ "201": { "$ref": "#/responses/Issue" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "412": { + "default": { "$ref": "#/responses/error" - }, - "422": { - "$ref": "#/responses/validationError" - }, - "423": { - "$ref": "#/responses/repoArchivedError" } } } @@ -11493,8 +10845,8 @@ "200": { "$ref": "#/responses/CommentList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -11543,11 +10895,8 @@ "204": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -11585,11 +10934,8 @@ "204": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -11643,14 +10989,8 @@ "204": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "423": { - "$ref": "#/responses/repoArchivedError" + "default": { + "$ref": "#/responses/error" } } } @@ -11693,7 +11033,7 @@ "200": { "$ref": "#/responses/AttachmentList" }, - "404": { + "default": { "$ref": "#/responses/error" } } @@ -11751,23 +11091,8 @@ "201": { "$ref": "#/responses/Attachment" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/error" - }, - "413": { - "$ref": "#/responses/error" - }, - "422": { - "$ref": "#/responses/validationError" - }, - "423": { - "$ref": "#/responses/repoArchivedError" } } } @@ -11818,7 +11143,7 @@ "200": { "$ref": "#/responses/Attachment" }, - "404": { + "default": { "$ref": "#/responses/error" } } @@ -11868,11 +11193,8 @@ "204": { "$ref": "#/responses/empty" }, - "404": { + "default": { "$ref": "#/responses/error" - }, - "423": { - "$ref": "#/responses/repoArchivedError" } } }, @@ -11931,14 +11253,8 @@ "201": { "$ref": "#/responses/Attachment" }, - "404": { + "default": { "$ref": "#/responses/error" - }, - "422": { - "$ref": "#/responses/validationError" - }, - "423": { - "$ref": "#/responses/repoArchivedError" } } } @@ -11984,11 +11300,8 @@ "200": { "$ref": "#/responses/ReactionList" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -12042,11 +11355,8 @@ "201": { "$ref": "#/responses/Reaction" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -12097,11 +11407,8 @@ "204": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -12136,8 +11443,8 @@ "200": { "$ref": "#/responses/IssueList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -12180,8 +11487,8 @@ "200": { "$ref": "#/responses/Issue" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -12219,14 +11526,8 @@ "204": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "423": { - "$ref": "#/responses/repoArchivedError" + "default": { + "$ref": "#/responses/error" } } }, @@ -12278,17 +11579,8 @@ "201": { "$ref": "#/responses/Issue" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "412": { + "default": { "$ref": "#/responses/error" - }, - "423": { - "$ref": "#/responses/repoArchivedError" } } } @@ -12331,7 +11623,7 @@ "200": { "$ref": "#/responses/AttachmentList" }, - "404": { + "default": { "$ref": "#/responses/error" } } @@ -12389,20 +11681,8 @@ "201": { "$ref": "#/responses/Attachment" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/error" - }, - "413": { - "$ref": "#/responses/error" - }, - "422": { - "$ref": "#/responses/validationError" - }, - "423": { - "$ref": "#/responses/repoArchivedError" } } } @@ -12453,7 +11733,7 @@ "200": { "$ref": "#/responses/Attachment" }, - "404": { + "default": { "$ref": "#/responses/error" } } @@ -12503,11 +11783,8 @@ "204": { "$ref": "#/responses/empty" }, - "404": { + "default": { "$ref": "#/responses/error" - }, - "423": { - "$ref": "#/responses/repoArchivedError" } } }, @@ -12566,14 +11843,8 @@ "201": { "$ref": "#/responses/Attachment" }, - "404": { + "default": { "$ref": "#/responses/error" - }, - "422": { - "$ref": "#/responses/validationError" - }, - "423": { - "$ref": "#/responses/repoArchivedError" } } } @@ -12627,17 +11898,8 @@ "201": { "$ref": "#/responses/Issue" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" } } }, @@ -12689,14 +11951,8 @@ "200": { "$ref": "#/responses/Issue" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } } @@ -12746,11 +12002,8 @@ "204": { "$ref": "#/responses/empty" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" } } } @@ -12804,8 +12057,8 @@ "200": { "$ref": "#/responses/IssueList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -12852,8 +12105,8 @@ "201": { "$ref": "#/responses/Issue" }, - "404": { - "description": "the issue does not exist" + "default": { + "$ref": "#/responses/error" } } }, @@ -12900,8 +12153,8 @@ "200": { "$ref": "#/responses/Issue" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -12958,8 +12211,8 @@ "200": { "$ref": "#/responses/CommentList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -13010,14 +12263,8 @@ "201": { "$ref": "#/responses/Comment" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "423": { - "$ref": "#/responses/repoArchivedError" + "default": { + "$ref": "#/responses/error" } } } @@ -13065,11 +12312,8 @@ "204": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -13131,11 +12375,8 @@ "204": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -13188,11 +12429,8 @@ "201": { "$ref": "#/responses/IssueDeadline" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -13246,8 +12484,8 @@ "200": { "$ref": "#/responses/IssueList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -13294,11 +12532,8 @@ "201": { "$ref": "#/responses/Issue" }, - "404": { - "description": "the issue does not exist" - }, - "423": { - "$ref": "#/responses/repoArchivedError" + "default": { + "$ref": "#/responses/error" } } }, @@ -13345,11 +12580,8 @@ "200": { "$ref": "#/responses/Issue" }, - "404": { - "$ref": "#/responses/notFound" - }, - "423": { - "$ref": "#/responses/repoArchivedError" + "default": { + "$ref": "#/responses/error" } } } @@ -13392,8 +12624,8 @@ "200": { "$ref": "#/responses/LabelList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -13444,14 +12676,8 @@ "200": { "$ref": "#/responses/LabelList" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "423": { - "$ref": "#/responses/repoArchivedError" + "default": { + "$ref": "#/responses/error" } } }, @@ -13502,14 +12728,8 @@ "200": { "$ref": "#/responses/LabelList" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "423": { - "$ref": "#/responses/repoArchivedError" + "default": { + "$ref": "#/responses/error" } } }, @@ -13550,14 +12770,8 @@ "204": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "423": { - "$ref": "#/responses/repoArchivedError" + "default": { + "$ref": "#/responses/error" } } } @@ -13608,17 +12822,8 @@ "204": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" - }, - "423": { - "$ref": "#/responses/repoArchivedError" + "default": { + "$ref": "#/responses/error" } } } @@ -13671,11 +12876,8 @@ "204": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -13719,11 +12921,8 @@ "204": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -13763,11 +12962,8 @@ "204": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -13805,11 +13001,8 @@ "204": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -13857,11 +13050,8 @@ "204": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -13919,11 +13109,8 @@ "200": { "$ref": "#/responses/ReactionList" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -13977,11 +13164,8 @@ "201": { "$ref": "#/responses/Reaction" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -14032,11 +13216,8 @@ "204": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -14082,14 +13263,8 @@ "204": { "$ref": "#/responses/empty" }, - "403": { - "description": "Not repo writer, user does not have rights to toggle stopwatch" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "409": { - "description": "Cannot cancel a non-existent stopwatch" + "default": { + "$ref": "#/responses/error" } } } @@ -14135,14 +13310,8 @@ "201": { "$ref": "#/responses/empty" }, - "403": { - "description": "Not repo writer, user does not have rights to toggle stopwatch" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "409": { - "description": "Cannot start a stopwatch again if it already exists" + "default": { + "$ref": "#/responses/error" } } } @@ -14188,14 +13357,8 @@ "201": { "$ref": "#/responses/empty" }, - "403": { - "description": "Not repo writer, user does not have rights to toggle stopwatch" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "409": { - "description": "Cannot stop a non-existent stopwatch" + "default": { + "$ref": "#/responses/error" } } } @@ -14253,8 +13416,8 @@ "200": { "$ref": "#/responses/UserList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -14300,8 +13463,8 @@ "200": { "$ref": "#/responses/WatchInfo" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -14360,8 +13523,8 @@ "304": { "description": "User can only subscribe itself if he is no admin" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -14418,8 +13581,8 @@ "304": { "description": "User can only subscribe itself if he is no admin" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -14488,8 +13651,8 @@ "200": { "$ref": "#/responses/TimelineList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -14564,8 +13727,8 @@ "200": { "$ref": "#/responses/TrackedTimeList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -14616,14 +13779,8 @@ "200": { "$ref": "#/responses/TrackedTime" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" } } }, @@ -14667,14 +13824,8 @@ "204": { "$ref": "#/responses/empty" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" } } } @@ -14728,14 +13879,8 @@ "204": { "$ref": "#/responses/empty" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" } } } @@ -14794,8 +13939,8 @@ "200": { "$ref": "#/responses/DeployKeyList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -14838,11 +13983,8 @@ "201": { "$ref": "#/responses/DeployKey" }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } } @@ -14887,11 +14029,8 @@ "201": { "$ref": "#/responses/DeployKey" }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } } @@ -14934,8 +14073,8 @@ "200": { "$ref": "#/responses/DeployKey" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -14973,11 +14112,8 @@ "204": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -15024,8 +14160,8 @@ "200": { "$ref": "#/responses/LabelList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -15068,11 +14204,8 @@ "201": { "$ref": "#/responses/Label" }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } } @@ -15103,9 +14236,8 @@ "required": true }, { - "type": "integer", - "format": "int64", - "description": "id of the label to get", + "type": "string", + "description": "id of the label to get, or its name when not numeric", "name": "id", "in": "path", "required": true @@ -15115,8 +14247,8 @@ "200": { "$ref": "#/responses/Label" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -15142,9 +14274,8 @@ "required": true }, { - "type": "integer", - "format": "int64", - "description": "id of the label to delete", + "type": "string", + "description": "id of the label to delete, or its name when not numeric", "name": "id", "in": "path", "required": true @@ -15154,8 +14285,8 @@ "204": { "$ref": "#/responses/empty" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -15187,9 +14318,8 @@ "required": true }, { - "type": "integer", - "format": "int64", - "description": "id of the label to edit", + "type": "string", + "description": "id of the label to edit, or its name when not numeric", "name": "id", "in": "path", "required": true @@ -15206,11 +14336,8 @@ "200": { "$ref": "#/responses/Label" }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } } @@ -15245,8 +14372,8 @@ "200": { "$ref": "#/responses/LanguageStatistics" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -15281,8 +14408,8 @@ "200": { "$ref": "#/responses/LicensesList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -15333,8 +14460,8 @@ "type": "file" } }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -15376,13 +14503,7 @@ "200": { "$ref": "#/responses/MergeUpstreamResponse" }, - "400": { - "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "409": { + "default": { "$ref": "#/responses/error" } } @@ -15442,8 +14563,8 @@ "200": { "$ref": "#/responses/MilestoneList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -15486,8 +14607,8 @@ "201": { "$ref": "#/responses/Milestone" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -15529,8 +14650,8 @@ "200": { "$ref": "#/responses/Milestone" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -15567,8 +14688,8 @@ "204": { "$ref": "#/responses/empty" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -15618,8 +14739,8 @@ "200": { "$ref": "#/responses/Milestone" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -15654,11 +14775,8 @@ "200": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -15693,8 +14811,8 @@ "200": { "$ref": "#/responses/RepoNewIssuePinsAllowed" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -15910,8 +15028,8 @@ "200": { "$ref": "#/responses/ProjectList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -15954,14 +15072,8 @@ "201": { "$ref": "#/responses/Project" }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" - }, - "423": { - "$ref": "#/responses/repoArchivedError" + "default": { + "$ref": "#/responses/error" } } } @@ -16004,8 +15116,8 @@ "200": { "$ref": "#/responses/Project" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -16043,11 +15155,8 @@ "204": { "$ref": "#/responses/empty" }, - "404": { - "$ref": "#/responses/notFound" - }, - "423": { - "$ref": "#/responses/repoArchivedError" + "default": { + "$ref": "#/responses/error" } } }, @@ -16098,14 +15207,8 @@ "200": { "$ref": "#/responses/Project" }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" - }, - "423": { - "$ref": "#/responses/repoArchivedError" + "default": { + "$ref": "#/responses/error" } } } @@ -16160,8 +15263,8 @@ "200": { "$ref": "#/responses/ProjectColumnList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -16212,17 +15315,8 @@ "201": { "$ref": "#/responses/ProjectColumn" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" - }, - "423": { - "$ref": "#/responses/repoArchivedError" + "default": { + "$ref": "#/responses/error" } } } @@ -16273,17 +15367,8 @@ "204": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" - }, - "423": { - "$ref": "#/responses/repoArchivedError" + "default": { + "$ref": "#/responses/error" } } } @@ -16334,8 +15419,8 @@ "200": { "$ref": "#/responses/ProjectColumn" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -16382,17 +15467,8 @@ "204": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" - }, - "423": { - "$ref": "#/responses/repoArchivedError" + "default": { + "$ref": "#/responses/error" } } }, @@ -16451,17 +15527,8 @@ "200": { "$ref": "#/responses/ProjectColumn" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" - }, - "423": { - "$ref": "#/responses/repoArchivedError" + "default": { + "$ref": "#/responses/error" } } } @@ -16510,14 +15577,8 @@ "204": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "423": { - "$ref": "#/responses/repoArchivedError" + "default": { + "$ref": "#/responses/error" } } } @@ -16580,8 +15641,8 @@ "200": { "$ref": "#/responses/IssueList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -16638,17 +15699,8 @@ "201": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" - }, - "423": { - "$ref": "#/responses/repoArchivedError" + "default": { + "$ref": "#/responses/error" } } }, @@ -16702,14 +15754,8 @@ "204": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "423": { - "$ref": "#/responses/repoArchivedError" + "default": { + "$ref": "#/responses/error" } } } @@ -16767,17 +15813,8 @@ "204": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" - }, - "423": { - "$ref": "#/responses/repoArchivedError" + "default": { + "$ref": "#/responses/error" } } } @@ -16832,8 +15869,8 @@ "200": { "$ref": "#/responses/ProjectWorkflowList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -16884,17 +15921,8 @@ "201": { "$ref": "#/responses/ProjectWorkflow" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" - }, - "423": { - "$ref": "#/responses/repoArchivedError" + "default": { + "$ref": "#/responses/error" } } } @@ -16945,8 +15973,8 @@ "200": { "$ref": "#/responses/ProjectWorkflow" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -16992,14 +16020,8 @@ "204": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "423": { - "$ref": "#/responses/repoArchivedError" + "default": { + "$ref": "#/responses/error" } } }, @@ -17058,17 +16080,8 @@ "200": { "$ref": "#/responses/ProjectWorkflow" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" - }, - "423": { - "$ref": "#/responses/repoArchivedError" + "default": { + "$ref": "#/responses/error" } } } @@ -17175,10 +16188,7 @@ "200": { "$ref": "#/responses/PullRequestList" }, - "404": { - "$ref": "#/responses/notFound" - }, - "500": { + "default": { "$ref": "#/responses/error" } } @@ -17222,20 +16232,8 @@ "201": { "$ref": "#/responses/PullRequest" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "409": { + "default": { "$ref": "#/responses/error" - }, - "422": { - "$ref": "#/responses/validationError" - }, - "423": { - "$ref": "#/responses/repoArchivedError" } } } @@ -17278,14 +16276,8 @@ "204": { "$ref": "#/responses/empty" }, - "400": { - "$ref": "#/responses/validationError" - }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -17328,14 +16320,8 @@ "204": { "$ref": "#/responses/empty" }, - "400": { - "$ref": "#/responses/validationError" - }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -17370,8 +16356,8 @@ "200": { "$ref": "#/responses/PullRequestList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -17420,8 +16406,8 @@ "200": { "$ref": "#/responses/PullRequest" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -17464,8 +16450,8 @@ "200": { "$ref": "#/responses/PullRequest" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -17516,23 +16502,8 @@ "201": { "$ref": "#/responses/PullRequest" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "409": { - "$ref": "#/responses/error" - }, - "412": { - "$ref": "#/responses/error" - }, - "422": { - "$ref": "#/responses/validationError" } } } @@ -17592,8 +16563,8 @@ "200": { "$ref": "#/responses/string" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -17655,14 +16626,8 @@ "201": { "$ref": "#/responses/PullReviewComment" }, - "400": { - "$ref": "#/responses/validationError" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } } @@ -17729,8 +16694,8 @@ "200": { "$ref": "#/responses/CommitList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -17803,8 +16768,8 @@ "200": { "$ref": "#/responses/ChangedFileList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -17847,8 +16812,8 @@ "204": { "description": "pull request has been merged" }, - "404": { - "description": "pull request has not been merged" + "default": { + "$ref": "#/responses/error" } } }, @@ -17896,20 +16861,8 @@ "200": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "405": { - "$ref": "#/responses/empty" - }, - "409": { + "default": { "$ref": "#/responses/error" - }, - "423": { - "$ref": "#/responses/repoArchivedError" } } }, @@ -17950,14 +16903,8 @@ "204": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "423": { - "$ref": "#/responses/repoArchivedError" + "default": { + "$ref": "#/responses/error" } } } @@ -18008,11 +16955,8 @@ "201": { "$ref": "#/responses/PullReviewList" }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } }, @@ -18061,14 +17005,8 @@ "204": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } } @@ -18123,8 +17061,8 @@ "200": { "$ref": "#/responses/PullReviewList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -18173,11 +17111,8 @@ "200": { "$ref": "#/responses/PullReview" }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } } @@ -18228,8 +17163,8 @@ "200": { "$ref": "#/responses/PullReview" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -18286,11 +17221,8 @@ "200": { "$ref": "#/responses/PullReview" }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } }, @@ -18339,11 +17271,8 @@ "204": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -18394,8 +17323,8 @@ "200": { "$ref": "#/responses/PullReviewCommentList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -18454,14 +17383,8 @@ "200": { "$ref": "#/responses/PullReview" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } } @@ -18512,14 +17435,8 @@ "200": { "$ref": "#/responses/PullReview" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } } @@ -18572,17 +17489,8 @@ "200": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "409": { + "default": { "$ref": "#/responses/error" - }, - "422": { - "$ref": "#/responses/validationError" } } } @@ -18629,14 +17537,8 @@ "200": { "$ref": "#/responses/PushMirrorList" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" } } }, @@ -18679,14 +17581,8 @@ "200": { "$ref": "#/responses/PushMirror" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" } } } @@ -18721,17 +17617,8 @@ "200": { "$ref": "#/responses/empty" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" } } } @@ -18773,14 +17660,8 @@ "200": { "$ref": "#/responses/PushMirror" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" } } }, @@ -18820,11 +17701,8 @@ "204": { "$ref": "#/responses/empty" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" } } } @@ -18875,8 +17753,8 @@ "type": "file" } }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -18941,8 +17819,8 @@ "200": { "$ref": "#/responses/ReleaseList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -18985,14 +17863,8 @@ "201": { "$ref": "#/responses/Release" }, - "404": { - "$ref": "#/responses/notFound" - }, - "409": { + "default": { "$ref": "#/responses/error" - }, - "422": { - "$ref": "#/responses/validationError" } } } @@ -19027,8 +17899,8 @@ "200": { "$ref": "#/responses/Release" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -19070,8 +17942,8 @@ "200": { "$ref": "#/responses/Release" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -19108,11 +17980,8 @@ "204": { "$ref": "#/responses/empty" }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } } @@ -19155,8 +18024,8 @@ "200": { "$ref": "#/responses/Release" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -19194,11 +18063,8 @@ "204": { "$ref": "#/responses/empty" }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } }, @@ -19249,8 +18115,8 @@ "200": { "$ref": "#/responses/Release" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -19293,8 +18159,8 @@ "200": { "$ref": "#/responses/AttachmentList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -19351,13 +18217,7 @@ "201": { "$ref": "#/responses/Attachment" }, - "400": { - "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "413": { + "default": { "$ref": "#/responses/error" } } @@ -19409,8 +18269,8 @@ "200": { "$ref": "#/responses/Attachment" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -19459,8 +18319,8 @@ "204": { "$ref": "#/responses/empty" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -19519,11 +18379,8 @@ "201": { "$ref": "#/responses/Attachment" }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } } @@ -19558,8 +18415,8 @@ "200": { "$ref": "#/responses/UserList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -19678,11 +18535,8 @@ "200": { "$ref": "#/responses/UserList" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -19762,11 +18616,8 @@ "200": { "$ref": "#/responses/CommitStatusList" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" } } }, @@ -19813,11 +18664,8 @@ "201": { "$ref": "#/responses/CommitStatus" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" } } } @@ -19864,8 +18712,8 @@ "200": { "$ref": "#/responses/UserList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -19897,8 +18745,8 @@ "200": { "$ref": "#/responses/WatchInfo" }, - "404": { - "description": "User is not watching this repo or repo do not exist" + "default": { + "$ref": "#/responses/error" } } }, @@ -19928,11 +18776,8 @@ "200": { "$ref": "#/responses/WatchInfo" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -19962,8 +18807,8 @@ "204": { "$ref": "#/responses/empty" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -20039,17 +18884,8 @@ "201": { "$ref": "#/responses/TagProtection" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" - }, - "423": { - "$ref": "#/responses/repoArchivedError" + "default": { + "$ref": "#/responses/error" } } } @@ -20091,8 +18927,8 @@ "200": { "$ref": "#/responses/TagProtection" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -20132,8 +18968,8 @@ "204": { "$ref": "#/responses/empty" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -20183,14 +19019,8 @@ "200": { "$ref": "#/responses/TagProtection" }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" - }, - "423": { - "$ref": "#/responses/repoArchivedError" + "default": { + "$ref": "#/responses/error" } } } @@ -20237,8 +19067,8 @@ "200": { "$ref": "#/responses/TagList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -20278,20 +19108,8 @@ "200": { "$ref": "#/responses/Tag" }, - "404": { - "$ref": "#/responses/notFound" - }, - "405": { - "$ref": "#/responses/empty" - }, - "409": { - "$ref": "#/responses/conflict" - }, - "422": { - "$ref": "#/responses/validationError" - }, - "423": { - "$ref": "#/responses/repoArchivedError" + "default": { + "$ref": "#/responses/error" } } } @@ -20333,8 +19151,8 @@ "200": { "$ref": "#/responses/Tag" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -20374,20 +19192,8 @@ "204": { "$ref": "#/responses/empty" }, - "404": { - "$ref": "#/responses/notFound" - }, - "405": { - "$ref": "#/responses/empty" - }, - "409": { - "$ref": "#/responses/conflict" - }, - "422": { - "$ref": "#/responses/validationError" - }, - "423": { - "$ref": "#/responses/repoArchivedError" + "default": { + "$ref": "#/responses/error" } } } @@ -20422,8 +19228,8 @@ "200": { "$ref": "#/responses/TeamList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -20465,10 +19271,7 @@ "200": { "$ref": "#/responses/Team" }, - "404": { - "$ref": "#/responses/notFound" - }, - "405": { + "default": { "$ref": "#/responses/error" } } @@ -20509,17 +19312,8 @@ "204": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "405": { + "default": { "$ref": "#/responses/error" - }, - "422": { - "$ref": "#/responses/validationError" } } }, @@ -20559,17 +19353,8 @@ "204": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "405": { + "default": { "$ref": "#/responses/error" - }, - "422": { - "$ref": "#/responses/validationError" } } } @@ -20636,14 +19421,8 @@ "200": { "$ref": "#/responses/TrackedTimeList" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" } } } @@ -20686,14 +19465,8 @@ "200": { "$ref": "#/responses/TrackedTimeList" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" } } } @@ -20740,8 +19513,8 @@ "200": { "$ref": "#/responses/TopicNames" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -20781,14 +19554,8 @@ "204": { "$ref": "#/responses/empty" }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/invalidTopicsError" - }, - "423": { - "$ref": "#/responses/repoArchivedError" + "default": { + "$ref": "#/responses/error" } } } @@ -20830,14 +19597,8 @@ "204": { "$ref": "#/responses/empty" }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/invalidTopicsError" - }, - "423": { - "$ref": "#/responses/repoArchivedError" + "default": { + "$ref": "#/responses/error" } } }, @@ -20877,14 +19638,8 @@ "204": { "$ref": "#/responses/empty" }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/invalidTopicsError" - }, - "423": { - "$ref": "#/responses/repoArchivedError" + "default": { + "$ref": "#/responses/error" } } } @@ -20928,14 +19683,8 @@ "202": { "$ref": "#/responses/Repository" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } } @@ -20970,11 +19719,8 @@ "202": { "$ref": "#/responses/Repository" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -21009,11 +19755,8 @@ "200": { "$ref": "#/responses/Repository" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -21055,17 +19798,8 @@ "201": { "$ref": "#/responses/WikiPage" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "423": { - "$ref": "#/responses/repoArchivedError" } } } @@ -21107,8 +19841,8 @@ "200": { "$ref": "#/responses/WikiPage" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -21145,14 +19879,8 @@ "204": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "423": { - "$ref": "#/responses/repoArchivedError" + "default": { + "$ref": "#/responses/error" } } }, @@ -21199,17 +19927,8 @@ "200": { "$ref": "#/responses/WikiPage" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "423": { - "$ref": "#/responses/repoArchivedError" } } } @@ -21256,8 +19975,8 @@ "200": { "$ref": "#/responses/WikiPageList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -21305,8 +20024,8 @@ "200": { "$ref": "#/responses/WikiCommitList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -21351,17 +20070,8 @@ "201": { "$ref": "#/responses/Repository" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "409": { - "description": "The repository with the same name already exists." - }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } } @@ -21390,8 +20100,8 @@ "200": { "$ref": "#/responses/Repository" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -21528,8 +20238,8 @@ "200": { "$ref": "#/responses/Team" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -21553,8 +20263,8 @@ "204": { "description": "team deleted" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -21590,8 +20300,8 @@ "200": { "$ref": "#/responses/Team" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -21639,8 +20349,8 @@ "200": { "$ref": "#/responses/ActivityFeedsList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -21681,8 +20391,8 @@ "200": { "$ref": "#/responses/UserList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -21718,8 +20428,8 @@ "200": { "$ref": "#/responses/User" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -21753,11 +20463,8 @@ "204": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -21791,8 +20498,8 @@ "204": { "$ref": "#/responses/empty" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -21833,8 +20540,8 @@ "200": { "$ref": "#/responses/RepositoryList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -21877,8 +20584,8 @@ "200": { "$ref": "#/responses/Repository" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -21919,11 +20626,8 @@ "204": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -21965,11 +20669,8 @@ "204": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -22041,11 +20742,8 @@ "200": { "$ref": "#/responses/TopicListResponse" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -22113,14 +20811,8 @@ "200": { "$ref": "#/responses/WorkflowJobsList" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" } } } @@ -22147,11 +20839,8 @@ "200": { "$ref": "#/responses/RunnerList" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" } } } @@ -22196,11 +20885,8 @@ "200": { "$ref": "#/responses/Runner" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" } } }, @@ -22226,11 +20912,8 @@ "204": { "description": "runner has been deleted" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" } } }, @@ -22266,14 +20949,8 @@ "200": { "$ref": "#/responses/Runner" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" } } } @@ -22336,11 +21013,8 @@ "200": { "$ref": "#/responses/WorkflowRunsList" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" } } } @@ -22381,11 +21055,8 @@ "204": { "description": "response when updating a secret" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" } } }, @@ -22414,11 +21085,8 @@ "204": { "description": "delete one secret of the user" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" } } } @@ -22451,11 +21119,8 @@ "200": { "$ref": "#/responses/VariableList" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" } } } @@ -22483,11 +21148,8 @@ "200": { "$ref": "#/responses/ActionVariable" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" } } }, @@ -22526,11 +21188,8 @@ "204": { "description": "response when updating a variable" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" } } }, @@ -22566,11 +21225,8 @@ "201": { "description": "successfully created the user-level variable" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "409": { - "description": "variable name already exists." } } }, @@ -22599,11 +21255,8 @@ "204": { "description": "response when deleting a variable" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" } } } @@ -22661,7 +21314,7 @@ "201": { "$ref": "#/responses/OAuth2Application" }, - "400": { + "default": { "$ref": "#/responses/error" } } @@ -22691,8 +21344,8 @@ "200": { "$ref": "#/responses/OAuth2Application" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -22719,8 +21372,8 @@ "204": { "$ref": "#/responses/empty" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -22755,11 +21408,8 @@ "200": { "$ref": "#/responses/OAuth2Application" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "404": { - "$ref": "#/responses/notFound" } } } @@ -22856,8 +21506,8 @@ "204": { "$ref": "#/responses/empty" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -22886,11 +21536,8 @@ "204": { "$ref": "#/responses/empty" }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } }, @@ -22913,11 +21560,8 @@ "204": { "$ref": "#/responses/empty" }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } } @@ -22960,14 +21604,8 @@ "201": { "$ref": "#/responses/EmailList" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "409": { - "$ref": "#/responses/error" - }, - "422": { - "$ref": "#/responses/validationError" } } }, @@ -22993,8 +21631,8 @@ "204": { "$ref": "#/responses/empty" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -23081,8 +21719,8 @@ "204": { "$ref": "#/responses/empty" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -23105,11 +21743,8 @@ "204": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -23132,8 +21767,8 @@ "204": { "$ref": "#/responses/empty" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -23152,14 +21787,8 @@ "200": { "$ref": "#/responses/string" }, - "401": { - "$ref": "#/responses/unauthorized" - }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -23181,17 +21810,8 @@ "201": { "$ref": "#/responses/GPGKey" }, - "401": { - "$ref": "#/responses/unauthorized" - }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } } @@ -23224,11 +21844,8 @@ "200": { "$ref": "#/responses/GPGKeyList" }, - "401": { - "$ref": "#/responses/unauthorized" - }, - "403": { - "$ref": "#/responses/forbidden" + "default": { + "$ref": "#/responses/error" } } }, @@ -23257,17 +21874,8 @@ "201": { "$ref": "#/responses/GPGKey" }, - "401": { - "$ref": "#/responses/unauthorized" - }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } } @@ -23296,14 +21904,8 @@ "200": { "$ref": "#/responses/GPGKey" }, - "401": { - "$ref": "#/responses/unauthorized" - }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -23330,14 +21932,8 @@ "204": { "$ref": "#/responses/empty" }, - "401": { - "$ref": "#/responses/unauthorized" - }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -23522,11 +22118,8 @@ "200": { "$ref": "#/responses/PublicKeyList" }, - "401": { - "$ref": "#/responses/unauthorized" - }, - "403": { - "$ref": "#/responses/forbidden" + "default": { + "$ref": "#/responses/error" } } }, @@ -23555,14 +22148,8 @@ "201": { "$ref": "#/responses/PublicKey" }, - "401": { - "$ref": "#/responses/unauthorized" - }, - "403": { - "$ref": "#/responses/forbidden" - }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } } @@ -23591,14 +22178,8 @@ "200": { "$ref": "#/responses/PublicKey" }, - "401": { - "$ref": "#/responses/unauthorized" - }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -23625,14 +22206,8 @@ "204": { "$ref": "#/responses/empty" }, - "401": { - "$ref": "#/responses/unauthorized" - }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -23665,8 +22240,8 @@ "200": { "$ref": "#/responses/OrganizationList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -23738,8 +22313,8 @@ "201": { "$ref": "#/responses/Project" }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } } @@ -23768,8 +22343,8 @@ "200": { "$ref": "#/responses/Project" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -23793,8 +22368,8 @@ "204": { "$ref": "#/responses/empty" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -23831,11 +22406,8 @@ "200": { "$ref": "#/responses/Project" }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } } @@ -23876,8 +22448,8 @@ "200": { "$ref": "#/responses/ProjectColumnList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -23914,14 +22486,8 @@ "201": { "$ref": "#/responses/ProjectColumn" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } } @@ -23958,14 +22524,8 @@ "204": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } } @@ -24002,8 +22562,8 @@ "200": { "$ref": "#/responses/ProjectColumn" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -24036,14 +22596,8 @@ "204": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } }, @@ -24088,14 +22642,8 @@ "200": { "$ref": "#/responses/ProjectColumn" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } } @@ -24130,11 +22678,8 @@ "204": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -24183,8 +22728,8 @@ "200": { "$ref": "#/responses/IssueList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -24227,17 +22772,8 @@ "201": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" - }, - "423": { - "$ref": "#/responses/repoArchivedError" + "default": { + "$ref": "#/responses/error" } } }, @@ -24277,14 +22813,8 @@ "204": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "423": { - "$ref": "#/responses/repoArchivedError" + "default": { + "$ref": "#/responses/error" } } } @@ -24328,17 +22858,8 @@ "204": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" - }, - "423": { - "$ref": "#/responses/repoArchivedError" + "default": { + "$ref": "#/responses/error" } } } @@ -24379,8 +22900,8 @@ "200": { "$ref": "#/responses/ProjectWorkflowList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -24417,14 +22938,8 @@ "201": { "$ref": "#/responses/ProjectWorkflow" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } } @@ -24461,8 +22976,8 @@ "200": { "$ref": "#/responses/ProjectWorkflow" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -24494,11 +23009,8 @@ "204": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -24543,14 +23055,8 @@ "200": { "$ref": "#/responses/ProjectWorkflow" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { - "$ref": "#/responses/validationError" + "default": { + "$ref": "#/responses/error" } } } @@ -24610,14 +23116,8 @@ "201": { "$ref": "#/responses/Repository" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "409": { - "description": "The repository with the same name already exists." - }, - "422": { - "$ref": "#/responses/validationError" } } } @@ -24691,8 +23191,8 @@ "200": { "$ref": "#/responses/RepositoryList" }, - "403": { - "$ref": "#/responses/forbidden" + "default": { + "$ref": "#/responses/error" } } } @@ -24724,11 +23224,8 @@ "204": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -24758,11 +23255,8 @@ "204": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } }, @@ -24792,11 +23286,8 @@ "204": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -25023,8 +23514,8 @@ "200": { "$ref": "#/responses/User" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -25077,8 +23568,8 @@ "200": { "$ref": "#/responses/ActivityFeedsList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -25118,8 +23609,8 @@ "200": { "$ref": "#/responses/UserList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -25159,8 +23650,8 @@ "200": { "$ref": "#/responses/UserList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -25192,8 +23683,8 @@ "204": { "$ref": "#/responses/empty" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -25233,8 +23724,8 @@ "200": { "$ref": "#/responses/GPGKeyList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -25262,8 +23753,8 @@ "200": { "$ref": "#/responses/UserHeatmapData" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -25309,8 +23800,8 @@ "200": { "$ref": "#/responses/PublicKeyList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -25350,8 +23841,8 @@ "200": { "$ref": "#/responses/OrganizationList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -25386,11 +23877,8 @@ "200": { "$ref": "#/responses/OrganizationPermissions" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -25442,8 +23930,8 @@ "200": { "$ref": "#/responses/ProjectList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -25483,8 +23971,8 @@ "200": { "$ref": "#/responses/RepositoryList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -25524,11 +24012,8 @@ "200": { "$ref": "#/responses/RepositoryList" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -25568,8 +24053,8 @@ "200": { "$ref": "#/responses/RepositoryList" }, - "404": { - "$ref": "#/responses/notFound" + "default": { + "$ref": "#/responses/error" } } } @@ -25609,8 +24094,8 @@ "200": { "$ref": "#/responses/AccessTokenList" }, - "403": { - "$ref": "#/responses/forbidden" + "default": { + "$ref": "#/responses/error" } } }, @@ -25646,11 +24131,8 @@ "201": { "$ref": "#/responses/AccessToken" }, - "400": { + "default": { "$ref": "#/responses/error" - }, - "403": { - "$ref": "#/responses/forbidden" } } } @@ -25685,13 +24167,7 @@ "204": { "$ref": "#/responses/empty" }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - }, - "422": { + "default": { "$ref": "#/responses/error" } } @@ -25716,23 +24192,6 @@ } }, "definitions": { - "APIError": { - "description": "APIError is an api error with a message", - "type": "object", - "properties": { - "message": { - "description": "Message contains the error description", - "type": "string", - "x-go-name": "Message" - }, - "url": { - "description": "URL contains the documentation URL for this error", - "type": "string", - "x-go-name": "URL" - } - }, - "x-go-package": "gitea.dev/modules/structs" - }, "AccessToken": { "type": "object", "title": "AccessToken represents an API access token.", @@ -27665,6 +26124,7 @@ "example": [ "all", "read:activitypub", + "write:commitstatus", "read:issue", "write:misc", "read:notification", @@ -32013,7 +30473,8 @@ "codebase", "codecommit", "bitbucketserver", - "forgejo" + "forgejo", + "bitbucket" ], "x-go-name": "Service" }, @@ -32526,6 +30987,14 @@ "type": "string", "x-go-name": "Name" }, + "properties": { + "description": "The type specific properties locating the package file, e.g. the distribution and component of a Debian package", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-go-name": "Properties" + }, "sha1": { "description": "The SHA1 hash of the package file", "type": "string", @@ -35567,12 +34036,6 @@ } } }, - "EmptyRepository": { - "description": "EmptyRepository", - "schema": { - "$ref": "#/definitions/APIError" - } - }, "FileDeleteResponse": { "description": "FileDeleteResponse", "schema": { @@ -36359,9 +34822,6 @@ "$ref": "#/definitions/ActionWorkflowRunsResponse" } }, - "conflict": { - "description": "APIConflict is a conflict empty response" - }, "empty": { "description": "APIEmpty is an empty response" }, @@ -36376,72 +34836,11 @@ } } }, - "forbidden": { - "description": "APIForbiddenError is a forbidden error response", - "headers": { - "message": { - "type": "string" - }, - "url": { - "type": "string" - } - } - }, - "invalidTopicsError": { - "description": "APIInvalidTopicsError is error format response to invalid topics", - "headers": { - "invalidTopics": { - "type": "array", - "items": { - "type": "string" - } - }, - "message": { - "type": "string" - } - } - }, - "notFound": { - "description": "APINotFound is a not found empty response" - }, - "repoArchivedError": { - "description": "APIRepoArchivedError is an error that is raised when an archived repo should be modified", - "headers": { - "message": { - "type": "string" - }, - "url": { - "type": "string" - } - } - }, "string": { "description": "APIString is a string response", "schema": { "type": "string" } - }, - "unauthorized": { - "description": "APIUnauthorizedError is an unauthorized error response", - "headers": { - "message": { - "type": "string" - }, - "url": { - "type": "string" - } - } - }, - "validationError": { - "description": "APIValidationError is error format response related to input validation", - "headers": { - "message": { - "type": "string" - }, - "url": { - "type": "string" - } - } } }, "securityDefinitions": {