Skip to content
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

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

Closed
987Nabil opened this issue Jun 28, 2024 · 3 comments · Fixed by #704
Closed

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

987Nabil opened this issue Jun 28, 2024 · 3 comments · Fixed by #704

Comments

@987Nabil
Copy link
Contributor

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
Copy link
Member

jdegoes commented Jun 28, 2024

/bounty $100

Copy link

algora-pbc bot commented Jun 28, 2024

💎 $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 bountyShare on socials

Attempt Started (GMT+0) Solution
🟢 @987Nabil #704

Copy link

algora-pbc bot commented Jul 10, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants