Skip to content

Commit

Permalink
chore: fix supported platforms in JSONSchema (#3476)
Browse files Browse the repository at this point in the history
  • Loading branch information
suzuki-shunsuke authored Jan 23, 2025
1 parent 5210bce commit f674baa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 23 deletions.
22 changes: 1 addition & 21 deletions json-schema/registry.json
Original file line number Diff line number Diff line change
Expand Up @@ -297,36 +297,16 @@
"goos": {
"type": "string",
"enum": [
"aix",
"android",
"darwin",
"dragonfly",
"freebsd",
"illumos",
"ios",
"linux",
"netbsd",
"openbsd",
"plan9",
"solaris",
"windows"
]
},
"goarch": {
"type": "string",
"enum": [
"386",
"amd64",
"arm",
"arm64",
"mips",
"mips64",
"mips64le",
"mipsle",
"ppc64",
"ppc64le",
"riscv64",
"s390x"
"arm64"
]
},
"type": {
Expand Down
4 changes: 2 additions & 2 deletions pkg/config/registry/package_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ type VersionOverride struct {
}

type Override struct {
GOOS string `yaml:",omitempty" json:"goos,omitempty" jsonschema:"enum=aix,enum=android,enum=darwin,enum=dragonfly,enum=freebsd,enum=illumos,enum=ios,enum=linux,enum=netbsd,enum=openbsd,enum=plan9,enum=solaris,enum=windows"`
GOArch string `yaml:",omitempty" json:"goarch,omitempty" jsonschema:"enum=386,enum=amd64,enum=arm,enum=arm64,enum=mips,enum=mips64,enum=mips64le,enum=mipsle,enum=ppc64,enum=ppc64le,enum=riscv64,enum=s390x"`
GOOS string `yaml:",omitempty" json:"goos,omitempty" jsonschema:"enum=darwin,enum=linux,enum=windows"`
GOArch string `yaml:",omitempty" json:"goarch,omitempty" jsonschema:"enum=amd64,enum=arm64"`
Type string `json:"type,omitempty" jsonschema:"enum=github_release,enum=github_content,enum=github_archive,enum=http,enum=go,enum=go_install,enum=cargo,enum=go_build"`
Format string `yaml:",omitempty" json:"format,omitempty" jsonschema:"example=tar.gz,example=raw,example=zip"`
Asset string `yaml:",omitempty" json:"asset,omitempty"`
Expand Down

0 comments on commit f674baa

Please sign in to comment.