-
Notifications
You must be signed in to change notification settings - Fork 412
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
Improve Endpoint API BadRequest
handling
#2650
Comments
This would be extremely valuable 👍 |
I think we need two changes:
|
@jdegoes sounds good to me. I would still have a variant of that 2. operator that just logs the codec errors in a standard way. Will be helpful in development. |
All right, so we have:
The operators should be defined probably on |
/bounty $250 |
💎 $250 bounty created by ZIO 👉 Add a bounty • Share on socials
|
/attempt #2650
|
@987Nabil: Reminder that in 7 days the bounty will become up for grabs, so please submit a pull request before then 🙏 |
/attempt #2650
|
The bounty is up for grabs! Everyone is welcome to |
/attempt #2650 still on it. |
💡 @987Nabil submitted a pull request that claims the bounty. You can visit your bounty board to reward. |
…) (#2714) * Explicit and customizable error messages for Endpoint BadRequest (#2650) * Update zio-http/shared/src/main/scala/zio/http/codec/BinaryCodecWithSchema.scala Co-authored-by: John A. De Goes <[email protected]> * Review changes * Integrate changes from main --------- Co-authored-by: John A. De Goes <[email protected]>
🎉🎈 @987Nabil has been awarded $250! 🎈🎊 |
Currently we only return a http 400, if the endpoint API can't decode the request. That is not very helpful to the user/dev. They can't know what exactly went wrong.
Improvement
The text was updated successfully, but these errors were encountered: