29 Commits (85701631a0241c5f02b4940734a5428f66abe167)

Author SHA1 Message Date
Sebastián Ramírez 85701631a0
♻️ Make the result of `Depends()` and `Security()` hashable, as a workaround for other tools interacting with these internal parts (#14372) 7 months ago
Sebastián Ramírez ac438b9934
Add support for dependencies with scopes, support `scope="request"` for dependencies with `yield` that exit before the response is sent (#14262) 7 months ago
Sebastián Ramírez c144f9fbd3
♻️ Refactor internals of dependencies, simplify using dataclasses (#14254) 7 months ago
Colin Watson c970d8a735
👽️ Ensure compatibility with Pydantic 2.12.0 (#14036) 8 months ago
Sebastián Ramírez 91a929319c
♻️ Update internal checks to support Pydantic 2.10 (#12914) 2 years ago
Vaibhav b60d36e753
✏️ Fix typo in `fastapi/params.py` (#12143) 2 years ago
Sebastián Ramírez aa21814a89
♻️ Refactor deciding if `embed` body fields, do not overwrite fields, compute once per router, refactor internals in preparation for Pydantic models in `Form`, `Query` and others (#12117) 2 years ago
Giunio 51b625e127
🐛 Fix `allow_inf_nan` option for Param and Body classes (#11867) 2 years ago
Sebastián Ramírez 27da0d02a7
Add support for Pydantic's 2.7 new deprecated Field parameter, remove URL from validation errors response (#11461) 2 years ago
Sebastián Ramírez 1b714b3177
Add support for `openapi_examples` in all FastAPI parameters (#10152) 3 years ago
Russ Biggs bdd991244d
✏️ Fix typo in deprecation warnings in `fastapi/params.py` (#9854) 3 years ago
Sebastián Ramírez 0976185af9
Add support for Pydantic v2 (#9816) 3 years ago
Sebastián Ramírez 7dad5a820b
Add support for OpenAPI 3.1.0 (#9770) 3 years ago
Nadav Zingerman 375513f114
Add support for PEP-593 `Annotated` for specifying dependencies and parameters (#4871) 3 years ago
Sebastián Ramírez 9262fa8362
Add support for not needing `...` as default value in required Query(), Path(), Header(), etc. (#4906) 4 years ago
Mark ca5d57ea79
Allow hiding from OpenAPI (and Swagger UI) `Query`, `Cookie`, `Header`, and `Path` parameters (#3144) 4 years ago
Austin Orr e10a4375f9
Add support for adding multiple examples in request bodies and path, query, cookie, and header params (#1267) 5 years ago
Sebastián Ramírez fdb6c9ccc5
Improve type annotations, add support for mypy --strict, internally and for external packages (#2547) 6 years ago
Sebastián Ramírez e1758d107e
⬆ Require Pydantic > 1.0 (#1862) 6 years ago
Nima Mashhadi M. Reza 3223de5598
🎨 Add typing.Optional to variables that accept None as value (#1731) 6 years ago
Rupsi Kaushik 3699e17212
Implement __repr__ methods for path parameters to simplify debugging (#1560) 6 years ago
dmontagu ab2b86fe2c Add support for Pydantic v1 and above 🎉 (#646) 7 years ago
Sebastián Ramírez bff5dbbf5d
Implement dependency value cache per request (#292) 7 years ago
Sebastián Ramírez 748dc375db 🐛 Fix Form and File params must always be embeded 8 years ago
Sebastián Ramírez 948a39af95 🎨 Re-order parameters 8 years ago
Sebastián Ramírez db3c270f8e Update requests with body, rename params 8 years ago
Sebastián Ramírez 0e19c24014 Update parameter names and order 8 years ago
Sebastián Ramírez b9d912c638 ♻️ Refactor, fix and update code 8 years ago
Sebastián Ramírez 406c092a3b 🎉 Start tracking messy initial stage 8 years ago