From 256b1781760beb08ae4bdde3c2750ea21c9c8fc6 Mon Sep 17 00:00:00 2001 From: Antoine GIRARD Date: Wed, 28 Aug 2019 08:55:22 +0200 Subject: Update swagger to 0.20.1 (#8010) * update swagger to 0.20.1 * fiw swagger version for validate --- templates/swagger/v1_json.tmpl | 37 +++++++++++++++++++++++++++++++++++-- 1 file changed, 35 insertions(+), 2 deletions(-) (limited to 'templates/swagger') 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", -- cgit v1.2.3