cloudant / swift-cloudant

A Swift Lang client for Cloudant and CouchDB
Apache License 2.0
42 stars 20 forks source link

Support for Codable with Swift 4? #169

Closed jthomas closed 2 years ago

jthomas commented 6 years ago

Are there plans to update the API to support types with Codable support? https://grokswift.com/json-swift-4/

This would allow developers to pass native types to the create APIs rather than a raw dictonary. It could also be used with generics to automatically deserialise JSON to types from the read APIs.

tomblench commented 6 years ago

Thanks for bringing this to our attention, this looks like the right way to do (de)serialisation.

We'll prioritise onto our backlog but beware that work for our other client libraries may take priority.

ricellis commented 2 years ago

This library is now end-of-life and this issue won't be fixed. This issue has been tagged EOL in case any forks want to import it.