Skip to content

Commit

Permalink
Remove dive tag on correct field
Browse files Browse the repository at this point in the history
The previous commit removed the dive tag on `Options` instead of
`Visibility`.
  • Loading branch information
rohansingh committed Apr 25, 2024
1 parent f9c7dcf commit 503efab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions schema/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ type SchemaField struct {
Name string `json:"name,omitempty" validate:"required_for=datetime dropdown location locationbased onoff radio text typeahead png"`
Description string `json:"description,omitempty"`
Icon string `json:"icon,omitempty" validate:"forbidden_for=generated"`
Visibility *SchemaVisibility `json:"visibility,omitempty" validate:"omitempty,dive"`
Visibility *SchemaVisibility `json:"visibility,omitempty" validate:"omitempty"`

Default string `json:"default,omitempty" validate:"required_for=dropdown onoff radio"`
Options []SchemaOption `json:"options,omitempty" validate:"required_for=dropdown radio"`
Options []SchemaOption `json:"options,omitempty" validate:"required_for=dropdown radio,dive"`
Palette []string `json:"palette,omitempty"`

Source string `json:"source,omitempty" validate:"required_for=generated"`
Expand Down

0 comments on commit 503efab

Please sign in to comment.