fix: add yaml tags to models so we can unmarshal camelCase (#148)
This commit is contained in:
@ -16,10 +16,10 @@ import (
|
||||
|
||||
// TemplateSummaryCommon struct for TemplateSummaryCommon
|
||||
type TemplateSummaryCommon struct {
|
||||
Kind string `json:"kind"`
|
||||
TemplateMetaName *string `json:"templateMetaName,omitempty"`
|
||||
EnvReferences []TemplateEnvReference `json:"envReferences"`
|
||||
LabelAssociations []TemplateSummaryLabel `json:"labelAssociations"`
|
||||
Kind string `json:"kind" yaml:"kind"`
|
||||
TemplateMetaName *string `json:"templateMetaName,omitempty" yaml:"templateMetaName,omitempty"`
|
||||
EnvReferences []TemplateEnvReference `json:"envReferences" yaml:"envReferences"`
|
||||
LabelAssociations []TemplateSummaryLabel `json:"labelAssociations" yaml:"labelAssociations"`
|
||||
}
|
||||
|
||||
// NewTemplateSummaryCommon instantiates a new TemplateSummaryCommon object
|
||||
|
Reference in New Issue
Block a user