|
@@ -32,7 +32,7 @@ func init() {
|
|
|
}
|
|
|
|
|
|
func registerCustomTags() {
|
|
|
- if err := validate.RegisterValidation("timezero", func(fl validator.FieldLevel) bool {
|
|
|
+ if err := validate.RegisterValidation("timenotzero", func(fl validator.FieldLevel) bool {
|
|
|
fieldValue := fl.Field()
|
|
|
|
|
|
if !fieldValue.IsValid() {
|