Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Codable Support #27

Open
qalandarov opened this issue Aug 11, 2020 · 1 comment
Open

Codable Support #27

qalandarov opened this issue Aug 11, 2020 · 1 comment

Comments

@qalandarov
Copy link

Currently the library depends on SwiftyJSON and it would be nice to use native Codable

@alnacle
Copy link
Contributor

alnacle commented Oct 5, 2020

Hey! Thanks for bringing this up! I actually started to write a new version of the SDK almost from scratch using Codable, Generics and removing the SwiftyJSON dependency. You can find the progress of the work on my local repo (2.0.0 branch):

https://github.com/alnacle/amadeus-ios/tree/2.0.0

The response is now handled like:

response.data[0].itineraries[0].segments[0].arrival.iataCode

Feel free to send me your feedback :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants