So let's say I have a Codable type like so:
struct MyCodable {
let name: String
let value: Int
}
Presumably, the compiler should generate a set of coding keys like so:
enum CodingKeys: String, CodingKey {
case name
case value
}
Is there any way to query these coding keys?
For instance, I would like to be able to do the following:
for key in MyCodable.CodkingKeys.allCases {
print(key)
}
Is this possible?