146 Commits (d1ceaa7a73ada62c46a81516a75d8cc65ff14b1c)

Author SHA1 Message Date
Sebastián Ramírez cad6880fd9
⬆️ Upgrade Starlette supported version range to `>=0.40.0,<0.48.0` (#13884) 3 weeks ago
Timon 97fdbdd0d8
📝 Update exclude-parameters-from-openapi documentation links (#13600) 2 months ago
dependabot[bot] 8c94e97c89
⬆ Bump ruff to 0.9.4 (#13299) 5 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
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
Felix Fanghaenel e049fc4ea1
🐛 Fix openapi generation with responses kwarg (#10895) 10 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 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
Pastukhov Nikita 3a4ac24675
🐛 Ensure that `app.include_router` merges nested lifespans (#9630) 11 months ago
Sebastián Ramírez 3a3ad5d66d
⬆️ Upgrade version of Ruff and reformat (#12032) 12 months ago
Aleksei Kotenko 9c80842cea
♻️ Update mypy (#11049) 1 year ago
Sebastián Ramírez bf771bd781
🐛 Fix unhandled growing memory for internal server errors, refactor dependencies with `yield` and `except` to require raising again as in regular Python (#11191) 1 year ago
Sepehr Shirkhanlu 60e1259ca4
✏️ Fix typo in `fastapi/routing.py` (#10520) 2 years 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 c13aa9ed5f
🔥 Remove unnecessary duplicated docstrings (#10484) 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
ElliottLarsen 5e59acd35b
✏️ Fix typos in comments on internal code in `fastapi/concurrency.py` and `fastapi/routing.py` (#9590) 2 years ago
Sebastián Ramírez 19a2c3bb54
Enable Pydantic's serialization mode for responses, add support for Pydantic's `computed_field`, better OpenAPI for response models, proper required attributes, better generated clients (#10011) 2 years ago
Sebastián Ramírez 0976185af9
Add support for Pydantic v2 (#9816) 2 years ago
Sebastián Ramírez 7167c77a18
⬆️ Upgrade and fully migrate to Ruff, remove isort, includes a couple of tweaks suggested by the new version of Ruff (#9660) 2 years ago
Paulo Costa d8b8f211e8
Add support for `dependencies` in WebSocket routes (#4534) 2 years ago
Kristján Valur Jónsson ab03f22635
Add exception handler for `WebSocketRequestValidationError` (which also allows to override it) (#6030) 2 years ago
Sebastián Ramírez 25aabe05ce
🎨 Fix types for lifespan, upgrade Starlette to 0.26.1 (#9245) 2 years ago
pre-commit-ci[bot] f04b61bd16
⬆ [pre-commit.ci] pre-commit autoupdate (#5709) 2 years ago
Sebastián Ramírez 8a4cfa52af
⬆️ Upgrade Starlette version, support new `lifespan` with state (#9239) 2 years ago
Jordan Speicher cc9a73c3f8
Add support for `lifespan` async context managers (superseding `startup` and `shutdown` events) (#2944) 2 years ago
Marcelo Trylesinski 9293795e99
⬆️ Bump Starlette from 0.22.0 to 0.23.0 (#5739) 3 years ago
Marcelo Trylesinski fba7493042
🐛 Ignore Response classes on return annotation (#5855) 3 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 fa74093440
Use Ruff for linting (#5630) 3 years ago
Adrian Garcia Badaracco ac9f56ea5e
🐛 Close FormData (uploaded files) after the request is done (#5465) 3 years ago
Sebastián Ramírez 74ce2204ae
⬆️ Upgrade mypy and tweak internal type annotations (#5398) 3 years ago
Thomas Meckel 0b4fe10c8f
🐛 Fix empty reponse body when default `status_code` is empty but the a `Response` parameter with `response.status_code` is set (#5360) 3 years ago
David Brochart d8b6aa630c
🐛 Fix support for path parameters in WebSockets (#3879) 3 years ago
Andy Challis eb3ab337ab
Allow custom middlewares to raise `HTTPException`s and propagate them (#2036) 3 years ago
Sidharth Ajithkumar 9359a8d65f
Preserve `json.JSONDecodeError` information when handling invalid JSON in request body, to support custom exception handlers that use its information (#4057) 3 years ago
Andrey Semakin f6808e76dc
♻ Strip empty whitespace from description extracted from docstrings (#2821) 3 years ago
Sebastián Ramírez e7b1b96a54
🎨 Update type annotations for `response_model`, allow things like `Union[str, None]` (#5294) 3 years ago
Sebastián Ramírez c43120258f
🐛 Fix removing body from status codes that do not support it (#5145) 3 years ago
Sebastián Ramírez 9cae3cdb09
🔧 Add Python formatting hooks to pre-commit (#4890) 3 years ago
Marcelo Trylesinski f396912043
⬆ Upgrade Starlette from 0.19.0 to 0.19.1 (#4819) 3 years ago
Marcelo Trylesinski 33d61430cf
⬆ Upgrade Starlette from 0.17.1 to 0.18.0 (#4483) 3 years ago
Marcelo Trylesinski d81c908132
🐛 Fix support for prefix on APIRouter WebSockets (#2640) 3 years ago
Sebastián Ramírez 8a0d4c79c1
Add support for custom `generate_unique_id_function` and docs for generating clients (#4650) 3 years ago
Sebastián Ramírez f5d7df3c6c
Include route in scope to allow middleware and other tools to extract its information (#4603) 3 years ago
Sebastián Ramírez 569afb4378
Add support for tags with Enums (#4468) 4 years ago