soto-project / soto

Swift SDK for AWS that works on Linux, macOS and iOS
https://soto.codes
Apache License 2.0
876 stars 83 forks source link

Make CognitoIdentityProvide.SignUpResponse Codable, rather than just Decodable. #531

Closed majortom64 closed 2 years ago

majortom64 commented 2 years ago

If it is Codable, it should work with an extension to make it Content.

adam-fowler commented 2 years ago

As I said on Discord I am not ready to do this. Making response structs Codable means generating more code and given the number of response structs in Soto that would be a large amount of code which in general is never used.

If you want to encode the data from the SignUpResponse move it into your own struct which is Codable.