1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2024-12-27 01:33:39 +02:00

fix(jsonschema): add custom JSONSchema type to umask (#5276)

This commit is contained in:
Ludovic Fernandez 2024-11-14 12:00:24 +01:00 committed by GitHub
parent a7721dc1fe
commit 885bcc090b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 34 additions and 6 deletions

View File

@ -945,7 +945,7 @@ type NFPMOverridables struct {
Recommends []string `yaml:"recommends,omitempty" json:"recommends,omitempty"`
Suggests []string `yaml:"suggests,omitempty" json:"suggests,omitempty"`
Conflicts []string `yaml:"conflicts,omitempty" json:"conflicts,omitempty"`
Umask fs.FileMode `yaml:"umask,omitempty" json:"umask,omitempty"`
Umask fs.FileMode `yaml:"umask,omitempty" json:"umask,omitempty" jsonschema:"oneof_type=string;integer"`
Replaces []string `yaml:"replaces,omitempty" json:"replaces,omitempty"`
Provides []string `yaml:"provides,omitempty" json:"provides,omitempty"`
Contents files.Contents `yaml:"contents,omitempty" json:"contents,omitempty"`

20
www/docs/static/schema-pro.json generated vendored
View File

@ -2340,7 +2340,14 @@
"type": "array"
},
"umask": {
"type": "integer"
"oneOf": [
{
"type": "string"
},
{
"type": "integer"
}
]
},
"replaces": {
"items": {
@ -2726,7 +2733,14 @@
"type": "array"
},
"umask": {
"type": "integer"
"oneOf": [
{
"type": "string"
},
{
"type": "integer"
}
]
},
"replaces": {
"items": {
@ -4713,4 +4727,4 @@
}
},
"description": "goreleaser configuration definition file"
}
}

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

@ -1828,7 +1828,14 @@
"type": "array"
},
"umask": {
"type": "integer"
"oneOf": [
{
"type": "string"
},
{
"type": "integer"
}
]
},
"replaces": {
"items": {
@ -2205,7 +2212,14 @@
"type": "array"
},
"umask": {
"type": "integer"
"oneOf": [
{
"type": "string"
},
{
"type": "integer"
}
]
},
"replaces": {
"items": {