d455977186
- Add missing Requires on typing-inspection. - Add missing BuildRequires on a2wsgi and uvicorn for the testsuite.
Steve Kowalik2026-02-17 04:24:40 +00:00
d3e4d8aca9
- update to 0.129.0: * Drop support for Python 3.9. * Fix grammar in docs/en/docs/tutorial/first-steps.md. * Tweak PDM hook script. * Show a clear error on attempt to include router into itself. * Replace dict by Mapping on HTTPException.headers. PR * Simplify reading files in memory, do it sequentially instead of (fake) parallel. * Fix on_startup and on_shutdown parameters of APIRouter. * Update translations for zh (update-outdated). * Fix parameterized tests with snapshots. * Refactor and simplify Pydantic v2 (and v1) compatibility internal utils. * Add inline snapshot tests for OpenAPI before changes from Pydantic v2. * Update translations for fr (outdated pages). * Update translations for tr (outdated and missing). * Upgrade Starlette supported version range to starlette>=0.40.0,<1.0.0. * Add support for PEP695 TypeAliasType. * Allow Response type hint as dependency annotation. * Add viewport meta tag to improve Swagger UI on mobile devices. * Update ValidationError schema to include input and ctx. * Fix TYPE_CHECKING annotations for Python 3.14 (PEP 649). * Strip whitespaces from Authorization header credentials. PR
Dirk Mueller2026-02-16 17:57:24 +00:00
61da41704e
Accepting request 1320604 from devel:languages:python
Ana Guerrero2025-12-02 12:18:59 +00:00
3aa62a12ac
Accepting request 1320446 from home:mgrossu:branches:devel:languages:python
Matej Cepl2025-11-29 22:20:19 +00:00
1d3a2a5266
- Drop unneeded BuildRequires on databases.
Steve Kowalik2025-10-31 03:36:31 +00:00
5a98b8a3df
Accepting request 1314565 from home:nkrapp:branches:devel:languages:python
Steve Kowalik2025-10-31 03:19:36 +00:00
dddddf463d
Accepting request 1307029 from devel:languages:python
Ana Guerrero2025-09-26 20:24:10 +00:00
2039ef9fa6
- Update to 0.117.1: * Features + Allow None as return type for bodiless responses. + Allow array values for OpenAPI schema type field. + Add OpenAPI external_docs parameter to FastAPI. + Add support for deploying to FastAPI Cloud with fastapi deploy. * Upgrades + Upgrade Starlette supported version range to >=0.40.0,<0.49.0. * Fixes + Fix validation error when File is declared after Form parameter. + Fix default_factory for response model field with Pydantic V1. + Fix inconsistent processing of model docstring formfeed char with Pydantic V1. + Fix jsonable_encoder alters json_encoders of Pydantic v1 objects. + Reenable allow_arbitrary_types when only 1 argument is used on the API endpoint. + Fix inspect.getcoroutinefunction() can break testing with unittest.mock.patch(). + Fix support for unions when using Form. - Update URL. - Drop patch support-starlette-0.47.patch, no longer required.
Steve Kowalik2025-09-25 05:37:25 +00:00
e66ce00db4
Accepting request 1300291 from devel:languages:python
Ana Guerrero2025-08-20 11:24:45 +00:00
f79eebd413
- Convert to libalternatives on SLE-16-based and newer systems only
Markéta Machová2025-08-19 13:15:03 +00:00
b0da553cf1
Accepting request 1291283 from devel:languages:python
Ana Guerrero2025-07-09 15:26:15 +00:00
4ac4c624ff
Accepting request 1288758 from devel:languages:python
Ana Guerrero2025-06-27 21:00:21 +00:00
e93433317c
- Remove ringdisabled, switch to standard multibuild with a test flavor.
Steve Kowalik2025-06-27 00:44:33 +00:00
168443827d
- Update to 0.115.13: * Fix truncating the model's description with form feed (\f) character for Pydantic V2. - Ignore more test files with ringdisabled as inline_snapshot expands inside the testsuite.
Steve Kowalik2025-06-24 01:54:42 +00:00
796e48f43b
- Update to 0.115.12: * Fix convert_underscores=False for header Pydantic models. * Add docs examples and tests (support) for Annotated custom validations, like AfterValidator. * Update internal annotation usage for compatibility with Pydantic 2.11. * Ensure that HTTPDigest only raises an exception when auto_error is True. - Drop remove-classifiers.patch, no longer required.
Steve Kowalik2025-05-01 05:54:46 +00:00
a5fc613b34
- Update to 0.115.8 * Fix OAuth2PasswordRequestForm and OAuth2PasswordRequestFormStrict fixed grant_type "password" RegEx. * Simplify tests for body_multiple_params. * Move duplicated code portion to a static method in the APIKeyBase super class. * Simplify tests for request_files. * Change the word "unwrap" to "unpack" in docs/en/docs/tutorial/extra-models.md. * Update Request Body's tutorial002 to deal with tax=0 case. * Update FastAPI People - Experts. * Add Japanese translation for docs/ja/docs/environment-variables.md. * Add Russian translation for docs/ru/docs/advanced/async-tests.md. * Update Russian translation for docs/ru/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md. * Add Russian translation for docs/ru/docs/tutorial/bigger-applications.md. * Add support for Python 3.13. * Upgrade AnyIO max version for tests, new range: >=3.2.1,<5.0.0. * Update Sponsors badges. * Fix notify_translations.py empty env var handling for PR label events vs workflow_dispatch. * Refactor and move scripts/notify_translations.py, no need for a custom GitHub Action. * Update FastAPI People Experts script, refactor and optimize data fetching to handle rate limits. * Bump pypa/gh-action-pypi-publish from 1.12.3 to 1.12.4. - from version 0.115.7 * Upgrade python-multipart to >=0.0.18. * Bump Starlette to allow up to 0.45.0: >=0.40.0,<0.46.0. * Upgrade jinja2 to >=3.1.5. * Simplify tests for websockets. * Simplify tests for request_form_models. * Simplify tests for separate_openapi_schemas. * Simplify tests for security. * Simplify tests for schema_extra_example. * Simplify tests for request_model. * Simplify tests for request_forms_and_files.
Markéta Machová2025-02-07 13:03:04 +00:00
94ab27ca24
Accepting request 1244123 from home:glaubitz:branches:devel:languages:python
Markéta Machová2025-02-07 13:03:04 +00:00
edc2e24260
Accepting request 1230775 from devel:languages:python
Ana Guerrero2024-12-13 21:33:10 +00:00
86189c6fd0
Accepting request 1230775 from devel:languages:python
Ana Guerrero2024-12-13 21:33:10 +00:00
51a5f8bacc
Accepting request 1230610 from home:bnavigator:branches:devel:languages:python
Matej Cepl2024-12-13 10:42:59 +00:00
c08e105ae8
Accepting request 1230610 from home:bnavigator:branches:devel:languages:python
Matej Cepl2024-12-13 10:42:59 +00:00
227a1c96f2
Accepting request 1228546 from devel:languages:python
Ana Guerrero2024-12-06 13:25:18 +00:00
4462f02717
Accepting request 1228546 from devel:languages:python
Ana Guerrero2024-12-06 13:25:18 +00:00
973ec18fc1
- update to 0.115.6: * Preserve traceback when an exception is raised in sync dependency with yield. PR #5823 by @sombek. * Update tests and internals for compatibility with Pydantic >=2.10. PR #12971 by @tamird.
Dirk Mueller2024-12-05 14:50:18 +00:00
55e96e3ff2
- update to 0.115.6: * Preserve traceback when an exception is raised in sync dependency with yield. PR #5823 by @sombek. * Update tests and internals for compatibility with Pydantic >=2.10. PR #12971 by @tamird.
Dirk Mueller2024-12-05 14:50:18 +00:00
0ec657bb58
Accepting request 1225489 from devel:languages:python
Ana Guerrero2024-11-21 14:13:35 +00:00
548e77067e
Accepting request 1225489 from devel:languages:python
Ana Guerrero2024-11-21 14:13:35 +00:00
eb3a87b14a
- update to 0.115.5: * Update internal checks to support Pydantic 2.10. * Fix error in docs/en/docs/tutorial/middleware.md. - update to 0.115.4: * Update logic to import and check python-multipart for compatibility with newer version. - update to 0.115.3: * Upgrade Starlette to >=0.40.0,<0.42.0. * Fix broken link in docs. - drop allow-new-starlette.patch (obsolete)
Dirk Mueller2024-11-21 08:54:16 +00:00
2ce1388fcd
- update to 0.115.5: * Update internal checks to support Pydantic 2.10. * Fix error in docs/en/docs/tutorial/middleware.md. - update to 0.115.4: * Update logic to import and check python-multipart for compatibility with newer version. - update to 0.115.3: * Upgrade Starlette to >=0.40.0,<0.42.0. * Fix broken link in docs. - drop allow-new-starlette.patch (obsolete)
Dirk Mueller2024-11-21 08:54:16 +00:00
61e3dc8711
Accepting request 1222081 from devel:languages:python
Ana Guerrero2024-11-08 10:56:16 +00:00
149af33da5
Accepting request 1222081 from devel:languages:python
Ana Guerrero2024-11-08 10:56:16 +00:00
f598bf77f9
Accepting request 1208759 from devel:languages:python
Ana Guerrero2024-10-20 08:13:06 +00:00
043a5cb9c1
Accepting request 1208759 from devel:languages:python
Ana Guerrero2024-10-20 08:13:06 +00:00
8ae89947fe
- Update to 0.115.2: * Upgrade Starlette to >=0.37.2,<0.41.0. * Fix openapi generation with responses kwarg. * Remove Required shadowing from fastapi using Pydantic v2. * Add support for Pydantic models for parameters using Query, Cookie, Header - Add patch allow-new-starlette.patch.
Steve Kowalik2024-10-18 03:24:19 +00:00
03a9edfb79
- Update to 0.115.2: * Upgrade Starlette to >=0.37.2,<0.41.0. * Fix openapi generation with responses kwarg. * Remove Required shadowing from fastapi using Pydantic v2. * Add support for Pydantic models for parameters using Query, Cookie, Header - Add patch allow-new-starlette.patch.
Steve Kowalik2024-10-18 03:24:19 +00:00
8d93db22d9
Accepting request 1202122 from devel:languages:python
Ana Guerrero2024-09-22 09:05:39 +00:00
8b666dc651
Accepting request 1202122 from devel:languages:python
Ana Guerrero2024-09-22 09:05:39 +00:00
be13249886
- Update to 0.114.2: * Fix form field regression with alias. * Improve performance in request body parsing with a cache for internal model fields. * Add support for Pydantic models in Form parameters. * Fix allow_inf_nan option for Param and Body classes. * Ensure that app.include_router merges nested lifespans. * Allow Starlette 0.38.x, update the pin to >=0.37.2,<0.39.0 - Drop patch allow-starlette-0.38.patch, included upstream.
Steve Kowalik2024-09-17 05:46:48 +00:00
526a2044eb
- Update to 0.114.2: * Fix form field regression with alias. * Improve performance in request body parsing with a cache for internal model fields. * Add support for Pydantic models in Form parameters. * Fix allow_inf_nan option for Param and Body classes. * Ensure that app.include_router merges nested lifespans. * Allow Starlette 0.38.x, update the pin to >=0.37.2,<0.39.0 - Drop patch allow-starlette-0.38.patch, included upstream.
Steve Kowalik2024-09-17 05:46:48 +00:00
701762b647
- update to 0.112.0: * Add support for pip install "fastapi[standard]" with standard dependencies and python -m fastapi - version 0.111.1: * Remove orjson and ujson from default dependencies. These dependencies are still installed when you install with pip install "fastapi[all]" * Restored Swagger-UI links to use the latest version possible - version 0.111.0: * Add FastAPI CLI, the new fastapi command * Add configs and setup for fastapi-slim including optional extras fastapi-slim[standard], and fastapi including by default the same standard extras
Daniel Garcia2024-08-08 09:35:24 +00:00
11f7f9c37d
- update to 0.112.0: * Add support for pip install "fastapi[standard]" with standard dependencies and python -m fastapi - version 0.111.1: * Remove orjson and ujson from default dependencies. These dependencies are still installed when you install with pip install "fastapi[all]" * Restored Swagger-UI links to use the latest version possible - version 0.111.0: * Add FastAPI CLI, the new fastapi command * Add configs and setup for fastapi-slim including optional extras fastapi-slim[standard], and fastapi including by default the same standard extras
Daniel Garcia2024-08-08 09:35:24 +00:00
0037fa1259
Accepting request 1169416 from devel:languages:python
Ana Guerrero2024-04-30 15:25:37 +00:00
3fe37258b9
Accepting request 1169416 from devel:languages:python
Ana Guerrero2024-04-30 15:25:37 +00:00
91a6062046
- 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.
Dirk Mueller2024-04-20 20:54:41 +00:00
f8f39bb8e3
- 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.
Dirk Mueller2024-04-20 20:54:41 +00:00
08e52fecc4
Accepting request 1156813 from devel:languages:python
Ana Guerrero2024-03-14 16:42:13 +00:00
e83b89e7e0
Accepting request 1156813 from devel:languages:python
Ana Guerrero2024-03-14 16:42:13 +00:00
648ab7e202
- Update to 0.110.0: * Fix unhandled growing memory for internal server errors, refactor dependencies with yield and except to require raising again as in regular Python. - Switch to pydantic version 2 by pulling in pydantic-settings.
Steve Kowalik2024-03-11 03:30:34 +00:00
69febd5e98
- Update to 0.110.0: * Fix unhandled growing memory for internal server errors, refactor dependencies with yield and except to require raising again as in regular Python. - Switch to pydantic version 2 by pulling in pydantic-settings.
Steve Kowalik2024-03-11 03:30:34 +00:00
969ba972f9
Accepting request 1146442 from devel:languages:python
Ana Guerrero2024-02-14 22:18:54 +00:00
9c32640989
Accepting request 1146442 from devel:languages:python
Ana Guerrero2024-02-14 22:18:54 +00:00
5f0f633282
- update to 0.109.1 [bsc#1219610] CVE-2024-24762: * 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.
Dirk Mueller2024-02-06 14:27:23 +00:00
1837e45e57
- update to 0.109.1 [bsc#1219610] CVE-2024-24762: * 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.
Dirk Mueller2024-02-06 14:27:23 +00:00
e3bfa57df8
Accepting request 1138589 from devel:languages:python
Ana Guerrero2024-01-21 22:07:36 +00:00
99c6af81f0
Accepting request 1138589 from devel:languages:python
Ana Guerrero2024-01-21 22:07:36 +00:00
e8cf72301d
Accepting request 1138505 from home:bnavigator:branches:devel:languages:python
Dirk Mueller2024-01-14 15:17:29 +00:00
cc91fe8ae4
Accepting request 1138505 from home:bnavigator:branches:devel:languages:python
Dirk Mueller2024-01-14 15:17:29 +00:00
827d1599f9
Accepting request 1135254 from devel:languages:python
Ana Guerrero2023-12-28 21:54:33 +00:00
4fd4c8a422
Accepting request 1135254 from devel:languages:python
Ana Guerrero2023-12-28 21:54:33 +00:00
cb01d48d36
- update to 0.108.0: * Upgrade Starlette to >=0.29.0,<0.33.0, update docs and usage of templates with new Starlette arguments.
Dirk Mueller2023-12-27 09:45:15 +00:00
4994b5b4da
- update to 0.108.0: * Upgrade Starlette to >=0.29.0,<0.33.0, update docs and usage of templates with new Starlette arguments.
Dirk Mueller2023-12-27 09:45:15 +00:00
f7a4508d9f
Accepting request 1133051 from devel:languages:python
Ana Guerrero2023-12-15 20:46:47 +00:00
18ae9341c3
Accepting request 1133051 from devel:languages:python
Ana Guerrero2023-12-15 20:46:47 +00:00
34a815a779
- update to 0.105.0: * Add support for multiple Annotated annotations, e.g. Annotated[str, Field(), Query()]. * Remove unused NoneType. * Tweak default suggested configs for generating clients.
Dirk Mueller2023-12-14 10:15:07 +00:00
b4cf3ad472
- update to 0.105.0: * Add support for multiple Annotated annotations, e.g. Annotated[str, Field(), Query()]. * Remove unused NoneType. * Tweak default suggested configs for generating clients.
Dirk Mueller2023-12-14 10:15:07 +00:00
ff901d9cca
Accepting request 1124010 from devel:languages:python
Ana Guerrero2023-11-08 21:16:49 +00:00
c2ddbf0907
Accepting request 1124010 from devel:languages:python
Ana Guerrero2023-11-08 21:16:49 +00:00
40113d6cb6
- 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: - Update Deta deployment tutorial for compatibility with Deta
Dirk Mueller2023-11-07 14:35:08 +00:00
e721380de5
- 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: - Update Deta deployment tutorial for compatibility with Deta
Dirk Mueller2023-11-07 14:35:08 +00:00
55f035113f
Accepting request 1119161 from devel:languages:python
Ana Guerrero2023-10-20 21:16:26 +00:00
873256de83
Accepting request 1119161 from devel:languages:python
Ana Guerrero2023-10-20 21:16:26 +00:00