We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94a637a commit adda84dCopy full SHA for adda84d
_examples/simple/main.go
@@ -12,7 +12,7 @@ type User struct {
12
LastName string `validate:"required"`
13
Age uint8 `validate:"gte=0,lte=130"`
14
Email string `validate:"required,email"`
15
- Gender string `validate:"oneof=male female prefer_not_to`
+ Gender string `validate:"oneof=male female prefer_not_to"`
16
FavouriteColor string `validate:"iscolor"` // alias for 'hexcolor|rgb|rgba|hsl|hsla'
17
Addresses []*Address `validate:"required,dive,required"` // a person can have a home and cottage...
18
}
0 commit comments