Merge pull request #6374 from steven-zou/fix_malformat_json_data

Fix the malformat json data of chart list API
This commit is contained in:
Steven Zou 2018-11-28 17:43:08 +08:00 committed by GitHub
commit b54c6b4474
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,14 +55,14 @@ type DigitalSignature struct {
// ChartInfo keeps the information of the chart
type ChartInfo struct {
Name string
TotalVersions uint32 `json:"total_versions"`
LatestVersion string `json:"latest_version"`
Created time.Time
Updated time.Time
Icon string
Home string
Deprecated bool
Name string `json:"name"`
TotalVersions uint32 `json:"total_versions"`
LatestVersion string `json:"latest_version"`
Created time.Time `json:"created"`
Updated time.Time `json:"updated"`
Icon string `json:"icon"`
Home string `json:"home"`
Deprecated bool `json:"deprecated"`
}
// ChartOperator is designed to process the contents of