Open guersam opened 4 months ago
/bounty $75
/attempt #712
with your implementation plan/claim #712
in the PR body to claim the bountyThank you for contributing to zio/zio-schema!
Add a bounty • Share on socials
Attempt | Started (GMT+0) | Solution |
---|---|---|
🟢 @ImBIOS | Aug 7, 2024, 3:12:17 PM | #724 |
🔴 @Karfue | Aug 23, 2024, 11:41:17 AM | WIP |
/attempt #712
JsonDecoder
object, modify the decode method to check for any remaining non-whitespace characters after parsing is complete. If any are found, it should return an error.Lexer
object), add a check to ensure there are no extra quotes after the closing quote of a string.💡 @ImBIOS submitted a pull request that claims the bounty. You can visit your bounty board to reward.
/attempt #712 The inferSchema method is not correctly handling optional fields in case classes. This needs to be addressed to ensure that optional fields are properly recognized and handled.
Update the method to correctly identify and handle optional fields. This involves checking if a field’s type is an Option and adjusting the schema accordingly.
Objective: Ensure optional fields are recognized. Approach: Use reflection to check if a field’s type is an Option. Update the schema to reflect this.
[!NOTE] The user @ImBIOS is already attempting to complete issue #712 and claim the bounty. We recommend checking in on @ImBIOS's progress, and potentially collaborating, before starting a new solution.
@Karfue: Reminder that in 7 days the bounty will become up for grabs, so please submit a pull request before then 🙏
The JSON codec accepts malformed JSON strings like
{}}
,"foo""
without error.Reproducer: https://scastie.scala-lang.org/guersam/IFS2CO8dRGiNpsQhId3u3A/5