-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
✨ Add support for declaring UploadFile
parameters without explicit File()
#4469
Conversation
📝 Docs preview for commit 52efd58 at: https://61eda7ca0b769244610550d0--fastapi.netlify.app |
Codecov Report
@@ Coverage Diff @@
## master #4469 +/- ##
==========================================
Coverage 100.00% 100.00%
==========================================
Files 511 521 +10
Lines 12845 13078 +233
==========================================
+ Hits 12845 13078 +233
Continue to review full report at Codecov.
|
🚀 Deployed on https://61eda8d65e6fd016a7d81f90--fastapi.netlify.app |
…xplicit `File()` (fastapi#4469)" This reverts commit 1bf5520.
✨ Add support for declaring
UploadFile
parameters without explicitFile()
.For example, this is now supported:
This also updates
UploadFile
to declare its own JSON Schema, and removes the equivalent and no longer necessary utility function that did a workaround for that.This also includes docs and tests for the variations of
UploadFile
.