pypi fastapi 0.81.0

latest releases: 0.115.0, 0.114.2, 0.114.1...
2 years ago

Features

  • ✨ Add ReDoc <noscript> warning when JS is disabled. PR #5074 by @evroon.
  • ✨ Add support for FrozenSet in parameters (e.g. query). PR #2938 by @juntatalor.
  • ✨ Allow custom middlewares to raise HTTPExceptions and propagate them. PR #2036 by @ghandic.
  • ✨ Preserve json.JSONDecodeError information when handling invalid JSON in request body, to support custom exception handlers that use its information. PR #4057 by @UKnowWhoIm.

Fixes

  • 🐛 Fix jsonable_encoder for dataclasses with pydantic-compatible fields. PR #3607 by @himbeles.
  • 🐛 Fix support for extending openapi_extras with parameter lists. PR #4267 by @orilevari.

Docs

  • ✏ Fix a simple typo in docs/en/docs/python-types.md. PR #5193 by @GlitchingCore.
  • ✏ Fix typos in tests/test_schema_extra_examples.py. PR #5126 by @supraaxdd.
  • ✏ Fix typos in docs/en/docs/tutorial/path-params-numeric-validations.md. PR #5142 by @invisibleroads.
  • 📝 Add step about upgrading pip in the venv to avoid errors when installing dependencies docs/en/docs/contributing.md. PR #5181 by @edisnake.
  • ✏ Reword and clarify text in tutorial docs/en/docs/tutorial/body-nested-models.md. PR #5169 by @papb.
  • ✏ Fix minor typo in docs/en/docs/features.md. PR #5206 by @OtherBarry.
  • ✏ Fix minor typos in docs/en/docs/async.md. PR #5125 by @Ksenofanex.
  • 📝 Add external link to docs: "Fastapi, Docker(Docker compose) and Postgres". PR #5033 by @krishnardt.
  • 📝 Simplify example for docs for Additional Responses, remove unnecessary else. PR #4693 by @adriangb.
  • 📝 Update docs, compare enums with identity instead of equality. PR #4905 by @MicaelJarniac.
  • ✏ Fix typo in docs/en/docs/python-types.md. PR #4886 by @MicaelJarniac.
  • 🎨 Fix syntax highlighting in docs for OpenAPI Callbacks. PR #4368 by @xncbf.
  • ✏ Reword confusing sentence in docs file typo-fix-path-params-numeric-validations.md. PR #3219 by @ccrenfroe.
  • 📝 Update docs for handling HTTP Basic Auth with secrets.compare_digest() to account for non-ASCII characters. PR #3536 by @lewoudar.
  • 📝 Update docs for testing, fix examples with relative imports. PR #5302 by @tiangolo.

Translations

  • 🌐 Add Russian translation for docs/ru/docs/index.md. PR #5289 by @impocode.
  • 🌐 Add Russian translation for docs/ru/docs/deployment/versions.md. PR #4985 by @emp7yhead.
  • 🌐 Add Portuguese translation for docs/pt/docs/tutorial/header-params.md. PR #4921 by @batlopes.
  • 🌐 Update ko/mkdocs.yml for a missing link. PR #5020 by @dalinaum.

Internal

  • ⬆ Bump dawidd6/action-download-artifact from 2.21.1 to 2.22.0. PR #5258 by @dependabot[bot].
  • ⬆ [pre-commit.ci] pre-commit autoupdate. PR #5196 by @pre-commit-ci[bot].
  • 🔥 Delete duplicated tests in tests/test_tutorial/test_sql_databases/test_sql_databases.py. PR #5040 by @raccoonyy.
  • ♻ Simplify internal RegEx in fastapi/utils.py. PR #5057 by @pylounge.
  • 🔧 Fix Type hint of auto_error which does not need to be Optional[bool]. PR #4933 by @DavidKimDY.
  • 🔧 Update mypy config, use strict = true instead of manual configs. PR #4605 by @michaeloliverx.
  • ♻ Change a dict() for {} in fastapi/utils.py. PR #3138 by @ShahriyarR.
  • ♻ Move internal variable for errors in jsonable_encoder to put related code closer. PR #4560 by @GuilleQP.
  • ♻ Simplify conditional assignment in fastapi/dependencies/utils.py. PR #4597 by @cikay.
  • ⬆ Upgrade version pin accepted for Flake8, for internal code, to flake8 >=3.8.3,<6.0.0. PR #4097 by @jamescurtin.
  • 🍱 Update Jina banner, fix typo. PR #5301 by @tiangolo.

Don't miss a new fastapi release

NewReleases is sending notifications on new releases.