set omitempty on params and version
this probably would have also fixed the {} version issue in the previous
commit
@@ -39,8 +39,9 @@ type TaskConfig struct {
type ImageResource struct {
Type string `yaml:"type" json:"type" mapstructure:"type"`
Source Source `yaml:"source" json:"source" mapstructure:"source"`
- Params *Params `yaml:"params" json:"params" mapstructure:"params"`
- Version *Version `yaml:"version" json:"version" mapstructure:"version"`
+
+ Params *Params `yaml:"params,omitempty" json:"params,omitempty" mapstructure:"params"`
+ Version *Version `yaml:"version,omitempty" json:"version,omitempty" mapstructure:"version"`
}
func NewTaskConfig(configBytes []byte) (TaskConfig, error) {
