(lldb) po dictionary["errors"] as? NSArray
nil
(lldb) po dictionary["errors"] as? NSMutableArray
nil
(lldb) po type(of: dictionary["errors"])
Swift.Optional<Any>
(lldb) po dictionary["errors"]
▿ Optional<Any>
▿ some : 1 element
▿ 0 : 2 elements
- key : detail
▿ value : 1 element
▿ 0 : 2 elements
- key : auth
▿ value : 1 element
- 0 : invalid email or password
My response payload contains the following error:
However Vox will always respond with
JSONAPIError.serialization
due to not casting the error array correctly: https://github.com/aronbalog/Vox/blob/master/Vox/Core/Class/Context.swift#L42