Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Comments

Starlette #493 workaround#195

Merged
tiangolo merged 1 commit intofastapi:masterfrom
ricardomomm:master
May 15, 2019
Merged

Starlette #493 workaround#195
tiangolo merged 1 commit intofastapi:masterfrom
ricardomomm:master

Conversation

@ricardomomm
Copy link
Contributor

Hi@tiangolo , I'm creating this PR to workaround an issue with Starlette (Kludex/starlette#493) that avoid developers from reading the Request.Body inside a Middleware or Exception Handler, in my specific case I need to get the original content from body when a JSON deserialization generates an error, with the change bellow I'm able to retrieve the original exception and thus the original content that FastApi tried to parse. It is a really small change that I see no harm.

While it help me it also provides better exception handling for other developers.

@codecov
Copy link

codecovbot commentedApr 30, 2019
edited
Loading

Codecov Report

Merging#195 intomaster willnot change coverage.
The diff coverage isn/a.

Impacted file tree graph

@@          Coverage Diff          @@##           master   #195   +/-   ##=====================================  Coverage     100%   100%           =====================================  Files         170    170             Lines        4122   4122           =====================================  Hits         4122   4122
Impacted FilesCoverage Δ
fastapi/routing.py100% <ø> (ø)⬆️

Continue to review full report at Codecov.

Legend -Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing data
Powered byCodecov. Last updated03678d...bc2d514. Read thecomment docs.

@tiangolo
Copy link
Member

Thanks! I'll check it soon.

@tiangolotiangolo merged commitb0b88f9 intofastapi:masterMay 15, 2019
@tiangolo
Copy link
Member

Thanks! Merged and released in FastAPI version0.21.0. 🎉 🍰

lmignon pushed a commit to acsone/fastapi that referenced this pull requestSep 19, 2024
FIX: double specification on requirements
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@ricardomomm@tiangolo

[8]ページ先頭

©2009-2026 Movatter.jp