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

fix: schema

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
Carlos A Becker 2023-01-07 17:10:46 -03:00
parent 9a3e23db00
commit 0286cf7163
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940
2 changed files with 11 additions and 11 deletions

View File

@ -316,7 +316,7 @@ type Build struct {
Hooks BuildHookConfig `yaml:"hooks,omitempty" json:"hooks,omitempty"`
Builder string `yaml:"builder,omitempty" json:"builder,omitempty"`
ModTimestamp string `yaml:"mod_timestamp,omitempty" json:"mod_timestamp,omitempty"`
Skip bool `yaml:"skip,omitempty" json:"skip,omitempty" jsonschema:"oneof_type=string;boolean"`
Skip bool `yaml:"skip,omitempty" json:"skip,omitempty"`
GoBinary string `yaml:"gobinary,omitempty" json:"gobinary,omitempty"`
Command string `yaml:"command,omitempty" json:"command,omitempty"`
NoUniqueDistDir bool `yaml:"no_unique_dist_dir,omitempty" json:"no_unique_dist_dir,omitempty"`
@ -1066,7 +1066,7 @@ type LinkedIn struct {
type Telegram struct {
Enabled bool `yaml:"enabled,omitempty" json:"enabled,omitempty"`
MessageTemplate string `yaml:"message_template,omitempty" json:"message_template,omitempty"`
ChatID int64 `yaml:"chat_id,omitempty" json:"chat_id,omitempty"`
ChatID int64 `yaml:"chat_id,omitempty" json:"chat_id,omitempty" jsonschema:"oneof_type=string;integer"`
}
// Load config file.

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

@ -338,14 +338,7 @@
"type": "string"
},
"skip": {
"oneOf": [
{
"type": "string"
},
{
"type": "boolean"
}
]
"type": "boolean"
},
"gobinary": {
"type": "string"
@ -2743,7 +2736,14 @@
"type": "string"
},
"chat_id": {
"type": "integer"
"oneOf": [
{
"type": "string"
},
{
"type": "integer"
}
]
}
},
"additionalProperties": false,