-
Notifications
You must be signed in to change notification settings - Fork 166
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
JsonCodec decoder accepts malformed JSON string with extra characters #712
Comments
/bounty $75 |
💎 $75 bounty • ZIOSteps to solve:
Thank you for contributing to zio/zio-schema! Add a bounty • Share on socials
|
/attempt #712 Problem
Potential Solutions
Options |
💡 @ImBIOS submitted a pull request that claims the bounty. You can visit your bounty board to reward. |
/attempt #712 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. Options |
@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
The text was updated successfully, but these errors were encountered: