fastapi/fastapi
Sebastián Ramírez 7dad5a820b
Add support for OpenAPI 3.1.0 (#9770)
*  Update OpenAPI models for JSON Schema 2020-12 and OpenAPI 3.1.0

*  Add support for summary and webhooks

*  Update JSON Schema for UploadFiles

* ️ Revert making paths optional, to ensure always correctness

* ️ Keep UploadFile as format: binary for compatibility with the rest of Pydantic bytes fields in v1

*  Update version of OpenAPI generated to 3.1.0

*  Update the version of Swagger UI

* 📝 Update docs about extending OpenAPI

* 📝 Update docs and links to refer to OpenAPI 3.1.0

*  Update logic for handling webhooks

* ♻️ Update parameter functions and classes, deprecate example and make examples the main field

*  Update tests for OpenAPI 3.1.0

* 📝 Update examples for OpenAPI metadata

*  Add and update tests for OpenAPI metadata

* 📝 Add source example for webhooks

* 📝 Update docs for metadata

* 📝 Update docs for Schema extra

* 📝 Add docs for webhooks

* 🔧 Add webhooks docs to MkDocs

*  Update tests for extending OpenAPI

*  Add tests for webhooks

* ♻️ Refactor generation of OpenAPI and JSON Schema with params

* 📝 Update source examples for field examples

*  Update tests for examples

*  Make sure the minimum version of typing-extensions installed has deprecated() (already a dependency of Pydantic)

* ✏️ Fix typo in Webhooks example code

* 🔥 Remove commented out code of removed nullable field

* 🗑️ Add deprecation warnings for example argument

*  Update tests to check for deprecation warnings

*  Add test for webhooks with security schemes, for coverage

* 🍱 Update image for metadata, with new summary

* 🍱 Add docs image for Webhooks

* 📝 Update docs for webhooks, add docs UI image
2023-06-30 20:25:16 +02:00
..
dependencies 🐛 Fix using `Annotated` in routers or path operations decorated multiple times (#9315) 2023-04-13 10:49:22 -07:00
middleware ♻️ Simplify `AsyncExitStackMiddleware` as without Python 3.6 `AsyncExitStack` is always available (#9657) 2023-06-11 21:49:18 +00:00
openapi Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +02:00
security ♻️ Update internal type annotations and upgrade mypy (#9658) 2023-06-11 22:16:01 +00:00
__init__.py 🔖 Release version 0.98.0 2023-06-22 19:58:22 +02:00
applications.py Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +02:00
background.py Improve type annotations, add support for mypy --strict, internally and for external packages (#2547) 2020-12-20 19:50:00 +01:00
concurrency.py 🔧 Update package metadata, drop support for Python 3.6, move build internals from Flit to Hatch (#5240) 2022-09-14 20:31:19 +02:00
datastructures.py Add support for declaring `UploadFile` parameters without explicit `File()` (#4469) 2022-01-23 19:14:13 +00:00
encoders.py Add support for `deque` objects and children in `jsonable_encoder` (#9433) 2023-06-28 18:39:10 +02:00
exception_handlers.py Add exception handler for `WebSocketRequestValidationError` (which also allows to override it) (#6030) 2023-06-11 21:08:14 +02:00
exceptions.py 🐛 Fix `HTTPException` header type annotations (#9648) 2023-06-10 19:23:12 +02:00
logger.py 🔊 Refactor logging (#781) 2019-12-09 20:02:44 +01:00
param_functions.py Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +02:00
params.py Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +02:00
py.typed add py.typed to ship typing information (#209) 2019-05-11 13:43:47 +04:00
requests.py ⬆ Require Pydantic > 1.0 (#1862) 2020-08-09 22:17:08 +02:00
responses.py ♻ Remove `media_type` from `ORJSONResponse` as it's inherited from the parent class (#5805) 2023-06-10 19:04:29 +02:00
routing.py ⬆️ Upgrade and fully migrate to Ruff, remove isort, includes a couple of tweaks suggested by the new version of Ruff (#9660) 2023-06-12 00:37:34 +02:00
staticfiles.py Improve type annotations, add support for mypy --strict, internally and for external packages (#2547) 2020-12-20 19:50:00 +01:00
templating.py Improve type annotations, add support for mypy --strict, internally and for external packages (#2547) 2020-12-20 19:50:00 +01:00
testclient.py Improve type annotations, add support for mypy --strict, internally and for external packages (#2547) 2020-12-20 19:50:00 +01:00
types.py Improve type annotations, add support for mypy --strict, internally and for external packages (#2547) 2020-12-20 19:50:00 +01:00
utils.py Update `create_cloned_field` to use a global cache and improve startup performance (#4645) 2023-06-03 13:37:41 +00:00
websockets.py Export `WebSocketState` in `fastapi.websockets` (#4376) 2022-09-04 17:12:10 +02:00