Nir Schulman
73f56985aa
Fixed coverage
8 months ago
Nir Schulman
b7864a611c
Updated tutorial tests to only import for valid python versions
8 months ago
pre-commit-ci[bot]
17873cf291
🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
8 months ago
Nir Schulman
4df502eb99
Added missing decorator for python3.9 tests
8 months ago
pre-commit-ci[bot]
c7d4d10b75
🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
8 months ago
Nir Schulman
01dc24e77c
Added documentation for lifespan scoped dependencies
8 months ago
Tamir Duberstein
bf4fad1fda
♻️ Update tests and internals for compatibility with Pydantic >=2.10 ( #12971 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
8 months ago
Sebastián Ramírez
5c080d81ae
📝 Update includes for `docs/en/docs/tutorial/schema-extra-example.md` ( #12822 )
9 months ago
Nir Schulman
33f766ab9a
Yet another coverage fixes
9 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
pre-commit-ci[bot]
179d6534a8
🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
9 months ago
Nir Schulman
3b27561d3d
Fixed tests having incorrect ids. Fixed an inconsistent results for tests which check websocket-scoped teardowns before the teardown actually happened on the server side.
9 months ago
Nir Schulman
d38364a2f0
Fixed tests compatibility with python 3.8
9 months ago
Nir Schulman
6c923ac4ec
Fixed usage of warnings.catch_warnings in a way that is not compatible with older python versions
9 months ago
pre-commit-ci[bot]
9f2bd41c20
🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
9 months ago
Nir Schulman
3c5aeaa69a
Fixed import of assert_never from typing
9 months ago
Nir Schulman
e7ab957923
Fixed tests compatibility with older python versions
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
Felix Fanghaenel
e049fc4ea1
🐛 Fix openapi generation with responses kwarg ( #10895 )
Co-authored-by: flxdot <felix.fanghaenel@nitrex.com>
Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com>
Co-authored-by: Sławek Ehlert <slawomir.ehlert@gmail.com>
10 months ago
Sebastián Ramírez
7daaac2bc3
✨ Add new tutorial for SQL databases with SQLModel ( #12285 )
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 )
Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com>
11 months ago
Sebastián Ramírez
c411b81c29
✅ Update internal tests for latest Pydantic, including CI tweaks to install the latest Pydantic ( #12147 )
11 months ago
Sebastián Ramírez
7bad7c0975
✨ Add support for Pydantic models in `Form` parameters ( #12129 )
Revert "⏪ ️ Temporarily revert "✨ Add support for Pydantic models in `Form` pa…"
This reverts commit 8e6cf9ee9c
.
11 months ago
Sebastián Ramírez
8e6cf9ee9c
⏪ ️ Temporarily revert " ✨ Add support for Pydantic models in `Form` parameters" to make a checkpoint release ( #12128 )
Revert "✨ Add support for Pydantic models in `Form` parameters (#12127 )"
This reverts commit 0f3e65b007
.
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
Giunio
51b625e127
🐛 Fix `allow_inf_nan` option for Param and Body classes ( #11867 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: svlandeg <svlandeg@github.com>
11 months ago
Pastukhov Nikita
3a4ac24675
🐛 Ensure that `app.include_router` merges nested lifespans ( #9630 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
11 months ago
Sebastián Ramírez
3a3ad5d66d
⬆️ Upgrade version of Ruff and reformat ( #12032 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
12 months ago
Sebastián Ramírez
a25c92ceb9
♻️ Add support for `pip install "fastapi[standard]"` with standard dependencies and `python -m fastapi` ( #11935 )
* ♻️ Add support for `pip install "fastapi[standard]"` and make `fastapi` not include the optional standard dependencies
* 📝 Update docs to include new fastapi[standard]
* ✨ Add new stub fastapi command that tells people to install fastapi[standard]
* ✅ Add tests for new stub CLI
* 🔧 Add new command fastapi in main fastapi project, for when fastapi-cli is not installed
* ✏️ Fix types
* 📝 Add note about quotes when installing fastapi[standard]
* 📝 Update docs about standard extra dependencies
* ⬆️ Upgrade fastapi-cli
1 year ago
jianghuyiyuan
2e35b176cf
✏️ Fix typos in docs ( #11926 )
1 year ago
Nir Schulman
a69f38340f
📝 Restored Swagger-UI links to use the latest version possible. ( #11459 )
1 year ago
Nils Lindemann
6d523d62d0
📝 Fix types in examples under `docs_src/extra_data_types` ( #10535 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
1 year ago
arjwilliams
09e4859cab
🐛 Fix support for query parameters with list types, handle JSON encoding Pydantic `UndefinedType` ( #9929 )
Co-authored-by: Andrew Williams <Andrew.Williams@contemi.com>
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
1 year ago
Sebastián Ramírez
27da0d02a7
✨ Add support for Pydantic's 2.7 new deprecated Field parameter, remove URL from validation errors response ( #11461 )
1 year ago
Nadav Zingerman
eec612ca8d
🐛 Fix parameterless `Depends()` with generics ( #9479 )
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
1 year ago
Charlie Marsh
5ccc869fee
⬆️ Upgrade configuration for Ruff v0.2.0 ( #11075 )
1 year ago
Alejandra
93034fea48
📝 Update links to Pydantic docs to point to new website ( #11328 )
1 year ago
bebop
478288700a
📝 Update examples for tests to replace "inexistent" for "nonexistent" ( #11220 )
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 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 year ago
Emmett Butler
f18eadb7de
✅ Refactor tests for duplicate operation ID generation for compatibility with other tools running the FastAPI test suite ( #10876 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2 years ago