|
|
@ -113,14 +113,14 @@ func (v *validate) traverseField(parent reflect.Value, current reflect.Value, ns |
|
|
|
|
|
|
|
|
|
|
|
v.errs = append(v.errs, |
|
|
|
v.errs = append(v.errs, |
|
|
|
&fieldError{ |
|
|
|
&fieldError{ |
|
|
|
tag: ct.aliasTag, |
|
|
|
tag: ct.aliasTag, |
|
|
|
actualTag: ct.tag, |
|
|
|
actualTag: ct.tag, |
|
|
|
ns: v.str1, |
|
|
|
ns: v.str1, |
|
|
|
structNs: v.str2, |
|
|
|
structNs: v.str2, |
|
|
|
field: cf.altName, |
|
|
|
fieldLen: len(cf.altName), |
|
|
|
structField: cf.name, |
|
|
|
structfieldLen: len(cf.name), |
|
|
|
param: ct.param, |
|
|
|
param: ct.param, |
|
|
|
kind: kind, |
|
|
|
kind: kind, |
|
|
|
}, |
|
|
|
}, |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
@ -129,16 +129,16 @@ func (v *validate) traverseField(parent reflect.Value, current reflect.Value, ns |
|
|
|
|
|
|
|
|
|
|
|
v.errs = append(v.errs, |
|
|
|
v.errs = append(v.errs, |
|
|
|
&fieldError{ |
|
|
|
&fieldError{ |
|
|
|
tag: ct.aliasTag, |
|
|
|
tag: ct.aliasTag, |
|
|
|
actualTag: ct.tag, |
|
|
|
actualTag: ct.tag, |
|
|
|
ns: v.str1, |
|
|
|
ns: v.str1, |
|
|
|
structNs: v.str2, |
|
|
|
structNs: v.str2, |
|
|
|
field: cf.altName, |
|
|
|
fieldLen: len(cf.altName), |
|
|
|
structField: cf.name, |
|
|
|
structfieldLen: len(cf.name), |
|
|
|
value: current.Interface(), |
|
|
|
value: current.Interface(), |
|
|
|
param: ct.param, |
|
|
|
param: ct.param, |
|
|
|
kind: kind, |
|
|
|
kind: kind, |
|
|
|
typ: current.Type(), |
|
|
|
typ: current.Type(), |
|
|
|
}, |
|
|
|
}, |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
@ -323,16 +323,16 @@ OUTER: |
|
|
|
|
|
|
|
|
|
|
|
v.errs = append(v.errs, |
|
|
|
v.errs = append(v.errs, |
|
|
|
&fieldError{ |
|
|
|
&fieldError{ |
|
|
|
tag: ct.aliasTag, |
|
|
|
tag: ct.aliasTag, |
|
|
|
actualTag: ct.actualAliasTag, |
|
|
|
actualTag: ct.actualAliasTag, |
|
|
|
ns: v.str1, |
|
|
|
ns: v.str1, |
|
|
|
structNs: v.str2, |
|
|
|
structNs: v.str2, |
|
|
|
field: cf.altName, |
|
|
|
fieldLen: len(cf.altName), |
|
|
|
structField: cf.name, |
|
|
|
structfieldLen: len(cf.name), |
|
|
|
value: current.Interface(), |
|
|
|
value: current.Interface(), |
|
|
|
param: ct.param, |
|
|
|
param: ct.param, |
|
|
|
kind: kind, |
|
|
|
kind: kind, |
|
|
|
typ: typ, |
|
|
|
typ: typ, |
|
|
|
}, |
|
|
|
}, |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
@ -342,16 +342,16 @@ OUTER: |
|
|
|
|
|
|
|
|
|
|
|
v.errs = append(v.errs, |
|
|
|
v.errs = append(v.errs, |
|
|
|
&fieldError{ |
|
|
|
&fieldError{ |
|
|
|
tag: tVal, |
|
|
|
tag: tVal, |
|
|
|
actualTag: tVal, |
|
|
|
actualTag: tVal, |
|
|
|
ns: v.str1, |
|
|
|
ns: v.str1, |
|
|
|
structNs: v.str2, |
|
|
|
structNs: v.str2, |
|
|
|
field: cf.altName, |
|
|
|
fieldLen: len(cf.altName), |
|
|
|
structField: cf.name, |
|
|
|
structfieldLen: len(cf.name), |
|
|
|
value: current.Interface(), |
|
|
|
value: current.Interface(), |
|
|
|
param: ct.param, |
|
|
|
param: ct.param, |
|
|
|
kind: kind, |
|
|
|
kind: kind, |
|
|
|
typ: typ, |
|
|
|
typ: typ, |
|
|
|
}, |
|
|
|
}, |
|
|
|
) |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
@ -381,16 +381,16 @@ OUTER: |
|
|
|
|
|
|
|
|
|
|
|
v.errs = append(v.errs, |
|
|
|
v.errs = append(v.errs, |
|
|
|
&fieldError{ |
|
|
|
&fieldError{ |
|
|
|
tag: ct.aliasTag, |
|
|
|
tag: ct.aliasTag, |
|
|
|
actualTag: ct.tag, |
|
|
|
actualTag: ct.tag, |
|
|
|
ns: v.str1, |
|
|
|
ns: v.str1, |
|
|
|
structNs: v.str2, |
|
|
|
structNs: v.str2, |
|
|
|
field: cf.altName, |
|
|
|
fieldLen: len(cf.altName), |
|
|
|
structField: cf.name, |
|
|
|
structfieldLen: len(cf.name), |
|
|
|
value: current.Interface(), |
|
|
|
value: current.Interface(), |
|
|
|
param: ct.param, |
|
|
|
param: ct.param, |
|
|
|
kind: kind, |
|
|
|
kind: kind, |
|
|
|
typ: typ, |
|
|
|
typ: typ, |
|
|
|
}, |
|
|
|
}, |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|