92 Commits (319fea3781669a3cce17c92d8d3f93c218af77f9)

Author SHA1 Message Date
Synrom 319fea3781 📝 Add more documentation on `ignore_trailing_slash` 10 months ago
Synrom baccda3b29 Fix linting and formatting 10 months ago
Synrom 25accde3c6 Formatting 10 months ago
Synrom 6823cb4a20 Add docs, more tests and condition in middleware 10 months ago
Synrom b00fbd3427 Fix middleware and add tests 10 months ago
Synrom d4eaafb804 Add ignore_trailing_slashes flag to applications 10 months ago
Jamie Phan 659350e9cd
🎨 Fix typing annotation for semi-internal `FastAPI.add_api_route()` (#10240) 11 months ago
Petar Marić 817cc1d754
✏️ Fix typo in `fastapi/applications.py` (#11593) 1 year ago
Aleksei Kotenko 9c80842cea
♻️ Update mypy (#11049) 1 year ago
igeni ee6403212b
♻️ Simplify string format with f-strings in `fastapi/applications.py` (#11335) 1 year ago
Jacob Hayes 0880a5c6a0
✏️ Fix minor typo in `fastapi/applications.py` (#11099) 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 2e14c69c31
👷 Adopt Ruff format (#10517) 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
Ahsan Sheraz 9fc33f8565
✏️ Fix typos in comment in `fastapi/applications.py` (#10045) 2 years ago
Sebastián Ramírez ea43f227e5
Add support for disabling the separation of input and output JSON Schemas in OpenAPI with Pydantic v2 (#10145) 2 years ago
Sebastián Ramírez 0976185af9
Add support for Pydantic v2 (#9816) 2 years ago
Sebastián Ramírez 7dad5a820b
Add support for OpenAPI 3.1.0 (#9770) 2 years ago
cyberlis e94c13ce74
Add allow disabling `redirect_slashes` at the FastAPI app level (#3432) 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
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
Sebastián Ramírez d566c6cbca
⬆️ Upgrade Starlette version to `0.24.0` and refactor internals for compatibility (#5985) 2 years ago
Marcelo Trylesinski 9293795e99
⬆️ Bump Starlette from 0.22.0 to 0.23.0 (#5739) 2 years ago
Yurii Karabas d0573f5713
Add support for function return type annotations to declare the `response_model` (#1436) 3 years ago
Marcelo Trylesinski adcf03f2bc
⬆ Upgrade version required of Starlette from `0.19.1` to `0.20.4` (#4820) 3 years ago
Junghoon Yang 52b5b08910
♻ Internal small refactor, move `operation_id` parameter position in delete method for consistency with the code (#4474) 3 years ago
Sebastián Ramírez e7b1b96a54
🎨 Update type annotations for `response_model`, allow things like `Union[str, None]` (#5294) 3 years ago
Marcelo Trylesinski f396912043
⬆ Upgrade Starlette from 0.19.0 to 0.19.1 (#4819) 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 9d56a3cb59
Update internal `AsyncExitStack` to fix context for dependencies with `yield` (#4575) 3 years ago
Sebastián Ramírez 569afb4378
Add support for tags with Enums (#4468) 3 years ago
John Riebold a85aa125d2
Enable configuring Swagger UI parameters (#2568) 4 years ago
Edouard Lavery-Plante 836bb97a2d
Add support for extensions and updates to the OpenAPI schema in path operations (#1922) 4 years ago
dkreeft 6f45f43709
Add additonal OpenAPI metadata parameters to `FastAPI` class, shown on the automatic API docs UI (#1812) 4 years ago
Sebastián Ramírez dc5a966548
Allow setting the `response_class` to `RedirectResponse` and returning the URL from the function (#3457) 4 years ago
Sebastián Ramírez fdb6c9ccc5
Improve type annotations, add support for mypy --strict, internally and for external packages (#2547) 5 years ago
Sebastián Ramírez 313bbe802f
Add support for shared/top-level parameters (dependencies, tags, etc) (#2434) 5 years ago
Yurii Karabas 4ce18167e7
🐛 Fix bug overriding custom HTTPException and RequestValidationError from exception_handlers (#1924) 5 years ago
Sebastián Ramírez e1758d107e
⬆ Require Pydantic > 1.0 (#1862) 5 years ago
Yurii Karabas 55b9faeb48
♻ Simplify code syntax in several places (#1753) 5 years ago
Nima Mashhadi M. Reza 3223de5598
🎨 Add typing.Optional to variables that accept None as value (#1731) 5 years ago
Bar Harel f1c5330b65
🐛 Fix app.extra type annotation (#1659) 5 years ago
Rupsi Kaushik 70a51b3aff
Auto-generate OpenAPI servers from root_path (#1596) 5 years ago
Dmytro Petruk 39766d0f96
🐛 Fix link in warning logs (#1611) 5 years ago
mikaello b591de2ace
Add support for OpenAPI servers metadata (#1547) 5 years ago
Thomas Maschler a071ddf3cd
Add support for tag metadata in OpenAPI (#1348) 5 years ago