diff --git a/pkg/config/config.go b/pkg/config/config.go index 6b546637c..a0307deeb 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -826,7 +826,7 @@ type Filters struct { // Changelog Config. type Changelog struct { Filters Filters `yaml:"filters,omitempty" json:"filters,omitempty"` - Sort string `yaml:"sort,omitempty" json:"sort,omitempty"` + Sort string `yaml:"sort,omitempty" json:"sort,omitempty" jsonschema:"enum=asc,enum=desc,enum=,default="` Skip bool `yaml:"skip,omitempty" json:"skip,omitempty"` // TODO(caarlos0): rename to Disable to match other pipes Use string `yaml:"use,omitempty" json:"use,omitempty" jsonschema:"enum=git,enum=github,enum=github-native,enum=gitlab,default=git"` Groups []ChangeLogGroup `yaml:"groups,omitempty" json:"groups,omitempty"` diff --git a/www/docs/static/schema.json b/www/docs/static/schema.json index 679b25de6..6f9adb7cf 100644 --- a/www/docs/static/schema.json +++ b/www/docs/static/schema.json @@ -478,7 +478,13 @@ "$ref": "#/$defs/Filters" }, "sort": { - "type": "string" + "type": "string", + "enum": [ + "asc", + "desc", + "" + ], + "default": "" }, "skip": { "type": "boolean"