|
|
@ -223,11 +223,11 @@ func (u *Unmarshaler) fillSliceFromString(fieldType reflect.Type, value reflect.
|
|
|
|
switch v := mapValue.(type) {
|
|
|
|
switch v := mapValue.(type) {
|
|
|
|
case fmt.Stringer:
|
|
|
|
case fmt.Stringer:
|
|
|
|
if err := jsonx.UnmarshalFromString(v.String(), &slice); err != nil {
|
|
|
|
if err := jsonx.UnmarshalFromString(v.String(), &slice); err != nil {
|
|
|
|
return err
|
|
|
|
return fmt.Errorf("fullName: `%s`, error: `%w`", fullName, err)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case string:
|
|
|
|
case string:
|
|
|
|
if err := jsonx.UnmarshalFromString(v, &slice); err != nil {
|
|
|
|
if err := jsonx.UnmarshalFromString(v, &slice); err != nil {
|
|
|
|
return err
|
|
|
|
return fmt.Errorf("fullName: `%s`, error: `%w`", fullName, err)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
return errUnsupportedType
|
|
|
|
return errUnsupportedType
|
|
|
|