From 3eda895687260889ff9740c610ac00d5118797f6 Mon Sep 17 00:00:00 2001 From: Anbraten Date: Thu, 27 Jul 2023 14:05:23 +0200 Subject: [PATCH] fix: format code --- contrib/generate.ts | 5 +- src/schemas/v1.20.json | 3411 ++++++++++----------------------------- src/schemas/v1.21.json | 3449 ++++++++++------------------------------ 3 files changed, 1681 insertions(+), 5184 deletions(-) diff --git a/contrib/generate.ts b/contrib/generate.ts index e72cd85..a2d4f53 100644 --- a/contrib/generate.ts +++ b/contrib/generate.ts @@ -22,7 +22,10 @@ function getVersions(_version: string) { } if (_version === 'latest') { - const newestFile = fs.readdirSync(path.resolve(__dirname, '..', 'src', 'schemas')).sort().pop(); + const newestFile = fs + .readdirSync(path.resolve(__dirname, '..', 'src', 'schemas')) + .sort() + .pop(); const giteaVersion = newestFile?.replace('v', '').replace('.json', ''); return { diff --git a/src/schemas/v1.20.json b/src/schemas/v1.20.json index 2476b0d..2d824e2 100644 --- a/src/schemas/v1.20.json +++ b/src/schemas/v1.20.json @@ -1,16 +1,7 @@ { - "consumes": [ - "application/json", - "text/plain" - ], - "produces": [ - "application/json", - "text/html" - ], - "schemes": [ - "http", - "https" - ], + "consumes": ["application/json", "text/plain"], + "produces": ["application/json", "text/html"], + "schemes": ["http", "https"], "swagger": "2.0", "info": { "description": "This documentation describes the Gitea API.", @@ -25,12 +16,8 @@ "paths": { "/activitypub/user-id/{user-id}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "activitypub" - ], + "produces": ["application/json"], + "tags": ["activitypub"], "summary": "Returns the Person actor for a user", "operationId": "activitypubPerson", "parameters": [ @@ -51,12 +38,8 @@ }, "/activitypub/user-id/{user-id}/inbox": { "post": { - "produces": [ - "application/json" - ], - "tags": [ - "activitypub" - ], + "produces": ["application/json"], + "tags": ["activitypub"], "summary": "Send to the inbox", "operationId": "activitypubPersonInbox", "parameters": [ @@ -77,12 +60,8 @@ }, "/admin/cron": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "admin" - ], + "produces": ["application/json"], + "tags": ["admin"], "summary": "List cron tasks", "operationId": "adminCronList", "parameters": [ @@ -111,12 +90,8 @@ }, "/admin/cron/{task}": { "post": { - "produces": [ - "application/json" - ], - "tags": [ - "admin" - ], + "produces": ["application/json"], + "tags": ["admin"], "summary": "Run cron task", "operationId": "adminCronRun", "parameters": [ @@ -140,12 +115,8 @@ }, "/admin/emails": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "admin" - ], + "produces": ["application/json"], + "tags": ["admin"], "summary": "List all emails", "operationId": "adminGetAllEmails", "parameters": [ @@ -174,12 +145,8 @@ }, "/admin/emails/search": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "admin" - ], + "produces": ["application/json"], + "tags": ["admin"], "summary": "Search all emails", "operationId": "adminSearchEmails", "parameters": [ @@ -214,12 +181,8 @@ }, "/admin/hooks": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "admin" - ], + "produces": ["application/json"], + "tags": ["admin"], "summary": "List system's webhooks", "operationId": "adminListHooks", "parameters": [ @@ -243,15 +206,9 @@ } }, "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "admin" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["admin"], "summary": "Create a hook", "operationId": "adminCreateHook", "parameters": [ @@ -273,12 +230,8 @@ }, "/admin/hooks/{id}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "admin" - ], + "produces": ["application/json"], + "tags": ["admin"], "summary": "Get a hook", "operationId": "adminGetHook", "parameters": [ @@ -298,12 +251,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "admin" - ], + "produces": ["application/json"], + "tags": ["admin"], "summary": "Delete a hook", "operationId": "adminDeleteHook", "parameters": [ @@ -323,15 +272,9 @@ } }, "patch": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "admin" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["admin"], "summary": "Update a hook", "operationId": "adminEditHook", "parameters": [ @@ -360,12 +303,8 @@ }, "/admin/orgs": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "admin" - ], + "produces": ["application/json"], + "tags": ["admin"], "summary": "List all organizations", "operationId": "adminGetAllOrgs", "parameters": [ @@ -394,12 +333,8 @@ }, "/admin/unadopted": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "admin" - ], + "produces": ["application/json"], + "tags": ["admin"], "summary": "List unadopted repositories", "operationId": "adminUnadoptedList", "parameters": [ @@ -434,12 +369,8 @@ }, "/admin/unadopted/{owner}/{repo}": { "post": { - "produces": [ - "application/json" - ], - "tags": [ - "admin" - ], + "produces": ["application/json"], + "tags": ["admin"], "summary": "Adopt unadopted files as a repository", "operationId": "adminAdoptRepository", "parameters": [ @@ -471,12 +402,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "admin" - ], + "produces": ["application/json"], + "tags": ["admin"], "summary": "Delete unadopted files", "operationId": "adminDeleteUnadoptedRepository", "parameters": [ @@ -507,12 +434,8 @@ }, "/admin/users": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "admin" - ], + "produces": ["application/json"], + "tags": ["admin"], "summary": "Search users according filter conditions", "operationId": "adminSearchUsers", "parameters": [ @@ -552,15 +475,9 @@ } }, "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "admin" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["admin"], "summary": "Create a user", "operationId": "adminCreateUser", "parameters": [ @@ -590,12 +507,8 @@ }, "/admin/users/{username}": { "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "admin" - ], + "produces": ["application/json"], + "tags": ["admin"], "summary": "Delete a user", "operationId": "adminDeleteUser", "parameters": [ @@ -626,15 +539,9 @@ } }, "patch": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "admin" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["admin"], "summary": "Edit an existing user", "operationId": "adminEditUser", "parameters": [ @@ -668,15 +575,9 @@ }, "/admin/users/{username}/keys": { "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "admin" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["admin"], "summary": "Add a public key on behalf of a user", "operationId": "adminCreatePublicKey", "parameters": [ @@ -710,12 +611,8 @@ }, "/admin/users/{username}/keys/{id}": { "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "admin" - ], + "produces": ["application/json"], + "tags": ["admin"], "summary": "Delete a user's public key", "operationId": "adminDeleteUserPublicKey", "parameters": [ @@ -750,15 +647,9 @@ }, "/admin/users/{username}/orgs": { "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "admin" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["admin"], "summary": "Create an organization", "operationId": "adminCreateOrg", "parameters": [ @@ -793,12 +684,8 @@ }, "/admin/users/{username}/rename": { "post": { - "produces": [ - "application/json" - ], - "tags": [ - "admin" - ], + "produces": ["application/json"], + "tags": ["admin"], "summary": "Rename a user", "operationId": "adminRenameUser", "parameters": [ @@ -833,15 +720,9 @@ }, "/admin/users/{username}/repos": { "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "admin" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["admin"], "summary": "Create a repository on behalf of a user", "operationId": "adminCreateRepo", "parameters": [ @@ -885,12 +766,8 @@ }, "/gitignore/templates": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "miscellaneous" - ], + "produces": ["application/json"], + "tags": ["miscellaneous"], "summary": "Returns a list of all gitignore templates", "operationId": "listGitignoresTemplates", "responses": { @@ -902,12 +779,8 @@ }, "/gitignore/templates/{name}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "miscellaneous" - ], + "produces": ["application/json"], + "tags": ["miscellaneous"], "summary": "Returns information about a gitignore template", "operationId": "getGitignoreTemplateInfo", "parameters": [ @@ -931,12 +804,8 @@ }, "/label/templates": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "miscellaneous" - ], + "produces": ["application/json"], + "tags": ["miscellaneous"], "summary": "Returns a list of all label templates", "operationId": "listLabelTemplates", "responses": { @@ -948,12 +817,8 @@ }, "/label/templates/{name}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "miscellaneous" - ], + "produces": ["application/json"], + "tags": ["miscellaneous"], "summary": "Returns all labels in a template", "operationId": "getLabelTemplateInfo", "parameters": [ @@ -977,12 +842,8 @@ }, "/licenses": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "miscellaneous" - ], + "produces": ["application/json"], + "tags": ["miscellaneous"], "summary": "Returns a list of all license templates", "operationId": "listLicenseTemplates", "responses": { @@ -994,12 +855,8 @@ }, "/licenses/{name}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "miscellaneous" - ], + "produces": ["application/json"], + "tags": ["miscellaneous"], "summary": "Returns information about a license template", "operationId": "getLicenseTemplateInfo", "parameters": [ @@ -1023,15 +880,9 @@ }, "/markdown": { "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "text/html" - ], - "tags": [ - "miscellaneous" - ], + "consumes": ["application/json"], + "produces": ["text/html"], + "tags": ["miscellaneous"], "summary": "Render a markdown document as HTML", "operationId": "renderMarkdown", "parameters": [ @@ -1055,15 +906,9 @@ }, "/markdown/raw": { "post": { - "consumes": [ - "text/plain" - ], - "produces": [ - "text/html" - ], - "tags": [ - "miscellaneous" - ], + "consumes": ["text/plain"], + "produces": ["text/html"], + "tags": ["miscellaneous"], "summary": "Render raw markdown as HTML", "operationId": "renderMarkdownRaw", "parameters": [ @@ -1089,15 +934,9 @@ }, "/markup": { "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "text/html" - ], - "tags": [ - "miscellaneous" - ], + "consumes": ["application/json"], + "produces": ["text/html"], + "tags": ["miscellaneous"], "summary": "Render a markup document as HTML", "operationId": "renderMarkup", "parameters": [ @@ -1121,12 +960,8 @@ }, "/nodeinfo": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "miscellaneous" - ], + "produces": ["application/json"], + "tags": ["miscellaneous"], "summary": "Returns the nodeinfo of the Gitea application", "operationId": "getNodeInfo", "responses": { @@ -1138,15 +973,9 @@ }, "/notifications": { "get": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "notification" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["notification"], "summary": "List users's notification threads", "operationId": "notifyGetList", "parameters": [ @@ -1169,12 +998,7 @@ { "type": "array", "items": { - "enum": [ - "issue", - "pull", - "commit", - "repository" - ], + "enum": ["issue", "pull", "commit", "repository"], "type": "string" }, "collectionFormat": "multi", @@ -1216,15 +1040,9 @@ } }, "put": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "notification" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["notification"], "summary": "Mark notification threads as read, pinned or unread", "operationId": "notifyReadList", "parameters": [ @@ -1267,9 +1085,7 @@ }, "/notifications/new": { "get": { - "tags": [ - "notification" - ], + "tags": ["notification"], "summary": "Check if unread notifications exist", "operationId": "notifyNewAvailable", "responses": { @@ -1281,15 +1097,9 @@ }, "/notifications/threads/{id}": { "get": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "notification" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["notification"], "summary": "Get notification thread by ID", "operationId": "notifyGetThread", "parameters": [ @@ -1314,15 +1124,9 @@ } }, "patch": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "notification" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["notification"], "summary": "Mark notification thread as read by ID", "operationId": "notifyReadThread", "parameters": [ @@ -1356,15 +1160,9 @@ }, "/org/{org}/repos": { "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["organization"], "summary": "Create a repository in an organization", "operationId": "createOrgRepoDeprecated", "deprecated": true, @@ -1399,12 +1197,8 @@ }, "/orgs": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "produces": ["application/json"], + "tags": ["organization"], "summary": "Get list of organizations", "operationId": "orgGetAll", "parameters": [ @@ -1428,15 +1222,9 @@ } }, "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["organization"], "summary": "Create an organization", "operationId": "orgCreate", "parameters": [ @@ -1464,12 +1252,8 @@ }, "/orgs/{org}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "produces": ["application/json"], + "tags": ["organization"], "summary": "Get an organization", "operationId": "orgGet", "parameters": [ @@ -1488,12 +1272,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "produces": ["application/json"], + "tags": ["organization"], "summary": "Delete an organization", "operationId": "orgDelete", "parameters": [ @@ -1512,15 +1292,9 @@ } }, "patch": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["organization"], "summary": "Edit an organization", "operationId": "orgEdit", "parameters": [ @@ -1549,12 +1323,8 @@ }, "/orgs/{org}/activities/feeds": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "produces": ["application/json"], + "tags": ["organization"], "summary": "List an organization's activity feeds", "operationId": "orgListActivityFeeds", "parameters": [ @@ -1597,12 +1367,8 @@ }, "/orgs/{org}/hooks": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "produces": ["application/json"], + "tags": ["organization"], "summary": "List an organization's webhooks", "operationId": "orgListHooks", "parameters": [ @@ -1633,15 +1399,9 @@ } }, "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["organization"], "summary": "Create a hook", "operationId": "orgCreateHook", "parameters": [ @@ -1670,12 +1430,8 @@ }, "/orgs/{org}/hooks/{id}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "produces": ["application/json"], + "tags": ["organization"], "summary": "Get a hook", "operationId": "orgGetHook", "parameters": [ @@ -1702,12 +1458,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "produces": ["application/json"], + "tags": ["organization"], "summary": "Delete a hook", "operationId": "orgDeleteHook", "parameters": [ @@ -1734,15 +1486,9 @@ } }, "patch": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["organization"], "summary": "Update a hook", "operationId": "orgEditHook", "parameters": [ @@ -1778,12 +1524,8 @@ }, "/orgs/{org}/labels": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "produces": ["application/json"], + "tags": ["organization"], "summary": "List an organization's labels", "operationId": "orgListLabels", "parameters": [ @@ -1814,15 +1556,9 @@ } }, "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["organization"], "summary": "Create a label for an organization", "operationId": "orgCreateLabel", "parameters": [ @@ -1853,12 +1589,8 @@ }, "/orgs/{org}/labels/{id}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "produces": ["application/json"], + "tags": ["organization"], "summary": "Get a single label", "operationId": "orgGetLabel", "parameters": [ @@ -1885,9 +1617,7 @@ } }, "delete": { - "tags": [ - "organization" - ], + "tags": ["organization"], "summary": "Delete a label", "operationId": "orgDeleteLabel", "parameters": [ @@ -1914,15 +1644,9 @@ } }, "patch": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["organization"], "summary": "Update a label", "operationId": "orgEditLabel", "parameters": [ @@ -1961,12 +1685,8 @@ }, "/orgs/{org}/members": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "produces": ["application/json"], + "tags": ["organization"], "summary": "List an organization's members", "operationId": "orgListMembers", "parameters": [ @@ -1999,9 +1719,7 @@ }, "/orgs/{org}/members/{username}": { "get": { - "tags": [ - "organization" - ], + "tags": ["organization"], "summary": "Check if a user is a member of an organization", "operationId": "orgIsMember", "parameters": [ @@ -2033,12 +1751,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "produces": ["application/json"], + "tags": ["organization"], "summary": "Remove a member from an organization", "operationId": "orgDeleteMember", "parameters": [ @@ -2066,12 +1780,8 @@ }, "/orgs/{org}/public_members": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "produces": ["application/json"], + "tags": ["organization"], "summary": "List an organization's public members", "operationId": "orgListPublicMembers", "parameters": [ @@ -2104,9 +1814,7 @@ }, "/orgs/{org}/public_members/{username}": { "get": { - "tags": [ - "organization" - ], + "tags": ["organization"], "summary": "Check if a user is a public member of an organization", "operationId": "orgIsPublicMember", "parameters": [ @@ -2135,12 +1843,8 @@ } }, "put": { - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "produces": ["application/json"], + "tags": ["organization"], "summary": "Publicize a user's membership", "operationId": "orgPublicizeMember", "parameters": [ @@ -2169,12 +1873,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "produces": ["application/json"], + "tags": ["organization"], "summary": "Conceal a user's membership", "operationId": "orgConcealMember", "parameters": [ @@ -2205,12 +1905,8 @@ }, "/orgs/{org}/repos": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "produces": ["application/json"], + "tags": ["organization"], "summary": "List an organization's repos", "operationId": "orgListRepos", "parameters": [ @@ -2241,15 +1937,9 @@ } }, "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["organization"], "summary": "Create a repository in an organization", "operationId": "createOrgRepo", "parameters": [ @@ -2286,12 +1976,8 @@ }, "/orgs/{org}/teams": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "produces": ["application/json"], + "tags": ["organization"], "summary": "List an organization's teams", "operationId": "orgListTeams", "parameters": [ @@ -2322,15 +2008,9 @@ } }, "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["organization"], "summary": "Create a team", "operationId": "orgCreateTeam", "parameters": [ @@ -2361,12 +2041,8 @@ }, "/orgs/{org}/teams/search": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "produces": ["application/json"], + "tags": ["organization"], "summary": "Search for teams within an organization", "operationId": "teamSearch", "parameters": [ @@ -2425,12 +2101,8 @@ }, "/packages/{owner}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "package" - ], + "produces": ["application/json"], + "tags": ["package"], "summary": "Gets all packages of an owner", "operationId": "listPackages", "parameters": [ @@ -2498,12 +2170,8 @@ }, "/packages/{owner}/{type}/{name}/{version}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "package" - ], + "produces": ["application/json"], + "tags": ["package"], "summary": "Gets a package", "operationId": "getPackage", "parameters": [ @@ -2546,9 +2214,7 @@ } }, "delete": { - "tags": [ - "package" - ], + "tags": ["package"], "summary": "Delete a package", "operationId": "deletePackage", "parameters": [ @@ -2593,12 +2259,8 @@ }, "/packages/{owner}/{type}/{name}/{version}/files": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "package" - ], + "produces": ["application/json"], + "tags": ["package"], "summary": "Gets all files of a package", "operationId": "listPackageFiles", "parameters": [ @@ -2643,12 +2305,8 @@ }, "/repos/issues/search": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Search for issues across the repositories that the user has access to", "operationId": "issueSearchIssues", "parameters": [ @@ -2767,15 +2425,9 @@ }, "/repos/migrate": { "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Migrate a remote git repository", "operationId": "repoMigrate", "parameters": [ @@ -2805,12 +2457,8 @@ }, "/repos/search": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Search for repositories", "operationId": "repoSearch", "parameters": [ @@ -2933,12 +2581,8 @@ }, "/repos/{owner}/{repo}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get a repository", "operationId": "repoGet", "parameters": [ @@ -2964,12 +2608,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Delete a repository", "operationId": "repoDelete", "parameters": [ @@ -2998,12 +2638,8 @@ } }, "patch": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Edit a repository's properties. Only fields that are set will be changed.", "operationId": "repoEdit", "parameters": [ @@ -3045,12 +2681,8 @@ }, "/repos/{owner}/{repo}/activities/feeds": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "List a repository's activity feeds", "operationId": "repoListActivityFeeds", "parameters": [ @@ -3100,12 +2732,8 @@ }, "/repos/{owner}/{repo}/archive/{archive}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get an archive of a repository", "operationId": "repoGetArchive", "parameters": [ @@ -3143,12 +2771,8 @@ }, "/repos/{owner}/{repo}/assignees": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Return all users that have write access and can be assigned to issues", "operationId": "repoGetAssignees", "parameters": [ @@ -3176,12 +2800,8 @@ }, "/repos/{owner}/{repo}/branch_protections": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "List branch protections for a repository", "operationId": "repoListBranchProtection", "parameters": [ @@ -3207,15 +2827,9 @@ } }, "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Create a branch protections for a repository", "operationId": "repoCreateBranchProtection", "parameters": [ @@ -3259,12 +2873,8 @@ }, "/repos/{owner}/{repo}/branch_protections/{name}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get a specific branch protection for the repository", "operationId": "repoGetBranchProtection", "parameters": [ @@ -3300,12 +2910,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Delete a specific branch protection for the repository", "operationId": "repoDeleteBranchProtection", "parameters": [ @@ -3341,15 +2947,9 @@ } }, "patch": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Edit a branch protections for a repository. Only fields that are set will be changed", "operationId": "repoEditBranchProtection", "parameters": [ @@ -3397,12 +2997,8 @@ }, "/repos/{owner}/{repo}/branches": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "List a repository's branches", "operationId": "repoListBranches", "parameters": [ @@ -3440,15 +3036,9 @@ } }, "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Create a branch", "operationId": "repoCreateBranch", "parameters": [ @@ -3492,12 +3082,8 @@ }, "/repos/{owner}/{repo}/branches/{branch}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Retrieve a specific branch from a repository, including its effective branch protection", "operationId": "repoGetBranch", "parameters": [ @@ -3533,12 +3119,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Delete a specific branch from a repository", "operationId": "repoDeleteBranch", "parameters": [ @@ -3579,12 +3161,8 @@ }, "/repos/{owner}/{repo}/collaborators": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "List a repository's collaborators", "operationId": "repoListCollaborators", "parameters": [ @@ -3624,12 +3202,8 @@ }, "/repos/{owner}/{repo}/collaborators/{collaborator}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Check if a user is a collaborator of a repository", "operationId": "repoCheckCollaborator", "parameters": [ @@ -3668,12 +3242,8 @@ } }, "put": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Add a collaborator to a repository", "operationId": "repoAddCollaborator", "parameters": [ @@ -3716,12 +3286,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Delete a collaborator from a repository", "operationId": "repoDeleteCollaborator", "parameters": [ @@ -3759,12 +3325,8 @@ }, "/repos/{owner}/{repo}/collaborators/{collaborator}/permission": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get repository permissions for a user", "operationId": "repoGetRepoPermissions", "parameters": [ @@ -3805,12 +3367,8 @@ }, "/repos/{owner}/{repo}/commits": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get a list of all commits from a repository", "operationId": "repoGetAllCommits", "parameters": [ @@ -3892,12 +3450,8 @@ }, "/repos/{owner}/{repo}/commits/{ref}/status": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get a commit's combined status, by branch/tag/commit reference", "operationId": "repoGetCombinedStatusByRef", "parameters": [ @@ -3947,12 +3501,8 @@ }, "/repos/{owner}/{repo}/commits/{ref}/statuses": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get a commit's statuses, by branch/tag/commit reference", "operationId": "repoListStatusesByRef", "parameters": [ @@ -3978,26 +3528,14 @@ "required": true }, { - "enum": [ - "oldest", - "recentupdate", - "leastupdate", - "leastindex", - "highestindex" - ], + "enum": ["oldest", "recentupdate", "leastupdate", "leastindex", "highestindex"], "type": "string", "description": "type of sort", "name": "sort", "in": "query" }, { - "enum": [ - "pending", - "success", - "error", - "failure", - "warning" - ], + "enum": ["pending", "success", "error", "failure", "warning"], "type": "string", "description": "type of state", "name": "state", @@ -4028,12 +3566,8 @@ }, "/repos/{owner}/{repo}/contents": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Gets the metadata of all the entries of the root dir", "operationId": "repoGetContentsList", "parameters": [ @@ -4068,15 +3602,9 @@ } }, "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Modify multiple files in a repository", "operationId": "repoChangeFiles", "parameters": [ @@ -4121,12 +3649,8 @@ }, "/repos/{owner}/{repo}/contents/{filepath}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Gets the metadata and contents (if a file) of an entry in a repository, or a list of entries if a dir", "operationId": "repoGetContents", "parameters": [ @@ -4168,15 +3692,9 @@ } }, "put": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Update a file in a repository", "operationId": "repoUpdateFile", "parameters": [ @@ -4226,15 +3744,9 @@ } }, "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Create a file in a repository", "operationId": "repoCreateFile", "parameters": [ @@ -4284,15 +3796,9 @@ } }, "delete": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Delete a file in a repository", "operationId": "repoDeleteFile", "parameters": [ @@ -4344,15 +3850,9 @@ }, "/repos/{owner}/{repo}/diffpatch": { "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Apply diff patch to repository", "operationId": "repoApplyDiffPatch", "parameters": [ @@ -4388,12 +3888,8 @@ }, "/repos/{owner}/{repo}/editorconfig/{filepath}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get the EditorConfig definitions of a file in a repository", "operationId": "repoGetEditorConfig", "parameters": [ @@ -4437,12 +3933,8 @@ }, "/repos/{owner}/{repo}/forks": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "List a repository's forks", "operationId": "listForks", "parameters": [ @@ -4480,12 +3972,8 @@ } }, "post": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Fork a repository", "operationId": "createFork", "parameters": [ @@ -4529,12 +4017,8 @@ }, "/repos/{owner}/{repo}/git/blobs/{sha}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Gets the blob of a repository.", "operationId": "GetBlob", "parameters": [ @@ -4572,12 +4056,8 @@ }, "/repos/{owner}/{repo}/git/commits/{sha}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get a single commit from a repository", "operationId": "repoGetSingleCommit", "parameters": [ @@ -4636,12 +4116,8 @@ }, "/repos/{owner}/{repo}/git/commits/{sha}.{diffType}": { "get": { - "produces": [ - "text/plain" - ], - "tags": [ - "repository" - ], + "produces": ["text/plain"], + "tags": ["repository"], "summary": "Get a commit's diff or patch", "operationId": "repoDownloadCommitDiffOrPatch", "parameters": [ @@ -4667,10 +4143,7 @@ "required": true }, { - "enum": [ - "diff", - "patch" - ], + "enum": ["diff", "patch"], "type": "string", "description": "whether the output is diff or patch", "name": "diffType", @@ -4690,12 +4163,8 @@ }, "/repos/{owner}/{repo}/git/notes/{sha}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get a note corresponding to a single commit from a repository", "operationId": "repoGetNote", "parameters": [ @@ -4736,12 +4205,8 @@ }, "/repos/{owner}/{repo}/git/refs": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get specified ref or filtered repository's refs", "operationId": "repoListAllGitRefs", "parameters": [ @@ -4772,12 +4237,8 @@ }, "/repos/{owner}/{repo}/git/refs/{ref}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get specified ref or filtered repository's refs", "operationId": "repoListGitRefs", "parameters": [ @@ -4815,12 +4276,8 @@ }, "/repos/{owner}/{repo}/git/tags/{sha}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Gets the tag object of an annotated tag (not lightweight tags)", "operationId": "GetAnnotatedTag", "parameters": [ @@ -4858,12 +4315,8 @@ }, "/repos/{owner}/{repo}/git/trees/{sha}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Gets the tree of a repository.", "operationId": "GetTree", "parameters": [ @@ -4919,12 +4372,8 @@ }, "/repos/{owner}/{repo}/hooks": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "List the hooks in a repository", "operationId": "repoListHooks", "parameters": [ @@ -4962,15 +4411,9 @@ } }, "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Create a hook", "operationId": "repoCreateHook", "parameters": [ @@ -5005,12 +4448,8 @@ }, "/repos/{owner}/{repo}/hooks/git": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "List the Git hooks in a repository", "operationId": "repoListGitHooks", "parameters": [ @@ -5038,12 +4477,8 @@ }, "/repos/{owner}/{repo}/hooks/git/{id}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get a Git hook", "operationId": "repoGetGitHook", "parameters": [ @@ -5079,12 +4514,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Delete a Git hook in a repository", "operationId": "repoDeleteGitHook", "parameters": [ @@ -5120,12 +4551,8 @@ } }, "patch": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Edit a Git hook in a repository", "operationId": "repoEditGitHook", "parameters": [ @@ -5170,12 +4597,8 @@ }, "/repos/{owner}/{repo}/hooks/{id}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get a hook", "operationId": "repoGetHook", "parameters": [ @@ -5212,12 +4635,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Delete a hook in a repository", "operationId": "repoDeleteHook", "parameters": [ @@ -5254,12 +4673,8 @@ } }, "patch": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Edit a hook in a repository", "operationId": "repoEditHook", "parameters": [ @@ -5302,12 +4717,8 @@ }, "/repos/{owner}/{repo}/hooks/{id}/tests": { "post": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Test a push webhook", "operationId": "repoTestHook", "parameters": [ @@ -5349,12 +4760,8 @@ }, "/repos/{owner}/{repo}/issue_config": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Returns the issue config for a repo", "operationId": "repoGetIssueConfig", "parameters": [ @@ -5382,12 +4789,8 @@ }, "/repos/{owner}/{repo}/issue_config/validate": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Returns the validation information for a issue config", "operationId": "repoValidateIssueConfig", "parameters": [ @@ -5415,12 +4818,8 @@ }, "/repos/{owner}/{repo}/issue_templates": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get available issue templates for a repository", "operationId": "repoGetIssueTemplates", "parameters": [ @@ -5448,12 +4847,8 @@ }, "/repos/{owner}/{repo}/issues": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "produces": ["application/json"], + "tags": ["issue"], "summary": "List a repository's issues", "operationId": "issueListIssues", "parameters": [ @@ -5472,11 +4867,7 @@ "required": true }, { - "enum": [ - "closed", - "open", - "all" - ], + "enum": ["closed", "open", "all"], "type": "string", "description": "whether issue is open or closed", "name": "state", @@ -5495,10 +4886,7 @@ "in": "query" }, { - "enum": [ - "issues", - "pulls" - ], + "enum": ["issues", "pulls"], "type": "string", "description": "filter by type (issues / pulls) if set", "name": "type", @@ -5562,15 +4950,9 @@ } }, "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Create an issue. If using deadline only the date will be taken into account, and time of day ignored.", "operationId": "issueCreateIssue", "parameters": [ @@ -5614,12 +4996,8 @@ }, "/repos/{owner}/{repo}/issues/comments": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "produces": ["application/json"], + "tags": ["issue"], "summary": "List all comments in a repository", "operationId": "issueGetRepoComments", "parameters": [ @@ -5673,15 +5051,9 @@ }, "/repos/{owner}/{repo}/issues/comments/{id}": { "get": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Get a comment", "operationId": "issueGetComment", "parameters": [ @@ -5724,9 +5096,7 @@ } }, "delete": { - "tags": [ - "issue" - ], + "tags": ["issue"], "summary": "Delete a comment", "operationId": "issueDeleteComment", "parameters": [ @@ -5766,15 +5136,9 @@ } }, "patch": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Edit a comment", "operationId": "issueEditComment", "parameters": [ @@ -5825,13 +5189,9 @@ } }, "/repos/{owner}/{repo}/issues/comments/{id}/assets": { - "get": { - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "get": { + "produces": ["application/json"], + "tags": ["issue"], "summary": "List comment's attachments", "operationId": "issueListIssueCommentAttachments", "parameters": [ @@ -5868,15 +5228,9 @@ } }, "post": { - "consumes": [ - "multipart/form-data" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["multipart/form-data"], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Create a comment attachment", "operationId": "issueCreateIssueCommentAttachment", "parameters": [ @@ -5931,12 +5285,8 @@ }, "/repos/{owner}/{repo}/issues/comments/{id}/assets/{attachment_id}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Get a comment attachment", "operationId": "issueGetIssueCommentAttachment", "parameters": [ @@ -5981,12 +5331,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Delete a comment attachment", "operationId": "issueDeleteIssueCommentAttachment", "parameters": [ @@ -6031,15 +5377,9 @@ } }, "patch": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Edit a comment attachment", "operationId": "issueEditIssueCommentAttachment", "parameters": [ @@ -6093,15 +5433,9 @@ }, "/repos/{owner}/{repo}/issues/comments/{id}/reactions": { "get": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Get a list of reactions from a comment of an issue", "operationId": "issueGetCommentReactions", "parameters": [ @@ -6138,15 +5472,9 @@ } }, "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Add a reaction to a comment of an issue", "operationId": "issuePostCommentReaction", "parameters": [ @@ -6193,15 +5521,9 @@ } }, "delete": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Remove a reaction from a comment of an issue", "operationId": "issueDeleteCommentReaction", "parameters": [ @@ -6247,12 +5569,8 @@ }, "/repos/{owner}/{repo}/issues/pinned": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "List a repo's pinned issues", "operationId": "repoListPinnedIssues", "parameters": [ @@ -6280,12 +5598,8 @@ }, "/repos/{owner}/{repo}/issues/{index}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Get an issue", "operationId": "issueGetIssue", "parameters": [ @@ -6322,9 +5636,7 @@ } }, "delete": { - "tags": [ - "issue" - ], + "tags": ["issue"], "summary": "Delete an issue", "operationId": "issueDelete", "parameters": [ @@ -6364,15 +5676,9 @@ } }, "patch": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Edit an issue. If using deadline only the date will be taken into account, and time of day ignored.", "operationId": "issueEditIssue", "parameters": [ @@ -6424,12 +5730,8 @@ }, "/repos/{owner}/{repo}/issues/{index}/assets": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "produces": ["application/json"], + "tags": ["issue"], "summary": "List issue's attachments", "operationId": "issueListIssueAttachments", "parameters": [ @@ -6466,15 +5768,9 @@ } }, "post": { - "consumes": [ - "multipart/form-data" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["multipart/form-data"], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Create an issue attachment", "operationId": "issueCreateIssueAttachment", "parameters": [ @@ -6529,12 +5825,8 @@ }, "/repos/{owner}/{repo}/issues/{index}/assets/{attachment_id}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Get an issue attachment", "operationId": "issueGetIssueAttachment", "parameters": [ @@ -6579,12 +5871,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Delete an issue attachment", "operationId": "issueDeleteIssueAttachment", "parameters": [ @@ -6629,15 +5917,9 @@ } }, "patch": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Edit an issue attachment", "operationId": "issueEditIssueAttachment", "parameters": [ @@ -6691,12 +5973,8 @@ }, "/repos/{owner}/{repo}/issues/{index}/blocks": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "produces": ["application/json"], + "tags": ["issue"], "summary": "List issues that are blocked by this issue", "operationId": "issueListBlocks", "parameters": [ @@ -6741,12 +6019,8 @@ } }, "post": { - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Block the issue given in the body by the issue in path", "operationId": "issueCreateIssueBlocking", "parameters": [ @@ -6789,12 +6063,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Unblock the issue given in the body by the issue in path", "operationId": "issueRemoveIssueBlocking", "parameters": [ @@ -6836,12 +6106,8 @@ }, "/repos/{owner}/{repo}/issues/{index}/comments": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "produces": ["application/json"], + "tags": ["issue"], "summary": "List all comments on an issue", "operationId": "issueGetComments", "parameters": [ @@ -6889,15 +6155,9 @@ } }, "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Add a comment to an issue", "operationId": "issueCreateComment", "parameters": [ @@ -6943,9 +6203,7 @@ }, "/repos/{owner}/{repo}/issues/{index}/comments/{id}": { "delete": { - "tags": [ - "issue" - ], + "tags": ["issue"], "summary": "Delete a comment", "operationId": "issueDeleteCommentDeprecated", "deprecated": true, @@ -6993,15 +6251,9 @@ } }, "patch": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Edit a comment", "operationId": "issueEditCommentDeprecated", "deprecated": true, @@ -7061,15 +6313,9 @@ }, "/repos/{owner}/{repo}/issues/{index}/deadline": { "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["issue"], "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.", "operationId": "issueEditIssueDeadline", "parameters": [ @@ -7118,12 +6364,8 @@ }, "/repos/{owner}/{repo}/issues/{index}/dependencies": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "produces": ["application/json"], + "tags": ["issue"], "summary": "List an issue's dependencies, i.e all issues that block this issue.", "operationId": "issueListIssueDependencies", "parameters": [ @@ -7168,12 +6410,8 @@ } }, "post": { - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Make the issue in the url depend on the issue in the form.", "operationId": "issueCreateIssueDependencies", "parameters": [ @@ -7216,12 +6454,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Remove an issue dependency", "operationId": "issueRemoveIssueDependencies", "parameters": [ @@ -7263,12 +6497,8 @@ }, "/repos/{owner}/{repo}/issues/{index}/labels": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Get an issue's labels", "operationId": "issueGetLabels", "parameters": [ @@ -7305,15 +6535,9 @@ } }, "put": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Replace an issue's labels", "operationId": "issueReplaceLabels", "parameters": [ @@ -7357,15 +6581,9 @@ } }, "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Add a label to an issue", "operationId": "issueAddLabel", "parameters": [ @@ -7409,12 +6627,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Remove all labels from an issue", "operationId": "issueClearLabels", "parameters": [ @@ -7453,12 +6667,8 @@ }, "/repos/{owner}/{repo}/issues/{index}/labels/{id}": { "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Remove a label from an issue", "operationId": "issueRemoveLabel", "parameters": [ @@ -7508,9 +6718,7 @@ }, "/repos/{owner}/{repo}/issues/{index}/pin": { "post": { - "tags": [ - "issue" - ], + "tags": ["issue"], "summary": "Pin an Issue", "operationId": "pinIssue", "parameters": [ @@ -7550,9 +6758,7 @@ } }, "delete": { - "tags": [ - "issue" - ], + "tags": ["issue"], "summary": "Unpin an Issue", "operationId": "unpinIssue", "parameters": [ @@ -7594,9 +6800,7 @@ }, "/repos/{owner}/{repo}/issues/{index}/pin/{position}": { "patch": { - "tags": [ - "issue" - ], + "tags": ["issue"], "summary": "Moves the Pin to the given Position", "operationId": "moveIssuePin", "parameters": [ @@ -7646,15 +6850,9 @@ }, "/repos/{owner}/{repo}/issues/{index}/reactions": { "get": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Get a list reactions of an issue", "operationId": "issueGetIssueReactions", "parameters": [ @@ -7703,15 +6901,9 @@ } }, "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Add a reaction to an issue", "operationId": "issuePostIssueReaction", "parameters": [ @@ -7758,15 +6950,9 @@ } }, "delete": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Remove a reaction from an issue", "operationId": "issueDeleteIssueReaction", "parameters": [ @@ -7812,15 +6998,9 @@ }, "/repos/{owner}/{repo}/issues/{index}/stopwatch/delete": { "delete": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Delete an issue's existing stopwatch.", "operationId": "issueDeleteStopWatch", "parameters": [ @@ -7865,15 +7045,9 @@ }, "/repos/{owner}/{repo}/issues/{index}/stopwatch/start": { "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Start stopwatch on an issue.", "operationId": "issueStartStopWatch", "parameters": [ @@ -7918,15 +7092,9 @@ }, "/repos/{owner}/{repo}/issues/{index}/stopwatch/stop": { "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Stop an issue's existing stopwatch.", "operationId": "issueStopStopWatch", "parameters": [ @@ -7971,15 +7139,9 @@ }, "/repos/{owner}/{repo}/issues/{index}/subscriptions": { "get": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Get users who subscribed on an issue.", "operationId": "issueSubscriptions", "parameters": [ @@ -8030,15 +7192,9 @@ }, "/repos/{owner}/{repo}/issues/{index}/subscriptions/check": { "get": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Check if user is subscribed to an issue", "operationId": "issueCheckSubscription", "parameters": [ @@ -8077,15 +7233,9 @@ }, "/repos/{owner}/{repo}/issues/{index}/subscriptions/{user}": { "put": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Subscribe user to issue", "operationId": "issueAddSubscription", "parameters": [ @@ -8135,15 +7285,9 @@ } }, "delete": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Unsubscribe user from issue", "operationId": "issueDeleteSubscription", "parameters": [ @@ -8195,12 +7339,8 @@ }, "/repos/{owner}/{repo}/issues/{index}/timeline": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "produces": ["application/json"], + "tags": ["issue"], "summary": "List all comments and events on an issue", "operationId": "issueGetCommentsAndTimeline", "parameters": [ @@ -8262,12 +7402,8 @@ }, "/repos/{owner}/{repo}/issues/{index}/times": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "produces": ["application/json"], + "tags": ["issue"], "summary": "List an issue's tracked times", "operationId": "issueTrackedTimes", "parameters": [ @@ -8336,15 +7472,9 @@ } }, "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Add tracked time to a issue", "operationId": "issueAddTime", "parameters": [ @@ -8391,15 +7521,9 @@ } }, "delete": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Reset a tracked time of an issue", "operationId": "issueResetTime", "parameters": [ @@ -8441,15 +7565,9 @@ }, "/repos/{owner}/{repo}/issues/{index}/times/{id}": { "delete": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Delete specific tracked time", "operationId": "issueDeleteTime", "parameters": [ @@ -8499,12 +7617,8 @@ }, "/repos/{owner}/{repo}/keys": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "List a repository's keys", "operationId": "repoListKeys", "parameters": [ @@ -8554,15 +7668,9 @@ } }, "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Add a key to a repository", "operationId": "repoCreateKey", "parameters": [ @@ -8600,12 +7708,8 @@ }, "/repos/{owner}/{repo}/keys/{id}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get a repository's key by id", "operationId": "repoGetKey", "parameters": [ @@ -8639,9 +7743,7 @@ } }, "delete": { - "tags": [ - "repository" - ], + "tags": ["repository"], "summary": "Delete a key from a repository", "operationId": "repoDeleteKey", "parameters": [ @@ -8680,12 +7782,8 @@ }, "/repos/{owner}/{repo}/labels": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Get all of a repository's labels", "operationId": "issueListLabels", "parameters": [ @@ -8723,15 +7821,9 @@ } }, "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Create a label", "operationId": "issueCreateLabel", "parameters": [ @@ -8769,12 +7861,8 @@ }, "/repos/{owner}/{repo}/labels/{id}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Get a single label", "operationId": "issueGetLabel", "parameters": [ @@ -8808,9 +7896,7 @@ } }, "delete": { - "tags": [ - "issue" - ], + "tags": ["issue"], "summary": "Delete a label", "operationId": "issueDeleteLabel", "parameters": [ @@ -8844,15 +7930,9 @@ } }, "patch": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Update a label", "operationId": "issueEditLabel", "parameters": [ @@ -8898,12 +7978,8 @@ }, "/repos/{owner}/{repo}/languages": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get languages and number of bytes of code written", "operationId": "repoGetLanguages", "parameters": [ @@ -8934,9 +8010,7 @@ }, "/repos/{owner}/{repo}/media/{filepath}": { "get": { - "tags": [ - "repository" - ], + "tags": ["repository"], "summary": "Get a file or it's LFS object from a repository", "operationId": "repoGetRawFileOrLFS", "parameters": [ @@ -8980,12 +8054,8 @@ }, "/repos/{owner}/{repo}/milestones": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Get all of a repository's opened milestones", "operationId": "issueGetMilestonesList", "parameters": [ @@ -9035,15 +8105,9 @@ } }, "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Create a milestone", "operationId": "issueCreateMilestone", "parameters": [ @@ -9078,12 +8142,8 @@ }, "/repos/{owner}/{repo}/milestones/{id}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Get a milestone", "operationId": "issueGetMilestone", "parameters": [ @@ -9116,9 +8176,7 @@ } }, "delete": { - "tags": [ - "issue" - ], + "tags": ["issue"], "summary": "Delete a milestone", "operationId": "issueDeleteMilestone", "parameters": [ @@ -9151,15 +8209,9 @@ } }, "patch": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Update a milestone", "operationId": "issueEditMilestone", "parameters": [ @@ -9201,12 +8253,8 @@ }, "/repos/{owner}/{repo}/mirror-sync": { "post": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Sync a mirrored repository", "operationId": "repoMirrorSync", "parameters": [ @@ -9237,12 +8285,8 @@ }, "/repos/{owner}/{repo}/new_pin_allowed": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Returns if new Issue Pins are allowed", "operationId": "repoNewPinAllowed", "parameters": [ @@ -9270,15 +8314,9 @@ }, "/repos/{owner}/{repo}/notifications": { "get": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "notification" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["notification"], "summary": "List users's notification threads on a specific repo", "operationId": "notifyGetRepoList", "parameters": [ @@ -9315,12 +8353,7 @@ { "type": "array", "items": { - "enum": [ - "issue", - "pull", - "commit", - "repository" - ], + "enum": ["issue", "pull", "commit", "repository"], "type": "string" }, "collectionFormat": "multi", @@ -9362,15 +8395,9 @@ } }, "put": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "notification" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["notification"], "summary": "Mark notification threads as read, pinned or unread on a specific repo", "operationId": "notifyReadRepoList", "parameters": [ @@ -9427,12 +8454,8 @@ }, "/repos/{owner}/{repo}/pulls": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "List a repo's pull requests", "operationId": "repoListPullRequests", "parameters": [ @@ -9451,25 +8474,14 @@ "required": true }, { - "enum": [ - "closed", - "open", - "all" - ], + "enum": ["closed", "open", "all"], "type": "string", "description": "State of pull request: open or closed (optional)", "name": "state", "in": "query" }, { - "enum": [ - "oldest", - "recentupdate", - "leastupdate", - "mostcomment", - "leastcomment", - "priority" - ], + "enum": ["oldest", "recentupdate", "leastupdate", "mostcomment", "leastcomment", "priority"], "type": "string", "description": "Type of sort", "name": "sort", @@ -9513,15 +8525,9 @@ } }, "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Create a pull request", "operationId": "repoCreatePullRequest", "parameters": [ @@ -9562,12 +8568,8 @@ }, "/repos/{owner}/{repo}/pulls/pinned": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "List a repo's pinned pull requests", "operationId": "repoListPinnedPullRequests", "parameters": [ @@ -9595,12 +8597,8 @@ }, "/repos/{owner}/{repo}/pulls/{index}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get a pull request", "operationId": "repoGetPullRequest", "parameters": [ @@ -9637,15 +8635,9 @@ } }, "patch": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Update a pull request. If using deadline only the date will be taken into account, and time of day ignored.", "operationId": "repoEditPullRequest", "parameters": [ @@ -9700,12 +8692,8 @@ }, "/repos/{owner}/{repo}/pulls/{index}.{diffType}": { "get": { - "produces": [ - "text/plain" - ], - "tags": [ - "repository" - ], + "produces": ["text/plain"], + "tags": ["repository"], "summary": "Get a pull request diff or patch", "operationId": "repoDownloadPullDiffOrPatch", "parameters": [ @@ -9732,10 +8720,7 @@ "required": true }, { - "enum": [ - "diff", - "patch" - ], + "enum": ["diff", "patch"], "type": "string", "description": "whether the output is diff or patch", "name": "diffType", @@ -9761,12 +8746,8 @@ }, "/repos/{owner}/{repo}/pulls/{index}/commits": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get commits for a pull request", "operationId": "repoGetPullRequestCommits", "parameters": [ @@ -9817,12 +8798,8 @@ }, "/repos/{owner}/{repo}/pulls/{index}/files": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get changed files for a pull request", "operationId": "repoGetPullRequestFiles", "parameters": [ @@ -9855,12 +8832,7 @@ "in": "query" }, { - "enum": [ - "ignore-all", - "ignore-change", - "ignore-eol", - "show-all" - ], + "enum": ["ignore-all", "ignore-change", "ignore-eol", "show-all"], "type": "string", "description": "whitespace behavior", "name": "whitespace", @@ -9891,12 +8863,8 @@ }, "/repos/{owner}/{repo}/pulls/{index}/merge": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Check if a pull request has been merged", "operationId": "repoPullRequestIsMerged", "parameters": [ @@ -9933,12 +8901,8 @@ } }, "post": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Merge a pull request", "operationId": "repoMergePullRequest", "parameters": [ @@ -9985,12 +8949,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Cancel the scheduled auto merge for the given pull request", "operationId": "repoCancelScheduledAutoMerge", "parameters": [ @@ -10032,12 +8992,8 @@ }, "/repos/{owner}/{repo}/pulls/{index}/requested_reviewers": { "post": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "create review requests for a pull request", "operationId": "repoCreatePullReviewRequests", "parameters": [ @@ -10085,12 +9041,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "cancel review requests for a pull request", "operationId": "repoDeletePullReviewRequests", "parameters": [ @@ -10140,12 +9092,8 @@ }, "/repos/{owner}/{repo}/pulls/{index}/reviews": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "List all reviews for a pull request", "operationId": "repoListPullReviews", "parameters": [ @@ -10194,12 +9142,8 @@ } }, "post": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Create a review to an pull request", "operationId": "repoCreatePullReview", "parameters": [ @@ -10249,12 +9193,8 @@ }, "/repos/{owner}/{repo}/pulls/{index}/reviews/{id}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get a specific review for a pull request", "operationId": "repoGetPullReview", "parameters": [ @@ -10299,12 +9239,8 @@ } }, "post": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Submit a pending review to an pull request", "operationId": "repoSubmitPullReview", "parameters": [ @@ -10360,12 +9296,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Delete a specific review from a pull request", "operationId": "repoDeletePullReview", "parameters": [ @@ -10415,12 +9347,8 @@ }, "/repos/{owner}/{repo}/pulls/{index}/reviews/{id}/comments": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get a specific review for a pull request", "operationId": "repoGetPullReviewComments", "parameters": [ @@ -10467,12 +9395,8 @@ }, "/repos/{owner}/{repo}/pulls/{index}/reviews/{id}/dismissals": { "post": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Dismiss a review for a pull request", "operationId": "repoDismissPullReview", "parameters": [ @@ -10530,12 +9454,8 @@ }, "/repos/{owner}/{repo}/pulls/{index}/reviews/{id}/undismissals": { "post": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Cancel to dismiss a review for a pull request", "operationId": "repoUnDismissPullReview", "parameters": [ @@ -10585,12 +9505,8 @@ }, "/repos/{owner}/{repo}/pulls/{index}/update": { "post": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Merge PR's baseBranch into headBranch", "operationId": "repoUpdatePullRequest", "parameters": [ @@ -10617,10 +9533,7 @@ "required": true }, { - "enum": [ - "merge", - "rebase" - ], + "enum": ["merge", "rebase"], "type": "string", "description": "how to update pull request", "name": "style", @@ -10648,12 +9561,8 @@ }, "/repos/{owner}/{repo}/push_mirrors": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get all push mirrors of the repository", "operationId": "repoListPushMirrors", "parameters": [ @@ -10697,15 +9606,9 @@ } }, "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["repository"], "summary": "add a push mirror to the repository", "operationId": "repoAddPushMirror", "parameters": [ @@ -10746,12 +9649,8 @@ }, "/repos/{owner}/{repo}/push_mirrors-sync": { "post": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Sync all push mirrored repository", "operationId": "repoPushMirrorSync", "parameters": [ @@ -10785,12 +9684,8 @@ }, "/repos/{owner}/{repo}/push_mirrors/{name}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get push mirror of the repository by remoteName", "operationId": "repoGetPushMirrorByRemoteName", "parameters": [ @@ -10829,12 +9724,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "deletes a push mirror from a repository by remoteName", "operationId": "repoDeletePushMirror", "parameters": [ @@ -10875,12 +9766,8 @@ }, "/repos/{owner}/{repo}/raw/{filepath}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get a file from a repository", "operationId": "repoGetRawFile", "parameters": [ @@ -10924,12 +9811,8 @@ }, "/repos/{owner}/{repo}/releases": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "List a repo's releases", "operationId": "repoListReleases", "parameters": [ @@ -10985,15 +9868,9 @@ } }, "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Create a release", "operationId": "repoCreateRelease", "parameters": [ @@ -11034,12 +9911,8 @@ }, "/repos/{owner}/{repo}/releases/latest": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Gets the most recent non-prerelease, non-draft release of a repository, sorted by created_at", "operationId": "repoGetLatestRelease", "parameters": [ @@ -11070,12 +9943,8 @@ }, "/repos/{owner}/{repo}/releases/tags/{tag}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get a release by tag name", "operationId": "repoGetReleaseByTag", "parameters": [ @@ -11111,9 +9980,7 @@ } }, "delete": { - "tags": [ - "repository" - ], + "tags": ["repository"], "summary": "Delete a release by tag name", "operationId": "repoDeleteReleaseByTag", "parameters": [ @@ -11154,12 +10021,8 @@ }, "/repos/{owner}/{repo}/releases/{id}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get a release", "operationId": "repoGetRelease", "parameters": [ @@ -11196,9 +10059,7 @@ } }, "delete": { - "tags": [ - "repository" - ], + "tags": ["repository"], "summary": "Delete a release", "operationId": "repoDeleteRelease", "parameters": [ @@ -11238,15 +10099,9 @@ } }, "patch": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Update a release", "operationId": "repoEditRelease", "parameters": [ @@ -11292,12 +10147,8 @@ }, "/repos/{owner}/{repo}/releases/{id}/assets": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "List release's attachments", "operationId": "repoListReleaseAttachments", "parameters": [ @@ -11330,16 +10181,10 @@ } } }, - "post": { - "consumes": [ - "multipart/form-data" - ], - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "post": { + "consumes": ["multipart/form-data"], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Create a release attachment", "operationId": "repoCreateReleaseAttachment", "parameters": [ @@ -11391,12 +10236,8 @@ }, "/repos/{owner}/{repo}/releases/{id}/assets/{attachment_id}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get a release attachment", "operationId": "repoGetReleaseAttachment", "parameters": [ @@ -11438,12 +10279,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Delete a release attachment", "operationId": "repoDeleteReleaseAttachment", "parameters": [ @@ -11485,15 +10322,9 @@ } }, "patch": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Edit a release attachment", "operationId": "repoEditReleaseAttachment", "parameters": [ @@ -11544,12 +10375,8 @@ }, "/repos/{owner}/{repo}/reviewers": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Return all users that can be requested to review in this repo", "operationId": "repoGetReviewers", "parameters": [ @@ -11577,12 +10404,8 @@ }, "/repos/{owner}/{repo}/signing-key.gpg": { "get": { - "produces": [ - "text/plain" - ], - "tags": [ - "repository" - ], + "produces": ["text/plain"], + "tags": ["repository"], "summary": "Get signing-key.gpg for given repository", "operationId": "repoSigningKey", "parameters": [ @@ -11613,12 +10436,8 @@ }, "/repos/{owner}/{repo}/stargazers": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "List a repo's stargazers", "operationId": "repoListStargazers", "parameters": [ @@ -11658,12 +10477,8 @@ }, "/repos/{owner}/{repo}/statuses/{sha}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get a commit's statuses", "operationId": "repoListStatuses", "parameters": [ @@ -11689,26 +10504,14 @@ "required": true }, { - "enum": [ - "oldest", - "recentupdate", - "leastupdate", - "leastindex", - "highestindex" - ], + "enum": ["oldest", "recentupdate", "leastupdate", "leastindex", "highestindex"], "type": "string", "description": "type of sort", "name": "sort", "in": "query" }, { - "enum": [ - "pending", - "success", - "error", - "failure", - "warning" - ], + "enum": ["pending", "success", "error", "failure", "warning"], "type": "string", "description": "type of state", "name": "state", @@ -11737,12 +10540,8 @@ } }, "post": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Create a commit status", "operationId": "repoCreateStatus", "parameters": [ @@ -11787,12 +10586,8 @@ }, "/repos/{owner}/{repo}/subscribers": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "List a repo's watchers", "operationId": "repoListSubscribers", "parameters": [ @@ -11832,9 +10627,7 @@ }, "/repos/{owner}/{repo}/subscription": { "get": { - "tags": [ - "repository" - ], + "tags": ["repository"], "summary": "Check if the current user is watching a repo", "operationId": "userCurrentCheckSubscription", "parameters": [ @@ -11863,9 +10656,7 @@ } }, "put": { - "tags": [ - "repository" - ], + "tags": ["repository"], "summary": "Watch a repo", "operationId": "userCurrentPutSubscription", "parameters": [ @@ -11891,9 +10682,7 @@ } }, "delete": { - "tags": [ - "repository" - ], + "tags": ["repository"], "summary": "Unwatch a repo", "operationId": "userCurrentDeleteSubscription", "parameters": [ @@ -11921,12 +10710,8 @@ }, "/repos/{owner}/{repo}/tags": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "List a repository's tags", "operationId": "repoListTags", "parameters": [ @@ -11964,12 +10749,8 @@ } }, "post": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Create a new git tag in a repository", "operationId": "repoCreateTag", "parameters": [ @@ -12013,12 +10794,8 @@ }, "/repos/{owner}/{repo}/tags/{tag}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get the tag of a repository by tag name", "operationId": "repoGetTag", "parameters": [ @@ -12054,12 +10831,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Delete a repository's tag by name", "operationId": "repoDeleteTag", "parameters": [ @@ -12103,12 +10876,8 @@ }, "/repos/{owner}/{repo}/teams": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "List a repository's teams", "operationId": "repoListTeams", "parameters": [ @@ -12136,12 +10905,8 @@ }, "/repos/{owner}/{repo}/teams/{team}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Check if a team is assigned to a repository", "operationId": "repoCheckTeam", "parameters": [ @@ -12180,12 +10945,8 @@ } }, "put": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Add a team to a repository", "operationId": "repoAddTeam", "parameters": [ @@ -12224,12 +10985,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Delete a team from a repository", "operationId": "repoDeleteTeam", "parameters": [ @@ -12270,12 +11027,8 @@ }, "/repos/{owner}/{repo}/times": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "List a repo's tracked times", "operationId": "repoTrackedTimes", "parameters": [ @@ -12341,12 +11094,8 @@ }, "/repos/{owner}/{repo}/times/{user}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "List a user's tracked times in a repo", "operationId": "userTrackedTimes", "deprecated": true, @@ -12388,12 +11137,8 @@ }, "/repos/{owner}/{repo}/topics": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get list of topics that a repository has", "operationId": "repoListTopics", "parameters": [ @@ -12431,12 +11176,8 @@ } }, "put": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Replace list of topics for a repository", "operationId": "repoUpdateTopics", "parameters": [ @@ -12474,12 +11215,8 @@ }, "/repos/{owner}/{repo}/topics/{topic}": { "put": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Add a topic to a repository", "operationId": "repoAddTopic", "parameters": [ @@ -12515,12 +11252,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Delete a topic from a repository", "operationId": "repoDeleteTopic", "parameters": [ @@ -12558,12 +11291,8 @@ }, "/repos/{owner}/{repo}/transfer": { "post": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Transfer a repo ownership", "operationId": "repoTransfer", "parameters": [ @@ -12609,12 +11338,8 @@ }, "/repos/{owner}/{repo}/transfer/accept": { "post": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Accept a repo transfer", "operationId": "acceptRepoTransfer", "parameters": [ @@ -12648,12 +11373,8 @@ }, "/repos/{owner}/{repo}/transfer/reject": { "post": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Reject a repo transfer", "operationId": "rejectRepoTransfer", "parameters": [ @@ -12687,12 +11408,8 @@ }, "/repos/{owner}/{repo}/wiki/new": { "post": { - "consumes": [ - "application/json" - ], - "tags": [ - "repository" - ], + "consumes": ["application/json"], + "tags": ["repository"], "summary": "Create a wiki page", "operationId": "repoCreateWikiPage", "parameters": [ @@ -12733,12 +11450,8 @@ }, "/repos/{owner}/{repo}/wiki/page/{pageName}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get a wiki page", "operationId": "repoGetWikiPage", "parameters": [ @@ -12774,9 +11487,7 @@ } }, "delete": { - "tags": [ - "repository" - ], + "tags": ["repository"], "summary": "Delete a wiki page", "operationId": "repoDeleteWikiPage", "parameters": [ @@ -12815,12 +11526,8 @@ } }, "patch": { - "consumes": [ - "application/json" - ], - "tags": [ - "repository" - ], + "consumes": ["application/json"], + "tags": ["repository"], "summary": "Edit a wiki page", "operationId": "repoEditWikiPage", "parameters": [ @@ -12868,12 +11575,8 @@ }, "/repos/{owner}/{repo}/wiki/pages": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get all wiki pages", "operationId": "repoGetWikiPages", "parameters": [ @@ -12916,12 +11619,8 @@ }, "/repos/{owner}/{repo}/wiki/revisions/{pageName}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get revisions of a wiki page", "operationId": "repoGetWikiPageRevisions", "parameters": [ @@ -12965,15 +11664,9 @@ }, "/repos/{template_owner}/{template_repo}/generate": { "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Create a repository using a template", "operationId": "generateRepo", "parameters": [ @@ -13020,12 +11713,8 @@ }, "/repositories/{id}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get a repository by id", "operationId": "repoGetByID", "parameters": [ @@ -13047,12 +11736,8 @@ }, "/settings/api": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "settings" - ], + "produces": ["application/json"], + "tags": ["settings"], "summary": "Get instance's global settings for api", "operationId": "getGeneralAPISettings", "responses": { @@ -13064,12 +11749,8 @@ }, "/settings/attachment": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "settings" - ], + "produces": ["application/json"], + "tags": ["settings"], "summary": "Get instance's global settings for Attachment", "operationId": "getGeneralAttachmentSettings", "responses": { @@ -13081,12 +11762,8 @@ }, "/settings/repository": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "settings" - ], + "produces": ["application/json"], + "tags": ["settings"], "summary": "Get instance's global settings for repositories", "operationId": "getGeneralRepositorySettings", "responses": { @@ -13098,12 +11775,8 @@ }, "/settings/ui": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "settings" - ], + "produces": ["application/json"], + "tags": ["settings"], "summary": "Get instance's global settings for ui", "operationId": "getGeneralUISettings", "responses": { @@ -13115,12 +11788,8 @@ }, "/signing-key.gpg": { "get": { - "produces": [ - "text/plain" - ], - "tags": [ - "miscellaneous" - ], + "produces": ["text/plain"], + "tags": ["miscellaneous"], "summary": "Get default signing-key.gpg", "operationId": "getSigningKey", "responses": { @@ -13135,12 +11804,8 @@ }, "/teams/{id}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "produces": ["application/json"], + "tags": ["organization"], "summary": "Get a team", "operationId": "orgGetTeam", "parameters": [ @@ -13160,9 +11825,7 @@ } }, "delete": { - "tags": [ - "organization" - ], + "tags": ["organization"], "summary": "Delete a team", "operationId": "orgDeleteTeam", "parameters": [ @@ -13182,15 +11845,9 @@ } }, "patch": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["organization"], "summary": "Edit a team", "operationId": "orgEditTeam", "parameters": [ @@ -13218,12 +11875,8 @@ }, "/teams/{id}/activities/feeds": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "produces": ["application/json"], + "tags": ["organization"], "summary": "List a team's activity feeds", "operationId": "orgListTeamActivityFeeds", "parameters": [ @@ -13267,12 +11920,8 @@ }, "/teams/{id}/members": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "produces": ["application/json"], + "tags": ["organization"], "summary": "List a team's members", "operationId": "orgListTeamMembers", "parameters": [ @@ -13306,12 +11955,8 @@ }, "/teams/{id}/members/{username}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "produces": ["application/json"], + "tags": ["organization"], "summary": "List a particular member of team", "operationId": "orgListTeamMember", "parameters": [ @@ -13341,12 +11986,8 @@ } }, "put": { - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "produces": ["application/json"], + "tags": ["organization"], "summary": "Add a team member", "operationId": "orgAddTeamMember", "parameters": [ @@ -13376,12 +12017,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "produces": ["application/json"], + "tags": ["organization"], "summary": "Remove a team member", "operationId": "orgRemoveTeamMember", "parameters": [ @@ -13413,12 +12050,8 @@ }, "/teams/{id}/repos": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "produces": ["application/json"], + "tags": ["organization"], "summary": "List a team's repos", "operationId": "orgListTeamRepos", "parameters": [ @@ -13452,12 +12085,8 @@ }, "/teams/{id}/repos/{org}/{repo}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "produces": ["application/json"], + "tags": ["organization"], "summary": "List a particular repo of team", "operationId": "orgListTeamRepo", "parameters": [ @@ -13494,12 +12123,8 @@ } }, "put": { - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "produces": ["application/json"], + "tags": ["organization"], "summary": "Add a repository to a team", "operationId": "orgAddTeamRepository", "parameters": [ @@ -13537,12 +12162,8 @@ }, "delete": { "description": "This does not delete the repository, it only removes the repository from the team.", - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "produces": ["application/json"], + "tags": ["organization"], "summary": "Remove a repository from a team", "operationId": "orgRemoveTeamRepository", "parameters": [ @@ -13581,12 +12202,8 @@ }, "/topics/search": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "search topics via keyword", "operationId": "topicSearch", "parameters": [ @@ -13622,12 +12239,8 @@ }, "/user": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "Get the authenticated user", "operationId": "userGetCurrent", "responses": { @@ -13639,12 +12252,8 @@ }, "/user/applications/oauth2": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "List the authenticated user's oauth2 applications", "operationId": "userGetOauth2Application", "parameters": [ @@ -13668,12 +12277,8 @@ } }, "post": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "creates a new OAuth2 application", "operationId": "userCreateOAuth2Application", "parameters": [ @@ -13698,12 +12303,8 @@ }, "/user/applications/oauth2/{id}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "get an OAuth2 Application", "operationId": "userGetOAuth2Application", "parameters": [ @@ -13726,12 +12327,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "delete an OAuth2 Application", "operationId": "userDeleteOAuth2Application", "parameters": [ @@ -13754,12 +12351,8 @@ } }, "patch": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "update an OAuth2 Application, this includes regenerating the client secret", "operationId": "userUpdateOAuth2Application", "parameters": [ @@ -13792,12 +12385,8 @@ }, "/user/emails": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "List the authenticated user's email addresses", "operationId": "userListEmails", "responses": { @@ -13807,12 +12396,8 @@ } }, "post": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "Add email addresses", "operationId": "userAddEmail", "parameters": [ @@ -13834,12 +12419,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "Delete email addresses", "operationId": "userDeleteEmail", "parameters": [ @@ -13863,12 +12444,8 @@ }, "/user/followers": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "List the authenticated user's followers", "operationId": "userCurrentListFollowers", "parameters": [ @@ -13894,12 +12471,8 @@ }, "/user/following": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "List the users that the authenticated user is following", "operationId": "userCurrentListFollowing", "parameters": [ @@ -13925,9 +12498,7 @@ }, "/user/following/{username}": { "get": { - "tags": [ - "user" - ], + "tags": ["user"], "summary": "Check whether a user is followed by the authenticated user", "operationId": "userCurrentCheckFollowing", "parameters": [ @@ -13949,9 +12520,7 @@ } }, "put": { - "tags": [ - "user" - ], + "tags": ["user"], "summary": "Follow a user", "operationId": "userCurrentPutFollow", "parameters": [ @@ -13970,9 +12539,7 @@ } }, "delete": { - "tags": [ - "user" - ], + "tags": ["user"], "summary": "Unfollow a user", "operationId": "userCurrentDeleteFollow", "parameters": [ @@ -13993,12 +12560,8 @@ }, "/user/gpg_key_token": { "get": { - "produces": [ - "text/plain" - ], - "tags": [ - "user" - ], + "produces": ["text/plain"], + "tags": ["user"], "summary": "Get a Token to verify", "operationId": "getVerificationToken", "responses": { @@ -14013,15 +12576,9 @@ }, "/user/gpg_key_verify": { "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["user"], "summary": "Verify a GPG key", "operationId": "userVerifyGPGKey", "responses": { @@ -14039,12 +12596,8 @@ }, "/user/gpg_keys": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "List the authenticated user's GPG keys", "operationId": "userCurrentListGPGKeys", "parameters": [ @@ -14068,15 +12621,9 @@ } }, "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["user"], "summary": "Create a GPG key", "operationId": "userCurrentPostGPGKey", "parameters": [ @@ -14103,12 +12650,8 @@ }, "/user/gpg_keys/{id}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "Get a GPG key", "operationId": "userCurrentGetGPGKey", "parameters": [ @@ -14131,12 +12674,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "Remove a GPG key", "operationId": "userCurrentDeleteGPGKey", "parameters": [ @@ -14164,12 +12703,8 @@ }, "/user/hooks": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "List the authenticated user's webhooks", "operationId": "userListHooks", "parameters": [ @@ -14193,15 +12728,9 @@ } }, "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["user"], "summary": "Create a hook", "operationId": "userCreateHook", "parameters": [ @@ -14223,12 +12752,8 @@ }, "/user/hooks/{id}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "Get a hook", "operationId": "userGetHook", "parameters": [ @@ -14248,12 +12773,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "Delete a hook", "operationId": "userDeleteHook", "parameters": [ @@ -14273,15 +12794,9 @@ } }, "patch": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["user"], "summary": "Update a hook", "operationId": "userEditHook", "parameters": [ @@ -14310,12 +12825,8 @@ }, "/user/keys": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "List the authenticated user's public keys", "operationId": "userCurrentListKeys", "parameters": [ @@ -14345,15 +12856,9 @@ } }, "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["user"], "summary": "Create a public key", "operationId": "userCurrentPostKey", "parameters": [ @@ -14377,12 +12882,8 @@ }, "/user/keys/{id}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "Get a public key", "operationId": "userCurrentGetKey", "parameters": [ @@ -14405,12 +12906,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "Delete a public key", "operationId": "userCurrentDeleteKey", "parameters": [ @@ -14438,12 +12935,8 @@ }, "/user/orgs": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "produces": ["application/json"], + "tags": ["organization"], "summary": "List the current user's organizations", "operationId": "orgListCurrentUserOrgs", "parameters": [ @@ -14469,12 +12962,8 @@ }, "/user/repos": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "List the repos that the authenticated user owns", "operationId": "userCurrentListRepos", "parameters": [ @@ -14498,16 +12987,9 @@ } }, "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "repository", - "user" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["repository", "user"], "summary": "Create a repository", "operationId": "createCurrentUserRepo", "parameters": [ @@ -14537,12 +13019,8 @@ }, "/user/settings": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "Get user settings", "operationId": "getUserSettings", "responses": { @@ -14552,12 +13030,8 @@ } }, "patch": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "Update user settings", "operationId": "updateUserSettings", "parameters": [ @@ -14578,12 +13052,8 @@ }, "/user/starred": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "The repos that the authenticated user has starred", "operationId": "userCurrentListStarred", "parameters": [ @@ -14609,9 +13079,7 @@ }, "/user/starred/{owner}/{repo}": { "get": { - "tags": [ - "user" - ], + "tags": ["user"], "summary": "Whether the authenticated is starring the repo", "operationId": "userCurrentCheckStarring", "parameters": [ @@ -14640,9 +13108,7 @@ } }, "put": { - "tags": [ - "user" - ], + "tags": ["user"], "summary": "Star the given repo", "operationId": "userCurrentPutStar", "parameters": [ @@ -14668,9 +13134,7 @@ } }, "delete": { - "tags": [ - "user" - ], + "tags": ["user"], "summary": "Unstar the given repo", "operationId": "userCurrentDeleteStar", "parameters": [ @@ -14698,15 +13162,9 @@ }, "/user/stopwatches": { "get": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["user"], "summary": "Get list of all existing stopwatches", "operationId": "userGetStopWatches", "parameters": [ @@ -14732,12 +13190,8 @@ }, "/user/subscriptions": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "List repositories watched by the authenticated user", "operationId": "userCurrentListSubscriptions", "parameters": [ @@ -14763,12 +13217,8 @@ }, "/user/teams": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "List all the teams a user belongs to", "operationId": "userListTeams", "parameters": [ @@ -14794,12 +13244,8 @@ }, "/user/times": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "List the current user's tracked times", "operationId": "userCurrentTrackedTimes", "parameters": [ @@ -14839,12 +13285,8 @@ }, "/users/search": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "Search for users", "operationId": "userSearch", "parameters": [ @@ -14897,12 +13339,8 @@ }, "/users/{username}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "Get a user", "operationId": "userGet", "parameters": [ @@ -14926,12 +13364,8 @@ }, "/users/{username}/activities/feeds": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "List a user's activity feeds", "operationId": "userListActivityFeeds", "parameters": [ @@ -14980,12 +13414,8 @@ }, "/users/{username}/followers": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "List the given user's followers", "operationId": "userListFollowers", "parameters": [ @@ -15018,12 +13448,8 @@ }, "/users/{username}/following": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "List the users that the given user is following", "operationId": "userListFollowing", "parameters": [ @@ -15056,9 +13482,7 @@ }, "/users/{username}/following/{target}": { "get": { - "tags": [ - "user" - ], + "tags": ["user"], "summary": "Check if one user is following another user", "operationId": "userCheckFollowing", "parameters": [ @@ -15089,12 +13513,8 @@ }, "/users/{username}/gpg_keys": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "List the given user's GPG keys", "operationId": "userListGPGKeys", "parameters": [ @@ -15127,12 +13547,8 @@ }, "/users/{username}/heatmap": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "Get a user's heatmap", "operationId": "userGetHeatmapData", "parameters": [ @@ -15156,12 +13572,8 @@ }, "/users/{username}/keys": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "List the given user's public keys", "operationId": "userListKeys", "parameters": [ @@ -15200,12 +13612,8 @@ }, "/users/{username}/orgs": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "produces": ["application/json"], + "tags": ["organization"], "summary": "List a user's organizations", "operationId": "orgListUserOrgs", "parameters": [ @@ -15238,12 +13646,8 @@ }, "/users/{username}/orgs/{org}/permissions": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "produces": ["application/json"], + "tags": ["organization"], "summary": "Get user permissions in organization", "operationId": "orgGetUserPermissions", "parameters": [ @@ -15277,12 +13681,8 @@ }, "/users/{username}/repos": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "List the repos owned by the given user", "operationId": "userListRepos", "parameters": [ @@ -15315,12 +13715,8 @@ }, "/users/{username}/starred": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "The repos that the given user has starred", "operationId": "userListStarred", "parameters": [ @@ -15353,12 +13749,8 @@ }, "/users/{username}/subscriptions": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "List the repositories watched by a user", "operationId": "userListSubscriptions", "parameters": [ @@ -15391,12 +13783,8 @@ }, "/users/{username}/tokens": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "List the authenticated user's access tokens", "operationId": "userGetTokens", "parameters": [ @@ -15427,15 +13815,9 @@ } }, "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["user"], "summary": "Create an access token", "operationId": "userCreateToken", "parameters": [ @@ -15466,12 +13848,8 @@ }, "/users/{username}/tokens/{token}": { "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "delete an access token", "operationId": "userDeleteAccessToken", "parameters": [ @@ -15505,12 +13883,8 @@ }, "/version": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "miscellaneous" - ], + "produces": ["application/json"], + "tags": ["miscellaneous"], "summary": "Returns the version of the Gitea application", "operationId": "getVersion", "responses": { @@ -15654,9 +14028,7 @@ "AddTimeOption": { "description": "AddTimeOption options for adding time to an issue", "type": "object", - "required": [ - "time" - ], + "required": ["time"], "properties": { "created": { "type": "string", @@ -15948,10 +14320,7 @@ "ChangeFileOperation": { "description": "ChangeFileOperation for creating, updating or deleting a file", "type": "object", - "required": [ - "operation", - "path" - ], + "required": ["operation", "path"], "properties": { "content": { "description": "new or updated file content, must be base64 encoded", @@ -15966,11 +14335,7 @@ "operation": { "description": "indicates what to do with the file", "type": "string", - "enum": [ - "create", - "update", - "delete" - ], + "enum": ["create", "update", "delete"], "x-go-name": "Operation" }, "path": { @@ -15989,9 +14354,7 @@ "ChangeFilesOptions": { "description": "ChangeFilesOptions options for creating, updating or deleting multiple files\nNote: `author` and `committer` are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used)", "type": "object", - "required": [ - "files" - ], + "required": ["files"], "properties": { "author": { "$ref": "#/definitions/Identity" @@ -16437,9 +14800,7 @@ "CreateAccessTokenOption": { "description": "CreateAccessTokenOption options when create access token", "type": "object", - "required": [ - "name" - ], + "required": ["name"], "properties": { "name": { "type": "string", @@ -16580,9 +14941,7 @@ "CreateBranchRepoOption": { "description": "CreateBranchRepoOption options when creating a branch in a repository", "type": "object", - "required": [ - "new_branch_name" - ], + "required": ["new_branch_name"], "properties": { "new_branch_name": { "description": "Name of the branch to create", @@ -16623,9 +14982,7 @@ "CreateFileOptions": { "description": "CreateFileOptions options for creating files\nNote: `author` and `committer` are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used)", "type": "object", - "required": [ - "content" - ], + "required": ["content"], "properties": { "author": { "$ref": "#/definitions/Identity" @@ -16684,9 +15041,7 @@ "CreateGPGKeyOption": { "description": "CreateGPGKeyOption options create user GPG key", "type": "object", - "required": [ - "armored_public_key" - ], + "required": ["armored_public_key"], "properties": { "armored_public_key": { "description": "An armored GPG key to add", @@ -16704,10 +15059,7 @@ "CreateHookOption": { "description": "CreateHookOption options when create a hook", "type": "object", - "required": [ - "type", - "config" - ], + "required": ["type", "config"], "properties": { "active": { "type": "boolean", @@ -16762,9 +15114,7 @@ "CreateIssueCommentOption": { "description": "CreateIssueCommentOption options for creating a comment on an issue", "type": "object", - "required": [ - "body" - ], + "required": ["body"], "properties": { "body": { "type": "string", @@ -16776,9 +15126,7 @@ "CreateIssueOption": { "description": "CreateIssueOption options to create one issue", "type": "object", - "required": [ - "title" - ], + "required": ["title"], "properties": { "assignee": { "description": "deprecated", @@ -16834,10 +15182,7 @@ "CreateKeyOption": { "description": "CreateKeyOption options when creating a key", "type": "object", - "required": [ - "title", - "key" - ], + "required": ["title", "key"], "properties": { "key": { "description": "An armored SSH key to add", @@ -16862,10 +15207,7 @@ "CreateLabelOption": { "description": "CreateLabelOption options for creating a label", "type": "object", - "required": [ - "name", - "color" - ], + "required": ["name", "color"], "properties": { "color": { "type": "string", @@ -16903,10 +15245,7 @@ }, "state": { "type": "string", - "enum": [ - "open", - "closed" - ], + "enum": ["open", "closed"], "x-go-name": "State" }, "title": { @@ -16941,9 +15280,7 @@ "CreateOrgOption": { "description": "CreateOrgOption options for creating an organization", "type": "object", - "required": [ - "username" - ], + "required": ["username"], "properties": { "description": { "type": "string", @@ -16968,11 +15305,7 @@ "visibility": { "description": "possible values are `public` (default), `limited` or `private`", "type": "string", - "enum": [ - "public", - "limited", - "private" - ], + "enum": ["public", "limited", "private"], "x-go-name": "Visibility" }, "website": { @@ -17117,9 +15450,7 @@ "CreateReleaseOption": { "description": "CreateReleaseOption options when creating a release", "type": "object", - "required": [ - "tag_name" - ], + "required": ["tag_name"], "properties": { "body": { "type": "string", @@ -17151,9 +15482,7 @@ "CreateRepoOption": { "description": "CreateRepoOption options when creating repository", "type": "object", - "required": [ - "name" - ], + "required": ["name"], "properties": { "auto_init": { "description": "Whether the repository should be auto-initialized?", @@ -17209,12 +15538,7 @@ "trust_model": { "description": "TrustModel of the repository", "type": "string", - "enum": [ - "default", - "collaborator", - "committer", - "collaboratorcommitter" - ], + "enum": ["default", "collaborator", "committer", "collaboratorcommitter"], "x-go-name": "TrustModel" } }, @@ -17245,9 +15569,7 @@ "CreateTagOption": { "description": "CreateTagOption options when creating a tag", "type": "object", - "required": [ - "tag_name" - ], + "required": ["tag_name"], "properties": { "message": { "type": "string", @@ -17267,9 +15589,7 @@ "CreateTeamOption": { "description": "CreateTeamOption options for creating a team", "type": "object", - "required": [ - "name" - ], + "required": ["name"], "properties": { "can_create_org_repo": { "type": "boolean", @@ -17289,11 +15609,7 @@ }, "permission": { "type": "string", - "enum": [ - "read", - "write", - "admin" - ], + "enum": ["read", "write", "admin"], "x-go-name": "Permission" }, "units": { @@ -17336,11 +15652,7 @@ "CreateUserOption": { "description": "CreateUserOption create user options", "type": "object", - "required": [ - "username", - "email", - "password" - ], + "required": ["username", "email", "password"], "properties": { "created_at": { "description": "For explicitly setting the user creation timestamp. Useful when users are\nmigrated from other systems. When omitted, the user's creation timestamp\nwill be set to \"now\".", @@ -17463,9 +15775,7 @@ "DeleteFileOptions": { "description": "DeleteFileOptions options for deleting files (used for other File structs below)\nNote: `author` and `committer` are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used)", "type": "object", - "required": [ - "sha" - ], + "required": ["sha"], "properties": { "author": { "$ref": "#/definitions/Identity" @@ -17691,9 +16001,7 @@ "EditDeadlineOption": { "description": "EditDeadlineOption options for creating a deadline", "type": "object", - "required": [ - "due_date" - ], + "required": ["due_date"], "properties": { "due_date": { "type": "string", @@ -17750,9 +16058,7 @@ "EditIssueCommentOption": { "description": "EditIssueCommentOption options for editing a comment", "type": "object", - "required": [ - "body" - ], + "required": ["body"], "properties": { "body": { "type": "string", @@ -17882,11 +16188,7 @@ "visibility": { "description": "possible values are `public`, `limited` or `private`", "type": "string", - "enum": [ - "public", - "limited", - "private" - ], + "enum": ["public", "limited", "private"], "x-go-name": "Visibility" }, "website": { @@ -18153,9 +16455,7 @@ "EditTeamOption": { "description": "EditTeamOption options for editing a team", "type": "object", - "required": [ - "name" - ], + "required": ["name"], "properties": { "can_create_org_repo": { "type": "boolean", @@ -18175,11 +16475,7 @@ }, "permission": { "type": "string", - "enum": [ - "read", - "write", - "admin" - ], + "enum": ["read", "write", "admin"], "x-go-name": "Permission" }, "units": { @@ -18222,10 +16518,7 @@ "EditUserOption": { "description": "EditUserOption edit user options", "type": "object", - "required": [ - "source_id", - "login_name" - ], + "required": ["source_id", "login_name"], "properties": { "active": { "type": "boolean", @@ -18682,10 +16975,7 @@ "GenerateRepoOption": { "description": "GenerateRepoOption options when creating repository using a template", "type": "object", - "required": [ - "owner", - "name" - ], + "required": ["owner", "name"], "properties": { "avatar": { "description": "include avatar of the template repo", @@ -19432,19 +17722,11 @@ "MergePullRequestOption": { "description": "MergePullRequestForm form for merging Pull Request", "type": "object", - "required": [ - "Do" - ], + "required": ["Do"], "properties": { "Do": { "type": "string", - "enum": [ - "merge", - "rebase", - "rebase-merge", - "squash", - "manually-merged" - ] + "enum": ["merge", "rebase", "rebase-merge", "squash", "manually-merged"] }, "MergeCommitID": { "type": "string" @@ -19478,10 +17760,7 @@ "MigrateRepoOptions": { "description": "MigrateRepoOptions options for migrating repository's\nthis is used to interact with api v1", "type": "object", - "required": [ - "clone_addr", - "repo_name" - ], + "required": ["clone_addr", "repo_name"], "properties": { "auth_password": { "type": "string", @@ -19554,16 +17833,7 @@ }, "service": { "type": "string", - "enum": [ - "git", - "github", - "gitea", - "gitlab", - "gogs", - "onedev", - "gitbucket", - "codebase" - ], + "enum": ["git", "github", "gitea", "gitlab", "gogs", "onedev", "gitbucket", "codebase"], "x-go-name": "Service" }, "uid": { @@ -20714,9 +18984,7 @@ "RenameUserOption": { "description": "RenameUserOption options when renaming a user", "type": "object", - "required": [ - "new_username" - ], + "required": ["new_username"], "properties": { "new_username": { "description": "New username for this user. This name cannot be in use yet by any other user.", @@ -21218,13 +19486,7 @@ }, "permission": { "type": "string", - "enum": [ - "none", - "read", - "write", - "admin", - "owner" - ], + "enum": ["none", "read", "write", "admin", "owner"], "x-go-name": "Permission" }, "units": { @@ -21480,9 +19742,7 @@ "TransferRepoOption": { "description": "TransferRepoOption options when transfer a repository's ownership", "type": "object", - "required": [ - "new_owner" - ], + "required": ["new_owner"], "properties": { "new_owner": { "type": "string", @@ -21503,10 +19763,7 @@ "UpdateFileOptions": { "description": "UpdateFileOptions options for updating files\nNote: `author` and `committer` are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used)", "type": "object", - "required": [ - "sha", - "content" - ], + "required": ["sha", "content"], "properties": { "author": { "$ref": "#/definitions/Identity" @@ -22930,4 +21187,4 @@ "TOTPHeader": [] } ] -} \ No newline at end of file +} diff --git a/src/schemas/v1.21.json b/src/schemas/v1.21.json index 485043b..fee4948 100644 --- a/src/schemas/v1.21.json +++ b/src/schemas/v1.21.json @@ -1,16 +1,7 @@ { - "consumes": [ - "application/json", - "text/plain" - ], - "produces": [ - "application/json", - "text/html" - ], - "schemes": [ - "http", - "https" - ], + "consumes": ["application/json", "text/plain"], + "produces": ["application/json", "text/html"], + "schemes": ["http", "https"], "swagger": "2.0", "info": { "description": "This documentation describes the Gitea API.", @@ -25,12 +16,8 @@ "paths": { "/activitypub/user-id/{user-id}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "activitypub" - ], + "produces": ["application/json"], + "tags": ["activitypub"], "summary": "Returns the Person actor for a user", "operationId": "activitypubPerson", "parameters": [ @@ -51,12 +38,8 @@ }, "/activitypub/user-id/{user-id}/inbox": { "post": { - "produces": [ - "application/json" - ], - "tags": [ - "activitypub" - ], + "produces": ["application/json"], + "tags": ["activitypub"], "summary": "Send to the inbox", "operationId": "activitypubPersonInbox", "parameters": [ @@ -77,12 +60,8 @@ }, "/admin/cron": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "admin" - ], + "produces": ["application/json"], + "tags": ["admin"], "summary": "List cron tasks", "operationId": "adminCronList", "parameters": [ @@ -111,12 +90,8 @@ }, "/admin/cron/{task}": { "post": { - "produces": [ - "application/json" - ], - "tags": [ - "admin" - ], + "produces": ["application/json"], + "tags": ["admin"], "summary": "Run cron task", "operationId": "adminCronRun", "parameters": [ @@ -140,12 +115,8 @@ }, "/admin/emails": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "admin" - ], + "produces": ["application/json"], + "tags": ["admin"], "summary": "List all emails", "operationId": "adminGetAllEmails", "parameters": [ @@ -174,12 +145,8 @@ }, "/admin/emails/search": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "admin" - ], + "produces": ["application/json"], + "tags": ["admin"], "summary": "Search all emails", "operationId": "adminSearchEmails", "parameters": [ @@ -214,12 +181,8 @@ }, "/admin/hooks": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "admin" - ], + "produces": ["application/json"], + "tags": ["admin"], "summary": "List system's webhooks", "operationId": "adminListHooks", "parameters": [ @@ -243,15 +206,9 @@ } }, "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "admin" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["admin"], "summary": "Create a hook", "operationId": "adminCreateHook", "parameters": [ @@ -273,12 +230,8 @@ }, "/admin/hooks/{id}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "admin" - ], + "produces": ["application/json"], + "tags": ["admin"], "summary": "Get a hook", "operationId": "adminGetHook", "parameters": [ @@ -298,12 +251,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "admin" - ], + "produces": ["application/json"], + "tags": ["admin"], "summary": "Delete a hook", "operationId": "adminDeleteHook", "parameters": [ @@ -323,15 +272,9 @@ } }, "patch": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "admin" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["admin"], "summary": "Update a hook", "operationId": "adminEditHook", "parameters": [ @@ -360,12 +303,8 @@ }, "/admin/orgs": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "admin" - ], + "produces": ["application/json"], + "tags": ["admin"], "summary": "List all organizations", "operationId": "adminGetAllOrgs", "parameters": [ @@ -394,12 +333,8 @@ }, "/admin/unadopted": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "admin" - ], + "produces": ["application/json"], + "tags": ["admin"], "summary": "List unadopted repositories", "operationId": "adminUnadoptedList", "parameters": [ @@ -434,12 +369,8 @@ }, "/admin/unadopted/{owner}/{repo}": { "post": { - "produces": [ - "application/json" - ], - "tags": [ - "admin" - ], + "produces": ["application/json"], + "tags": ["admin"], "summary": "Adopt unadopted files as a repository", "operationId": "adminAdoptRepository", "parameters": [ @@ -471,12 +402,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "admin" - ], + "produces": ["application/json"], + "tags": ["admin"], "summary": "Delete unadopted files", "operationId": "adminDeleteUnadoptedRepository", "parameters": [ @@ -507,12 +434,8 @@ }, "/admin/users": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "admin" - ], + "produces": ["application/json"], + "tags": ["admin"], "summary": "Search users according filter conditions", "operationId": "adminSearchUsers", "parameters": [ @@ -552,15 +475,9 @@ } }, "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "admin" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["admin"], "summary": "Create a user", "operationId": "adminCreateUser", "parameters": [ @@ -590,12 +507,8 @@ }, "/admin/users/{username}": { "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "admin" - ], + "produces": ["application/json"], + "tags": ["admin"], "summary": "Delete a user", "operationId": "adminDeleteUser", "parameters": [ @@ -626,15 +539,9 @@ } }, "patch": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "admin" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["admin"], "summary": "Edit an existing user", "operationId": "adminEditUser", "parameters": [ @@ -668,15 +575,9 @@ }, "/admin/users/{username}/keys": { "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "admin" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["admin"], "summary": "Add a public key on behalf of a user", "operationId": "adminCreatePublicKey", "parameters": [ @@ -710,12 +611,8 @@ }, "/admin/users/{username}/keys/{id}": { "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "admin" - ], + "produces": ["application/json"], + "tags": ["admin"], "summary": "Delete a user's public key", "operationId": "adminDeleteUserPublicKey", "parameters": [ @@ -750,15 +647,9 @@ }, "/admin/users/{username}/orgs": { "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "admin" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["admin"], "summary": "Create an organization", "operationId": "adminCreateOrg", "parameters": [ @@ -793,12 +684,8 @@ }, "/admin/users/{username}/rename": { "post": { - "produces": [ - "application/json" - ], - "tags": [ - "admin" - ], + "produces": ["application/json"], + "tags": ["admin"], "summary": "Rename a user", "operationId": "adminRenameUser", "parameters": [ @@ -833,15 +720,9 @@ }, "/admin/users/{username}/repos": { "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "admin" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["admin"], "summary": "Create a repository on behalf of a user", "operationId": "adminCreateRepo", "parameters": [ @@ -885,12 +766,8 @@ }, "/gitignore/templates": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "miscellaneous" - ], + "produces": ["application/json"], + "tags": ["miscellaneous"], "summary": "Returns a list of all gitignore templates", "operationId": "listGitignoresTemplates", "responses": { @@ -902,12 +779,8 @@ }, "/gitignore/templates/{name}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "miscellaneous" - ], + "produces": ["application/json"], + "tags": ["miscellaneous"], "summary": "Returns information about a gitignore template", "operationId": "getGitignoreTemplateInfo", "parameters": [ @@ -931,12 +804,8 @@ }, "/label/templates": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "miscellaneous" - ], + "produces": ["application/json"], + "tags": ["miscellaneous"], "summary": "Returns a list of all label templates", "operationId": "listLabelTemplates", "responses": { @@ -948,12 +817,8 @@ }, "/label/templates/{name}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "miscellaneous" - ], + "produces": ["application/json"], + "tags": ["miscellaneous"], "summary": "Returns all labels in a template", "operationId": "getLabelTemplateInfo", "parameters": [ @@ -977,12 +842,8 @@ }, "/licenses": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "miscellaneous" - ], + "produces": ["application/json"], + "tags": ["miscellaneous"], "summary": "Returns a list of all license templates", "operationId": "listLicenseTemplates", "responses": { @@ -994,12 +855,8 @@ }, "/licenses/{name}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "miscellaneous" - ], + "produces": ["application/json"], + "tags": ["miscellaneous"], "summary": "Returns information about a license template", "operationId": "getLicenseTemplateInfo", "parameters": [ @@ -1023,15 +880,9 @@ }, "/markdown": { "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "text/html" - ], - "tags": [ - "miscellaneous" - ], + "consumes": ["application/json"], + "produces": ["text/html"], + "tags": ["miscellaneous"], "summary": "Render a markdown document as HTML", "operationId": "renderMarkdown", "parameters": [ @@ -1055,15 +906,9 @@ }, "/markdown/raw": { "post": { - "consumes": [ - "text/plain" - ], - "produces": [ - "text/html" - ], - "tags": [ - "miscellaneous" - ], + "consumes": ["text/plain"], + "produces": ["text/html"], + "tags": ["miscellaneous"], "summary": "Render raw markdown as HTML", "operationId": "renderMarkdownRaw", "parameters": [ @@ -1089,15 +934,9 @@ }, "/markup": { "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "text/html" - ], - "tags": [ - "miscellaneous" - ], + "consumes": ["application/json"], + "produces": ["text/html"], + "tags": ["miscellaneous"], "summary": "Render a markup document as HTML", "operationId": "renderMarkup", "parameters": [ @@ -1121,12 +960,8 @@ }, "/nodeinfo": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "miscellaneous" - ], + "produces": ["application/json"], + "tags": ["miscellaneous"], "summary": "Returns the nodeinfo of the Gitea application", "operationId": "getNodeInfo", "responses": { @@ -1138,15 +973,9 @@ }, "/notifications": { "get": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "notification" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["notification"], "summary": "List users's notification threads", "operationId": "notifyGetList", "parameters": [ @@ -1169,12 +998,7 @@ { "type": "array", "items": { - "enum": [ - "issue", - "pull", - "commit", - "repository" - ], + "enum": ["issue", "pull", "commit", "repository"], "type": "string" }, "collectionFormat": "multi", @@ -1216,15 +1040,9 @@ } }, "put": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "notification" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["notification"], "summary": "Mark notification threads as read, pinned or unread", "operationId": "notifyReadList", "parameters": [ @@ -1267,9 +1085,7 @@ }, "/notifications/new": { "get": { - "tags": [ - "notification" - ], + "tags": ["notification"], "summary": "Check if unread notifications exist", "operationId": "notifyNewAvailable", "responses": { @@ -1281,15 +1097,9 @@ }, "/notifications/threads/{id}": { "get": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "notification" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["notification"], "summary": "Get notification thread by ID", "operationId": "notifyGetThread", "parameters": [ @@ -1314,15 +1124,9 @@ } }, "patch": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "notification" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["notification"], "summary": "Mark notification thread as read by ID", "operationId": "notifyReadThread", "parameters": [ @@ -1356,15 +1160,9 @@ }, "/org/{org}/repos": { "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["organization"], "summary": "Create a repository in an organization", "operationId": "createOrgRepoDeprecated", "deprecated": true, @@ -1399,12 +1197,8 @@ }, "/orgs": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "produces": ["application/json"], + "tags": ["organization"], "summary": "Get list of organizations", "operationId": "orgGetAll", "parameters": [ @@ -1428,15 +1222,9 @@ } }, "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["organization"], "summary": "Create an organization", "operationId": "orgCreate", "parameters": [ @@ -1464,12 +1252,8 @@ }, "/orgs/{org}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "produces": ["application/json"], + "tags": ["organization"], "summary": "Get an organization", "operationId": "orgGet", "parameters": [ @@ -1488,12 +1272,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "produces": ["application/json"], + "tags": ["organization"], "summary": "Delete an organization", "operationId": "orgDelete", "parameters": [ @@ -1512,15 +1292,9 @@ } }, "patch": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["organization"], "summary": "Edit an organization", "operationId": "orgEdit", "parameters": [ @@ -1549,12 +1323,8 @@ }, "/orgs/{org}/activities/feeds": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "produces": ["application/json"], + "tags": ["organization"], "summary": "List an organization's activity feeds", "operationId": "orgListActivityFeeds", "parameters": [ @@ -1597,12 +1367,8 @@ }, "/orgs/{org}/avatar": { "post": { - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "produces": ["application/json"], + "tags": ["organization"], "summary": "Update Avatar", "operationId": "orgUpdateAvatar", "parameters": [ @@ -1628,12 +1394,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "produces": ["application/json"], + "tags": ["organization"], "summary": "Delete Avatar", "operationId": "orgDeleteAvatar", "parameters": [ @@ -1654,12 +1416,8 @@ }, "/orgs/{org}/hooks": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "produces": ["application/json"], + "tags": ["organization"], "summary": "List an organization's webhooks", "operationId": "orgListHooks", "parameters": [ @@ -1690,15 +1448,9 @@ } }, "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["organization"], "summary": "Create a hook", "operationId": "orgCreateHook", "parameters": [ @@ -1727,12 +1479,8 @@ }, "/orgs/{org}/hooks/{id}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "produces": ["application/json"], + "tags": ["organization"], "summary": "Get a hook", "operationId": "orgGetHook", "parameters": [ @@ -1759,12 +1507,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "produces": ["application/json"], + "tags": ["organization"], "summary": "Delete a hook", "operationId": "orgDeleteHook", "parameters": [ @@ -1791,15 +1535,9 @@ } }, "patch": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["organization"], "summary": "Update a hook", "operationId": "orgEditHook", "parameters": [ @@ -1835,12 +1573,8 @@ }, "/orgs/{org}/labels": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "produces": ["application/json"], + "tags": ["organization"], "summary": "List an organization's labels", "operationId": "orgListLabels", "parameters": [ @@ -1871,15 +1605,9 @@ } }, "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["organization"], "summary": "Create a label for an organization", "operationId": "orgCreateLabel", "parameters": [ @@ -1910,12 +1638,8 @@ }, "/orgs/{org}/labels/{id}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "produces": ["application/json"], + "tags": ["organization"], "summary": "Get a single label", "operationId": "orgGetLabel", "parameters": [ @@ -1942,9 +1666,7 @@ } }, "delete": { - "tags": [ - "organization" - ], + "tags": ["organization"], "summary": "Delete a label", "operationId": "orgDeleteLabel", "parameters": [ @@ -1971,15 +1693,9 @@ } }, "patch": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["organization"], "summary": "Update a label", "operationId": "orgEditLabel", "parameters": [ @@ -2018,12 +1734,8 @@ }, "/orgs/{org}/members": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "produces": ["application/json"], + "tags": ["organization"], "summary": "List an organization's members", "operationId": "orgListMembers", "parameters": [ @@ -2056,9 +1768,7 @@ }, "/orgs/{org}/members/{username}": { "get": { - "tags": [ - "organization" - ], + "tags": ["organization"], "summary": "Check if a user is a member of an organization", "operationId": "orgIsMember", "parameters": [ @@ -2090,12 +1800,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "produces": ["application/json"], + "tags": ["organization"], "summary": "Remove a member from an organization", "operationId": "orgDeleteMember", "parameters": [ @@ -2123,12 +1829,8 @@ }, "/orgs/{org}/public_members": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "produces": ["application/json"], + "tags": ["organization"], "summary": "List an organization's public members", "operationId": "orgListPublicMembers", "parameters": [ @@ -2161,9 +1863,7 @@ }, "/orgs/{org}/public_members/{username}": { "get": { - "tags": [ - "organization" - ], + "tags": ["organization"], "summary": "Check if a user is a public member of an organization", "operationId": "orgIsPublicMember", "parameters": [ @@ -2192,12 +1892,8 @@ } }, "put": { - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "produces": ["application/json"], + "tags": ["organization"], "summary": "Publicize a user's membership", "operationId": "orgPublicizeMember", "parameters": [ @@ -2226,12 +1922,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "produces": ["application/json"], + "tags": ["organization"], "summary": "Conceal a user's membership", "operationId": "orgConcealMember", "parameters": [ @@ -2262,12 +1954,8 @@ }, "/orgs/{org}/repos": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "produces": ["application/json"], + "tags": ["organization"], "summary": "List an organization's repos", "operationId": "orgListRepos", "parameters": [ @@ -2298,15 +1986,9 @@ } }, "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["organization"], "summary": "Create a repository in an organization", "operationId": "createOrgRepo", "parameters": [ @@ -2343,12 +2025,8 @@ }, "/orgs/{org}/teams": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "produces": ["application/json"], + "tags": ["organization"], "summary": "List an organization's teams", "operationId": "orgListTeams", "parameters": [ @@ -2379,15 +2057,9 @@ } }, "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["organization"], "summary": "Create a team", "operationId": "orgCreateTeam", "parameters": [ @@ -2418,12 +2090,8 @@ }, "/orgs/{org}/teams/search": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "produces": ["application/json"], + "tags": ["organization"], "summary": "Search for teams within an organization", "operationId": "teamSearch", "parameters": [ @@ -2482,12 +2150,8 @@ }, "/packages/{owner}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "package" - ], + "produces": ["application/json"], + "tags": ["package"], "summary": "Gets all packages of an owner", "operationId": "listPackages", "parameters": [ @@ -2555,12 +2219,8 @@ }, "/packages/{owner}/{type}/{name}/{version}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "package" - ], + "produces": ["application/json"], + "tags": ["package"], "summary": "Gets a package", "operationId": "getPackage", "parameters": [ @@ -2603,9 +2263,7 @@ } }, "delete": { - "tags": [ - "package" - ], + "tags": ["package"], "summary": "Delete a package", "operationId": "deletePackage", "parameters": [ @@ -2650,12 +2308,8 @@ }, "/packages/{owner}/{type}/{name}/{version}/files": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "package" - ], + "produces": ["application/json"], + "tags": ["package"], "summary": "Gets all files of a package", "operationId": "listPackageFiles", "parameters": [ @@ -2700,12 +2354,8 @@ }, "/repos/issues/search": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Search for issues across the repositories that the user has access to", "operationId": "issueSearchIssues", "parameters": [ @@ -2824,15 +2474,9 @@ }, "/repos/migrate": { "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Migrate a remote git repository", "operationId": "repoMigrate", "parameters": [ @@ -2862,12 +2506,8 @@ }, "/repos/search": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Search for repositories", "operationId": "repoSearch", "parameters": [ @@ -2990,12 +2630,8 @@ }, "/repos/{owner}/{repo}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get a repository", "operationId": "repoGet", "parameters": [ @@ -3021,12 +2657,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Delete a repository", "operationId": "repoDelete", "parameters": [ @@ -3055,12 +2687,8 @@ } }, "patch": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Edit a repository's properties. Only fields that are set will be changed.", "operationId": "repoEdit", "parameters": [ @@ -3102,12 +2730,8 @@ }, "/repos/{owner}/{repo}/activities/feeds": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "List a repository's activity feeds", "operationId": "repoListActivityFeeds", "parameters": [ @@ -3157,12 +2781,8 @@ }, "/repos/{owner}/{repo}/archive/{archive}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get an archive of a repository", "operationId": "repoGetArchive", "parameters": [ @@ -3200,12 +2820,8 @@ }, "/repos/{owner}/{repo}/assignees": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Return all users that have write access and can be assigned to issues", "operationId": "repoGetAssignees", "parameters": [ @@ -3233,12 +2849,8 @@ }, "/repos/{owner}/{repo}/avatar": { "post": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Update avatar", "operationId": "repoUpdateAvatar", "parameters": [ @@ -3271,12 +2883,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Delete avatar", "operationId": "repoDeleteAvatar", "parameters": [ @@ -3304,12 +2912,8 @@ }, "/repos/{owner}/{repo}/branch_protections": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "List branch protections for a repository", "operationId": "repoListBranchProtection", "parameters": [ @@ -3335,15 +2939,9 @@ } }, "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Create a branch protections for a repository", "operationId": "repoCreateBranchProtection", "parameters": [ @@ -3387,12 +2985,8 @@ }, "/repos/{owner}/{repo}/branch_protections/{name}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get a specific branch protection for the repository", "operationId": "repoGetBranchProtection", "parameters": [ @@ -3428,12 +3022,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Delete a specific branch protection for the repository", "operationId": "repoDeleteBranchProtection", "parameters": [ @@ -3469,15 +3059,9 @@ } }, "patch": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Edit a branch protections for a repository. Only fields that are set will be changed", "operationId": "repoEditBranchProtection", "parameters": [ @@ -3525,12 +3109,8 @@ }, "/repos/{owner}/{repo}/branches": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "List a repository's branches", "operationId": "repoListBranches", "parameters": [ @@ -3568,15 +3148,9 @@ } }, "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Create a branch", "operationId": "repoCreateBranch", "parameters": [ @@ -3620,12 +3194,8 @@ }, "/repos/{owner}/{repo}/branches/{branch}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Retrieve a specific branch from a repository, including its effective branch protection", "operationId": "repoGetBranch", "parameters": [ @@ -3661,12 +3231,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Delete a specific branch from a repository", "operationId": "repoDeleteBranch", "parameters": [ @@ -3707,12 +3273,8 @@ }, "/repos/{owner}/{repo}/collaborators": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "List a repository's collaborators", "operationId": "repoListCollaborators", "parameters": [ @@ -3752,12 +3314,8 @@ }, "/repos/{owner}/{repo}/collaborators/{collaborator}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Check if a user is a collaborator of a repository", "operationId": "repoCheckCollaborator", "parameters": [ @@ -3796,12 +3354,8 @@ } }, "put": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Add a collaborator to a repository", "operationId": "repoAddCollaborator", "parameters": [ @@ -3844,12 +3398,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Delete a collaborator from a repository", "operationId": "repoDeleteCollaborator", "parameters": [ @@ -3887,12 +3437,8 @@ }, "/repos/{owner}/{repo}/collaborators/{collaborator}/permission": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get repository permissions for a user", "operationId": "repoGetRepoPermissions", "parameters": [ @@ -3933,12 +3479,8 @@ }, "/repos/{owner}/{repo}/commits": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get a list of all commits from a repository", "operationId": "repoGetAllCommits", "parameters": [ @@ -4020,12 +3562,8 @@ }, "/repos/{owner}/{repo}/commits/{ref}/status": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get a commit's combined status, by branch/tag/commit reference", "operationId": "repoGetCombinedStatusByRef", "parameters": [ @@ -4075,12 +3613,8 @@ }, "/repos/{owner}/{repo}/commits/{ref}/statuses": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get a commit's statuses, by branch/tag/commit reference", "operationId": "repoListStatusesByRef", "parameters": [ @@ -4106,26 +3640,14 @@ "required": true }, { - "enum": [ - "oldest", - "recentupdate", - "leastupdate", - "leastindex", - "highestindex" - ], + "enum": ["oldest", "recentupdate", "leastupdate", "leastindex", "highestindex"], "type": "string", "description": "type of sort", "name": "sort", "in": "query" }, { - "enum": [ - "pending", - "success", - "error", - "failure", - "warning" - ], + "enum": ["pending", "success", "error", "failure", "warning"], "type": "string", "description": "type of state", "name": "state", @@ -4156,12 +3678,8 @@ }, "/repos/{owner}/{repo}/contents": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Gets the metadata of all the entries of the root dir", "operationId": "repoGetContentsList", "parameters": [ @@ -4196,15 +3714,9 @@ } }, "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Modify multiple files in a repository", "operationId": "repoChangeFiles", "parameters": [ @@ -4249,12 +3761,8 @@ }, "/repos/{owner}/{repo}/contents/{filepath}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Gets the metadata and contents (if a file) of an entry in a repository, or a list of entries if a dir", "operationId": "repoGetContents", "parameters": [ @@ -4296,15 +3804,9 @@ } }, "put": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Update a file in a repository", "operationId": "repoUpdateFile", "parameters": [ @@ -4354,15 +3856,9 @@ } }, "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Create a file in a repository", "operationId": "repoCreateFile", "parameters": [ @@ -4412,15 +3908,9 @@ } }, "delete": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Delete a file in a repository", "operationId": "repoDeleteFile", "parameters": [ @@ -4472,15 +3962,9 @@ }, "/repos/{owner}/{repo}/diffpatch": { "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Apply diff patch to repository", "operationId": "repoApplyDiffPatch", "parameters": [ @@ -4516,12 +4000,8 @@ }, "/repos/{owner}/{repo}/editorconfig/{filepath}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get the EditorConfig definitions of a file in a repository", "operationId": "repoGetEditorConfig", "parameters": [ @@ -4565,12 +4045,8 @@ }, "/repos/{owner}/{repo}/forks": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "List a repository's forks", "operationId": "listForks", "parameters": [ @@ -4608,12 +4084,8 @@ } }, "post": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Fork a repository", "operationId": "createFork", "parameters": [ @@ -4657,12 +4129,8 @@ }, "/repos/{owner}/{repo}/git/blobs/{sha}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Gets the blob of a repository.", "operationId": "GetBlob", "parameters": [ @@ -4700,12 +4168,8 @@ }, "/repos/{owner}/{repo}/git/commits/{sha}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get a single commit from a repository", "operationId": "repoGetSingleCommit", "parameters": [ @@ -4764,12 +4228,8 @@ }, "/repos/{owner}/{repo}/git/commits/{sha}.{diffType}": { "get": { - "produces": [ - "text/plain" - ], - "tags": [ - "repository" - ], + "produces": ["text/plain"], + "tags": ["repository"], "summary": "Get a commit's diff or patch", "operationId": "repoDownloadCommitDiffOrPatch", "parameters": [ @@ -4795,10 +4255,7 @@ "required": true }, { - "enum": [ - "diff", - "patch" - ], + "enum": ["diff", "patch"], "type": "string", "description": "whether the output is diff or patch", "name": "diffType", @@ -4818,12 +4275,8 @@ }, "/repos/{owner}/{repo}/git/notes/{sha}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get a note corresponding to a single commit from a repository", "operationId": "repoGetNote", "parameters": [ @@ -4864,12 +4317,8 @@ }, "/repos/{owner}/{repo}/git/refs": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get specified ref or filtered repository's refs", "operationId": "repoListAllGitRefs", "parameters": [ @@ -4900,12 +4349,8 @@ }, "/repos/{owner}/{repo}/git/refs/{ref}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get specified ref or filtered repository's refs", "operationId": "repoListGitRefs", "parameters": [ @@ -4943,12 +4388,8 @@ }, "/repos/{owner}/{repo}/git/tags/{sha}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Gets the tag object of an annotated tag (not lightweight tags)", "operationId": "GetAnnotatedTag", "parameters": [ @@ -4986,12 +4427,8 @@ }, "/repos/{owner}/{repo}/git/trees/{sha}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Gets the tree of a repository.", "operationId": "GetTree", "parameters": [ @@ -5047,12 +4484,8 @@ }, "/repos/{owner}/{repo}/hooks": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "List the hooks in a repository", "operationId": "repoListHooks", "parameters": [ @@ -5090,15 +4523,9 @@ } }, "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Create a hook", "operationId": "repoCreateHook", "parameters": [ @@ -5133,12 +4560,8 @@ }, "/repos/{owner}/{repo}/hooks/git": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "List the Git hooks in a repository", "operationId": "repoListGitHooks", "parameters": [ @@ -5166,12 +4589,8 @@ }, "/repos/{owner}/{repo}/hooks/git/{id}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get a Git hook", "operationId": "repoGetGitHook", "parameters": [ @@ -5207,12 +4626,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Delete a Git hook in a repository", "operationId": "repoDeleteGitHook", "parameters": [ @@ -5248,12 +4663,8 @@ } }, "patch": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Edit a Git hook in a repository", "operationId": "repoEditGitHook", "parameters": [ @@ -5298,12 +4709,8 @@ }, "/repos/{owner}/{repo}/hooks/{id}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get a hook", "operationId": "repoGetHook", "parameters": [ @@ -5340,12 +4747,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Delete a hook in a repository", "operationId": "repoDeleteHook", "parameters": [ @@ -5382,12 +4785,8 @@ } }, "patch": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Edit a hook in a repository", "operationId": "repoEditHook", "parameters": [ @@ -5430,12 +4829,8 @@ }, "/repos/{owner}/{repo}/hooks/{id}/tests": { "post": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Test a push webhook", "operationId": "repoTestHook", "parameters": [ @@ -5477,12 +4872,8 @@ }, "/repos/{owner}/{repo}/issue_config": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Returns the issue config for a repo", "operationId": "repoGetIssueConfig", "parameters": [ @@ -5510,12 +4901,8 @@ }, "/repos/{owner}/{repo}/issue_config/validate": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Returns the validation information for a issue config", "operationId": "repoValidateIssueConfig", "parameters": [ @@ -5543,12 +4930,8 @@ }, "/repos/{owner}/{repo}/issue_templates": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get available issue templates for a repository", "operationId": "repoGetIssueTemplates", "parameters": [ @@ -5576,12 +4959,8 @@ }, "/repos/{owner}/{repo}/issues": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "produces": ["application/json"], + "tags": ["issue"], "summary": "List a repository's issues", "operationId": "issueListIssues", "parameters": [ @@ -5600,11 +4979,7 @@ "required": true }, { - "enum": [ - "closed", - "open", - "all" - ], + "enum": ["closed", "open", "all"], "type": "string", "description": "whether issue is open or closed", "name": "state", @@ -5623,10 +4998,7 @@ "in": "query" }, { - "enum": [ - "issues", - "pulls" - ], + "enum": ["issues", "pulls"], "type": "string", "description": "filter by type (issues / pulls) if set", "name": "type", @@ -5690,15 +5062,9 @@ } }, "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Create an issue. If using deadline only the date will be taken into account, and time of day ignored.", "operationId": "issueCreateIssue", "parameters": [ @@ -5742,12 +5108,8 @@ }, "/repos/{owner}/{repo}/issues/comments": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "produces": ["application/json"], + "tags": ["issue"], "summary": "List all comments in a repository", "operationId": "issueGetRepoComments", "parameters": [ @@ -5801,15 +5163,9 @@ }, "/repos/{owner}/{repo}/issues/comments/{id}": { "get": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Get a comment", "operationId": "issueGetComment", "parameters": [ @@ -5852,9 +5208,7 @@ } }, "delete": { - "tags": [ - "issue" - ], + "tags": ["issue"], "summary": "Delete a comment", "operationId": "issueDeleteComment", "parameters": [ @@ -5894,15 +5248,9 @@ } }, "patch": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Edit a comment", "operationId": "issueEditComment", "parameters": [ @@ -5954,12 +5302,8 @@ }, "/repos/{owner}/{repo}/issues/comments/{id}/assets": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "produces": ["application/json"], + "tags": ["issue"], "summary": "List comment's attachments", "operationId": "issueListIssueCommentAttachments", "parameters": [ @@ -5996,15 +5340,9 @@ } }, "post": { - "consumes": [ - "multipart/form-data" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["multipart/form-data"], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Create a comment attachment", "operationId": "issueCreateIssueCommentAttachment", "parameters": [ @@ -6059,12 +5397,8 @@ }, "/repos/{owner}/{repo}/issues/comments/{id}/assets/{attachment_id}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Get a comment attachment", "operationId": "issueGetIssueCommentAttachment", "parameters": [ @@ -6109,12 +5443,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Delete a comment attachment", "operationId": "issueDeleteIssueCommentAttachment", "parameters": [ @@ -6159,15 +5489,9 @@ } }, "patch": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Edit a comment attachment", "operationId": "issueEditIssueCommentAttachment", "parameters": [ @@ -6221,15 +5545,9 @@ }, "/repos/{owner}/{repo}/issues/comments/{id}/reactions": { "get": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Get a list of reactions from a comment of an issue", "operationId": "issueGetCommentReactions", "parameters": [ @@ -6266,15 +5584,9 @@ } }, "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Add a reaction to a comment of an issue", "operationId": "issuePostCommentReaction", "parameters": [ @@ -6321,15 +5633,9 @@ } }, "delete": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Remove a reaction from a comment of an issue", "operationId": "issueDeleteCommentReaction", "parameters": [ @@ -6375,12 +5681,8 @@ }, "/repos/{owner}/{repo}/issues/pinned": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "List a repo's pinned issues", "operationId": "repoListPinnedIssues", "parameters": [ @@ -6408,12 +5710,8 @@ }, "/repos/{owner}/{repo}/issues/{index}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Get an issue", "operationId": "issueGetIssue", "parameters": [ @@ -6450,9 +5748,7 @@ } }, "delete": { - "tags": [ - "issue" - ], + "tags": ["issue"], "summary": "Delete an issue", "operationId": "issueDelete", "parameters": [ @@ -6492,15 +5788,9 @@ } }, "patch": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Edit an issue. If using deadline only the date will be taken into account, and time of day ignored.", "operationId": "issueEditIssue", "parameters": [ @@ -6552,12 +5842,8 @@ }, "/repos/{owner}/{repo}/issues/{index}/assets": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "produces": ["application/json"], + "tags": ["issue"], "summary": "List issue's attachments", "operationId": "issueListIssueAttachments", "parameters": [ @@ -6594,15 +5880,9 @@ } }, "post": { - "consumes": [ - "multipart/form-data" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["multipart/form-data"], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Create an issue attachment", "operationId": "issueCreateIssueAttachment", "parameters": [ @@ -6657,12 +5937,8 @@ }, "/repos/{owner}/{repo}/issues/{index}/assets/{attachment_id}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Get an issue attachment", "operationId": "issueGetIssueAttachment", "parameters": [ @@ -6707,12 +5983,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Delete an issue attachment", "operationId": "issueDeleteIssueAttachment", "parameters": [ @@ -6757,15 +6029,9 @@ } }, "patch": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Edit an issue attachment", "operationId": "issueEditIssueAttachment", "parameters": [ @@ -6819,12 +6085,8 @@ }, "/repos/{owner}/{repo}/issues/{index}/blocks": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "produces": ["application/json"], + "tags": ["issue"], "summary": "List issues that are blocked by this issue", "operationId": "issueListBlocks", "parameters": [ @@ -6869,12 +6131,8 @@ } }, "post": { - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Block the issue given in the body by the issue in path", "operationId": "issueCreateIssueBlocking", "parameters": [ @@ -6917,12 +6175,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Unblock the issue given in the body by the issue in path", "operationId": "issueRemoveIssueBlocking", "parameters": [ @@ -6964,12 +6218,8 @@ }, "/repos/{owner}/{repo}/issues/{index}/comments": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "produces": ["application/json"], + "tags": ["issue"], "summary": "List all comments on an issue", "operationId": "issueGetComments", "parameters": [ @@ -7017,15 +6267,9 @@ } }, "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Add a comment to an issue", "operationId": "issueCreateComment", "parameters": [ @@ -7071,9 +6315,7 @@ }, "/repos/{owner}/{repo}/issues/{index}/comments/{id}": { "delete": { - "tags": [ - "issue" - ], + "tags": ["issue"], "summary": "Delete a comment", "operationId": "issueDeleteCommentDeprecated", "deprecated": true, @@ -7121,15 +6363,9 @@ } }, "patch": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Edit a comment", "operationId": "issueEditCommentDeprecated", "deprecated": true, @@ -7189,15 +6425,9 @@ }, "/repos/{owner}/{repo}/issues/{index}/deadline": { "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["issue"], "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.", "operationId": "issueEditIssueDeadline", "parameters": [ @@ -7246,12 +6476,8 @@ }, "/repos/{owner}/{repo}/issues/{index}/dependencies": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "produces": ["application/json"], + "tags": ["issue"], "summary": "List an issue's dependencies, i.e all issues that block this issue.", "operationId": "issueListIssueDependencies", "parameters": [ @@ -7296,12 +6522,8 @@ } }, "post": { - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Make the issue in the url depend on the issue in the form.", "operationId": "issueCreateIssueDependencies", "parameters": [ @@ -7344,12 +6566,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Remove an issue dependency", "operationId": "issueRemoveIssueDependencies", "parameters": [ @@ -7391,12 +6609,8 @@ }, "/repos/{owner}/{repo}/issues/{index}/labels": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Get an issue's labels", "operationId": "issueGetLabels", "parameters": [ @@ -7433,15 +6647,9 @@ } }, "put": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Replace an issue's labels", "operationId": "issueReplaceLabels", "parameters": [ @@ -7485,15 +6693,9 @@ } }, "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Add a label to an issue", "operationId": "issueAddLabel", "parameters": [ @@ -7537,12 +6739,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Remove all labels from an issue", "operationId": "issueClearLabels", "parameters": [ @@ -7581,12 +6779,8 @@ }, "/repos/{owner}/{repo}/issues/{index}/labels/{id}": { "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Remove a label from an issue", "operationId": "issueRemoveLabel", "parameters": [ @@ -7636,9 +6830,7 @@ }, "/repos/{owner}/{repo}/issues/{index}/pin": { "post": { - "tags": [ - "issue" - ], + "tags": ["issue"], "summary": "Pin an Issue", "operationId": "pinIssue", "parameters": [ @@ -7678,9 +6870,7 @@ } }, "delete": { - "tags": [ - "issue" - ], + "tags": ["issue"], "summary": "Unpin an Issue", "operationId": "unpinIssue", "parameters": [ @@ -7722,9 +6912,7 @@ }, "/repos/{owner}/{repo}/issues/{index}/pin/{position}": { "patch": { - "tags": [ - "issue" - ], + "tags": ["issue"], "summary": "Moves the Pin to the given Position", "operationId": "moveIssuePin", "parameters": [ @@ -7774,15 +6962,9 @@ }, "/repos/{owner}/{repo}/issues/{index}/reactions": { "get": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Get a list reactions of an issue", "operationId": "issueGetIssueReactions", "parameters": [ @@ -7831,15 +7013,9 @@ } }, "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Add a reaction to an issue", "operationId": "issuePostIssueReaction", "parameters": [ @@ -7886,15 +7062,9 @@ } }, "delete": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Remove a reaction from an issue", "operationId": "issueDeleteIssueReaction", "parameters": [ @@ -7940,15 +7110,9 @@ }, "/repos/{owner}/{repo}/issues/{index}/stopwatch/delete": { "delete": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Delete an issue's existing stopwatch.", "operationId": "issueDeleteStopWatch", "parameters": [ @@ -7993,15 +7157,9 @@ }, "/repos/{owner}/{repo}/issues/{index}/stopwatch/start": { "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Start stopwatch on an issue.", "operationId": "issueStartStopWatch", "parameters": [ @@ -8046,15 +7204,9 @@ }, "/repos/{owner}/{repo}/issues/{index}/stopwatch/stop": { "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Stop an issue's existing stopwatch.", "operationId": "issueStopStopWatch", "parameters": [ @@ -8099,15 +7251,9 @@ }, "/repos/{owner}/{repo}/issues/{index}/subscriptions": { "get": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Get users who subscribed on an issue.", "operationId": "issueSubscriptions", "parameters": [ @@ -8158,15 +7304,9 @@ }, "/repos/{owner}/{repo}/issues/{index}/subscriptions/check": { "get": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Check if user is subscribed to an issue", "operationId": "issueCheckSubscription", "parameters": [ @@ -8205,15 +7345,9 @@ }, "/repos/{owner}/{repo}/issues/{index}/subscriptions/{user}": { "put": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Subscribe user to issue", "operationId": "issueAddSubscription", "parameters": [ @@ -8263,15 +7397,9 @@ } }, "delete": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Unsubscribe user from issue", "operationId": "issueDeleteSubscription", "parameters": [ @@ -8323,12 +7451,8 @@ }, "/repos/{owner}/{repo}/issues/{index}/timeline": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "produces": ["application/json"], + "tags": ["issue"], "summary": "List all comments and events on an issue", "operationId": "issueGetCommentsAndTimeline", "parameters": [ @@ -8390,12 +7514,8 @@ }, "/repos/{owner}/{repo}/issues/{index}/times": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "produces": ["application/json"], + "tags": ["issue"], "summary": "List an issue's tracked times", "operationId": "issueTrackedTimes", "parameters": [ @@ -8464,15 +7584,9 @@ } }, "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Add tracked time to a issue", "operationId": "issueAddTime", "parameters": [ @@ -8519,15 +7633,9 @@ } }, "delete": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Reset a tracked time of an issue", "operationId": "issueResetTime", "parameters": [ @@ -8569,15 +7677,9 @@ }, "/repos/{owner}/{repo}/issues/{index}/times/{id}": { "delete": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Delete specific tracked time", "operationId": "issueDeleteTime", "parameters": [ @@ -8627,12 +7729,8 @@ }, "/repos/{owner}/{repo}/keys": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "List a repository's keys", "operationId": "repoListKeys", "parameters": [ @@ -8682,15 +7780,9 @@ } }, "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Add a key to a repository", "operationId": "repoCreateKey", "parameters": [ @@ -8728,12 +7820,8 @@ }, "/repos/{owner}/{repo}/keys/{id}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get a repository's key by id", "operationId": "repoGetKey", "parameters": [ @@ -8767,9 +7855,7 @@ } }, "delete": { - "tags": [ - "repository" - ], + "tags": ["repository"], "summary": "Delete a key from a repository", "operationId": "repoDeleteKey", "parameters": [ @@ -8808,12 +7894,8 @@ }, "/repos/{owner}/{repo}/labels": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Get all of a repository's labels", "operationId": "issueListLabels", "parameters": [ @@ -8851,15 +7933,9 @@ } }, "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Create a label", "operationId": "issueCreateLabel", "parameters": [ @@ -8897,12 +7973,8 @@ }, "/repos/{owner}/{repo}/labels/{id}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Get a single label", "operationId": "issueGetLabel", "parameters": [ @@ -8936,9 +8008,7 @@ } }, "delete": { - "tags": [ - "issue" - ], + "tags": ["issue"], "summary": "Delete a label", "operationId": "issueDeleteLabel", "parameters": [ @@ -8972,15 +8042,9 @@ } }, "patch": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Update a label", "operationId": "issueEditLabel", "parameters": [ @@ -9026,12 +8090,8 @@ }, "/repos/{owner}/{repo}/languages": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get languages and number of bytes of code written", "operationId": "repoGetLanguages", "parameters": [ @@ -9062,9 +8122,7 @@ }, "/repos/{owner}/{repo}/media/{filepath}": { "get": { - "tags": [ - "repository" - ], + "tags": ["repository"], "summary": "Get a file or it's LFS object from a repository", "operationId": "repoGetRawFileOrLFS", "parameters": [ @@ -9108,12 +8166,8 @@ }, "/repos/{owner}/{repo}/milestones": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Get all of a repository's opened milestones", "operationId": "issueGetMilestonesList", "parameters": [ @@ -9163,15 +8217,9 @@ } }, "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Create a milestone", "operationId": "issueCreateMilestone", "parameters": [ @@ -9206,12 +8254,8 @@ }, "/repos/{owner}/{repo}/milestones/{id}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Get a milestone", "operationId": "issueGetMilestone", "parameters": [ @@ -9244,9 +8288,7 @@ } }, "delete": { - "tags": [ - "issue" - ], + "tags": ["issue"], "summary": "Delete a milestone", "operationId": "issueDeleteMilestone", "parameters": [ @@ -9279,15 +8321,9 @@ } }, "patch": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "issue" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["issue"], "summary": "Update a milestone", "operationId": "issueEditMilestone", "parameters": [ @@ -9329,12 +8365,8 @@ }, "/repos/{owner}/{repo}/mirror-sync": { "post": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Sync a mirrored repository", "operationId": "repoMirrorSync", "parameters": [ @@ -9365,12 +8397,8 @@ }, "/repos/{owner}/{repo}/new_pin_allowed": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Returns if new Issue Pins are allowed", "operationId": "repoNewPinAllowed", "parameters": [ @@ -9398,15 +8426,9 @@ }, "/repos/{owner}/{repo}/notifications": { "get": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "notification" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["notification"], "summary": "List users's notification threads on a specific repo", "operationId": "notifyGetRepoList", "parameters": [ @@ -9443,12 +8465,7 @@ { "type": "array", "items": { - "enum": [ - "issue", - "pull", - "commit", - "repository" - ], + "enum": ["issue", "pull", "commit", "repository"], "type": "string" }, "collectionFormat": "multi", @@ -9490,15 +8507,9 @@ } }, "put": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "notification" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["notification"], "summary": "Mark notification threads as read, pinned or unread on a specific repo", "operationId": "notifyReadRepoList", "parameters": [ @@ -9555,12 +8566,8 @@ }, "/repos/{owner}/{repo}/pulls": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "List a repo's pull requests", "operationId": "repoListPullRequests", "parameters": [ @@ -9579,25 +8586,14 @@ "required": true }, { - "enum": [ - "closed", - "open", - "all" - ], + "enum": ["closed", "open", "all"], "type": "string", "description": "State of pull request: open or closed (optional)", "name": "state", "in": "query" }, { - "enum": [ - "oldest", - "recentupdate", - "leastupdate", - "mostcomment", - "leastcomment", - "priority" - ], + "enum": ["oldest", "recentupdate", "leastupdate", "mostcomment", "leastcomment", "priority"], "type": "string", "description": "Type of sort", "name": "sort", @@ -9641,15 +8637,9 @@ } }, "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Create a pull request", "operationId": "repoCreatePullRequest", "parameters": [ @@ -9690,12 +8680,8 @@ }, "/repos/{owner}/{repo}/pulls/pinned": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "List a repo's pinned pull requests", "operationId": "repoListPinnedPullRequests", "parameters": [ @@ -9723,12 +8709,8 @@ }, "/repos/{owner}/{repo}/pulls/{index}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get a pull request", "operationId": "repoGetPullRequest", "parameters": [ @@ -9765,15 +8747,9 @@ } }, "patch": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Update a pull request. If using deadline only the date will be taken into account, and time of day ignored.", "operationId": "repoEditPullRequest", "parameters": [ @@ -9828,12 +8804,8 @@ }, "/repos/{owner}/{repo}/pulls/{index}.{diffType}": { "get": { - "produces": [ - "text/plain" - ], - "tags": [ - "repository" - ], + "produces": ["text/plain"], + "tags": ["repository"], "summary": "Get a pull request diff or patch", "operationId": "repoDownloadPullDiffOrPatch", "parameters": [ @@ -9860,10 +8832,7 @@ "required": true }, { - "enum": [ - "diff", - "patch" - ], + "enum": ["diff", "patch"], "type": "string", "description": "whether the output is diff or patch", "name": "diffType", @@ -9889,12 +8858,8 @@ }, "/repos/{owner}/{repo}/pulls/{index}/commits": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get commits for a pull request", "operationId": "repoGetPullRequestCommits", "parameters": [ @@ -9945,12 +8910,8 @@ }, "/repos/{owner}/{repo}/pulls/{index}/files": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get changed files for a pull request", "operationId": "repoGetPullRequestFiles", "parameters": [ @@ -9983,12 +8944,7 @@ "in": "query" }, { - "enum": [ - "ignore-all", - "ignore-change", - "ignore-eol", - "show-all" - ], + "enum": ["ignore-all", "ignore-change", "ignore-eol", "show-all"], "type": "string", "description": "whitespace behavior", "name": "whitespace", @@ -10019,12 +8975,8 @@ }, "/repos/{owner}/{repo}/pulls/{index}/merge": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Check if a pull request has been merged", "operationId": "repoPullRequestIsMerged", "parameters": [ @@ -10061,12 +9013,8 @@ } }, "post": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Merge a pull request", "operationId": "repoMergePullRequest", "parameters": [ @@ -10113,12 +9061,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Cancel the scheduled auto merge for the given pull request", "operationId": "repoCancelScheduledAutoMerge", "parameters": [ @@ -10160,12 +9104,8 @@ }, "/repos/{owner}/{repo}/pulls/{index}/requested_reviewers": { "post": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "create review requests for a pull request", "operationId": "repoCreatePullReviewRequests", "parameters": [ @@ -10213,12 +9153,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "cancel review requests for a pull request", "operationId": "repoDeletePullReviewRequests", "parameters": [ @@ -10268,12 +9204,8 @@ }, "/repos/{owner}/{repo}/pulls/{index}/reviews": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "List all reviews for a pull request", "operationId": "repoListPullReviews", "parameters": [ @@ -10322,12 +9254,8 @@ } }, "post": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Create a review to an pull request", "operationId": "repoCreatePullReview", "parameters": [ @@ -10377,12 +9305,8 @@ }, "/repos/{owner}/{repo}/pulls/{index}/reviews/{id}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get a specific review for a pull request", "operationId": "repoGetPullReview", "parameters": [ @@ -10427,12 +9351,8 @@ } }, "post": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Submit a pending review to an pull request", "operationId": "repoSubmitPullReview", "parameters": [ @@ -10488,12 +9408,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Delete a specific review from a pull request", "operationId": "repoDeletePullReview", "parameters": [ @@ -10543,12 +9459,8 @@ }, "/repos/{owner}/{repo}/pulls/{index}/reviews/{id}/comments": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get a specific review for a pull request", "operationId": "repoGetPullReviewComments", "parameters": [ @@ -10595,12 +9507,8 @@ }, "/repos/{owner}/{repo}/pulls/{index}/reviews/{id}/dismissals": { "post": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Dismiss a review for a pull request", "operationId": "repoDismissPullReview", "parameters": [ @@ -10658,12 +9566,8 @@ }, "/repos/{owner}/{repo}/pulls/{index}/reviews/{id}/undismissals": { "post": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Cancel to dismiss a review for a pull request", "operationId": "repoUnDismissPullReview", "parameters": [ @@ -10713,12 +9617,8 @@ }, "/repos/{owner}/{repo}/pulls/{index}/update": { "post": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Merge PR's baseBranch into headBranch", "operationId": "repoUpdatePullRequest", "parameters": [ @@ -10745,10 +9645,7 @@ "required": true }, { - "enum": [ - "merge", - "rebase" - ], + "enum": ["merge", "rebase"], "type": "string", "description": "how to update pull request", "name": "style", @@ -10776,12 +9673,8 @@ }, "/repos/{owner}/{repo}/push_mirrors": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get all push mirrors of the repository", "operationId": "repoListPushMirrors", "parameters": [ @@ -10825,15 +9718,9 @@ } }, "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["repository"], "summary": "add a push mirror to the repository", "operationId": "repoAddPushMirror", "parameters": [ @@ -10874,12 +9761,8 @@ }, "/repos/{owner}/{repo}/push_mirrors-sync": { "post": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Sync all push mirrored repository", "operationId": "repoPushMirrorSync", "parameters": [ @@ -10913,12 +9796,8 @@ }, "/repos/{owner}/{repo}/push_mirrors/{name}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get push mirror of the repository by remoteName", "operationId": "repoGetPushMirrorByRemoteName", "parameters": [ @@ -10957,12 +9836,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "deletes a push mirror from a repository by remoteName", "operationId": "repoDeletePushMirror", "parameters": [ @@ -11003,12 +9878,8 @@ }, "/repos/{owner}/{repo}/raw/{filepath}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get a file from a repository", "operationId": "repoGetRawFile", "parameters": [ @@ -11052,12 +9923,8 @@ }, "/repos/{owner}/{repo}/releases": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "List a repo's releases", "operationId": "repoListReleases", "parameters": [ @@ -11113,15 +9980,9 @@ } }, "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Create a release", "operationId": "repoCreateRelease", "parameters": [ @@ -11162,12 +10023,8 @@ }, "/repos/{owner}/{repo}/releases/latest": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Gets the most recent non-prerelease, non-draft release of a repository, sorted by created_at", "operationId": "repoGetLatestRelease", "parameters": [ @@ -11198,12 +10055,8 @@ }, "/repos/{owner}/{repo}/releases/tags/{tag}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get a release by tag name", "operationId": "repoGetReleaseByTag", "parameters": [ @@ -11239,9 +10092,7 @@ } }, "delete": { - "tags": [ - "repository" - ], + "tags": ["repository"], "summary": "Delete a release by tag name", "operationId": "repoDeleteReleaseByTag", "parameters": [ @@ -11282,12 +10133,8 @@ }, "/repos/{owner}/{repo}/releases/{id}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get a release", "operationId": "repoGetRelease", "parameters": [ @@ -11324,9 +10171,7 @@ } }, "delete": { - "tags": [ - "repository" - ], + "tags": ["repository"], "summary": "Delete a release", "operationId": "repoDeleteRelease", "parameters": [ @@ -11366,15 +10211,9 @@ } }, "patch": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Update a release", "operationId": "repoEditRelease", "parameters": [ @@ -11420,12 +10259,8 @@ }, "/repos/{owner}/{repo}/releases/{id}/assets": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "List release's attachments", "operationId": "repoListReleaseAttachments", "parameters": [ @@ -11459,15 +10294,9 @@ } }, "post": { - "consumes": [ - "multipart/form-data" - ], - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "consumes": ["multipart/form-data"], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Create a release attachment", "operationId": "repoCreateReleaseAttachment", "parameters": [ @@ -11519,12 +10348,8 @@ }, "/repos/{owner}/{repo}/releases/{id}/assets/{attachment_id}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get a release attachment", "operationId": "repoGetReleaseAttachment", "parameters": [ @@ -11566,12 +10391,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Delete a release attachment", "operationId": "repoDeleteReleaseAttachment", "parameters": [ @@ -11613,15 +10434,9 @@ } }, "patch": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Edit a release attachment", "operationId": "repoEditReleaseAttachment", "parameters": [ @@ -11672,12 +10487,8 @@ }, "/repos/{owner}/{repo}/reviewers": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Return all users that can be requested to review in this repo", "operationId": "repoGetReviewers", "parameters": [ @@ -11705,12 +10516,8 @@ }, "/repos/{owner}/{repo}/signing-key.gpg": { "get": { - "produces": [ - "text/plain" - ], - "tags": [ - "repository" - ], + "produces": ["text/plain"], + "tags": ["repository"], "summary": "Get signing-key.gpg for given repository", "operationId": "repoSigningKey", "parameters": [ @@ -11741,12 +10548,8 @@ }, "/repos/{owner}/{repo}/stargazers": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "List a repo's stargazers", "operationId": "repoListStargazers", "parameters": [ @@ -11786,12 +10589,8 @@ }, "/repos/{owner}/{repo}/statuses/{sha}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get a commit's statuses", "operationId": "repoListStatuses", "parameters": [ @@ -11817,26 +10616,14 @@ "required": true }, { - "enum": [ - "oldest", - "recentupdate", - "leastupdate", - "leastindex", - "highestindex" - ], + "enum": ["oldest", "recentupdate", "leastupdate", "leastindex", "highestindex"], "type": "string", "description": "type of sort", "name": "sort", "in": "query" }, { - "enum": [ - "pending", - "success", - "error", - "failure", - "warning" - ], + "enum": ["pending", "success", "error", "failure", "warning"], "type": "string", "description": "type of state", "name": "state", @@ -11865,12 +10652,8 @@ } }, "post": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Create a commit status", "operationId": "repoCreateStatus", "parameters": [ @@ -11915,12 +10698,8 @@ }, "/repos/{owner}/{repo}/subscribers": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "List a repo's watchers", "operationId": "repoListSubscribers", "parameters": [ @@ -11960,9 +10739,7 @@ }, "/repos/{owner}/{repo}/subscription": { "get": { - "tags": [ - "repository" - ], + "tags": ["repository"], "summary": "Check if the current user is watching a repo", "operationId": "userCurrentCheckSubscription", "parameters": [ @@ -11991,9 +10768,7 @@ } }, "put": { - "tags": [ - "repository" - ], + "tags": ["repository"], "summary": "Watch a repo", "operationId": "userCurrentPutSubscription", "parameters": [ @@ -12019,9 +10794,7 @@ } }, "delete": { - "tags": [ - "repository" - ], + "tags": ["repository"], "summary": "Unwatch a repo", "operationId": "userCurrentDeleteSubscription", "parameters": [ @@ -12049,12 +10822,8 @@ }, "/repos/{owner}/{repo}/tags": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "List a repository's tags", "operationId": "repoListTags", "parameters": [ @@ -12092,12 +10861,8 @@ } }, "post": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Create a new git tag in a repository", "operationId": "repoCreateTag", "parameters": [ @@ -12141,12 +10906,8 @@ }, "/repos/{owner}/{repo}/tags/{tag}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get the tag of a repository by tag name", "operationId": "repoGetTag", "parameters": [ @@ -12182,12 +10943,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Delete a repository's tag by name", "operationId": "repoDeleteTag", "parameters": [ @@ -12231,12 +10988,8 @@ }, "/repos/{owner}/{repo}/teams": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "List a repository's teams", "operationId": "repoListTeams", "parameters": [ @@ -12264,12 +11017,8 @@ }, "/repos/{owner}/{repo}/teams/{team}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Check if a team is assigned to a repository", "operationId": "repoCheckTeam", "parameters": [ @@ -12308,12 +11057,8 @@ } }, "put": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Add a team to a repository", "operationId": "repoAddTeam", "parameters": [ @@ -12352,12 +11097,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Delete a team from a repository", "operationId": "repoDeleteTeam", "parameters": [ @@ -12398,12 +11139,8 @@ }, "/repos/{owner}/{repo}/times": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "List a repo's tracked times", "operationId": "repoTrackedTimes", "parameters": [ @@ -12469,12 +11206,8 @@ }, "/repos/{owner}/{repo}/times/{user}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "List a user's tracked times in a repo", "operationId": "userTrackedTimes", "deprecated": true, @@ -12516,12 +11249,8 @@ }, "/repos/{owner}/{repo}/topics": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get list of topics that a repository has", "operationId": "repoListTopics", "parameters": [ @@ -12559,12 +11288,8 @@ } }, "put": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Replace list of topics for a repository", "operationId": "repoUpdateTopics", "parameters": [ @@ -12602,12 +11327,8 @@ }, "/repos/{owner}/{repo}/topics/{topic}": { "put": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Add a topic to a repository", "operationId": "repoAddTopic", "parameters": [ @@ -12643,12 +11364,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Delete a topic from a repository", "operationId": "repoDeleteTopic", "parameters": [ @@ -12686,12 +11403,8 @@ }, "/repos/{owner}/{repo}/transfer": { "post": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Transfer a repo ownership", "operationId": "repoTransfer", "parameters": [ @@ -12737,12 +11450,8 @@ }, "/repos/{owner}/{repo}/transfer/accept": { "post": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Accept a repo transfer", "operationId": "acceptRepoTransfer", "parameters": [ @@ -12776,12 +11485,8 @@ }, "/repos/{owner}/{repo}/transfer/reject": { "post": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Reject a repo transfer", "operationId": "rejectRepoTransfer", "parameters": [ @@ -12815,12 +11520,8 @@ }, "/repos/{owner}/{repo}/wiki/new": { "post": { - "consumes": [ - "application/json" - ], - "tags": [ - "repository" - ], + "consumes": ["application/json"], + "tags": ["repository"], "summary": "Create a wiki page", "operationId": "repoCreateWikiPage", "parameters": [ @@ -12861,12 +11562,8 @@ }, "/repos/{owner}/{repo}/wiki/page/{pageName}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get a wiki page", "operationId": "repoGetWikiPage", "parameters": [ @@ -12902,9 +11599,7 @@ } }, "delete": { - "tags": [ - "repository" - ], + "tags": ["repository"], "summary": "Delete a wiki page", "operationId": "repoDeleteWikiPage", "parameters": [ @@ -12943,12 +11638,8 @@ } }, "patch": { - "consumes": [ - "application/json" - ], - "tags": [ - "repository" - ], + "consumes": ["application/json"], + "tags": ["repository"], "summary": "Edit a wiki page", "operationId": "repoEditWikiPage", "parameters": [ @@ -12996,12 +11687,8 @@ }, "/repos/{owner}/{repo}/wiki/pages": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get all wiki pages", "operationId": "repoGetWikiPages", "parameters": [ @@ -13044,12 +11731,8 @@ }, "/repos/{owner}/{repo}/wiki/revisions/{pageName}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get revisions of a wiki page", "operationId": "repoGetWikiPageRevisions", "parameters": [ @@ -13093,15 +11776,9 @@ }, "/repos/{template_owner}/{template_repo}/generate": { "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Create a repository using a template", "operationId": "generateRepo", "parameters": [ @@ -13148,12 +11825,8 @@ }, "/repositories/{id}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "Get a repository by id", "operationId": "repoGetByID", "parameters": [ @@ -13175,12 +11848,8 @@ }, "/settings/api": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "settings" - ], + "produces": ["application/json"], + "tags": ["settings"], "summary": "Get instance's global settings for api", "operationId": "getGeneralAPISettings", "responses": { @@ -13192,12 +11861,8 @@ }, "/settings/attachment": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "settings" - ], + "produces": ["application/json"], + "tags": ["settings"], "summary": "Get instance's global settings for Attachment", "operationId": "getGeneralAttachmentSettings", "responses": { @@ -13209,12 +11874,8 @@ }, "/settings/repository": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "settings" - ], + "produces": ["application/json"], + "tags": ["settings"], "summary": "Get instance's global settings for repositories", "operationId": "getGeneralRepositorySettings", "responses": { @@ -13226,12 +11887,8 @@ }, "/settings/ui": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "settings" - ], + "produces": ["application/json"], + "tags": ["settings"], "summary": "Get instance's global settings for ui", "operationId": "getGeneralUISettings", "responses": { @@ -13243,12 +11900,8 @@ }, "/signing-key.gpg": { "get": { - "produces": [ - "text/plain" - ], - "tags": [ - "miscellaneous" - ], + "produces": ["text/plain"], + "tags": ["miscellaneous"], "summary": "Get default signing-key.gpg", "operationId": "getSigningKey", "responses": { @@ -13263,12 +11916,8 @@ }, "/teams/{id}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "produces": ["application/json"], + "tags": ["organization"], "summary": "Get a team", "operationId": "orgGetTeam", "parameters": [ @@ -13288,9 +11937,7 @@ } }, "delete": { - "tags": [ - "organization" - ], + "tags": ["organization"], "summary": "Delete a team", "operationId": "orgDeleteTeam", "parameters": [ @@ -13310,15 +11957,9 @@ } }, "patch": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["organization"], "summary": "Edit a team", "operationId": "orgEditTeam", "parameters": [ @@ -13346,12 +11987,8 @@ }, "/teams/{id}/activities/feeds": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "produces": ["application/json"], + "tags": ["organization"], "summary": "List a team's activity feeds", "operationId": "orgListTeamActivityFeeds", "parameters": [ @@ -13395,12 +12032,8 @@ }, "/teams/{id}/members": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "produces": ["application/json"], + "tags": ["organization"], "summary": "List a team's members", "operationId": "orgListTeamMembers", "parameters": [ @@ -13434,12 +12067,8 @@ }, "/teams/{id}/members/{username}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "produces": ["application/json"], + "tags": ["organization"], "summary": "List a particular member of team", "operationId": "orgListTeamMember", "parameters": [ @@ -13469,12 +12098,8 @@ } }, "put": { - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "produces": ["application/json"], + "tags": ["organization"], "summary": "Add a team member", "operationId": "orgAddTeamMember", "parameters": [ @@ -13504,12 +12129,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "produces": ["application/json"], + "tags": ["organization"], "summary": "Remove a team member", "operationId": "orgRemoveTeamMember", "parameters": [ @@ -13541,12 +12162,8 @@ }, "/teams/{id}/repos": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "produces": ["application/json"], + "tags": ["organization"], "summary": "List a team's repos", "operationId": "orgListTeamRepos", "parameters": [ @@ -13580,12 +12197,8 @@ }, "/teams/{id}/repos/{org}/{repo}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "produces": ["application/json"], + "tags": ["organization"], "summary": "List a particular repo of team", "operationId": "orgListTeamRepo", "parameters": [ @@ -13622,12 +12235,8 @@ } }, "put": { - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "produces": ["application/json"], + "tags": ["organization"], "summary": "Add a repository to a team", "operationId": "orgAddTeamRepository", "parameters": [ @@ -13665,12 +12274,8 @@ }, "delete": { "description": "This does not delete the repository, it only removes the repository from the team.", - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "produces": ["application/json"], + "tags": ["organization"], "summary": "Remove a repository from a team", "operationId": "orgRemoveTeamRepository", "parameters": [ @@ -13709,12 +12314,8 @@ }, "/topics/search": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "repository" - ], + "produces": ["application/json"], + "tags": ["repository"], "summary": "search topics via keyword", "operationId": "topicSearch", "parameters": [ @@ -13750,12 +12351,8 @@ }, "/user": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "Get the authenticated user", "operationId": "userGetCurrent", "responses": { @@ -13767,12 +12364,8 @@ }, "/user/applications/oauth2": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "List the authenticated user's oauth2 applications", "operationId": "userGetOauth2Application", "parameters": [ @@ -13796,12 +12389,8 @@ } }, "post": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "creates a new OAuth2 application", "operationId": "userCreateOAuth2Application", "parameters": [ @@ -13826,12 +12415,8 @@ }, "/user/applications/oauth2/{id}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "get an OAuth2 Application", "operationId": "userGetOAuth2Application", "parameters": [ @@ -13854,12 +12439,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "delete an OAuth2 Application", "operationId": "userDeleteOAuth2Application", "parameters": [ @@ -13882,12 +12463,8 @@ } }, "patch": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "update an OAuth2 Application, this includes regenerating the client secret", "operationId": "userUpdateOAuth2Application", "parameters": [ @@ -13920,12 +12497,8 @@ }, "/user/avatar": { "post": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "Update Avatar", "operationId": "userUpdateAvatar", "parameters": [ @@ -13944,12 +12517,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "Delete Avatar", "operationId": "userDeleteAvatar", "responses": { @@ -13961,12 +12530,8 @@ }, "/user/emails": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "List the authenticated user's email addresses", "operationId": "userListEmails", "responses": { @@ -13976,12 +12541,8 @@ } }, "post": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "Add email addresses", "operationId": "userAddEmail", "parameters": [ @@ -14003,12 +12564,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "Delete email addresses", "operationId": "userDeleteEmail", "parameters": [ @@ -14032,12 +12589,8 @@ }, "/user/followers": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "List the authenticated user's followers", "operationId": "userCurrentListFollowers", "parameters": [ @@ -14063,12 +12616,8 @@ }, "/user/following": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "List the users that the authenticated user is following", "operationId": "userCurrentListFollowing", "parameters": [ @@ -14094,9 +12643,7 @@ }, "/user/following/{username}": { "get": { - "tags": [ - "user" - ], + "tags": ["user"], "summary": "Check whether a user is followed by the authenticated user", "operationId": "userCurrentCheckFollowing", "parameters": [ @@ -14118,9 +12665,7 @@ } }, "put": { - "tags": [ - "user" - ], + "tags": ["user"], "summary": "Follow a user", "operationId": "userCurrentPutFollow", "parameters": [ @@ -14139,9 +12684,7 @@ } }, "delete": { - "tags": [ - "user" - ], + "tags": ["user"], "summary": "Unfollow a user", "operationId": "userCurrentDeleteFollow", "parameters": [ @@ -14162,12 +12705,8 @@ }, "/user/gpg_key_token": { "get": { - "produces": [ - "text/plain" - ], - "tags": [ - "user" - ], + "produces": ["text/plain"], + "tags": ["user"], "summary": "Get a Token to verify", "operationId": "getVerificationToken", "responses": { @@ -14182,15 +12721,9 @@ }, "/user/gpg_key_verify": { "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["user"], "summary": "Verify a GPG key", "operationId": "userVerifyGPGKey", "responses": { @@ -14208,12 +12741,8 @@ }, "/user/gpg_keys": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "List the authenticated user's GPG keys", "operationId": "userCurrentListGPGKeys", "parameters": [ @@ -14237,15 +12766,9 @@ } }, "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["user"], "summary": "Create a GPG key", "operationId": "userCurrentPostGPGKey", "parameters": [ @@ -14272,12 +12795,8 @@ }, "/user/gpg_keys/{id}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "Get a GPG key", "operationId": "userCurrentGetGPGKey", "parameters": [ @@ -14300,12 +12819,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "Remove a GPG key", "operationId": "userCurrentDeleteGPGKey", "parameters": [ @@ -14333,12 +12848,8 @@ }, "/user/hooks": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "List the authenticated user's webhooks", "operationId": "userListHooks", "parameters": [ @@ -14362,15 +12873,9 @@ } }, "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["user"], "summary": "Create a hook", "operationId": "userCreateHook", "parameters": [ @@ -14392,12 +12897,8 @@ }, "/user/hooks/{id}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "Get a hook", "operationId": "userGetHook", "parameters": [ @@ -14417,12 +12918,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "Delete a hook", "operationId": "userDeleteHook", "parameters": [ @@ -14442,15 +12939,9 @@ } }, "patch": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["user"], "summary": "Update a hook", "operationId": "userEditHook", "parameters": [ @@ -14479,12 +12970,8 @@ }, "/user/keys": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "List the authenticated user's public keys", "operationId": "userCurrentListKeys", "parameters": [ @@ -14514,15 +13001,9 @@ } }, "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["user"], "summary": "Create a public key", "operationId": "userCurrentPostKey", "parameters": [ @@ -14546,12 +13027,8 @@ }, "/user/keys/{id}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "Get a public key", "operationId": "userCurrentGetKey", "parameters": [ @@ -14574,12 +13051,8 @@ } }, "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "Delete a public key", "operationId": "userCurrentDeleteKey", "parameters": [ @@ -14607,12 +13080,8 @@ }, "/user/orgs": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "produces": ["application/json"], + "tags": ["organization"], "summary": "List the current user's organizations", "operationId": "orgListCurrentUserOrgs", "parameters": [ @@ -14638,12 +13107,8 @@ }, "/user/repos": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "List the repos that the authenticated user owns", "operationId": "userCurrentListRepos", "parameters": [ @@ -14667,16 +13132,9 @@ } }, "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "repository", - "user" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["repository", "user"], "summary": "Create a repository", "operationId": "createCurrentUserRepo", "parameters": [ @@ -14706,12 +13164,8 @@ }, "/user/settings": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "Get user settings", "operationId": "getUserSettings", "responses": { @@ -14721,12 +13175,8 @@ } }, "patch": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "Update user settings", "operationId": "updateUserSettings", "parameters": [ @@ -14747,12 +13197,8 @@ }, "/user/starred": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "The repos that the authenticated user has starred", "operationId": "userCurrentListStarred", "parameters": [ @@ -14778,9 +13224,7 @@ }, "/user/starred/{owner}/{repo}": { "get": { - "tags": [ - "user" - ], + "tags": ["user"], "summary": "Whether the authenticated is starring the repo", "operationId": "userCurrentCheckStarring", "parameters": [ @@ -14809,9 +13253,7 @@ } }, "put": { - "tags": [ - "user" - ], + "tags": ["user"], "summary": "Star the given repo", "operationId": "userCurrentPutStar", "parameters": [ @@ -14837,9 +13279,7 @@ } }, "delete": { - "tags": [ - "user" - ], + "tags": ["user"], "summary": "Unstar the given repo", "operationId": "userCurrentDeleteStar", "parameters": [ @@ -14867,15 +13307,9 @@ }, "/user/stopwatches": { "get": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["user"], "summary": "Get list of all existing stopwatches", "operationId": "userGetStopWatches", "parameters": [ @@ -14901,12 +13335,8 @@ }, "/user/subscriptions": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "List repositories watched by the authenticated user", "operationId": "userCurrentListSubscriptions", "parameters": [ @@ -14932,12 +13362,8 @@ }, "/user/teams": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "List all the teams a user belongs to", "operationId": "userListTeams", "parameters": [ @@ -14963,12 +13389,8 @@ }, "/user/times": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "List the current user's tracked times", "operationId": "userCurrentTrackedTimes", "parameters": [ @@ -15008,12 +13430,8 @@ }, "/users/search": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "Search for users", "operationId": "userSearch", "parameters": [ @@ -15066,12 +13484,8 @@ }, "/users/{username}": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "Get a user", "operationId": "userGet", "parameters": [ @@ -15095,12 +13509,8 @@ }, "/users/{username}/activities/feeds": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "List a user's activity feeds", "operationId": "userListActivityFeeds", "parameters": [ @@ -15149,12 +13559,8 @@ }, "/users/{username}/followers": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "List the given user's followers", "operationId": "userListFollowers", "parameters": [ @@ -15187,12 +13593,8 @@ }, "/users/{username}/following": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "List the users that the given user is following", "operationId": "userListFollowing", "parameters": [ @@ -15225,9 +13627,7 @@ }, "/users/{username}/following/{target}": { "get": { - "tags": [ - "user" - ], + "tags": ["user"], "summary": "Check if one user is following another user", "operationId": "userCheckFollowing", "parameters": [ @@ -15258,12 +13658,8 @@ }, "/users/{username}/gpg_keys": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "List the given user's GPG keys", "operationId": "userListGPGKeys", "parameters": [ @@ -15296,12 +13692,8 @@ }, "/users/{username}/heatmap": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "Get a user's heatmap", "operationId": "userGetHeatmapData", "parameters": [ @@ -15325,12 +13717,8 @@ }, "/users/{username}/keys": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "List the given user's public keys", "operationId": "userListKeys", "parameters": [ @@ -15369,12 +13757,8 @@ }, "/users/{username}/orgs": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "produces": ["application/json"], + "tags": ["organization"], "summary": "List a user's organizations", "operationId": "orgListUserOrgs", "parameters": [ @@ -15407,12 +13791,8 @@ }, "/users/{username}/orgs/{org}/permissions": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], + "produces": ["application/json"], + "tags": ["organization"], "summary": "Get user permissions in organization", "operationId": "orgGetUserPermissions", "parameters": [ @@ -15446,12 +13826,8 @@ }, "/users/{username}/repos": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "List the repos owned by the given user", "operationId": "userListRepos", "parameters": [ @@ -15484,12 +13860,8 @@ }, "/users/{username}/starred": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "The repos that the given user has starred", "operationId": "userListStarred", "parameters": [ @@ -15522,12 +13894,8 @@ }, "/users/{username}/subscriptions": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "List the repositories watched by a user", "operationId": "userListSubscriptions", "parameters": [ @@ -15560,12 +13928,8 @@ }, "/users/{username}/tokens": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "List the authenticated user's access tokens", "operationId": "userGetTokens", "parameters": [ @@ -15596,15 +13960,9 @@ } }, "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["user"], "summary": "Create an access token", "operationId": "userCreateToken", "parameters": [ @@ -15635,12 +13993,8 @@ }, "/users/{username}/tokens/{token}": { "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "user" - ], + "produces": ["application/json"], + "tags": ["user"], "summary": "delete an access token", "operationId": "userDeleteAccessToken", "parameters": [ @@ -15674,12 +14028,8 @@ }, "/version": { "get": { - "produces": [ - "application/json" - ], - "tags": [ - "miscellaneous" - ], + "produces": ["application/json"], + "tags": ["miscellaneous"], "summary": "Returns the version of the Gitea application", "operationId": "getVersion", "responses": { @@ -15823,9 +14173,7 @@ "AddTimeOption": { "description": "AddTimeOption options for adding time to an issue", "type": "object", - "required": [ - "time" - ], + "required": ["time"], "properties": { "created": { "type": "string", @@ -16117,10 +14465,7 @@ "ChangeFileOperation": { "description": "ChangeFileOperation for creating, updating or deleting a file", "type": "object", - "required": [ - "operation", - "path" - ], + "required": ["operation", "path"], "properties": { "content": { "description": "new or updated file content, must be base64 encoded", @@ -16135,11 +14480,7 @@ "operation": { "description": "indicates what to do with the file", "type": "string", - "enum": [ - "create", - "update", - "delete" - ], + "enum": ["create", "update", "delete"], "x-go-name": "Operation" }, "path": { @@ -16158,9 +14499,7 @@ "ChangeFilesOptions": { "description": "ChangeFilesOptions options for creating, updating or deleting multiple files\nNote: `author` and `committer` are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used)", "type": "object", - "required": [ - "files" - ], + "required": ["files"], "properties": { "author": { "$ref": "#/definitions/Identity" @@ -16610,9 +14949,7 @@ "CreateAccessTokenOption": { "description": "CreateAccessTokenOption options when create access token", "type": "object", - "required": [ - "name" - ], + "required": ["name"], "properties": { "name": { "type": "string", @@ -16753,9 +15090,7 @@ "CreateBranchRepoOption": { "description": "CreateBranchRepoOption options when creating a branch in a repository", "type": "object", - "required": [ - "new_branch_name" - ], + "required": ["new_branch_name"], "properties": { "new_branch_name": { "description": "Name of the branch to create", @@ -16796,9 +15131,7 @@ "CreateFileOptions": { "description": "CreateFileOptions options for creating files\nNote: `author` and `committer` are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used)", "type": "object", - "required": [ - "content" - ], + "required": ["content"], "properties": { "author": { "$ref": "#/definitions/Identity" @@ -16857,9 +15190,7 @@ "CreateGPGKeyOption": { "description": "CreateGPGKeyOption options create user GPG key", "type": "object", - "required": [ - "armored_public_key" - ], + "required": ["armored_public_key"], "properties": { "armored_public_key": { "description": "An armored GPG key to add", @@ -16877,10 +15208,7 @@ "CreateHookOption": { "description": "CreateHookOption options when create a hook", "type": "object", - "required": [ - "type", - "config" - ], + "required": ["type", "config"], "properties": { "active": { "type": "boolean", @@ -16935,9 +15263,7 @@ "CreateIssueCommentOption": { "description": "CreateIssueCommentOption options for creating a comment on an issue", "type": "object", - "required": [ - "body" - ], + "required": ["body"], "properties": { "body": { "type": "string", @@ -16949,9 +15275,7 @@ "CreateIssueOption": { "description": "CreateIssueOption options to create one issue", "type": "object", - "required": [ - "title" - ], + "required": ["title"], "properties": { "assignee": { "description": "deprecated", @@ -17007,10 +15331,7 @@ "CreateKeyOption": { "description": "CreateKeyOption options when creating a key", "type": "object", - "required": [ - "title", - "key" - ], + "required": ["title", "key"], "properties": { "key": { "description": "An armored SSH key to add", @@ -17035,10 +15356,7 @@ "CreateLabelOption": { "description": "CreateLabelOption options for creating a label", "type": "object", - "required": [ - "name", - "color" - ], + "required": ["name", "color"], "properties": { "color": { "type": "string", @@ -17076,10 +15394,7 @@ }, "state": { "type": "string", - "enum": [ - "open", - "closed" - ], + "enum": ["open", "closed"], "x-go-name": "State" }, "title": { @@ -17114,9 +15429,7 @@ "CreateOrgOption": { "description": "CreateOrgOption options for creating an organization", "type": "object", - "required": [ - "username" - ], + "required": ["username"], "properties": { "description": { "type": "string", @@ -17141,11 +15454,7 @@ "visibility": { "description": "possible values are `public` (default), `limited` or `private`", "type": "string", - "enum": [ - "public", - "limited", - "private" - ], + "enum": ["public", "limited", "private"], "x-go-name": "Visibility" }, "website": { @@ -17290,9 +15599,7 @@ "CreateReleaseOption": { "description": "CreateReleaseOption options when creating a release", "type": "object", - "required": [ - "tag_name" - ], + "required": ["tag_name"], "properties": { "body": { "type": "string", @@ -17324,9 +15631,7 @@ "CreateRepoOption": { "description": "CreateRepoOption options when creating repository", "type": "object", - "required": [ - "name" - ], + "required": ["name"], "properties": { "auto_init": { "description": "Whether the repository should be auto-initialized?", @@ -17382,12 +15687,7 @@ "trust_model": { "description": "TrustModel of the repository", "type": "string", - "enum": [ - "default", - "collaborator", - "committer", - "collaboratorcommitter" - ], + "enum": ["default", "collaborator", "committer", "collaboratorcommitter"], "x-go-name": "TrustModel" } }, @@ -17418,9 +15718,7 @@ "CreateTagOption": { "description": "CreateTagOption options when creating a tag", "type": "object", - "required": [ - "tag_name" - ], + "required": ["tag_name"], "properties": { "message": { "type": "string", @@ -17440,9 +15738,7 @@ "CreateTeamOption": { "description": "CreateTeamOption options for creating a team", "type": "object", - "required": [ - "name" - ], + "required": ["name"], "properties": { "can_create_org_repo": { "type": "boolean", @@ -17462,11 +15758,7 @@ }, "permission": { "type": "string", - "enum": [ - "read", - "write", - "admin" - ], + "enum": ["read", "write", "admin"], "x-go-name": "Permission" }, "units": { @@ -17509,11 +15801,7 @@ "CreateUserOption": { "description": "CreateUserOption create user options", "type": "object", - "required": [ - "username", - "email", - "password" - ], + "required": ["username", "email", "password"], "properties": { "created_at": { "description": "For explicitly setting the user creation timestamp. Useful when users are\nmigrated from other systems. When omitted, the user's creation timestamp\nwill be set to \"now\".", @@ -17636,9 +15924,7 @@ "DeleteFileOptions": { "description": "DeleteFileOptions options for deleting files (used for other File structs below)\nNote: `author` and `committer` are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used)", "type": "object", - "required": [ - "sha" - ], + "required": ["sha"], "properties": { "author": { "$ref": "#/definitions/Identity" @@ -17864,9 +16150,7 @@ "EditDeadlineOption": { "description": "EditDeadlineOption options for creating a deadline", "type": "object", - "required": [ - "due_date" - ], + "required": ["due_date"], "properties": { "due_date": { "type": "string", @@ -17923,9 +16207,7 @@ "EditIssueCommentOption": { "description": "EditIssueCommentOption options for editing a comment", "type": "object", - "required": [ - "body" - ], + "required": ["body"], "properties": { "body": { "type": "string", @@ -18055,11 +16337,7 @@ "visibility": { "description": "possible values are `public`, `limited` or `private`", "type": "string", - "enum": [ - "public", - "limited", - "private" - ], + "enum": ["public", "limited", "private"], "x-go-name": "Visibility" }, "website": { @@ -18326,9 +16604,7 @@ "EditTeamOption": { "description": "EditTeamOption options for editing a team", "type": "object", - "required": [ - "name" - ], + "required": ["name"], "properties": { "can_create_org_repo": { "type": "boolean", @@ -18348,11 +16624,7 @@ }, "permission": { "type": "string", - "enum": [ - "read", - "write", - "admin" - ], + "enum": ["read", "write", "admin"], "x-go-name": "Permission" }, "units": { @@ -18395,10 +16667,7 @@ "EditUserOption": { "description": "EditUserOption edit user options", "type": "object", - "required": [ - "source_id", - "login_name" - ], + "required": ["source_id", "login_name"], "properties": { "active": { "type": "boolean", @@ -18855,10 +17124,7 @@ "GenerateRepoOption": { "description": "GenerateRepoOption options when creating repository using a template", "type": "object", - "required": [ - "owner", - "name" - ], + "required": ["owner", "name"], "properties": { "avatar": { "description": "include avatar of the template repo", @@ -19605,19 +17871,11 @@ "MergePullRequestOption": { "description": "MergePullRequestForm form for merging Pull Request", "type": "object", - "required": [ - "Do" - ], + "required": ["Do"], "properties": { "Do": { "type": "string", - "enum": [ - "merge", - "rebase", - "rebase-merge", - "squash", - "manually-merged" - ] + "enum": ["merge", "rebase", "rebase-merge", "squash", "manually-merged"] }, "MergeCommitID": { "type": "string" @@ -19651,10 +17909,7 @@ "MigrateRepoOptions": { "description": "MigrateRepoOptions options for migrating repository's\nthis is used to interact with api v1", "type": "object", - "required": [ - "clone_addr", - "repo_name" - ], + "required": ["clone_addr", "repo_name"], "properties": { "auth_password": { "type": "string", @@ -19727,12 +17982,7 @@ }, "service": { "type": "string", - "enum": [ - "git", - "github", - "gitea", - "gitlab" - ], + "enum": ["git", "github", "gitea", "gitlab"], "x-go-name": "Service" }, "uid": { @@ -20883,9 +19133,7 @@ "RenameUserOption": { "description": "RenameUserOption options when renaming a user", "type": "object", - "required": [ - "new_username" - ], + "required": ["new_username"], "properties": { "new_username": { "description": "New username for this user. This name cannot be in use yet by any other user.", @@ -21387,13 +19635,7 @@ }, "permission": { "type": "string", - "enum": [ - "none", - "read", - "write", - "admin", - "owner" - ], + "enum": ["none", "read", "write", "admin", "owner"], "x-go-name": "Permission" }, "units": { @@ -21649,9 +19891,7 @@ "TransferRepoOption": { "description": "TransferRepoOption options when transfer a repository's ownership", "type": "object", - "required": [ - "new_owner" - ], + "required": ["new_owner"], "properties": { "new_owner": { "type": "string", @@ -21672,10 +19912,7 @@ "UpdateFileOptions": { "description": "UpdateFileOptions options for updating files\nNote: `author` and `committer` are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used)", "type": "object", - "required": [ - "sha", - "content" - ], + "required": ["sha", "content"], "properties": { "author": { "$ref": "#/definitions/Identity"