8000 Make DTOs Codable by 0xifarouk · Pull Request #2 · fpseverino/apple-maps-kit · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Make DTOs Codable #2

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

Merged
merged 1 commit into from
Oct 11, 2024
Merged

Make DTOs Codable #2

merged 1 commit into from
Oct 11, 2024

Conversation

0xifarouk
Copy link
Contributor
@0xifarouk 0xifarouk commented Oct 11, 2024

Making DTOs Codable give the availability to encode or decode them in other frameworks, for example if you want to return the response directly as JSON in HB, you have to confirm to Encodable which is not an easy thing in Swift 6 since you need to do the encoding manually due to:

Extension outside of file declaring struct 'Place' prevents automatic synthesis of 'encode(to:)' for protocol 'Encodable'

@0xifarouk 0xifarouk mentioned this pull request Oct 11, 2024
@fpseverino fpseverino merged commit 27ba472 into fpseverino:main Oct 11, 2024
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

Successfully merging this pull request may close these issues.

2 participants
0