Jun 23, 2021
If a model has a required property that the API doesn’t provide, then the API contract is broken. From a coding standpoint, Codable will fail and throw an error, which in turn would make the request fail.
If a model has a required property that the API doesn’t provide, then the API contract is broken. From a coding standpoint, Codable will fail and throw an error, which in turn would make the request fail.
I write about Apple, Swift, and SwiftUI in particular, and technology in general. I'm also a Lead iOS Engineer at InRhythm, a modern digital consulting firm.