Features
- ✨ Allow
None
as return type for bodiless responses. PR #9425 by @hofrob. - ✨ Allow array values for OpenAPI schema
type
field. PR #13639 by @sammasak. - ✨ Add OpenAPI
external_docs
parameter toFastAPI
. PR #13713 by @cmtoro.
Fixes
- ⚡️ Fix
default_factory
for response model field with Pydantic V1. PR #9704 by @vvanglro. - 🐛 Fix inconsistent processing of model docstring formfeed char with Pydantic V1. PR #6039 by @MaxwellPayne.
- 🐛 Fix
jsonable_encoder
altersjson_encoders
of Pydantic v1 objects. PR #4972 by @aboubacs. - 🐛 Reenable
allow_arbitrary_types
when only 1 argument is used on the API endpoint. PR #13694 by @rmawatson. - 🐛 Fix
inspect.getcoroutinefunction()
can break testing withunittest.mock.patch()
. PR #14022 by @secrett2633.
Refactors
- ♻️ Create
dependency-cache
dict insolve_dependencies
only ifNone
(don't re-create if empty). PR #13689 by @bokshitsky. - ✅ Enable test case for duplicated headers in
test_tutorial/test_header_params/test_tutorial003.py
. PR #13864 by @Amogha-ark. - 📌 Pin
httpx
to>=0.23.0,<1.0.0
. PR #14086 by @YuriiMotov.
Docs
- 📝 Add note about Cookies and JavaScript on
tutorial/cookie-params.md
. PR #13510 by @Kludex. - 📝 Remove outdated formatting from
path-params-numeric-validations.md
for languagesen
,es
anduk
.. PR #14059 by @svlandeg. - 📝 Fix and Improve English Documentation. PR #14048 by @nilslindemann.
Translations
- 📝 Update prompts and German translation. PR #14015 by @nilslindemann.
Internal
- ✅ Simplify tests for response_model. PR #14062 by @dynamicy.
- 🚨 Install pydantic.mypy plugin. PR #14081 by @svlandeg.
- ✅ Add LLM test file. PR #14049 by @nilslindemann.
- 🔨 Update translations script. PR #13968 by @YuriiMotov.
- 🛠️ Update
docs.py generate-readme
command to remove permalinks from headers. PR #14055 by @YuriiMotov. - ⬆️ Update mypy to 1.14.1. PR #12970 by @tamird.