forked from Mirrors/jsonapi
Make nested struct pointers work
This commit is contained in:
parent
b28beab7f3
commit
16e19ab9f9
|
@ -542,6 +542,10 @@ func handlePointer(attribute interface{}, args []string, fieldType reflect.Type,
|
|||
concreteVal = reflect.ValueOf(&cVal)
|
||||
case uintptr:
|
||||
concreteVal = reflect.ValueOf(&cVal)
|
||||
case map[string]interface{}:
|
||||
var err error
|
||||
concreteVal, err = handleStruct(attribute, args, fieldType, fieldValue)
|
||||
return concreteVal.Elem(), err
|
||||
default:
|
||||
return reflect.Value{}, ErrUnsupportedPtrType
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue