diff --git a/validator.go b/validator.go index 6806f6e..ba4a8b6 100644 --- a/validator.go +++ b/validator.go @@ -318,10 +318,12 @@ OUTER: } else { + tVal := string(v.misc)[1:] + v.errs = append(v.errs, &fieldError{ - tag: string(v.misc)[1:], - actualTag: string(v.misc)[1:], + tag: tVal, + actualTag: tVal, ns: string(append(ns, cf.altName...)), structNs: string(append(structNs, cf.name...)), field: cf.altName,