summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorAntoine GIRARD <sapk@users.noreply.github.com>2019-08-28 08:55:22 +0200
committerGitHub <noreply@github.com>2019-08-28 08:55:22 +0200
commit256b1781760beb08ae4bdde3c2750ea21c9c8fc6 (patch)
tree3ceb7ed14cdab8a1b8fbf169bebce1478af79522 /templates
parente0f95d1545eaf9cc4ebae9df1ff03d3e66d5b251 (diff)
downloadgitea-256b1781760beb08ae4bdde3c2750ea21c9c8fc6.tar.gz
gitea-256b1781760beb08ae4bdde3c2750ea21c9c8fc6.zip
Update swagger to 0.20.1 (#8010)
* update swagger to 0.20.1 * fiw swagger version for validate
Diffstat (limited to 'templates')
-rw-r--r--templates/swagger/v1_json.tmpl37
1 files changed, 35 insertions, 2 deletions
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl
index 8d164cd7e3..eed60c044c 100644
--- a/templates/swagger/v1_json.tmpl
+++ b/templates/swagger/v1_json.tmpl
@@ -6944,6 +6944,30 @@
},
"x-go-package": "code.gitea.io/gitea/modules/structs"
},
+ "AccessToken": {
+ "type": "object",
+ "title": "AccessToken represents an API access token.",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "x-go-name": "ID"
+ },
+ "name": {
+ "type": "string",
+ "x-go-name": "Name"
+ },
+ "sha1": {
+ "type": "string",
+ "x-go-name": "Token"
+ },
+ "token_last_eight": {
+ "type": "string",
+ "x-go-name": "TokenLastEight"
+ }
+ },
+ "x-go-package": "code.gitea.io/gitea/modules/structs"
+ },
"AddCollaboratorOption": {
"description": "AddCollaboratorOption options when adding a user as a collaborator of a repository",
"type": "object",
@@ -10051,7 +10075,13 @@
}
},
"AccessTokenList": {
- "description": "AccessTokenList represents a list of API access token."
+ "description": "AccessTokenList represents a list of API access token.",
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/AccessToken"
+ }
+ }
},
"AnnotatedTag": {
"description": "AnnotatedTag",
@@ -10296,7 +10326,10 @@
}
},
"MarkdownRender": {
- "description": "MarkdownRender is a rendered markdown document"
+ "description": "MarkdownRender is a rendered markdown document",
+ "schema": {
+ "type": "string"
+ }
},
"Milestone": {
"description": "Milestone",