Skip to content

Commit adda84d

Browse files
authored
Fix oneof tag in simple example (#1184)
Just a minor fix for the `oneof` tag in examples.
1 parent 94a637a commit adda84d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_examples/simple/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ type User struct {
1212
LastName string `validate:"required"`
1313
Age uint8 `validate:"gte=0,lte=130"`
1414
Email string `validate:"required,email"`
15-
Gender string `validate:"oneof=male female prefer_not_to`
15+
Gender string `validate:"oneof=male female prefer_not_to"`
1616
FavouriteColor string `validate:"iscolor"` // alias for 'hexcolor|rgb|rgba|hsl|hsla'
1717
Addresses []*Address `validate:"required,dive,required"` // a person can have a home and cottage...
1818
}

0 commit comments

Comments
 (0)