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

Respekt default annotations on primitive schemas #715

Closed 987Nabil closed 4 weeks ago

987Nabil commented 2 months ago

Currently, Schema[Int].annotate(fieldDefaultValue(5)) would result in a schema that would return 0 for a call of defaultValue instead of 5. We should fix this. Adding validation annotations for primitive schemas works for example.

jdegoes commented 1 month ago

/bounty $125

algora-pbc[bot] commented 1 month ago

💎 $125 bounty • ZIO

Steps to solve:

  1. Start working: Comment /attempt #715 with your implementation plan
  2. Submit work: Create a pull request including /claim #715 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
🟢 @987Nabil #733
algora-pbc[bot] commented 1 month ago

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

algora-pbc[bot] commented 4 weeks ago

🎉🎈 @987Nabil has been awarded $125! 🎈🎊