Hi,
I was wondering, is there a way when defining CodingKeys to omit having to define a case for every property, ideally I would just want to override
the property in question and leave the others as their default.
struct MyStruct: Decodable {
let subjectId: String
let name: String
let dob: String
enum CodingKeys: String, CodingKey {
case subjectId = "SubjectIdentifier"
}
}
The above does not compile unless I add the remaining cases for name
and dob