When requesting a ride through the SDK the Ride fails to decode for me in the Sandbox.
In particular if fails to decode the smsNumber of the driver as it's null for the test rides i generate.
It's this line: smsNumber = try container.decode(String.self, forKey: .smsNumber)
I 'fixed' it by replacing it with an optional decode but I'm not sure if that's the way you want to handle it.
First off thanks for the SDK.
When requesting a ride through the SDK the Ride fails to decode for me in the Sandbox. In particular if fails to decode the smsNumber of the driver as it's null for the test rides i generate.
It's this line:
smsNumber = try container.decode(String.self, forKey: .smsNumber)
I 'fixed' it by replacing it with an optional decode but I'm not sure if that's the way you want to handle it.
smsNumber = try container.decodeIfPresent(String.self, forKey: .smsNumber) ?? ""
Sample response from server for
https://sandbox-api.uber.com/v1.2/requests/current
.