🔖 Release version 0.151.0 (#16537)

Co-authored-by: pr-submit[bot] <pr-submit[bot]@users.noreply.github.com>
This commit is contained in:
pr-submit[bot]andpr-submit[bot] authored and GitHub committed 2026-10-20 10:09:00 +02:00
1 parent 31db6d3b2a
commit 051bdfe2da
2 files changed
+3 -1

No files matched your search

+2
View File
@@ -7,6 +7,8 @@ hide:
## Latest Changes
## 0.151.0 (2026-10-20)
JSON request bodies now distinguish an explicit `null` from an omitted value. For individual `Body` parameters, `null` is validated as `None`: nullable types accept it, and non-nullable types reject it even when a default is defined. Defaults and default factories apply only when the value is omitted. This applies both to parameters inside JSON objects and to parameters representing the entire body. Clients that used `null` to request a default should omit the value instead.
When a JSON object is expected because of `Body(embed=True)` or multiple body parameters, sending `null` as the entire body now returns a validation error.
+1 -1
View File
@@ -1,6 +1,6 @@
"""FastAPI framework, high performance, easy to learn, fast to code, ready for production"""
__version__ = "0.150.0"
__version__ = "0.151.0"
from starlette import status as status