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

fix: wrap_in_directory type (#3158)

closes #3155

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
Carlos Alexandro Becker 2022-06-12 20:03:58 -03:00 committed by GitHub
parent 500190f36a
commit 1723e88dcd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 2 deletions

View File

@ -514,7 +514,7 @@ type Archive struct {
Replacements map[string]string `yaml:"replacements,omitempty"`
Format string `yaml:"format,omitempty"`
FormatOverrides []FormatOverride `yaml:"format_overrides,omitempty"`
WrapInDirectory string `yaml:"wrap_in_directory,omitempty"`
WrapInDirectory string `yaml:"wrap_in_directory,omitempty" jsonschema:"oneof_type=string;boolean"`
Files []File `yaml:"files,omitempty"`
Meta bool `yaml:"meta,omitempty"`
AllowDifferentBinaryCount bool `yaml:"allow_different_binary_count,omitempty"`

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

@ -175,7 +175,14 @@
"type": "array"
},
"wrap_in_directory": {
"type": "string"
"oneOf": [
{
"type": "string"
},
{
"type": "boolean"
}
]
},
"files": {
"items": {