Skip to content

Conversation

@LionKing2303
Copy link

@LionKing2303 LionKing2303 commented Jul 1, 2020

Added support for default value to overcome decoding errors when we have missing fields, null fields or key-changed fields.

…ave missing fields, null fields or key-changed fields.

This support is only for decode with string key.
If you like my solution then I'll make it also for AnyDateFormatter.
@LionKing2303
Copy link
Author

Hi John!
I don't understand why the CI check failed, I added 2 tests and they passed.
I hope you can look that up.
I'm so excited to be contributing!!

@LionKing2303
Copy link
Author

Also, my changes were based on my Medium article.
https://medium.com/@LionKing2303/avoid-json-surprises-with-codable-d2f6e2978a2e
I'll be thrilled to know that you read it.

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.

1 participant