Bruno Foggiatto
149f2c747f
Merge c340795243 into cc6ced6345
2026-02-06 19:06:40 +00:00
Tima
9df1f8293d
📝 Fix typing issue in `docs_src/app_testing/app_b` code example ( #14573 )
...
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
Co-authored-by: Motov Yurii <109919500+YuriiMotov@users.noreply.github.com>
2026-02-04 14:32:24 +01:00
johnson-earls
3ee652dd0c
📝 Fix example of license identifier in documentation ( #14492 )
...
Co-authored-by: svlandeg <svlandeg@github.com>
2026-02-04 14:29:02 +01:00
Motov Yurii
741c7345ea
📝 Use return type annotation instead of `response_model` when possible ( #14753 )
2026-02-04 13:07:26 +01:00
Motov Yurii
dc3278654f
📝 Use `WSGIMiddleware` from `a2wsgi` instead of deprecated `fastapi.middleware.wsgi.WSGIMiddleware` ( #14756 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-02-04 12:54:23 +01:00
Sebastián Ramírez
e300630551
➖ Drop support for `pydantic.v1` ( #14609 )
2025-12-27 13:54:56 +01:00
Motov Yurii
3063ada72f
✅ Add missing tests for code examples ( #14569 )
...
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Nils-Hero Lindemann <nilsherolindemann@proton.me>
2025-12-26 11:43:02 +01:00
Sebastián Ramírez
e2cd8a4201
➖ Drop support for Pydantic v1, keeping short temporary support for Pydantic v2's `pydantic.v1` ( #14575 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-12-20 16:55:38 +01:00
Paras Verma
d70ed5eceb
📝 Fix duplicated variable in `docs_src/python_types/tutorial005_py39.py` ( #14565 )
...
Fix duplicated variable in python types example
2025-12-20 07:40:21 +01:00
Sebastián Ramírez
1c4fc96c91
♻️ Upgrade internal syntax to Python 3.9+ 🎉 ( #14564 )
2025-12-17 21:25:59 +00:00
Sebastián Ramírez
ed97d9dc0c
⚰️ Remove Python 3.8 from CI and remove Python 3.8 examples from source docs ( #14559 )
...
Co-authored-by: Yurii Motov <yurii.motov.monte@gmail.com>
Co-authored-by: Motov Yurii <109919500+YuriiMotov@users.noreply.github.com>
2025-12-17 21:41:43 +01:00
Sebastián Ramírez
cd9d093f60
📝 Update docs about re-raising validation errors, do not include string as is to not leak information ( #14487 )
2025-12-10 12:56:50 +00:00
Motov Yurii
9475024640
📝 Add variants for code examples in "Advanced User Guide" ( #14413 )
2025-12-10 09:55:32 +01:00
Motov Yurii
51ad909ffe
🐛 Use `401` status code in security classes when credentials are missing ( #13786 )
...
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>
2025-11-24 20:03:06 +01:00
brunofoggiatto
9894481f3c
📝 Add file upload validation and saving examples
...
This PR adds practical examples for validating and saving uploaded files,
addressing common production use cases.
New examples:
- Tutorial 004: Upload with validation (file type, size, count)
- Tutorial 005: Saving files to disk with unique names
Each example includes variants for Python 3.9+ and 3.10+.
Documentation updated with new sections explaining validation
best practices and file saving security considerations.
2025-11-10 10:27:47 -03:00
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 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-11-03 11:12:49 +01:00
Sebastián Ramírez
d34918abf0
✨ Add support for `from pydantic.v1 import BaseModel`, mixed Pydantic v1 and v2 models in the same app ( #14168 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-10-11 18:45:54 +02:00
Sebastián Ramírez
e329d78f86
🐛 Fix support for `StreamingResponse`s with dependencies with `yield` or `UploadFile`s, close after the response is done ( #14099 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-09-29 05:29:38 +02:00
Neizvestnyj
efdafa4361
📝 Update `tutorial/security/oauth2-jwt/` to use `pwdlib` with Argon2 instead of `passlib` ( #13917 )
...
Co-authored-by: Motov Yurii <109919500+YuriiMotov@users.noreply.github.com>
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2025-09-29 04:57:38 +02:00
Ben Beasley
7563579dc8
⬆️ Upgrade Starlette supported version range to >=0.40.0,<0.49.0 ( #14077 )
...
Co-authored-by: svlandeg <svlandeg@github.com>
2025-09-16 19:21:48 +02:00
Sebastián Ramírez
f5b77ff0fc
📝 Add documentation for Behind a Proxy - Proxy Forwarded Headers, using `--forwarded-allow-ips="*"` ( #14028 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-08-31 21:34:08 +02:00
z0z0r4
d4ddcc5878
📝 Update testing events documentation ( #13259 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Motov Yurii <109919500+YuriiMotov@users.noreply.github.com>
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2025-08-31 10:29:21 +00:00
Arnaud Durand
e902ed5fc6
📝 Bring the `scope` claim in line with the standard in `docs_src/security/tutorial005.py` ( #11189 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Yurii Motov <yurii.motov.monte@gmail.com>
2025-08-31 12:03:10 +02:00
Joakim Nordling
8fa56b46a1
⬆️ Update ReDoc to version 2.x ( #9700 )
...
Co-authored-by: svlandeg <svlandeg@github.com>
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com>
2025-04-28 20:31:44 +02:00
Sebastián Ramírez
2537d9d1c2
🐛 Fix `convert_underscores=False` for header Pydantic models ( #13515 )
2025-03-23 21:48:54 +01:00
Sebastián Ramírez
74fe89bf35
🐛 Add docs examples and tests (support) for `Annotated` custom validations, like `AfterValidator`, revert #13440 ( #13442 )
...
This reverts commit 15dd2b67d3 .
2025-03-01 22:02:35 +00:00
Hyogeun Oh (오효근)
e157cf4b96
🐛 Fix issue with Swagger theme change example in the official tutorial ( #13289 )
2025-02-18 17:52:15 +01:00
Sebastián Ramírez
08b817a842
🔥 Remove manual type annotations in JWT tutorial to avoid typing expectations (JWT doesn't provide more types) ( #13378 )
2025-02-15 17:28:09 +01:00
Sebastián Ramírez
9ec452a154
📝 Update docs for Query Params and String Validations, remove obsolete Ellipsis docs (`...`) ( #13377 )
2025-02-15 17:23:59 +01:00
Ysabel
9667ce87a9
📝 Update Request Body's `tutorial002` to deal with `tax=0` case ( #13230 )
...
Co-authored-by: svlandeg <svlandeg@github.com>
2025-01-30 12:19:10 +00:00
Kinuax
b0e70cb37e
✏️ Update Strawberry integration docs ( #13155 )
2025-01-06 11:24:17 +00:00
Alejandra
d784a90207
🔥 Remove unused Peewee tutorial files ( #13158 )
2025-01-05 14:44:44 +00:00
Sebastián Ramírez
1c711e7147
📝 Update includes format in docs with an automated script ( #12950 )
2024-11-18 03:25:44 +01:00
Sebastián Ramírez
5c080d81ae
📝 Update includes for `docs/en/docs/tutorial/schema-extra-example.md` ( #12822 )
2024-11-09 16:00:17 +00:00
José Pacheco
8ae4603d68
🐛 Remove `Required` shadowing from fastapi using Pydantic v2 ( #12197 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com>
2024-10-12 11:36:32 +02:00
Sebastián Ramírez
7daaac2bc3
✨ Add new tutorial for SQL databases with SQLModel ( #12285 )
2024-10-09 21:44:42 +02:00
Sebastián Ramírez
55035f440b
✨ Add support for Pydantic models for parameters using `Query`, `Cookie`, `Header` ( #12199 )
2024-09-17 20:54:10 +02:00
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>
2024-09-06 19:31:18 +02:00
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 .
2024-09-05 17:16:50 +02:00
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 .
2024-09-05 16:55:44 +02:00
Sebastián Ramírez
0f3e65b007
✨ Add support for Pydantic models in `Form` parameters ( #12127 )
2024-09-05 16:40:48 +02:00
Esteban Maya
6ca7b8c608
Merge branch 'master' into docs/edit-timer-in-middleware
2024-08-30 22:11:25 -05:00
Marcin Sulikowski
6e98249c21
📝 Fix async test example not to trigger DeprecationWarning ( #12084 )
2024-08-30 18:00:41 +02:00
Muhammad Ashiq Ameer
9b35d355bf
📝 Update `docs_src/path_params_numeric_validations/tutorial006.py` ( #11478 )
...
Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com>
2024-08-28 18:39:15 -05:00
Esteban Maya
866c6987fc
Merge branch 'master' into docs/edit-timer-in-middleware
2024-08-22 12:55:06 -05:00
Jun-Ah 준아
265dbeb663
📝 Add missing `compresslevel` parameter on docs for `GZipMiddleware` ( #11350 )
...
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2024-08-15 17:38:02 -05:00
Luke Okomilo
2cb1333b97
📝 Fix inconsistent response code when item already exists in docs for testing ( #11818 )
...
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2024-08-15 22:31:16 +00:00
Dom
7ff5da8bf2
edit middleware docs code sample to use perf_counter as a timer
2024-08-06 14:46:39 +01:00
jianghuyiyuan
2e35b176cf
✏️ Fix typos in docs ( #11926 )
2024-07-31 09:09:15 -05:00
Nir Schulman
a69f38340f
📝 Restored Swagger-UI links to use the latest version possible. ( #11459 )
2024-05-23 17:59:02 -05:00