From b0730ca8e0a1f848cec7fc27670df1469b73851b Mon Sep 17 00:00:00 2001 From: dota17 Date: Thu, 2 Dec 2021 17:02:43 +0800 Subject: [PATCH 1/2] return Contributors --- gitee/api_repositories.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gitee/api_repositories.go b/gitee/api_repositories.go index 1b5ab7e..6f01114 100644 --- a/gitee/api_repositories.go +++ b/gitee/api_repositories.go @@ -2361,7 +2361,7 @@ RepositoriesApiService 获取仓库贡献者 * @param optional nil or *GetV5ReposOwnerRepoContributorsOpts - Optional Parameters: * @param "AccessToken" (optional.String) - 用户授权码 -@return Contributor +@return []Contributor */ type GetV5ReposOwnerRepoContributorsOpts struct { @@ -2374,7 +2374,7 @@ func (a *RepositoriesApiService) GetV5ReposOwnerRepoContributors(ctx context.Con localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - localVarReturnValue Contributor + localVarReturnValue []Contributor ) // create path and map variables -- Gitee From 64b6ad2c93b7cee5b11f9a18b606b33cc86c2ee9 Mon Sep 17 00:00:00 2001 From: dota17 Date: Thu, 2 Dec 2021 17:08:31 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=90=8C=E6=AD=A5=E6=9B=B4=E6=96=B0swagger?= =?UTF-8?q?.yaml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/swagger.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/swagger.yaml b/api/swagger.yaml index c11986c..ad8679d 100644 --- a/api/swagger.yaml +++ b/api/swagger.yaml @@ -3259,6 +3259,8 @@ paths: 200: description: "返回格式" schema: + type: "array" + items: $ref: "#/definitions/Contributor" /v5/repos/{owner}/{repo}/tags: get: -- Gitee