Skip to content

Commit c43e858

Browse files
committed
add omitempty tags
1 parent 30dd606 commit c43e858

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/skaffold/schema/latest/config.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,10 @@ type ConfigDependency struct {
9696
Names []string `yaml:"configs,omitempty"`
9797

9898
// Path describes the path to the file containing the required configs.
99-
Path string `yaml:"path" skaffold:"filepath" yamltags:"oneOf=paths"`
99+
Path string `yaml:"path,omitempty" skaffold:"filepath" yamltags:"oneOf=paths"`
100100

101101
// GitRepo describes a remote git repository containing the required configs.
102-
GitRepo *GitInfo `yaml:"git" yamltags:"oneOf=paths"`
102+
GitRepo *GitInfo `yaml:"git,omitempty" yamltags:"oneOf=paths"`
103103

104104
// ActiveProfiles describes the list of profiles to activate when resolving the required configs. These profiles must exist in the imported config.
105105
ActiveProfiles []ProfileDependency `yaml:"activeProfiles,omitempty"`

0 commit comments

Comments
 (0)