zio / zio-schema

Compositional, type-safe schema definitions, which enable auto-derivation of codecs and migrations.
https://zio.dev/zio-schema
Apache License 2.0
141 stars 161 forks source link

Json Codec: Read missing field as empty collection #664

Closed 987Nabil closed 2 weeks ago

987Nabil commented 7 months ago

Currently, if a field that is a collection is missing, that will lead to a decoding error.

Either by default or configurable, if a field that is a collection is missing, we should just return an empty collection.

jdegoes commented 3 months ago

/bounty $75

algora-pbc[bot] commented 3 months ago

💎 $75 bounty • ZIO

Steps to solve:

  1. Start working: Comment /attempt #664 with your implementation plan
  2. Submit work: Create a pull request including /claim #664 in the PR body to claim the bounty
  3. Receive payment: 100% of the bounty is received 2-5 days post-reward. Make sure you are eligible for payouts

Thank you for contributing to zio/zio-schema!

Add a bounty • Share on socials

Attempt Started (GMT+0) Solution
🟢 @onyedikachi-david Jun 8, 2024, 9:54:26 PM #688
🟢 @juliano #741
onyedikachi-david commented 3 months ago

/attempt #664

Algora profile Completed bounties Tech Active attempts Options
@onyedikachi-david 2 bounties from 1 project
JavaScript, Shell
Cancel attempt
algora-pbc[bot] commented 3 months ago

💡 @onyedikachi-david submitted a pull request that claims the bounty. You can visit your bounty board to reward.

algora-pbc[bot] commented 2 weeks ago

💡 @juliano submitted a pull request that claims the bounty. You can visit your bounty board to reward.

algora-pbc[bot] commented 2 weeks ago

🎉🎈 @juliano has been awarded $75! 🎈🎊