mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-26 12:15:20 +01:00
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 <dan.norris@netapp.com>
This commit is contained in:
parent
464bdf71cd
commit
fa4280887d
@ -2851,6 +2851,8 @@ paths:
|
||||
description: The chart name
|
||||
responses:
|
||||
'200':
|
||||
description: Retrieved all versions of the specified chart
|
||||
schema:
|
||||
$ref: '#/definitions/ChartVersions'
|
||||
'401':
|
||||
$ref: '#/definitions/UnauthorizedChartAPIError'
|
||||
@ -2911,6 +2913,8 @@ paths:
|
||||
description: The chart version
|
||||
responses:
|
||||
'200':
|
||||
description: Successfully retrieved the chart version
|
||||
schema:
|
||||
$ref: '#/definitions/ChartVersionDetails'
|
||||
'401':
|
||||
$ref: '#/definitions/UnauthorizedChartAPIError'
|
||||
|
Loading…
Reference in New Issue
Block a user