]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commit
✨ Add better JSON decode error handling, improve feedback for client after invalid...
authorAviram Hassan <41201924+aviramha@users.noreply.github.com>
Sat, 13 Jun 2020 12:33:27 +0000 (15:33 +0300)
committerGitHub <noreply@github.com>
Sat, 13 Jun 2020 12:33:27 +0000 (14:33 +0200)
commitb13a4baf32514d7197ca555a563e91ec8422d9d7
tree421e7c58d21c798f677b15a46dc3c66a78bf9d1c
parent5ffa18f10faaec2dc1f7acb96bba5ab52429f12f
✨ Add better JSON decode error handling, improve feedback for client after invalid JSON requests  (#1354)

* Request body error, raise RequestValidationError instead of HTTPException in case JSON decode failure

* add missing test case for body general exception
fastapi/routing.py
tests/test_tutorial/test_body/test_tutorial001.py