This repository has been archived by the owner on May 10, 2023. It is now read-only.
Failed to serialize Requestable Model #14
Comments
Can you also paste the Requestable class you have written to construct this service ? |
|
If your api returns an Array. You need to use Array of Dictionary as your ResponseModel
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
fatal error: ResponseSerializer failed to serialize the response to Requestable Model of type Dictionary<String, Any>:Restofire/Sources/AlamofireUtils.swift, line 110
I took this error in JSON starts and ends with "[]" like arrays. g.e.
[ {
"name": ""
},
{
"name":""
}]
but it works perfectly in "{}" response. g.e.
{
"name":""
}
Is this problem related with Restofire or Alamofire?
edit: I tested with Alamofire's standart API, it works perfectly. I think the problem related with Restofire's itself. I sent email as complete response that fails to serialize.
The text was updated successfully, but these errors were encountered: