Release 0.128.1 ยท fastapi/fastapi

Features

  • โœจ Add viewport meta 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 ValidationError schema to include input and ctx. PR #14791 by @jonathan-fulton.
  • ๐Ÿ› Fix TYPE_CHECKING annotations for Python 3.14 (PEP 649). PR #14789 by @mgu.
  • ๐Ÿ› Strip whitespaces from Authorization header credentials. PR #14786 by @WaveTheory1.
  • ๐Ÿ› Fix OpenAPI duplication of anyOf refs for app-level responses with specified content and model as Union. PR #14463 by @DJMcoder.

Refactors

  • ๐ŸŽจ Tweak types for mypy. PR #14816 by @tiangolo.
  • ๐Ÿท๏ธ Re-export IncEx type 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_b code 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_model when possible. PR #14753 by @YuriiMotov.
  • ๐Ÿ“ Use WSGIMiddleware from a2wsgi instead of deprecated fastapi.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 uk documentation. 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.md for 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