diff --git a/validator_instance.go b/validator_instance.go index 316ffb0..6b67548 100644 --- a/validator_instance.go +++ b/validator_instance.go @@ -182,6 +182,7 @@ func (v *Validate) ValidateMap(data map[string]interface{}, rules map[string]int // // validate.RegisterTagNameFunc(func(fld reflect.StructField) string { // name := strings.SplitN(fld.Tag.Get("json"), ",", 2)[0] +// // skip if tag key says it should be ignored // if name == "-" { // return "" // }