diff --git a/pkg/config/config.go b/pkg/config/config.go index a0307deeb..679700d95 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -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. diff --git a/www/docs/static/schema.json b/www/docs/static/schema.json index 6f9adb7cf..6ecac2e49 100644 --- a/www/docs/static/schema.json +++ b/www/docs/static/schema.json @@ -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,