|
|
|
@ -113,8 +113,7 @@ func (v *validate) ReportError(field interface{}, fieldName, structFieldName, ta |
|
|
|
|
v.str2 = v.str1 |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
switch kind { |
|
|
|
|
case reflect.Invalid: |
|
|
|
|
if kind == reflect.Invalid { |
|
|
|
|
|
|
|
|
|
v.errs = append(v.errs, |
|
|
|
|
&fieldError{ |
|
|
|
@ -128,8 +127,8 @@ func (v *validate) ReportError(field interface{}, fieldName, structFieldName, ta |
|
|
|
|
kind: kind, |
|
|
|
|
}, |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
default: |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
v.errs = append(v.errs, |
|
|
|
|
&fieldError{ |
|
|
|
@ -145,7 +144,6 @@ func (v *validate) ReportError(field interface{}, fieldName, structFieldName, ta |
|
|
|
|
typ: fv.Type(), |
|
|
|
|
}, |
|
|
|
|
) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// ReportValidationErrors reports ValidationErrors obtained from running validations within the Struct Level validation.
|
|
|
|
|