🐛 Fix allow_inf_nan option for Param and Body classes#11867
🐛 Fix allow_inf_nan option for Param and Body classes#11867tiangolo merged 9 commits intofastapi:masterfrom
allow_inf_nan option for Param and Body classes#11867Conversation
80d2034 to
4cf5c18
Compare
f79870a to
ca5af76
Compare
|
Duplicates existing PR: https://github.com/tiangolo/fastapi/pull/11579/files |
I see, but that one is missing one occurence, the problem happens for Params and Body class |
30957ae to
a75749a
Compare
3403c6d to
19f23c5
Compare
allow_inf_nan options for Param and Body classes
allow_inf_nan options for Param and Body classesallow_inf_nan option for Param and Body classes
There was a problem hiding this comment.
Thanks @giunio-prc for the contribution, and @YuriiMotov for the review and link to the related PR 🙏
I can confirm that this bug occurs on master and should be fixed with this PR. In addition to the fix in the original PR #11579, this one also fixes a similar issue with Body, 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 from master. Thanks to @pat-lasswell as well for the original report and PR! 🎉
|
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>
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