[SR-11145] Also synthesise default CodingKeys when only conforming to Encodable OR Decodable #53541
Labels
Codable
Area → standard library: `Codable` and co.
compiler
The Swift compiler in itself
improvement
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: