Adarsh Bennur
ca8b59f52d
Fix coverage by adding Query/Header tests to test_forms_fields_set.py
...
Ensures that _get_multidict_value is fully covered (both FormData and non-FormData paths) to satisfy CI requirements.
2026-02-06 23:31:43 +05:30
Adarsh Bennur
39b4ae0698
Fix: Make fields_set tests compatible with Pydantic v1 and v2
...
Rewrote test_forms_fields_set.py to work on both Pydantic versions:
- Use PYDANTIC_V2 flag from fastapi._compat
- Use model_fields_set (v2) or __fields_set__ (v1) appropriately
- Removed field_validator which is v2-only
- All tests now run on both versions for full coverage
2026-02-06 23:31:43 +05:30
Adarsh Bennur
3c62970852
Fix: Make test compatible with Pydantic v1 and v2
...
Add version check to skip test_forms_fields_set.py when Pydantic v1
is installed, since field_validator is a v2-only API.
2026-02-06 23:31:43 +05:30
Adarsh Bennur
b82e39d665
Fix: Preserve model_fields_set for Form models (issue #13399 )
...
When using Form() with Pydantic models, FastAPI was preloading default
values and passing them to Pydantic, causing all fields to appear in
model_fields_set even when not provided. This also caused validation
to be enforced on unprovided defaults.
Changes:
- Modified _get_multidict_value() to check if values is FormData
- For FormData, return None for unprovided fields instead of defaults
- This lets Pydantic handle defaults properly and preserve fields_set
- Updated test expectation in test_forms_single_model.py
- Added comprehensive test suite in test_forms_fields_set.py
The fix ensures Form models behave consistently with JSON body models
regarding field tracking and validation.
Closes #13399
2026-02-06 23:31:43 +05:30
github-actions[bot]
512c3ad88c
📝 Update release notes
...
[skip ci]
2026-02-06 17:24:56 +00:00
Motov Yurii
cba537ab71
🌐 Update translations for fr (outdated pages) ( #14839 )
2026-02-06 18:24:25 +01:00
github-actions[bot]
2eb454ab04
📝 Update release notes
...
[skip ci]
2026-02-06 17:24:15 +00:00
Motov Yurii
0f5987b560
🌐 Update translations for tr (outdated and missing) ( #14838 )
2026-02-06 18:23:48 +01:00
github-actions[bot]
266a3138b5
📝 Update release notes
...
[skip ci]
2026-02-06 17:18:53 +00:00
Sebastián Ramírez
5a31b37cc7
⬆️ Upgrade development dependencies ( #14854 )
2026-02-06 17:18:30 +00:00
Sebastián Ramírez
36985f5f25
🔖 Release version 0.128.3
2026-02-06 17:44:11 +01:00
github-actions[bot]
661cdfb8a4
📝 Update release notes
...
[skip ci]
2026-02-06 16:38:15 +00:00
Sebastián Ramírez
f6cc650a12
⬆️ Upgrade Starlette supported version range to `starlette>=0.40.0,<1.0.0` ( #14853 )
2026-02-06 16:37:37 +00:00
github-actions[bot]
201feedd68
📝 Update release notes
...
[skip ci]
2026-02-06 15:31:16 +00:00
Sebastián Ramírez
19f13ead4c
👷 Run tests with Starlette from git ( #14849 )
2026-02-06 16:30:48 +01:00
github-actions[bot]
01e85c03bd
📝 Update release notes
...
[skip ci]
2026-02-06 15:29:27 +00:00
Sebastián Ramírez
08233d7ffc
🌐 Update translations for ru (update-outdated) ( #14834 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-02-06 16:28:59 +01:00
github-actions[bot]
fe8c33ea64
📝 Update release notes
...
[skip ci]
2026-02-06 15:18:55 +00:00
Sebastián Ramírez
f9f7992604
♻️ Re-implement `on_event` in FastAPI for compatibility with the next Starlette, while keeping backwards compatibility ( #14851 )
2026-02-06 16:18:30 +01:00
github-actions[bot]
8e50c55fd9
📝 Update release notes
...
[skip ci]
2026-02-06 13:45:47 +00:00
Sebastián Ramírez
3b8b310eda
👷 Run tests with lower bound uv sync, upgrade `fastapi[all]` minimum dependencies: `ujson >=5.8.0`, `orjson >=3.9.3` ( #14846 )
2026-02-06 14:45:18 +01:00
Sebastián Ramírez
79406a4b04
🔖 Release version 0.128.2
2026-02-05 20:46:37 +01:00
github-actions[bot]
de56c96c64
📝 Update release notes
...
[skip ci]
2026-02-05 19:42:42 +00:00
Sebastián Ramírez
570e592a03
🌐 Enable Traditional Chinese translations ( #14842 )
2026-02-05 19:42:18 +00:00
github-actions[bot]
110b45d9b2
📝 Update release notes
...
[skip ci]
2026-02-05 19:28:17 +00:00
Sebastián Ramírez
72325f698f
🌐 Enable French docs translations ( #14841 )
2026-02-05 19:27:51 +00:00
github-actions[bot]
8bdbd3725f
📝 Update release notes
...
[skip ci]
2026-02-05 19:26:13 +00:00
Sebastián Ramírez
23ddf09dd1
🔨 Add max pages to translate to configs ( #14840 )
2026-02-05 19:25:49 +00:00
github-actions[bot]
6646e2b94f
📝 Update release notes
...
[skip ci]
2026-02-05 18:42:10 +00:00
Kanetsuna Masaya
c5fd75a321
🐛 Fix using `Json[list[str]]` type (issue #10997 ) ( #14616 )
...
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>
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2026-02-05 18:41:43 +00:00
github-actions[bot]
54f8aeeb9a
📝 Update release notes
...
[skip ci]
2026-02-05 18:34:59 +00:00
Albin Skott
97145588f5
✨ Add support for PEP695 `TypeAliasType` ( #13920 )
...
Co-authored-by: lokidev <torsten.zielke@protonmail.com>
Co-authored-by: Motov Yurii <109919500+YuriiMotov@users.noreply.github.com>
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>
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2026-02-05 18:34:34 +00:00
github-actions[bot]
0dd42b746e
📝 Update release notes
...
[skip ci]
2026-02-05 18:23:44 +00:00
Jonathan Fulton
b49435becd
✨ Allow `Response` type hint as dependency annotation ( #14794 )
...
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>
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2026-02-05 18:23:16 +00:00
github-actions[bot]
464c359bb0
📝 Update release notes
...
[skip ci]
2026-02-05 16:11:33 +00:00
Sebastián Ramírez
457cd75c23
🌐 Update translations for fr (translate-page) ( #14837 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-02-05 16:11:07 +00:00
github-actions[bot]
2838dcb4a8
📝 Update release notes
...
[skip ci]
2026-02-05 16:06:44 +00:00
github-actions[bot]
b82993643e
📝 Update release notes
...
[skip ci]
2026-02-05 16:06:09 +00:00
Sebastián Ramírez
b892c3126c
🌐 Update translations for de (update-outdated) ( #14836 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-02-05 16:06:07 +00:00
github-actions[bot]
3578270af4
📝 Update release notes
...
[skip ci]
2026-02-05 16:05:18 +00:00
Sebastián Ramírez
2224b4e63b
🌐 Update translations for pt (update-outdated) ( #14833 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-02-05 16:05:03 +00:00
Sebastián Ramírez
136d5f0a56
🌐 Update translations for ko (update-outdated) ( #14835 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-02-05 16:04:47 +00:00
github-actions[bot]
afb44f0ff8
📝 Update release notes
...
[skip ci]
2026-02-05 16:03:19 +00:00
Sebastián Ramírez
4fe06cc24a
🌐 Update translations for es (update-outdated) ( #14832 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-02-05 17:02:22 +01:00
github-actions[bot]
cae2659678
📝 Update release notes
...
[skip ci]
2026-02-05 15:57:15 +00:00
Sebastián Ramírez
da9e101d50
🌐 Update translations for tr (update-outdated) ( #14831 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-02-05 16:56:49 +01:00
github-actions[bot]
8488d31aff
📝 Update release notes
...
[skip ci]
2026-02-05 15:48:06 +00:00
Sebastián Ramírez
dcfd432c36
📝 Update docs for translations ( #14830 )
2026-02-05 16:47:42 +01:00
github-actions[bot]
c7682a198a
📝 Update release notes
...
[skip ci]
2026-02-05 15:44:05 +00:00
Sebastián Ramírez
b5d276bda8
🌐 Update translations for tr (add-missing) ( #14790 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-02-05 16:43:38 +01:00