pre-commit-ci[bot]
b936d418e1
🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
9 months ago
Abhishek Biswas
f2b36c636b
Merge branch 'master' of https://github.com/abhishekbiswas772/fastapi
9 months ago
Abhishek Biswas
e267cd41cb
Update test_forms_empty_string_default_13533.py
9 months ago
Abhishek Biswas
9ff8b80a67
Merge branch 'master' into master
9 months ago
github-actions[bot]
cb7018d782
📝 Update release notes
[skip ci]
9 months ago
Nils-Hero Lindemann
a578ea1fd3
🛠️ Update German LLM prompt and test file ( #14189 )
Minor fixes in German LLM prompt and test file
Co-authored-by: Motov Yurii <[email protected] >
9 months ago
Abhishek Biswas
b27f671998
Merge branch 'master' of https://github.com/abhishekbiswas772/fastapi
9 months ago
Abhishek Biswas
e07f5dea76
🐛 Fix form validation regression with empty string default values
Fixes #13533
This fixes regressions in form handling where empty strings in form
fields were incorrectly treated as values instead of using default
values for optional fields.
## Problem
When form fields with Optional types and None defaults received empty
strings (""), FastAPI incorrectly treated them as empty string values
instead of using the default value (None). This affected both:
- x-www-form-urlencoded forms
- multipart/form-data forms
This regression broke existing applications when upgrading from
v0.112.4 to v0.115.x.
## Solution
Modified the _extract_form_body function in fastapi/dependencies/utils.py:
1. Track defined body_field aliases to distinguish between declared
fields and extra fields
2. Don't add empty strings for Form fields since _get_multidict_value
already handles them correctly by returning default values
3. Only add extra fields from received_body that are not already
defined as body_fields to prevent overwriting correctly processed
default values
## Tests
- Added comprehensive regression tests in
tests/test_forms_empty_string_default_13533.py
- All existing form-related tests pass (verified 20+ tests)
- Python 3.8+ compatible (uses typing_extensions.Annotated)
9 months ago
Abhishek Biswas
e201c735aa
fix ISSUE 13533
9 months ago
github-actions[bot]
9c912d1dd6
📝 Update release notes
[skip ci]
9 months ago
pre-commit-ci[bot]
da011f212a
⬆ [pre-commit.ci] pre-commit autoupdate ( #14181 )
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.13.3 → v0.14.1](https://github.com/astral-sh/ruff-pre-commit/compare/v0.13.3...v0.14.1 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
9 months ago
github-actions[bot]
046d49b5a9
📝 Update release notes
[skip ci]
9 months ago
Nils-Hero Lindemann
847280450a
🌐 Sync German docs ( #14188 )
Sync German docs with #14168
Co-authored-by: Motov Yurii <[email protected] >
9 months ago
Sebastián Ramírez
864b569cf8
🔖 Release version 0.119.1
9 months ago
github-actions[bot]
43f15d3b43
📝 Update release notes
[skip ci]
9 months ago
Sofie Van Landeghem
d8c691f7f0
🐛 Fix internal Pydantic v1 compatibility (warnings) for Python 3.14 and Pydantic 2.12.1 ( #14186 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Sebastián Ramírez <[email protected] >
9 months ago
github-actions[bot]
6e49dc0295
📝 Update release notes
[skip ci]
9 months ago
Sebastián Ramírez
7df594d284
🔧 Add sponsor Requestly ( #14205 )
9 months ago
github-actions[bot]
81f85831f5
📝 Update release notes
[skip ci]
10 months ago
Motov Yurii
7f810ca93b
🔧 Configure reminder for `waiting` label in `issue-manager` ( #14156 )
10 months ago
github-actions[bot]
414f961f1f
📝 Update release notes
[skip ci]
10 months ago
Marcelo Trylesinski
dde7bd1ceb
📝 Replace `starlette.io` by `starlette.dev` and `uvicorn.org` by `uvicorn.dev` ( #14176 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
10 months ago
Sebastián Ramírez
2e721e1b02
🔖 Release version 0.119.0
10 months ago
Sebastián Ramírez
fc7a0686af
📝 Update release notes
10 months ago
github-actions[bot]
3a3879b2c3
📝 Update release notes
[skip ci]
10 months ago
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>
10 months ago
Sebastián Ramírez
352dbefc63
🔖 Release version 0.118.3
10 months ago
github-actions[bot]
96e7d6eaa4
📝 Update release notes
[skip ci]
10 months ago
Sofie Van Landeghem
3611c3fc5b
⬆️ Add support for Python 3.14 ( #14165 )
10 months ago
Sebastián Ramírez
942fce394b
🔖 Release version 0.118.2
10 months ago
github-actions[bot]
13b067c9b6
📝 Update release notes
[skip ci]
10 months ago
François Voron
185cecd891
🐛 Fix tagged discriminated union not recognized as body field ( #12942 )
Co-authored-by: Motov Yurii <[email protected] >
Co-authored-by: Patrick Arminio <[email protected] >
Co-authored-by: Sebastián Ramírez <[email protected] >
10 months ago
github-actions[bot]
27c0f7e75f
📝 Update release notes
[skip ci]
10 months ago
dependabot[bot]
05dbfebce5
⬆ Bump astral-sh/setup-uv from 6 to 7 ( #14167 )
Bumps [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv ) from 6 to 7.
- [Release notes](https://github.com/astral-sh/setup-uv/releases )
- [Commits](https://github.com/astral-sh/setup-uv/compare/v6...v7 )
---
updated-dependencies:
- dependency-name: astral-sh/setup-uv
dependency-version: '7'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
10 months ago
Sebastián Ramírez
01be148429
🔖 Release version 0.118.1
10 months ago
github-actions[bot]
fca8564ea0
📝 Update release notes
[skip ci]
10 months ago
Sebastián Ramírez
485bfedf5d
🔨 Move local coverage logic to its own script ( #14166 )
10 months ago
github-actions[bot]
32b93b53fc
📝 Update release notes
[skip ci]
10 months ago
Colin Watson
c970d8a735
👽 ️ Ensure compatibility with Pydantic 2.12.0 ( #14036 )
Co-authored-by: Sofie Van Landeghem <[email protected] >
Co-authored-by: Victorien <[email protected] >
Co-authored-by: svlandeg <[email protected] >
Co-authored-by: Motov Yurii <[email protected] >
Co-authored-by: Patrick Arminio <[email protected] >
10 months ago
github-actions[bot]
22b38099ce
📝 Update release notes
[skip ci]
10 months ago
pre-commit-ci[bot]
bc5e877c9c
⬆ [pre-commit.ci] pre-commit autoupdate ( #14161 )
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.13.2 → v0.13.3](https://github.com/astral-sh/ruff-pre-commit/compare/v0.13.2...v0.13.3 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
10 months ago
github-actions[bot]
1cd8717818
📝 Update release notes
[skip ci]
10 months ago
Simon Gurcke
6df0358b80
📝 Add External Link: Getting started with logging in FastAPI ( #14152 )
Add logging article to External links
10 months ago
github-actions[bot]
56c0632f86
📝 Update release notes
[skip ci]
10 months ago
Sebastián Ramírez
61596ebe5b
🔨 Add Russian translations LLM prompt ( #13936 )
* 🔨 Add Russian translations LLM prompt
* 🔨 Tweak prompt with input from Yurii
* 📝 Update LLM prompt
* Update llm-prompt.md
* Update llm-prompt.md
* Update llm-prompt.md
* 🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
* Update llm-prompt.md
* Update llm-prompt.md
* Update llm-prompt.md
* Update ru `llm-prompt.md`
---------
Co-authored-by: Motov Yurii <[email protected] >
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Yurii Motov <[email protected] >
10 months ago
github-actions[bot]
e820049caa
📝 Update release notes
[skip ci]
10 months ago
dependabot[bot]
3e97c96b60
⬆ Bump griffe-typingdoc from 0.2.8 to 0.2.9 ( #14144 )
Bumps [griffe-typingdoc](https://github.com/mkdocstrings/griffe-typingdoc ) from 0.2.8 to 0.2.9.
- [Release notes](https://github.com/mkdocstrings/griffe-typingdoc/releases )
- [Changelog](https://github.com/mkdocstrings/griffe-typingdoc/blob/main/CHANGELOG.md )
- [Commits](https://github.com/mkdocstrings/griffe-typingdoc/compare/0.2.8...0.2.9 )
---
updated-dependencies:
- dependency-name: griffe-typingdoc
dependency-version: 0.2.9
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
10 months ago
github-actions[bot]
beef83d871
📝 Update release notes
[skip ci]
10 months ago
dependabot[bot]
d421feadf2
⬆ Bump mkdocs-macros-plugin from 1.3.9 to 1.4.0 ( #14145 )
Bumps [mkdocs-macros-plugin](https://github.com/fralau/mkdocs_macros_plugin ) from 1.3.9 to 1.4.0.
- [Release notes](https://github.com/fralau/mkdocs_macros_plugin/releases )
- [Changelog](https://github.com/fralau/mkdocs-macros-plugin/blob/master/CHANGELOG.md )
- [Commits](https://github.com/fralau/mkdocs_macros_plugin/compare/v1.3.9...v1.4.0 )
---
updated-dependencies:
- dependency-name: mkdocs-macros-plugin
dependency-version: 1.4.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
10 months ago
github-actions[bot]
407a6a4a7c
📝 Update release notes
[skip ci]
10 months ago