- update to 0.110.2:
* Fix support for query parameters with list types, handle
JSON encoding Pydantic `UndefinedType`
* Simplify Pydantic configs in OpenAPI models in
`fastapi/openapi/models.py`.
* Add support for Pydantic's 2.7 new deprecated Field
parameter, remove URL from validation errors response.
- update to 0.110.1:
* Fix parameterless `Depends()` with generics.
* Update mypy.
* Simplify string format with f-strings in
`fastapi/applications.py`.
* Upgrade Starlette to >=0.37.2,<0.38.0, remove Starlette
filterwarning for internal tests. PR #11266 by @nothielf.
OBS-URL: https://build.opensuse.org/request/show/1169416
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-fastapi?expand=0&rev=31
* Fix support for query parameters with list types, handle
JSON encoding Pydantic `UndefinedType`
* Simplify Pydantic configs in OpenAPI models in
`fastapi/openapi/models.py`.
* Add support for Pydantic's 2.7 new deprecated Field
parameter, remove URL from validation errors response.
- update to 0.110.1:
* Fix parameterless `Depends()` with generics.
* Update mypy.
* Simplify string format with f-strings in
`fastapi/applications.py`.
* Upgrade Starlette to >=0.37.2,<0.38.0, remove Starlette
filterwarning for internal tests. PR #11266 by @nothielf.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fastapi?expand=0&rev=68
* Upgrade minimum version of `python-multipart` to `>=0.0.7`
to fix a vulnerability when using form data with a ReDos
attack. You can also simply upgrade `python-multipart`.
* Read more in the advisory: Content-Type Header ReDoS.
* Include HTTP 205 in status codes with no body.
* Fix broken link in `docs/tutorial/sql-databases.md` in
several languages.
* Remove broken links from `external_links.yml`.
* Update template docs with more info about `url_for`. PR
#5937 by @EzzEddin.
* Update usage of Token model in security docs.
* Update highlighted line in `docs/en/docs/tutorial/bigger-
applications.md`.
* Add External Link: Explore How to Effectively Use JWT With
FastAPI.
* Add hyperlink to `docs/en/docs/tutorial/static-files.md`.
* Add External Link: Instrument a FastAPI service adding
tracing with OpenTelemetry and send/show traces in Grafana
Tempo.
* Review and rewording of `en/docs/contributing.md`.
* Add External Link: ML serving and monitoring with FastAPI
and Evidently.
* Reword in docs, from "have in mind" to "keep in mind".
* Add External Link: Talk by Jeny Sadadia.
* Add location info to `tutorial/bigger-applications.md`.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fastapi?expand=0&rev=64
- update to 0.104.1:
* Pin Swagger UI version to 5.9.0 temporarily to handle a bug
crashing it in 5.9.1.
* Update data structure and render for external-links.
* Fix link to SPDX license identifier in
`docs/en/docs/tutorial/metadata.md`.
* Update example validation error from Pydantic v1 to match
Pydantic v2 in `docs/en/docs/tutorial/path-params.md`.
* Fix typos in emoji docs and in some source examples.
* Fix typo in `docs/en/docs/reference/dependencies.md`.
* Fix typos and rewordings in `docs/en/docs/tutorial/body-
nested-models.md`.
* Update docs, remove references to removed
`pydantic.Required` in `docs/en/docs/tutorial/query-params-
str-validations.md`.
* Fix typo in `docs/en/docs/reference/index.md`.
* Update Pydantic links to dotenv support.
* Update links in `docs/en/docs/async.md` and
`docs/zh/docs/async.md` to make them relative.
* Fix links in `docs/em/docs/async.md`.
* Fix typo in `docs/em/docs/index.md`
with custom docstrings for BackgroundTasks, refactor docs structure.
* dd support for openapi_examples in all FastAPI parameters.
- update to 0.97.0:
- Add exception handler for WebSocketRequestValidationError
- Upgrade and fully migrate to Ruff, remove isort, includes a
- Update internal type annotations and upgrade mypy.
- Simplify AsyncExitStackMiddleware as without Python 3.6
- Update to version 0.96.0:
OBS-URL: https://build.opensuse.org/request/show/1124010
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-fastapi?expand=0&rev=25
* Pin Swagger UI version to 5.9.0 temporarily to handle a bug
crashing it in 5.9.1.
* Update data structure and render for external-links.
* Fix link to SPDX license identifier in
`docs/en/docs/tutorial/metadata.md`.
* Update example validation error from Pydantic v1 to match
Pydantic v2 in `docs/en/docs/tutorial/path-params.md`.
* Fix typos in emoji docs and in some source examples.
* Fix typo in `docs/en/docs/reference/dependencies.md`.
* Fix typos and rewordings in `docs/en/docs/tutorial/body-
nested-models.md`.
* Update docs, remove references to removed
`pydantic.Required` in `docs/en/docs/tutorial/query-params-
str-validations.md`.
* Fix typo in `docs/en/docs/reference/index.md`.
* Update Pydantic links to dotenv support.
* Update links in `docs/en/docs/async.md` and
`docs/zh/docs/async.md` to make them relative.
* Fix links in `docs/em/docs/async.md`.
* Fix typo in `docs/em/docs/index.md`
with custom docstrings for BackgroundTasks, refactor docs structure.
* dd support for openapi_examples in all FastAPI parameters.
- update to 0.97.0:
- Add exception handler for WebSocketRequestValidationError
- Upgrade and fully migrate to Ruff, remove isort, includes a
- Update internal type annotations and upgrade mypy.
- Simplify AsyncExitStackMiddleware as without Python 3.6
- Update to version 0.96.0:
- Update Deta deployment tutorial for compatibility with Deta
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fastapi?expand=0&rev=56
* Allow disabling `redirect_slashes` at the FastAPI app
level.
* Update `Annotated` notes in `docs/en/docs/tutorial/schema-
extra-example.md`. PR #9620 by @Alexandrhub.
* Fix typo `Annotation` -> `Annotated` in
`docs/en/docs/tutorial/query-params-str-validations.md`.
* Use in memory database for testing SQL in docs.
* Add Russian translation for
`docs/ru/docs/tutorial/metadata.md`.
* Fix typo in Spanish translation for
`docs/es/docs/tutorial/first-steps.md`.
* Add Russian translation for `docs/tutorial/path-operation-
configuration.md`.
* Add Chinese translation for
`docs/zh/docs/advanced/security/index.md`.
* Add Chinese translations for
`docs/zh/docs/advanced/settings.md`.
* Add Chinese translations for
`docs/zh/docs/advanced/websockets.md`.
* Add Chinese translation for
`docs/zh/docs/tutorial/testing.md`.
* Add Russian translation for `docs/tutorial/extra-
models.md`.
* Add Russian translation for `docs/tutorial/cors.md`.
* Add Polish translation for `docs/pl/docs/features.md`.
* Add Russian translation for `docs/ru/docs/tutorial/body-
nested-models.md`.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fastapi?expand=0&rev=48
- update to 0.97.0:
* Features
- Add support for dependencies in WebSocket routes.
- Add exception handler for WebSocketRequestValidationError
(which also allows to override it).
* Refactors
- Upgrade and fully migrate to Ruff, remove isort, includes a
couple of tweaks suggested by the new version of Ruff.
- Update internal type annotations and upgrade mypy.
- Simplify AsyncExitStackMiddleware as without Python 3.6
AsyncExitStack is always available.
* Upgrades
- Upgrade Black.
OBS-URL: https://build.opensuse.org/request/show/1093963
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-fastapi?expand=0&rev=21
- update to 0.97.0:
* Features
- Add support for dependencies in WebSocket routes.
- Add exception handler for WebSocketRequestValidationError
(which also allows to override it).
* Refactors
- Upgrade and fully migrate to Ruff, remove isort, includes a
couple of tweaks suggested by the new version of Ruff.
- Update internal type annotations and upgrade mypy.
- Simplify AsyncExitStackMiddleware as without Python 3.6
AsyncExitStack is always available.
* Upgrades
- Upgrade Black.
OBS-URL: https://build.opensuse.org/request/show/1093954
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fastapi?expand=0&rev=45
- Update to version 0.96.0:
* Features
- Update create_cloned_field to use a global cache and improve
startup performance.
* Docs
- Update Deta deployment tutorial for compatibility with Deta
Space.
- Fix typo in Deta deployment tutorial.
* Translations
- Add Russian translation for docs/tutorial/body.md.
- Add Russian translation for docs/ru/docs/tutorial/static-files.md.
- Add Russian translation for docs/ru/docs/tutorial/query-params.md.
- Add Russian translation for docs/ru/docs/tutorial/first-steps.md.
- Add Russian translation for docs/ru/docs/tutorial/debugging.md.
- Add Russian translation for docs/ru/docs/tutorial/path-params.md.
- Add Chinese translation for docs/zh/docs/tutorial/static-files.md.
- Update Spanish translation including new illustrations in docs/es/docs/async.md.
- Add Russian translation for docs/ru/docs/tutorial/path-params-numeric-validations.md.
- Add Russian translation for docs/ru/docs/deployment/concepts.md.
- Add Russian translation for docs/ru/docs/tutorial/body-multiple-params.md.
OBS-URL: https://build.opensuse.org/request/show/1091044
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fastapi?expand=0&rev=41
- Update to version 0.95.2:
* Upgrade Starlette version to >=0.27.0 for a security release.
- Translations
* Add Portuguese translation for docs/pt/docs/advanced/events.md
* Add Russian translation for docs/ru/docs/deployment/manually.md
* Add setup for translations to Lao
* Add Russian translation for docs/ru/docs/tutorial/testing.md
* Add Russian translation for docs/ru/docs/deployment/https.md
* Fix command to install requirements in Windows.
* Add French translation for docs/fr/docs/advanced/response-directly.m*.
* Initiate Czech translation setup.
* Fix typo in Portuguese docs for docs/pt/docs/index.md
* Add Russian translation for docs/ru/docs/tutorial/response-status-co*.md
OBS-URL: https://build.opensuse.org/request/show/1087524
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fastapi?expand=0&rev=39
- Update to 0.95.0:
* Highlights
- This release adds support for dependencies and parameters
using Annotated and recommends its usage.
* Features
- Add support for PEP-593 Annotated for specifying dependencies
and parameters. PR #4871 by @nzig.
* Docs
- Tweak tip recommending Annotated in docs.
PR #9270 by @tiangolo.
- Update order of examples, latest Python version first, and
simplify version tab names. PR #9269 by @tiangolo.
- Update all docs to use Annotated as the main recommendation,
with new examples and tests. PR #9268 by @tiangolo.
OBS-URL: https://build.opensuse.org/request/show/1073258
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fastapi?expand=0&rev=32
- Update to 0.94.1:
* Fixes:
- Fix types for lifespan, upgrade Starlette to 0.26.1.
PR #9245 by @tiangolo.
- Update to 0.94.0:
* Upgrades
- Upgrade python-multipart to support 0.0.6.
PR #9212 by @musicinmybrain.
- Upgrade Starlette version, support new lifespan with state.
PR #9239 by @tiangolo.
* Docs
- Update Sentry link in docs. PR #9218 by @smeubank.
* Translations
- Add Russian translation for docs/ru/docs/history-design-future.md.
PR #5986 by @Xewus.
* Internal
- Add pydantic to PyPI classifiers. PR #5914 by @yezz123.
- Bump black from 22.10.0 to 23.1.0. PR #5953 by @dependabot[bot].
- Bump types-ujson from 5.6.0.0 to 5.7.0.1.
PR #6027 by @dependabot[bot].
- Bump dawidd6/action-download-artifact from 2.24.3 to 2.26.0.
PR #6034 by @dependabot[bot].
- [pre-commit.ci] pre-commit autoupdate.
PR #5709 by @pre-commit-ci[bot].
OBS-URL: https://build.opensuse.org/request/show/1071442
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fastapi?expand=0&rev=30
- Update to 0.91.0:
* Upgrades
- Upgrade Starlette version to 0.24.0 and refactor internals for
compatibility. This can solve nuanced errors when using
middlewares. Before Starlette 0.24.0, a new instance of each
middleware class would be created when a new middleware was
added. That normally was not a problem, unless the middleware
class expected to be created only once, with only one
instance, that happened in some cases. This upgrade would
solve those cases. Now the middleware class instances are
created once, right before the first request (the first time
the app is called). If you depended on that previous behavior,
you might need to update your code. As always, make sure your
tests pass before merging the upgrade.
- Update to 0.90.1:
* Upgrades
- Upgrade Starlette range to allow 0.23.1.
* Docs
- Tweak wording to clarify docs/en/docs/project-generation.md.
- Update Pydantic GitHub URLs.
- Add opinion from Cisco.
* Translations
- Add Russian translation for docs/ru/docs/tutorial/cookie-params.md
- Update to 0.90.0:
* Upgrades
- Bump Starlette from 0.22.0 to 0.23.0.
* Docs
- Add article "Tortoise ORM / FastAPI 整合快速筆記" to External
Links.
- Update FastAPI People.
- Micro-tweak help docs.
- Update new issue chooser to direct to GitHub Discussions.
- Recommend GitHub Discussions for questions.
* Translations
- Add Russian translation for docs/ru/docs/tutorial/body-fields.md.
- Add Russian translation for docs/ru/docs/help-fastapi.md.
- Add Portuguese translation for docs/pt/docs/tutorial/static-files.md.
- Add Portuguese translation for docs/pt/docs/tutorial/encoder.md.
- Add Russian translation for docs/ru/docs/contributing.md.
OBS-URL: https://build.opensuse.org/request/show/1064387
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-fastapi?expand=0&rev=12
- Update to 0.89.1:
* Fixes
- Ignore Response classes on return annotation.
* Docs
- Update docs and examples for Response Model with Return Type
Annotations, and update runtime error.
- New docs at Response Model - Return Type: Other Return Type
Annotations.
- Add External Link: FastAPI lambda container: serverless
simplified.
* Translations
- Add Turkish translation for docs/tr/docs/tutorial/first_steps.md.
- Update to 0.89.0:
* Features
- Add support for function return type annotations to declare the response_model.
* Docs
- Add External Link: Authorization on FastAPI with Casbin.
- Fix typo in docs/en/docs/async.md.
- Fix typo in docs/en/docs/deployment/concepts.md.
* Translations
- Add Russian translation for docs/ru/docs/fastapi-people.md.
- Fix typo in Chinese translation for docs/zh/docs/benchmarks.md.
- Add Korean translation for docs/tutorial/cors.md.
* Internal
- Update coverage[toml] requirement from <7.0,>=6.5.0 to >=6.5.0,<8.0.
- Update uvicorn[standard] requirement from <0.19.0,>=0.12.0 to >=0.12.0,<0.21.0 for development.
- Bump dawidd6/action-download-artifact from 2.24.2 to 2.24.3.
- Update FastAPI People.
- Bump types-ujson from 5.5.0 to 5.6.0.0.
- Bump pypa/gh-action-pypi-publish from 1.5.2 to 1.6.4.
OBS-URL: https://build.opensuse.org/request/show/1057952
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fastapi?expand=0&rev=22
- Remove flit from build requirements: The real used backend
is hatchling
- Clean up specfile
* remove duplicate copyright header
* remove catchall in files section
- Drop python-fastapi-disable-broken-tests.patch
- Prune the test suite when run in lettered staging projects:
python-mocket pulls this into Ring1. Let's make it as painless as
possible.
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-fastapi?expand=0&rev=10