Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork8.7k
🐛 Fixallow_inf_nan option for Param and Body classes#11867
🐛 Fixallow_inf_nan option for Param and Body classes#11867tiangolo merged 9 commits intofastapi:masterfrom
allow_inf_nan option for Param and Body classes#11867Conversation
YuriiMotov commentedJul 19, 2024
Duplicates existing PR:https://github.com/tiangolo/fastapi/pull/11579/files |
giunio-prc commentedJul 19, 2024
I see, but that one is missing one occurence, the problem happens for Params and Body class |
allow_inf_nan options for Param and Body classesallow_inf_nan options for Param and Body classesallow_inf_nan option for Param and Body classes
svlandeg left a comment• edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Thanks@giunio-prc for the contribution, and@YuriiMotov for the review and link to the related PR 🙏
I can confirm that this bug occurs onmaster and should be fixed with this PR. In addition to the fix in the original PR#11579, this one also fixes a similar issue withBody, so I would prefer to merge this one and close the other. I've updated the unit tests here to include the cases from both PRs, I added parametrization and updated the PR with the latest frommaster. Thanks to@pat-lasswell as well for the original report and PR! 🎉
tiangolo commentedAug 24, 2024
Thanks for your contribution@giunio-prc! 🍰 Thanks for the extra info@YuriiMotov 🍫 And thanks for the help and tweaks@svlandeg! 🙇 This will be available in FastAPI |
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>Co-authored-by: svlandeg <svlandeg@github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>Co-authored-by: svlandeg <svlandeg@github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>Co-authored-by: svlandeg <svlandeg@github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>Co-authored-by: svlandeg <svlandeg@github.com>
Uh oh!
There was an error while loading.Please reload this page.
adjust typo causing allow_inf_nan to be ignored during paramter enforcing
I added the test from the issue page#11580 in a separate commit