From fa4280887d3b7a0def0b722c01bfdd6f4df06148 Mon Sep 17 00:00:00 2001 From: Dan Norris Date: Tue, 22 Jan 2019 08:40:00 -0800 Subject: [PATCH] Fix Swagger client generation for a few chartrepo endpoints It looks like the Swagger for `ChartVersions` and `ChartVersionDetails` were missing fields to properly generate a client. This fixes the problem by adding the correct `refs` so that the client produces an output when making an API call. In Go, this generates something like: ```Go /*GetChartrepoRepoChartsNameVersionOK handles this case with default header values. Successfully retrieved the chart version */ type GetChartrepoRepoChartsNameVersionOK struct { Payload *models.ChartVersionDetails } ... /*GetChartrepoRepoChartsNameOK handles this case with default header values. Retrieved all versions of the specified chart */ type GetChartrepoRepoChartsNameOK struct { Payload models.ChartVersions } ``` Signed-off-by: Dan Norris --- docs/swagger.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/swagger.yaml b/docs/swagger.yaml index b33e9ebc1..270e2b540 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -2851,7 +2851,9 @@ paths: description: The chart name responses: '200': - $ref: '#/definitions/ChartVersions' + description: Retrieved all versions of the specified chart + schema: + $ref: '#/definitions/ChartVersions' '401': $ref: '#/definitions/UnauthorizedChartAPIError' '403': @@ -2911,7 +2913,9 @@ paths: description: The chart version responses: '200': - $ref: '#/definitions/ChartVersionDetails' + description: Successfully retrieved the chart version + schema: + $ref: '#/definitions/ChartVersionDetails' '401': $ref: '#/definitions/UnauthorizedChartAPIError' '403':