evan-hitobito
986d0584fd
🐛 Fix `Form()` with an `Optional` Pydantic model silently discarding data
When a form body parameter was annotated as `Optional[SomeModel]`
(i.e. `SomeModel | None`), `is_union_of_base_models()` returned `False`
because `NoneType` is not a `BaseModel` subclass. This forced the field to
be embedded, so the submitted top-level form fields were never collected
into the model and the value silently resolved to the default (`None`),
with no validation error — unlike the equivalent JSON body, which parses
correctly.
Ignore `None` members when checking a union of models so that
`Optional[SomeModel]` (and `SomeModel | OtherModel | None`) keeps being
treated as a top-level model union. An empty form still validates the
required fields (a 422, consistent with an empty JSON `{}` body).
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected] >
2 days ago
github-actions[bot]
afe41126f6
📝 Update release notes
[skip ci]
5 days ago
Sebastián Ramírez
7f05e26d08
🔥 Remove now-obsolete scripts to generate data for FastAPI People ( #16016 )
5 days ago
github-actions[bot]
efcf8a1830
📝 Update release notes
[skip ci]
5 days ago
Sebastián Ramírez
e735449bae
📝 Restructure FastAPI People and related pages ( #16015 )
5 days ago
Sebastián Ramírez
866b7a3d0c
🔖 Release version 0.139.2 ( #16014 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
5 days ago
github-actions[bot]
7b3effea75
📝 Update release notes
[skip ci]
5 days ago
Sebastián Ramírez
7fe315c21a
🐛 Refactor router route building to make it thread-safe, mainly relevant for tests running in parallel threads (uncommon) ( #16013 )
5 days ago
Sebastián Ramírez
c48e67b1ce
🔖 Release version 0.139.1 ( #16012 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
5 days ago
github-actions[bot]
2acc4fbf15
📝 Update release notes
[skip ci]
5 days ago
Sebastián Ramírez
eb75fd078e
🐛 Fix frontend fallback support for doted paths like `/users/john.doe` ( #16011 )
5 days ago
github-actions[bot]
9b8410bdc9
📝 Update release notes
[skip ci]
6 days ago
Yurii Motov
e24d44cce4
📝 Fix topic repository list not being displayed and `skip_users` not being applied ( #15995 )
6 days ago
github-actions[bot]
93b78f8646
📝 Update release notes
[skip ci]
6 days ago
github-actions[bot]
b959b44357
📝 Update release notes
[skip ci]
6 days ago
github-actions[bot]
20d332cb2e
📝 Update release notes
[skip ci]
6 days ago
github-actions[bot]
061eb10016
📝 Update release notes
[skip ci]
6 days ago
Sebastián Ramírez
8f93206768
🌐 Update translations for tr (update-outdated) ( #16005 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
6 days ago
Sebastián Ramírez
5ca69d4626
🌐 Update translations for zh-hant (update-outdated) ( #15996 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
6 days ago
github-actions[bot]
38c6686015
📝 Update release notes
[skip ci]
6 days ago
Sebastián Ramírez
1bea40556e
🌐 Update translations for fr (update-outdated) ( #16006 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
6 days ago
github-actions[bot]
3330e247ce
📝 Update release notes
[skip ci]
6 days ago
github-actions[bot]
569630f646
📝 Update release notes
[skip ci]
6 days ago
Sebastián Ramírez
362c6f1d3f
🌐 Update translations for de (update-outdated) ( #15999 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
6 days ago
Sebastián Ramírez
10f30b844b
🌐 Update translations for ko (update-outdated) ( #16004 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
6 days ago
Sebastián Ramírez
4cb38a4809
🌐 Update translations for zh (update-outdated) ( #16001 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
6 days ago
Sebastián Ramírez
745d3d222f
🌐 Update translations for uk (update-outdated) ( #16003 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
6 days ago
github-actions[bot]
8458d35c96
📝 Update release notes
[skip ci]
6 days ago
github-actions[bot]
75bdc46293
📝 Update release notes
[skip ci]
6 days ago
github-actions[bot]
c29b4a17af
📝 Update release notes
[skip ci]
6 days ago
Sebastián Ramírez
3a8ab1f76b
🌐 Update translations for ja (update-outdated) ( #15998 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
6 days ago
github-actions[bot]
b10d3dac4c
📝 Update release notes
[skip ci]
6 days ago
Sebastián Ramírez
1d02512ce3
🌐 Update translations for pt (update-outdated) ( #16000 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
6 days ago
Sebastián Ramírez
24a957b5b0
🌐 Update translations for es (update-outdated) ( #15997 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
6 days ago
Sebastián Ramírez
2ebfb7a7bc
🌐 Update translations for ru (update-outdated) ( #16002 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
6 days ago
github-actions[bot]
027f27220c
📝 Update release notes
[skip ci]
7 days ago
Sebastián Ramírez
37ccca3e95
🌐 Update translations for hi (add-missing) ( #15990 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
7 days ago
github-actions[bot]
64fc8a4521
📝 Update release notes
[skip ci]
1 week ago
Sebastián Ramírez
e5d61c34a3
🌐 Update translations for hi (add-missing) ( #15925 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Yurii Motov <[email protected] >
1 week ago
github-actions[bot]
b1346bb142
📝 Update release notes
[skip ci]
1 week ago
dependabot[bot]
9405816f15
⬆ Bump the python-packages group across 1 directory with 6 updates ( #15981 )
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 week ago
github-actions[bot]
fd4c4cfc3e
📝 Update release notes
[skip ci]
1 week ago
dependabot[bot]
87bbab1b73
⬆ Bump typing-extensions from 4.15.0 to 4.16.0 ( #15982 )
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 week ago
github-actions[bot]
b335c906e1
📝 Update release notes
[skip ci]
1 week ago
dependabot[bot]
2b0b417c0c
⬆ Bump the github-actions group across 1 directory with 4 updates ( #15983 )
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 week ago
github-actions[bot]
c9d88e33d8
📝 Update release notes
[skip ci]
1 week ago
Sebastián Ramírez
ef3f1ac9c1
⬆ Bump pre-commit hooks ( #15985 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 week ago
github-actions[bot]
cf93cc6258
📝 Update release notes
[skip ci]
1 week ago
Yurii Motov
b75bd318f3
👷 Use `FASTAPI_LATEST_CHANGES` token in `bump-pre-commit-hooks` workflow ( #15984 )
1 week ago
github-actions[bot]
c870479389
📝 Update release notes
[skip ci]
1 week ago