Release 0.128.1 ยท fastapi/fastapi
Features
- โจ Add
viewportmeta tag to improve Swagger UI on mobile devices. PR #14777 by @Joab0. - ๐ธ Improve error message for invalid query parameter type annotations. PR #14479 by @retwish.
Fixes
- ๐ Update
ValidationErrorschema to includeinputandctx. PR #14791 by @jonathan-fulton. - ๐ Fix TYPE_CHECKING annotations for Python 3.14 (PEP 649). PR #14789 by @mgu.
- ๐ Strip whitespaces from
Authorizationheader credentials. PR #14786 by @WaveTheory1. - ๐ Fix OpenAPI duplication of
anyOfrefs for app-level responses with specifiedcontentandmodelasUnion. PR #14463 by @DJMcoder.
Refactors
- ๐จ Tweak types for mypy. PR #14816 by @tiangolo.
- ๐ท๏ธ Re-export
IncExtype from Pydantic instead of duplicating it. PR #14641 by @mvanderlee. - ๐ก Update comment for Pydantic internals. PR #14814 by @tiangolo.
Docs
- ๐ Update docs for contributing translations, simplify title. PR #14817 by @tiangolo.
- ๐ Fix typing issue in
docs_src/app_testing/app_bcode example. PR #14573 by @timakaa. - ๐ Fix example of license identifier in documentation. PR #14492 by @johnson-earls.
- ๐ Add banner to translated pages. PR #14809 by @YuriiMotov.
- ๐ Add links to related sections of docs to docstrings. PR #14776 by @YuriiMotov.
- ๐ Update embedded code examples to Python 3.10 syntax. PR #14758 by @YuriiMotov.
- ๐ Fix dependency installation command in
docs/en/docs/contributing.md. PR #14757 by @YuriiMotov. - ๐ Use return type annotation instead of
response_modelwhen possible. PR #14753 by @YuriiMotov. - ๐ Use
WSGIMiddlewarefroma2wsgiinstead of deprecatedfastapi.middleware.wsgi.WSGIMiddleware. PR #14756 by @YuriiMotov. - ๐ Fix minor typos in release notes. PR #14780 by @whyvineet.
- ๐ Fix copy button in custom.js. PR #14722 by @fcharrier.
- ๐ Add contribution instructions about LLM generated code and comments and automated tools for PRs. PR #14706 by @tiangolo.
- ๐ Update docs for management tasks. PR #14705 by @tiangolo.
- ๐ Update docs about managing translations. PR #14704 by @tiangolo.
- ๐ Update docs for contributing with translations. PR #14701 by @tiangolo.
- ๐ Specify language code for code block. PR #14656 by @YuriiMotov.
Translations
- ๐ Improve LLM prompt of
ukdocumentation. PR #14795 by @roli2py. - ๐ Update translations for ja (update-outdated). PR #14588 by @tiangolo.
- ๐ Update translations for uk (update outdated, found by fixer tool). PR #14739 by @YuriiMotov.
- ๐ Update translations for tr (update-outdated). PR #14745 by @tiangolo.
- ๐ Update
llm-prompt.mdfor Korean language. PR #14763 by @seuthootDev. - ๐ Update translations for ko (update outdated, found by fixer tool). PR #14738 by @YuriiMotov.
- ๐ Update translations for de (update-outdated). PR #14690 by @tiangolo.
- ๐ Update LLM prompt for Russian translations. PR #14733 by @YuriiMotov.
- ๐ Update translations for ru (update-outdated). PR #14693 by @tiangolo.
- ๐ Update translations for pt (update-outdated). PR #14724 by @tiangolo.
- ๐ Update Korean LLM prompt. PR #14740 by @hard-coders.
- ๐ Improve LLM prompt for Turkish translations. PR #14728 by @Kadermiyanyedi.
- ๐ Update portuguese llm-prompt.md. PR #14702 by @ceb10n.
- ๐ Update LLM prompt instructions file for French. PR #14618 by @tiangolo.
- ๐ Update translations for ko (add-missing). PR #14699 by @tiangolo.
- ๐ Update translations for ko (update-outdated). PR #14589 by @tiangolo.
- ๐ Update translations for uk (update-outdated). PR #14587 by @tiangolo.
- ๐ Update translations for es (update-outdated). PR #14686 by @tiangolo.
- ๐ง Add LLM prompt file for Turkish, generated from the existing translations. PR #14547 by @tiangolo.
- ๐ง Add LLM prompt file for Traditional Chinese, generated from the existing translations. PR #14550 by @tiangolo.
- ๐ง Add LLM prompt file for Simplified Chinese, generated from the existing translations. PR #14549 by @tiangolo.
Internal
- โฌ๏ธ Downgrade LLM translations model to GPT-5 to reduce mistakes. PR #14823 by @tiangolo.
- ๐ Fix translation script commit in place. PR #14818 by @tiangolo.
- ๐จ Update translation script to retry if LLM-response doesn't pass validation with Translation Fixer tool. PR #14749 by @YuriiMotov.
- ๐ท Run tests only on relevant code changes (not on docs). PR #14813 by @tiangolo.
- ๐ท Run mypy by pre-commit. PR #14806 by @YuriiMotov.
- โฌ Bump ruff from 0.14.3 to 0.14.14. PR #14798 by @dependabot[bot].
- โฌ Bump pyasn1 from 0.6.1 to 0.6.2. PR #14804 by @dependabot[bot].
- โฌ Bump sqlmodel from 0.0.27 to 0.0.31. PR #14802 by @dependabot[bot].
- โฌ Bump mkdocs-macros-plugin from 1.4.1 to 1.5.0. PR #14801 by @dependabot[bot].
- โฌ Bump gitpython from 3.1.45 to 3.1.46. PR #14800 by @dependabot[bot].
- โฌ Bump typer from 0.16.0 to 0.21.1. PR #14799 by @dependabot[bot].
- ๐ฅ Update FastAPI GitHub topic repositories. PR #14803 by @tiangolo.
- ๐ฅ Update FastAPI People - Contributors and Translators. PR #14796 by @tiangolo.
- ๐ง Ensure that an edit to
uv.lockgets theinternallabel. PR #14759 by @svlandeg. - ๐ง Update sponsors: remove Requestly. PR #14735 by @tiangolo.
- ๐ง Update sponsors, LambdaTest changes to TestMu AI. PR #14734 by @tiangolo.
- โฌ Bump actions/cache from 4 to 5. PR #14511 by @dependabot[bot].
- โฌ Bump actions/upload-artifact from 5 to 6. PR #14525 by @dependabot[bot].
- โฌ Bump actions/download-artifact from 6 to 7. PR #14526 by @dependabot[bot].
- ๐ท Tweak CI input names. PR #14688 by @tiangolo.
- ๐จ Refactor translation script to allow committing in place. PR #14687 by @tiangolo.
- ๐ Fix translation script path. PR #14685 by @tiangolo.
- โ Enable tests in CI for scripts. PR #14684 by @tiangolo.
- ๐ง Add pre-commit local script to fix language translations. PR #14683 by @tiangolo.
- โฌ๏ธ Migrate to uv. PR #14676 by @DoctorJohn.
- ๐จ Add LLM translations tool fixer. PR #14652 by @YuriiMotov.
- ๐ฅ Update FastAPI People - Sponsors. PR #14626 by @tiangolo.
- ๐ฅ Update FastAPI GitHub topic repositories. PR #14630 by @tiangolo.
- ๐ฅ Update FastAPI People - Contributors and Translators. PR #14625 by @tiangolo.
- ๐ Update translation prompts. PR #14619 by @tiangolo.
- ๐จ Update LLM translation script to guide reviewers to change the prompt. PR #14614 by @tiangolo.
- ๐ท Do not run translations on cron while finishing updating existing languages. PR #14613 by @tiangolo.
- ๐ฅ Remove test variants for Pydantic v1 in test_request_params. PR #14612 by @tiangolo.
- ๐ฅ Remove Pydantic v1 specific test variants. PR #14611 by @tiangolo.