Skip to content

Commit

Permalink
Make keepGitDir optional
Browse files Browse the repository at this point in the history
This was never meant to be a required field, so mark it as omitempty so
that the jsonschema validation in editors don't complain about it being
missing.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
  • Loading branch information
cpuguy83 committed Oct 11, 2024
1 parent b236fe1 commit 07dbbca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions docs/spec.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -750,8 +750,7 @@
"type": "object",
"required": [
"url",
"commit",
"keepGitDir"
"commit"
]
},
"SourceHTTP": {
Expand Down
2 changes: 1 addition & 1 deletion spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ type SourceDockerImage struct {
type SourceGit struct {
URL string `yaml:"url" json:"url"`
Commit string `yaml:"commit" json:"commit"`
KeepGitDir bool `yaml:"keepGitDir" json:"keepGitDir"`
KeepGitDir bool `yaml:"keepGitDir,omitempty" json:"keepGitDir,omitempty"`
Auth GitAuth `yaml:"auth,omitempty" json:"auth,omitempty"`
}

Expand Down

0 comments on commit 07dbbca

Please sign in to comment.