Skip to content

Commit

Permalink
fix: improve schema for signs (#3603)
Browse files Browse the repository at this point in the history
adds all the options allowed in the `artifacts` field to the schema

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
  • Loading branch information
caarlos0 committed Nov 30, 2022
1 parent 50bd784 commit e72ab30
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/config/config.go
Expand Up @@ -686,7 +686,7 @@ type Sign struct {
Cmd string `yaml:"cmd,omitempty" json:"cmd,omitempty"`
Args []string `yaml:"args,omitempty" json:"args,omitempty"`
Signature string `yaml:"signature,omitempty" json:"signature,omitempty"`
Artifacts string `yaml:"artifacts,omitempty" json:"artifacts,omitempty"`
Artifacts string `yaml:"artifacts,omitempty" json:"artifacts,omitempty" jsonschema:"enum=all,enum=manifests,enum=images,enum=checksum,enum=source,enum=package,enum=archive,enum=binary,enum=sbom"`
IDs []string `yaml:"ids,omitempty" json:"ids,omitempty"`
Stdin *string `yaml:"stdin,omitempty" json:"stdin,omitempty"`
StdinFile string `yaml:"stdin_file,omitempty" json:"stdin_file,omitempty"`
Expand Down
13 changes: 12 additions & 1 deletion www/docs/static/schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e72ab30

Please sign in to comment.