Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: fix JSON Schema #2324

Merged
merged 1 commit into from
Oct 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
docs: fix JSON Schema
  • Loading branch information
suzuki-shunsuke committed Oct 8, 2023
commit f62f73eb26b3c48de41e3a012b300b7916293c3f
5 changes: 1 addition & 4 deletions json-schema/registry.json
Original file line number Diff line number Diff line change
@@ -41,10 +41,7 @@
}
},
"additionalProperties": false,
"type": "object",
"required": [
"type"
]
"type": "object"
},
"Cargo": {
"properties": {
2 changes: 1 addition & 1 deletion pkg/config/registry/package_info.go
Original file line number Diff line number Diff line change
@@ -61,7 +61,7 @@ type PackageInfo struct {
}

type Build struct {
Type string `validate:"required" json:"type" jsonschema:"enum=enum=go_install,enum=go_build"`
Type string `json:"type,omitempty" yaml:",omitempty" jsonschema:"enum=enum=go_install,enum=go_build"`
Path string `json:"path,omitempty" yaml:",omitempty"`
Files []*File `json:"files,omitempty" yaml:",omitempty"`
ExcludedEnvs SupportedEnvs `yaml:"excluded_envs,omitempty" json:"excluded_envs,omitempty"`