Skip to content

Commit

Permalink
Merge pull request #1695 from ebblake/main
Browse files Browse the repository at this point in the history
docs: Avoid omitempty with kubebuilder:validation:Required
  • Loading branch information
openshift-merge-bot[bot] authored Oct 23, 2024
2 parents 832dafc + a7c3f6d commit 8f2a2e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dev-guide/api-conventions.md
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ type MyPlatformConfig struct {
// +unionDiscriminator
// +kubebuilder:validation:Enum:="AWS";"Azure";"GCP"
// +kubebuilder:validation:Required
PlatformType string `json:"platformType,omitempty"`
PlatformType string `json:"platformType"`

// AWS is the AWS configuration.
// All structures within the union must be optional and pointers.
Expand Down

0 comments on commit 8f2a2e1

Please sign in to comment.