Skip to content

Commit 211a627

Browse files
authored
Add omitempty tag to slackUserEmail validation (#985)
1 parent 6a1dacb commit 211a627

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/v1beta1/disruption_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ type Reporting struct {
135135
MinNotificationType eventtypes.NotificationType `json:"minNotificationType,omitempty"`
136136
// SlackUserEmail is the email of the user to send reporting information to
137137
// +kubebuilder:validation:MaxLength=320
138-
SlackUserEmail string `json:"slackUserEmail,omitempty" chaos_validate:"email"`
138+
SlackUserEmail string `json:"slackUserEmail,omitempty" chaos_validate:"omitempty,email"`
139139
}
140140

141141
func (r *Reporting) Explain() string {

0 commit comments

Comments
 (0)