Open kober32 opened 5 months ago
We now expect dates to be in format iso8601, but the default iOS implementation fails to decode various formats that are valid.
iso8601
we should do a custom deserialization where we try to deserialize and if the deserialization fails, we should try custom deserialization.
We can inspire here: https://stackoverflow.com/questions/46537790/iso8601-date-json-decoding-using-swift4
Code link: https://github.com/wultra/networking-apple/blob/develop/Sources/WultraPowerauthNetworking/WPNHttpRequest.swift#L21
We now expect dates to be in format
iso8601
, but the default iOS implementation fails to decode various formats that are valid.we should do a custom deserialization where we try to deserialize and if the deserialization fails, we should try custom deserialization.
We can inspire here: https://stackoverflow.com/questions/46537790/iso8601-date-json-decoding-using-swift4