Vidit Patankar
df50247add
Forward exclude_defaults when jsonable_encoder recurses into dict values
jsonable_encoder passes exclude_defaults to its recursive calls for
list/tuple/set items, but omits it for dict keys and values. As a result
a Pydantic model nested inside a dict keeps its default-valued fields
when exclude_defaults=True, while the same model inside a list correctly
drops them:
jsonable_encoder([m], exclude_defaults=True) -> [{'foo': 'foo'}] # correct
jsonable_encoder({'m': m}, exclude_defaults=True) -> {'m': {'foo': 'foo', ...}} # wrong, defaults kept
The sibling flags exclude_unset and exclude_none are already forwarded in
the same dict branch, so this is an inconsistency, not intended behavior.
Forward exclude_defaults too. Adds a regression test.
Authored with the assistance of an AI tool; reviewed and verified by me.
3 days ago
github-actions[bot]
9f4f3fdc5b
📝 Update release notes
[skip ci]
3 days ago
Sebastián Ramírez
d6629f7dfc
🌐 Update translations for ja (update-outdated) ( #15668 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Yurii Motov <[email protected] >
3 days ago
github-actions[bot]
dbe984018b
📝 Update release notes
[skip ci]
3 days ago
github-actions[bot]
46bc43a04a
📝 Update release notes
[skip ci]
3 days ago
github-actions[bot]
4bdda67fb2
📝 Update release notes
[skip ci]
3 days ago
Sebastián Ramírez
2b70d68942
🌐 Update translations for pt (update-outdated) ( #15667 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
3 days ago
Sebastián Ramírez
2aa88900df
🌐 Update translations for tr (update-outdated) ( #15666 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
3 days ago
github-actions[bot]
7b262b3d54
📝 Update release notes
[skip ci]
3 days ago
Sebastián Ramírez
d822aefc8a
🌐 Update translations for zh (update-outdated) ( #15665 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
3 days ago
Sebastián Ramírez
502d20c441
🌐 Update translations for ko (update-outdated) ( #15664 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
3 days ago
github-actions[bot]
cf2369a597
📝 Update release notes
[skip ci]
3 days ago
Sebastián Ramírez
674a625ae9
🌐 Update translations for de (update-outdated) ( #15673 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
3 days ago
github-actions[bot]
e1c1299bb5
📝 Update release notes
[skip ci]
3 days ago
Sebastián Ramírez
bb6dbdb6cd
🌐 Update translations for uk (update-outdated) ( #15672 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
3 days ago
github-actions[bot]
e29b179705
📝 Update release notes
[skip ci]
4 days ago
Sebastián Ramírez
d1216e7352
🌐 Update translations for ru (update-outdated) ( #15674 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Yurii Motov <[email protected] >
4 days ago
github-actions[bot]
d390d514eb
📝 Update release notes
[skip ci]
4 days ago
Sebastián Ramírez
37c92a87ff
👥 Update FastAPI People - Contributors and Translators ( #15662 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
4 days ago
github-actions[bot]
0ee8a24249
📝 Update release notes
[skip ci]
4 days ago
Sebastián Ramírez
b4d58fddee
👷 Automate release preparation ( #15661 )
4 days ago
github-actions[bot]
ee22a4b8ca
📝 Update release notes
[skip ci]
5 days ago
Sebastián Ramírez
1990ecb446
🔥 Remove slim package stub, deprecated for a while ( #15649 )
5 days ago
github-actions[bot]
91dba4484d
📝 Update release notes
[skip ci]
1 week ago
dependabot[bot]
99a1b1edee
⬆ Bump authlib from 1.6.11 to 1.7.2 ( #15512 )
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Yurii Motov <[email protected] >
Co-authored-by: Yurii Motov <[email protected] >
1 week ago
github-actions[bot]
199415da85
📝 Update release notes
[skip ci]
1 week ago
dependabot[bot]
dcac2f0d95
⬆ Bump pymdown-extensions from 10.21.2 to 10.21.3 ( #15569 )
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Yurii Motov <[email protected] >
1 week ago
github-actions[bot]
334582bfe4
📝 Update release notes
[skip ci]
1 week ago
dependabot[bot]
2a1506d167
⬆ Bump CodSpeedHQ/action from 4.14.0 to 4.15.1 ( #15513 )
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Yurii Motov <[email protected] >
1 week ago
github-actions[bot]
136b55f3d8
📝 Update release notes
[skip ci]
1 week ago
dependabot[bot]
4a5f0cd370
⬆ Bump python-multipart from 0.0.26 to 0.0.29 ( #15595 )
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Yurii Motov <[email protected] >
Co-authored-by: Yurii Motov <[email protected] >
1 week ago
github-actions[bot]
2bd97a6013
📝 Update release notes
[skip ci]
1 week ago
Yurii Motov
a3558be5f8
🔒 ️ Improve GitHub actions security ( #15607 )
1 week ago
github-actions[bot]
c9343d2cf0
📝 Update release notes
[skip ci]
1 week ago
Yurii Motov
a53efbcae9
⚰️ Remove ruff and coverage ignores for non-existing files ( #15610 )
Co-authored-by: AshNicolus <[email protected] >
1 week ago
github-actions[bot]
ad09734fa3
📝 Update release notes
[skip ci]
1 week ago
Yurii Motov
57535ef85b
✅ Use custom `changing_dir` instead of `CLIRunner.isolated_filesystem` to set working dir ( #15616 )
1 week ago
github-actions[bot]
dbfd55cea3
📝 Update release notes
[skip ci]
1 week ago
Yurii Motov
59d4a80fcf
✅ Add `httpx2` test dependency to avoid deprecation warning ( #15603 )
1 week ago
github-actions[bot]
6cbdde2315
📝 Update release notes
[skip ci]
2 weeks ago
dependabot[bot]
1464678ba6
⬆ Bump the python-packages group with 15 updates ( #15594 )
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 weeks ago
github-actions[bot]
1a84bbc00b
📝 Update release notes
[skip ci]
2 weeks ago
Yurii Motov
3fdc54edab
👷 Configure Dependabot to group updates and update weekly ( #15560 )
2 weeks ago
github-actions[bot]
09ba2cec98
📝 Update release notes
[skip ci]
2 weeks ago
Alexander Li
3e3d38930e
✏️ Use `Annotated` in inline example in `docs/en/docs/tutorial/body-multiple-params.md` ( #15591 )
2 weeks ago
github-actions[bot]
84f205c8f7
📝 Update release notes
[skip ci]
2 weeks ago
Ömer 🇹🇷
7baefe7144
📝 Remove "NGINX Unit" from the list of ASGI-servers in docs ( #15475 )
2 weeks ago
github-actions[bot]
2895c51ba8
📝 Update release notes
[skip ci]
2 weeks ago
zadevhub
21c46919fc
📝 Update `docs/en/docs/tutorial/security/oauth2-jwt.md` ( #14781 )
Co-authored-by: Sebastián Ramírez <[email protected] >
Co-authored-by: Yurii Motov <[email protected] >
2 weeks ago
Sebastián Ramírez
8206485753
🔖 Release version 0.136.3
2 weeks ago