Skip to content

Commit

Permalink
status.{distributions,unsupported_platforms} are optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur1 committed May 7, 2024
1 parent 9e2ab88 commit 2544041
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ type Metadata struct {

type Status struct {
Stability Stability `json:"stability" jsonschema_description:"The stability of the component - See https://github.com/open-telemetry/opentelemetry-collector#stability-levels"`
Distributions []string `json:"distributions" jsonschema_description:"The distributions that this component is bundled with (For example core or contrib). See statusdata.go for a list of common distros."`
Distributions []string `json:"distributions,omitempty" jsonschema_description:"The distributions that this component is bundled with (For example core or contrib). See statusdata.go for a list of common distros."`
Class string `json:"class" jsonschema:"enum=receiver,enum=processor,enum=exporter,enum=connector,enum=extension,enum=cmd,enum=pkg" jsonschema_description:"The class of the component (For example receiver)"`
Warnings []string `json:"warnings,omitempty" jsonschema_description:"A list of warnings that should be brought to the attention of users looking to use this component"`
Codeowners *Codeowners `json:"codeowners,omitempty" jsonschema_description:"Metadata related to codeowners of the component"`
UnsupportedPlatforms []string `json:"unsupported_platforms"`
UnsupportedPlatforms []string `json:"unsupported_platforms,omitempty"`
}

type Stability struct {
Expand Down
4 changes: 1 addition & 3 deletions metadata.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -425,9 +425,7 @@
},
"required": [
"stability",
"distributions",
"class",
"unsupported_platforms"
"class"
],
"type": "object"
},
Expand Down

0 comments on commit 2544041

Please sign in to comment.