118 Commits (731b93202c6c5865875b39e8c2ee61a80d930032)

Author SHA1 Message Date
pre-commit-ci[bot] 731b93202c 🎨 [pre-commit.ci] Auto format from pre-commit.com hooks 2 weeks ago
Patrick Arminio 9d0d8828cc
🐛 Fix support for unions when using `Form` (#13827) 1 month ago
Sebastián Ramírez 2537d9d1c2
🐛 Fix `convert_underscores=False` for header Pydantic models (#13515) 4 months ago
dependabot[bot] 8c94e97c89
⬆ Bump ruff to 0.9.4 (#13299) 5 months ago
Sebastián Ramírez 74fe89bf35
🐛 Add docs examples and tests (support) for `Annotated` custom validations, like `AfterValidator`, revert #13440 (#13442) 5 months ago
Victorien 15dd2b67d3
♻️ Update internal annotation usage for compatibilty with Pydantic 2.11 (#13314) 5 months ago
Nir Schulman 8a5c3fe56b Fixed more linting 9 months ago
pre-commit-ci[bot] f9ca77e1ec 🎨 [pre-commit.ci] Auto format from pre-commit.com hooks 9 months ago
Nir Schulman 01e9da1ca2 Added coverage 9 months ago
Nir Schulman d512b03bd3 Applied ruff linting 9 months ago
Nir Schulman c4860bfb7c Added tests for dependency overrides and websockets. Fixed bugs related to the deprecated startup and shutdown events. Fixed bugs related to dependency duplcatation within the same router scope. Made more specific dependency related exceptions. Fixed some linting and mypy related issues. 9 months ago
Sebastián Ramírez b31cbbf5f5
♻️ Update logic to import and check `python-multipart` for compatibility with newer version (#12627) 9 months ago
pre-commit-ci[bot] 54ecfb87d8 🎨 [pre-commit.ci] Auto format from pre-commit.com hooks 9 months ago
Nir Schulman 25407d039a Added support for lifespan-scoped dependencies using a new dependency_scope argument. 9 months ago
José Pacheco 8ae4603d68
🐛 Remove `Required` shadowing from fastapi using Pydantic v2 (#12197) 10 months ago
Sebastián Ramírez 40490abaa3
♻️ Update type annotations for improved `python-multipart` (#12407) 10 months ago
Sebastián Ramírez 55035f440b
Add support for Pydantic models for parameters using `Query`, `Cookie`, `Header` (#12199) 11 months ago
Nico Tonnhofer 88d4f2cb18
🐛 Fix form field regression (#12194) 11 months ago
Sebastián Ramírez b0eedbb580
️ Improve performance in request body parsing with a cache for internal model fields (#12184) 11 months ago
Sebastián Ramírez 4633b1bca9
Add support for forbidding extra form fields with Pydantic models (#12134) 11 months ago
Sebastián Ramírez 7bad7c0975
Add support for Pydantic models in `Form` parameters (#12129) 11 months ago
Sebastián Ramírez 8e6cf9ee9c
️ Temporarily revert " Add support for Pydantic models in `Form` parameters" to make a checkpoint release (#12128) 11 months ago
Sebastián Ramírez 0f3e65b007
Add support for Pydantic models in `Form` parameters (#12127) 11 months 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) 11 months ago
Sebastián Ramírez 23bda0ffeb
♻️ Refactor internal `check_file_field()`, rename to `ensure_multipart_is_installed()` to clarify its purpose (#12106) 11 months ago
Sebastián Ramírez d08b95ea57
♻️ Rename internal `create_response_field()` to `create_model_field()` as it's used for more than response models (#12103) 11 months ago
Sebastián Ramírez 5b7fa3900e
♻️ Refactor and simplify internal data from `solve_dependencies()` using dataclasses (#12100) 11 months ago
Sebastián Ramírez 08547e1d57
♻️ Refactor and simplify internal `analyze_param()` to structure data with dataclasses instead of tuple (#12099) 11 months ago
Sebastián Ramírez 581aacc4a9
♻️ Refactor and simplify dependencies data structures with dataclasses (#12098) 11 months ago
Sebastián Ramírez 3a3ad5d66d
⬆️ Upgrade version of Ruff and reformat (#12032) 12 months ago
Nadav Zingerman eec612ca8d
🐛 Fix parameterless `Depends()` with generics (#9479) 1 year ago
Charlie Marsh 5ccc869fee
⬆️ Upgrade configuration for Ruff v0.2.0 (#11075) 1 year ago
Sebastián Ramírez a4aa79e0b4
Add support for raising exceptions (including `HTTPException`) in dependencies with `yield` in the exit code, do not support them in background tasks (#10831) 2 years ago
Sebastián Ramírez 6f5aa81c07
Add support for multiple Annotated annotations, e.g. `Annotated[str, Field(), Query()]` (#10773) 2 years ago
Sebastián Ramírez 05ca41cfd1
Add reference (code API) docs with PEP 727, add subclass with custom docstrings for `BackgroundTasks`, refactor docs structure (#10392) 2 years ago
Sebastián Ramírez 0976185af9
Add support for Pydantic v2 (#9816) 2 years ago
Sharon Yogev fdf66c825e
🐛 Fix using `Annotated` in routers or path operations decorated multiple times (#9315) 2 years ago
Nadav Zingerman 375513f114
Add support for PEP-593 `Annotated` for specifying dependencies and parameters (#4871) 2 years ago
pre-commit-ci[bot] f04b61bd16
⬆ [pre-commit.ci] pre-commit autoupdate (#5709) 2 years ago
Yurii Karabas d0573f5713
Add support for function return type annotations to declare the `response_model` (#1436) 3 years ago
Sebastián Ramírez 7c5626bef7
⬆️ Upgrade Ruff (#5698) 3 years ago
Sebastián Ramírez fa74093440
Use Ruff for linting (#5630) 3 years ago
Sebastián Ramírez 74ce2204ae
⬆️ Upgrade mypy and tweak internal type annotations (#5398) 3 years ago
Ofek Lev 4267bd1f4f
🔧 Update package metadata, drop support for Python 3.6, move build internals from Flit to Hatch (#5240) 3 years ago
Muzaffer Cikay c8124496fc
♻ Simplify conditional assignment in `fastapi/dependencies/utils.py` (#4597) 3 years ago
juntatalor ca2fae0588
Add support for `FrozenSet` in parameters (e.g. query) (#2938) 3 years ago
laggardkernel b993b4af28
🐛 Fix cached dependencies when using a dependency in `Security()` and other places (e.g. `Depends()`) with different OAuth2 scopes (#2945) 3 years ago
Sebastián Ramírez 9262fa8362
Add support for not needing `...` as default value in required Query(), Path(), Header(), etc. (#4906) 3 years ago
Marcelo Trylesinski 33d61430cf
⬆ Upgrade Starlette from 0.17.1 to 0.18.0 (#4483) 3 years ago
Sebastián Ramírez 1bf55200a9
Add support for declaring `UploadFile` parameters without explicit `File()` (#4469) 4 years ago