Is possible to configure the deserializer? For instance specify a type data decoding strategy.
I added
decoder.dateDecodingStrategy = .iso8601
around here:
|
return try JSONDecoder().decode(T.self, from: data) |
but that's a hack. I was wondering if it's possible to do so in a better way.
Is possible to configure the deserializer? For instance specify a type data decoding strategy.
I added
decoder.dateDecodingStrategy = .iso8601around here:
SwiftRestRequests/Sources/SwiftRestRequests/Deserializer.swift
Line 51 in 1f91577
but that's a hack. I was wondering if it's possible to do so in a better way.