Skip to content

Commit

Permalink
Update basic example
Browse files Browse the repository at this point in the history
Missing closing quotation mark, validation is not working without it
  • Loading branch information
dcrystalj committed Sep 21, 2023
1 parent 8d50f2f commit 644cf2b
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 644cf2b

Please sign in to comment.