1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-17 20:47:50 +02:00

fix: improve schema for signs (#3603)

adds all the options allowed in the `artifacts` field to the schema

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
Carlos Alexandro Becker 2022-11-29 21:38:51 -03:00 committed by GitHub
parent 50bd78439c
commit e72ab30ac8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 2 deletions

View File

@ -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"`

13
www/docs/static/schema.json generated vendored
View File

@ -2293,7 +2293,18 @@
"type": "string"
},
"artifacts": {
"type": "string"
"type": "string",
"enum": [
"all",
"manifests",
"images",
"checksum",
"source",
"package",
"archive",
"binary",
"sbom"
]
},
"ids": {
"items": {