pypi fastapi 0.99.0

latest releases: 0.115.0, 0.114.2, 0.114.1...
15 months ago

Note: this is the last release before supporting Pydantic v2. You can try out the beta with support for Pydantic v2 now, a new beta supporting Pydantic v2 with these same changes from this release will be available in the next hours/days. And the final version (0.100.0) with support for Pydantic v2 will be released in the next days (next week).

Now, back to this release (this one doesn't include the beta support for Pydantic v2).

This release has ✨ OpenAPI 3.1.0 ✨ 🎉

Features

  • ✨ Add support for OpenAPI 3.1.0. PR #9770 by @tiangolo.

    • New support for documenting webhooks, read the new docs here: Advanced User Guide: OpenAPI Webhooks.
    • Upgrade OpenAPI 3.1.0, this uses JSON Schema 2020-12.
    • Upgrade Swagger UI to version 5.x.x, that supports OpenAPI 3.1.0.
    • Updated examples field in Query(), Cookie(), Body(), etc. based on the latest JSON Schema and OpenAPI. Now it takes a list of examples and they are included directly in the JSON Schema, not outside. Read more about it (including the historical technical details) in the updated docs: Tutorial: Declare Request Example Data.
  • ✨ Add support for deque objects and children in jsonable_encoder. PR #9433 by @cranium.

Docs

  • 📝 Fix form for the FastAPI and friends newsletter. PR #9749 by @tiangolo.

Translations

  • 🌐 Add Persian translation for docs/fa/docs/advanced/sub-applications.md. PR #9692 by @mojtabapaso.
  • 🌐 Add Russian translation for docs/ru/docs/tutorial/response-model.md. PR #9675 by @glsglsgls.

Internal

  • 🔨 Enable linenums in MkDocs Material during local live development to simplify highlighting code. PR #9769 by @tiangolo.
  • ⬆ Update httpx requirement from <0.24.0,>=0.23.0 to >=0.23.0,<0.25.0. PR #9724 by @dependabot[bot].
  • ⬆ Bump mkdocs-material from 9.1.16 to 9.1.17. PR #9746 by @dependabot[bot].
  • 🔥 Remove missing translation dummy pages, no longer necessary. PR #9751 by @tiangolo.
  • ⬆ [pre-commit.ci] pre-commit autoupdate. PR #9259 by @pre-commit-ci[bot].
  • ✨ Add Material for MkDocs Insiders features and cards. PR #9748 by @tiangolo.
  • 🔥 Remove languages without translations. PR #9743 by @tiangolo.
  • ✨ Refactor docs for building scripts, use MkDocs hooks, simplify (remove) configs for languages. PR #9742 by @tiangolo.
  • 🔨 Add MkDocs hook that renames sections based on the first index file. PR #9737 by @tiangolo.
  • 👷 Make cron jobs run only on main repo, not on forks, to avoid error notifications from missing tokens. PR #9735 by @tiangolo.
  • 🔧 Update MkDocs for other languages. PR #9734 by @tiangolo.
  • 👷 Refactor Docs CI, run in multiple workers with a dynamic matrix to optimize speed. PR #9732 by @tiangolo.
  • 🔥 Remove old internal GitHub Action watch-previews that is no longer needed. PR #9730 by @tiangolo.
  • ⬆️ Upgrade MkDocs and MkDocs Material. PR #9729 by @tiangolo.
  • 👷 Build and deploy docs only on docs changes. PR #9728 by @tiangolo.

Don't miss a new fastapi release

NewReleases is sending notifications on new releases.