-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
Enhancement Proposal: Generalized DI system #3641
Conversation
I believe tbe original request in #3620 also be made to work by having a dependency scope that goes out of scope before the request is returned (in addition to the default/current which goes out of scope after the request is returned) |
It derives from this issue raised in the discussions where exceptions are raised in the Depends - for instance, pydantic validation errors coming from BaseModel Query parmeters #3426 (reply in thread) |
I think I understand. Truth be told, that seems like a bug in FastAPI exception handling or an unsupported feature, depending on how you look at it. This proposal may help in cleaning up the implementations, which might indirectly help with that issue, but since this proposal doesn't say anything about exception handling, I don't think it directly addresses that issue |
Seems like #3902 and #639 are also related. |
Relevant discussion: #4035 |
A high-level proposal for enhancements to the DI system.