mirror of
https://github.com/goreleaser/goreleaser.git
synced 2024-12-29 01:44:39 +02:00
fix(winget): improve schema (#4489)
make required fields required Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
parent
df982a6a3b
commit
a85d049f9b
@ -318,25 +318,25 @@ func (a *NixDependency) UnmarshalYAML(unmarshal func(interface{}) error) error {
|
||||
|
||||
type Winget struct {
|
||||
Name string `yaml:"name,omitempty" json:"name,omitempty"`
|
||||
PackageIdentifier string `yaml:"package_identifier,omitempty" json:"package_identifier,omitempty"`
|
||||
Publisher string `yaml:"publisher,omitempty" json:"publisher,omitempty"`
|
||||
PackageIdentifier string `yaml:"package_identifier" json:"package_identifier"`
|
||||
Publisher string `yaml:"publisher" json:"publisher"`
|
||||
PublisherURL string `yaml:"publisher_url,omitempty" json:"publisher_url,omitempty"`
|
||||
PublisherSupportURL string `yaml:"publisher_support_url,omitempty" json:"publisher_support_url,omitempty"`
|
||||
Copyright string `yaml:"copyright,omitempty" json:"copyright,omitempty"`
|
||||
CopyrightURL string `yaml:"copyright_url,omitempty" json:"copyright_url,omitempty"`
|
||||
Author string `yaml:"author,omitempty" json:"author,omitempty"`
|
||||
Path string `yaml:"path,omitempty" json:"path,omitempty"`
|
||||
Repository RepoRef `yaml:"repository,omitempty" json:"repository,omitempty"`
|
||||
Repository RepoRef `yaml:"repository" json:"repository"`
|
||||
CommitAuthor CommitAuthor `yaml:"commit_author,omitempty" json:"commit_author,omitempty"`
|
||||
CommitMessageTemplate string `yaml:"commit_msg_template,omitempty" json:"commit_msg_template,omitempty"`
|
||||
IDs []string `yaml:"ids,omitempty" json:"ids,omitempty"`
|
||||
Goamd64 string `yaml:"goamd64,omitempty" json:"goamd64,omitempty"`
|
||||
SkipUpload string `yaml:"skip_upload,omitempty" json:"skip_upload,omitempty" jsonschema:"oneof_type=string;boolean"`
|
||||
URLTemplate string `yaml:"url_template,omitempty" json:"url_template,omitempty"`
|
||||
ShortDescription string `yaml:"short_description,omitempty" json:"short_description,omitempty"`
|
||||
ShortDescription string `yaml:"short_description" json:"short_description"`
|
||||
Description string `yaml:"description,omitempty" json:"description,omitempty"`
|
||||
Homepage string `yaml:"homepage,omitempty" json:"homepage,omitempty"`
|
||||
License string `yaml:"license,omitempty" json:"license,omitempty"`
|
||||
License string `yaml:"license" json:"license"`
|
||||
LicenseURL string `yaml:"license_url,omitempty" json:"license_url,omitempty"`
|
||||
ReleaseNotes string `yaml:"release_notes,omitempty" json:"release_notes,omitempty"`
|
||||
ReleaseNotesURL string `yaml:"release_notes_url,omitempty" json:"release_notes_url,omitempty"`
|
||||
|
12
www/docs/static/schema.json
generated
vendored
12
www/docs/static/schema.json
generated
vendored
@ -101,6 +101,9 @@
|
||||
},
|
||||
"goamd64": {
|
||||
"type": "string"
|
||||
},
|
||||
"directory": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
@ -3554,7 +3557,14 @@
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"type": "object"
|
||||
"type": "object",
|
||||
"required": [
|
||||
"package_identifier",
|
||||
"publisher",
|
||||
"repository",
|
||||
"short_description",
|
||||
"license"
|
||||
]
|
||||
},
|
||||
"WingetDependency": {
|
||||
"properties": {
|
||||
|
Loading…
Reference in New Issue
Block a user