Skip to content

Commit

Permalink
Fix oneof tag in simple example (#1184)
Browse files Browse the repository at this point in the history
Just a minor fix for the `oneof` tag in examples.
  • Loading branch information
gren236 committed Nov 4, 2023
1 parent 94a637a commit adda84d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _examples/simple/main.go
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 adda84d

Please sign in to comment.