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

docs: update schema for changelog.sort

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
Carlos A Becker 2023-01-04 22:31:46 -03:00
parent 2af9bdb689
commit 13fda95e0e
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940
2 changed files with 8 additions and 2 deletions

View File

@ -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"`

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

@ -478,7 +478,13 @@
"$ref": "#/$defs/Filters"
},
"sort": {
"type": "string"
"type": "string",
"enum": [
"asc",
"desc",
""
],
"default": ""
},
"skip": {
"type": "boolean"