Not sure if I'm doing something wrong, but I have a request whose response is a simple array of dictionaries and it fails to map. I have resolved this by adding a line to ApiForm.swift (line 286):
if let arrayData = data as? [AnyObject] { return arrayData }
but I'm not sure if this is correct. Without this it's always trying to handle the response as a dictionary so it fails out.
Not sure if I'm doing something wrong, but I have a request whose response is a simple array of dictionaries and it fails to map. I have resolved this by adding a line to ApiForm.swift (line 286):
but I'm not sure if this is correct. Without this it's always trying to handle the response as a dictionary so it fails out.