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
135 stars 151 forks source link

`@fieldName` annotation breaks JsonCodec for 22+ field case classes #701

Closed 987Nabil closed 3 days ago

987Nabil commented 2 weeks ago

Adding the @fieldName annotation to the case class for the GenericRecord test in JsonCodecSpec

 case class RecordExample(
    @fieldName("$f1") f1: Option[String]

Leads to

Exception in thread "zio-fiber-914" zio.schema.codec.DecodeError$ReadError: (Field f1 is missing)
jdegoes commented 2 weeks ago

/bounty $100

algora-pbc[bot] commented 2 weeks ago

💎 $100 bounty • ZIO

Steps to solve:

  1. Start working: Comment /attempt #701 with your implementation plan
  2. Submit work: Create a pull request including /claim #701 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 #704
algora-pbc[bot] commented 2 days ago

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