Skip to content

Commit

Permalink
Add missing double quote to simple example
Browse files Browse the repository at this point in the history
Missing the double quote causes the oneof validation to not run
  • Loading branch information
andyklimczak committed Aug 8, 2023
1 parent 5bf55dc commit 91f690a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _examples/simple/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ type User struct {
LastName string `validate:"required"`
Age uint8 `validate:"gte=0,lte=130"`
Email string `validate:"required,email"`
Gender string `validate:"oneof=male female prefer_not_to`
Gender string `validate:"oneof=male female prefer_not_to"`
FavouriteColor string `validate:"iscolor"` // alias for 'hexcolor|rgb|rgba|hsl|hsla'
Addresses []*Address `validate:"required,dive,required"` // a person can have a home and cottage...
}
Expand Down

0 comments on commit 91f690a

Please sign in to comment.