Right now when conforming a type to Codable the compiler auto syntesizes the CodingKeys. However, if you conform to either Encodable or Decodable, this does not happen.
I think it'd be a great addition to have the auto synthesised CodingKeys also when not conforming to both Encodable and Decodable.
The text was updated successfully, but these errors were encountered:
SE-0166 says: Types conforming to Encodable whose properties are all Encodable get an automatically generated String-backed CodingKey enum mapping properties to case names. Similarly for Decodable types whose properties are all Decodable
So this could maybe considered a bug fix which doesn't require an evolution proposal?
Additional Detail from JIRA
md5: ea038e2f6a5b30bf37c1cd332016a054
Issue Description:
Right now when conforming a type to Codable the compiler auto syntesizes the CodingKeys. However, if you conform to either Encodable or Decodable, this does not happen.
I think it'd be a great addition to have the auto synthesised CodingKeys also when not conforming to both Encodable and Decodable.
The text was updated successfully, but these errors were encountered: