forked from Mirrors/jsonapi
Merge pull request #4 from msabramo/fix-test-failures
Fix test failures
This commit is contained in:
commit
e428b86c25
|
@ -558,6 +558,9 @@ func handlePointer(attribute interface{}, args []string, fieldType reflect.Type,
|
|||
case map[string]interface{}:
|
||||
var err error
|
||||
concreteVal, err = handleStruct(attribute, args, fieldType, fieldValue)
|
||||
if err != nil {
|
||||
return reflect.Value{}, ErrUnsupportedPtrType(reflect.ValueOf(attribute), fieldType, structField)
|
||||
}
|
||||
return concreteVal.Elem(), err
|
||||
default:
|
||||
return reflect.Value{}, ErrUnsupportedPtrType(reflect.ValueOf(attribute), fieldType, structField)
|
||||
|
|
Loading…
Reference in New Issue