Sebastián Ramírez
ed0fcba7cb
🔖 Release version 0.83.0
2022-09-11 18:25:29 +02:00
Irfanuddin Shafi Ahmed
4d270463af
🐛 Fix `RuntimeError` raised when `HTTPException` has a status code with no content ( #5365 )
...
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2022-09-11 16:13:36 +00:00
Thomas Meckel
0b4fe10c8f
🐛 Fix empty reponse body when default `status_code` is empty but the a `Response` parameter with `response.status_code` is set ( #5360 )
...
Co-authored-by: Thomas Meckel <tmeckel@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2022-09-08 15:02:59 +00:00
DCsunset
3ec498af63
✨ Add support in `jsonable_encoder` for include and exclude with dataclasses ( #4923 )
...
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2022-09-08 16:29:23 +02:00
Sebastián Ramírez
3079ba925e
🔖 Release version 0.82.0
2022-09-04 21:26:31 +02:00
Adrian Garcia Badaracco
f8460a8b54
🐛 Allow exit code for dependencies with `yield` to always execute, by removing capacity limiter for them, to e.g. allow closing DB connections without deadlocks ( #5122 )
...
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2022-09-04 21:09:24 +02:00
Mateusz Nowak
dacb689290
✨ Export `WebSocketState` in `fastapi.websockets` ( #4376 )
2022-09-04 17:12:10 +02:00
Charlie DiGiovanna
56f887de15
🐛 Make sure a parameter defined as required is kept required in OpenAPI even if defined as optional in another dependency ( #4319 )
...
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2022-09-03 17:12:41 +00:00
Junghoon Yang
52b5b08910
♻ Internal small refactor, move `operation_id` parameter position in delete method for consistency with the code ( #4474 )
...
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2022-09-02 13:36:00 +00:00
Marcelo Trylesinski
30b3905ef3
✨ Support Python internal description on Pydantic model's docstring ( #3032 )
...
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2022-09-02 14:43:21 +02:00
abc.zxy
7250c194da
✨ Update `ORJSONResponse` to support non `str` keys and serializing Numpy arrays ( #3892 )
...
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-09-02 10:17:31 +00:00
David Brochart
d8b6aa630c
🐛 Fix support for path parameters in WebSockets ( #3879 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2022-09-01 10:50:47 +02:00
Sebastián Ramírez
0bb8920ae1
🔖 Release version 0.81.0
2022-08-26 17:18:44 +02:00
Luis R
22bed0008c
🐛 Fix `jsonable_encoder` for dataclasses with pydantic-compatible fields ( #3607 )
...
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-08-26 15:56:47 +02:00
Erik Vroon
de6ccd7754
✨ Add ReDoc `<noscript>` warning when JS is disabled ( #5074 )
...
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2022-08-26 13:56:07 +00:00
pylounge
dc10b81d05
♻ Simplify internal RegEx in `fastapi/utils.py` ( #5057 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-08-26 15:46:22 +02:00
David Kim
0539dd9cd3
🔧 Fix Type hint of `auto_error` which does not need to be `Optional[bool]` ( #4933 )
2022-08-26 15:29:50 +02:00
Shahriyar Rzayev
00bdf533ef
♻ Change a `dict()` for `{}` in `fastapi/utils.py` ( #3138 )
2022-08-26 15:23:25 +02:00
Guillermo Quintana Pelayo
a64387c3fc
♻ Move internal variable for errors in `jsonable_encoder` to put related code closer ( #4560 )
...
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2022-08-26 13:16:44 +00:00
Muzaffer Cikay
c8124496fc
♻ Simplify conditional assignment in `fastapi/dependencies/utils.py` ( #4597 )
...
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2022-08-26 13:16:17 +00:00
Ori Levari
880c8b37cf
🐛 Fix support for extending `openapi_extras` with parameter lists ( #4267 )
...
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2022-08-26 09:26:20 +00:00
juntatalor
ca2fae0588
✨ Add support for `FrozenSet` in parameters (e.g. query) ( #2938 )
...
Co-authored-by: saborisov <borisov_s@tass.ru>
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2022-08-25 23:52:53 +02:00
Andy Challis
eb3ab337ab
✨ Allow custom middlewares to raise `HTTPException`s and propagate them ( #2036 )
...
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-08-25 23:44:40 +02:00
Sidharth Ajithkumar
9359a8d65f
✨ Preserve `json.JSONDecodeError` information when handling invalid JSON in request body, to support custom exception handlers that use its information ( #4057 )
...
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-08-25 11:55:53 +02:00
Sebastián Ramírez
7d6e70791d
🔖 Release version 0.80.0
2022-08-23 16:14:48 +02:00
Teo Koon Peng
ec072d75fe
⬆ Upgrade Swagger UI copy of `oauth2-redirect.html` to include fixes for flavors of authorization code flows in Swagger UI ( #3439 )
...
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2022-08-23 13:57:25 +00:00
Andrey Semakin
f6808e76dc
♻ Strip empty whitespace from description extracted from docstrings ( #2821 )
...
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2022-08-23 13:47:19 +00:00
laggardkernel
b993b4af28
🐛 Fix cached dependencies when using a dependency in `Security()` and other places (e.g. `Depends()`) with different OAuth2 scopes ( #2945 )
...
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2022-08-23 13:30:24 +00:00
Taneli Hukkinen
634cf22584
🐛 Fix `response_model` not invalidating `None` ( #2725 )
...
Co-authored-by: Taneli Hukkinen <hukkinj1@users.noreply.github.com>
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2022-08-22 19:17:45 +00:00
Sebastián Ramírez
e7b1b96a54
🎨 Update type annotations for `response_model`, allow things like `Union[str, None]` ( #5294 )
2022-08-22 18:49:03 +00:00
Sebastián Ramírez
ab8988ff7c
🔖 Release version 0.79.1
2022-08-18 23:14:07 +02:00
Xavi Moreno
eb2e183361
🐛 Fix `jsonable_encoder` using `include` and `exclude` parameters for non-Pydantic objects ( #2606 )
...
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2022-08-18 22:48:21 +02:00
Luca Repetti
e88089ec21
🐛 Fix edge case with repeated aliases names not shown in OpenAPI ( #2351 )
...
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2022-08-18 20:31:19 +00:00
Sebastián Ramírez
50fb34bf55
🔖 Release version 0.79.0
2022-07-14 19:35:13 +02:00
Sebastián Ramírez
c43120258f
🐛 Fix removing body from status codes that do not support it ( #5145 )
2022-07-14 13:19:42 +02:00
Sebastián Ramírez
1876ebc779
🔖 Release version 0.78.0
2022-05-14 14:58:04 -05:00
Sebastián Ramírez
9262fa8362
✨ Add support for not needing `...` as default value in required Query(), Path(), Header(), etc. ( #4906 )
...
* ✨ Do not require default value in Query(), Path(), Header(), etc
* 📝 Update source examples for docs with default and required values
* ✅ Update tests with new default values and not required Ellipsis
* 📝 Update docs for Query params and update info about default value, required, Ellipsis
2022-05-13 18:38:22 -05:00
Shahriyar Rzayev
82775f7cd0
♻ Refactor dict value extraction to minimize key lookups `fastapi/utils.py` ( #3139 )
...
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2022-05-12 20:38:30 +00:00
Sebastián Ramírez
9cae3cdb09
🔧 Add Python formatting hooks to pre-commit ( #4890 )
2022-05-12 00:41:06 +00:00
Sebastián Ramírez
2aaac141dd
🔖 Release version 0.77.1
2022-05-09 23:19:32 -05:00
Marcelo Trylesinski
f396912043
⬆ Upgrade Starlette from 0.19.0 to 0.19.1 ( #4819 )
...
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2022-05-10 03:22:26 +00:00
Sebastián Ramírez
0696454445
🔖 Release version 0.77.0
2022-05-09 20:40:03 -05:00
Marcelo Trylesinski
86fa3cb24f
⬆ Upgrade Starlette from 0.18.0 to 0.19.0 ( #4488 )
...
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2022-05-09 13:06:42 -05:00
Sebastián Ramírez
9090c771ee
🔖 Release version 0.76.0
2022-05-05 17:26:05 -05:00
Marcelo Trylesinski
33d61430cf
⬆ Upgrade Starlette from 0.17.1 to 0.18.0 ( #4483 )
...
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2022-05-05 17:19:59 -05:00
Sebastián Ramírez
2b54432a9c
🔖 Release version 0.75.2
2022-04-17 23:08:37 +02:00
dconathan
c449ae5c74
🐛 Fix JSON Schema for `ValidationError` at field `loc` ( #3810 )
...
Co-authored-by: Devin Conathan <dconatha@amfam.com>
2022-04-17 19:41:46 +02:00
Marcelo Trylesinski
d81c908132
🐛 Fix support for prefix on APIRouter WebSockets ( #2640 )
...
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2022-04-17 19:21:53 +02:00
Alan Wright
acf8a91c25
⬆ Upgrade Swagger UI - swagger-ui-dist@4 ( #4347 )
...
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2022-04-17 14:47:14 +00:00
Sebastián Ramírez
26f725d259
🔖 Release version 0.75.1
2022-04-01 18:05:52 -05:00
Sebastián Ramírez
19769d0483
🔖 Release version 0.75.0
2022-03-04 23:09:11 +01:00
Sebastián Ramírez
8a0d4c79c1
✨ Add support for custom `generate_unique_id_function` and docs for generating clients ( #4650 )
2022-03-04 23:02:18 +01:00
Sebastián Ramírez
440d2d2d1a
🔖 Release version 0.74.1
2022-02-21 16:54:18 +01:00
Sebastián Ramírez
f5d7df3c6c
✨ Include route in scope to allow middleware and other tools to extract its information ( #4603 )
2022-02-21 16:51:26 +01:00
Sebastián Ramírez
1ce16c2f40
🔖 Release version 0.74.0
2022-02-17 17:08:23 +01:00
Sebastián Ramírez
9d56a3cb59
✨ Update internal `AsyncExitStack` to fix context for dependencies with `yield` ( #4575 )
2022-02-17 13:40:12 +01:00
Sebastián Ramírez
291180bf2d
🔖 Release version 0.73.0
2022-01-23 23:38:51 +01:00
Victor Benichoux
a698908ed6
🐛 Fix bug preventing to use OpenAPI when using tuples ( #3874 )
...
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2022-01-23 23:13:55 +01:00
Sebastián Ramírez
1bf55200a9
✨ Add support for declaring `UploadFile` parameters without explicit `File()` ( #4469 )
2022-01-23 19:14:13 +00:00
Sebastián Ramírez
569afb4378
✨ Add support for tags with Enums ( #4468 )
2022-01-23 18:43:04 +01:00
Sebastián Ramírez
d4608a00cf
🐛 Prefer custom encoder over defaults if specified in `jsonable_encoder` ( #4467 )
...
Co-authored-by: Vivek Sunder <sviveksunder@gmail.com>
2022-01-23 17:32:04 +01:00
Mark
ca5d57ea79
✨ Allow hiding from OpenAPI (and Swagger UI) `Query`, `Cookie`, `Header`, and `Path` parameters ( #3144 )
...
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2022-01-23 16:54:59 +01:00
Sebastián Ramírez
f0388915a8
🔖 Release version 0.72.0
2022-01-16 21:09:10 +01:00
John Riebold
a85aa125d2
✨ Enable configuring Swagger UI parameters ( #2568 )
...
Co-authored-by: Artem Ivanov <artem@worklife.io>
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2022-01-16 20:26:24 +01:00
Sebastián Ramírez
672c55ac62
🔖 Release version 0.71.0
2022-01-07 18:07:59 +01:00
Sebastián Ramírez
3efb4f7edf
🔖 Release version 0.70.1
2021-12-12 12:39:32 +01:00
Sebastián Ramírez
5d80e02ae8
🔖 Release version 0.70.0
2021-10-07 19:34:27 +02:00
Sebastián Ramírez
921b6f742a
🔖 Release version 0.69.0
2021-10-07 18:45:43 +02:00
Thomas Grainger
11d0a08acd
✨ Add support for Trio via AnyIO ( #3372 )
...
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2021-10-06 17:32:11 +02:00
Sebastián Ramírez
378fa4ef75
🔖 Release version 0.68.2
2021-10-05 15:32:18 +02:00
Sebastián Ramírez
7b6e198d31
🔖 Release version 0.68.1
2021-08-24 14:16:09 +02:00
Sebastián Ramírez
20d4834546
✨ Add support for `read_with_orm_mode`, to support SQLModel relationship attributes ( #3757 )
2021-08-24 10:21:05 +00:00
Sebastián Ramírez
717a1ec409
🔖 Release version 0.68.0
2021-07-29 23:03:57 +02:00
Sebastián Ramírez
97fa743ecb
✨ Update OpenAPI models, supporting recursive models and extensions ( #3628 )
2021-07-29 20:59:26 +00:00
Edouard Lavery-Plante
836bb97a2d
✨ Add support for extensions and updates to the OpenAPI schema in path operations ( #1922 )
...
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2021-07-29 22:01:13 +02:00
James Curtin
4eada92883
✨ Import and re-export data structures from Starlette, used by Request properties, on `fastapi.datastructures` ( #1872 )
...
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2021-07-29 17:30:18 +02:00
dkreeft
6f45f43709
✨ Add additonal OpenAPI metadata parameters to `FastAPI` class, shown on the automatic API docs UI ( #1812 )
...
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
Co-authored-by: dkreeft <dkreeft@xccelerated.io>
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2021-07-29 17:10:22 +02:00
Hylke Postma
3b2e891917
✨ Add `description` parameter to all the security scheme classes, e.g. `APIKeyQuery(name="key", description="A very cool API key")` ( #1757 )
...
Co-authored-by: Hylke Postma <h.postma@docuwork.nl>
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2021-07-29 12:30:48 +02:00
Sebastián Ramírez
a0209a0d2c
🔖 Release version 0.67.0
2021-07-21 20:00:39 +02:00
Sebastián Ramírez
684c0077cc
✨ Add support for `dataclasses` in request bodies and `response_model` ( #3577 )
2021-07-21 19:54:08 +02:00
Sebastián Ramírez
96fdfc53cc
✨ Support `dataclasses` in responses ( #3576 )
...
Co-authored-by: amit lissack <amit@opentrons.com>
2021-07-21 14:39:12 +00:00
Marcelo Trylesinski
1ce7258a01
✏️ Fix typo on docstring in datastructures file ( #2887 )
2021-07-21 14:14:34 +02:00
Sebastián Ramírez
0a38c51b9e
🔖 Release 0.66.1
2021-07-19 21:26:52 +02:00
Sebastián Ramírez
7e9d5aacf8
🔖 Release version 0.66.0
2021-07-04 20:59:46 +02:00
Rubikoid
0e0931d308
🐛 Fix include/exclude for dicts in `jsonable_encoder` ( #2016 )
...
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2021-07-04 20:53:40 +02:00
Sebastián Ramírez
dc5a966548
✨ Allow setting the `response_class` to `RedirectResponse` and returning the URL from the function ( #3457 )
2021-07-03 21:51:28 +02:00
Jacob Magnusson
0ed6c92341
🐛 Support custom OpenAPI / JSON Schema fields in the generated output OpenAPI ( #1429 )
...
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2021-07-03 19:15:59 +02:00
Sebastián Ramírez
79f52c76cf
🔖 Release version 0.65.3
2021-07-03 18:33:32 +02:00
Sebastián Ramírez
edf6b2d61f
♻ Assume request bodies contain JSON when no Content-Type header is provided ( #3456 )
2021-07-03 18:25:12 +02:00
Sebastián Ramírez
4d91f978d2
🔖 Release version 0.65.2
2021-06-09 10:17:27 +02:00
Patrick Wang
fa7e3c996e
🐛 Check Content-Type request header before assuming JSON ( #2118 )
...
Co-authored-by: Patrick Wang <patrickkwang@users.noreply.github.com>
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2021-06-07 12:46:18 +02:00
Sebastián Ramírez
43df5d05ed
🔖 Release FastAPI version 0.65.1
2021-05-11 23:19:14 +02:00
Sebastián Ramírez
b890bd1dc5
🔖 Release version 0.65.0
2021-05-10 17:45:21 +02:00
Hannes Küttner
4aed0411e9
⬆️ Upgrade Starlette to 0.14.2, including internal UJSONResponse migrated from Starlette ( #2335 )
2021-05-10 16:09:04 +02:00
Sebastián Ramírez
2a67321130
🔖 Release version 0.64.0
2021-05-07 10:15:26 +02:00
Austin Orr
e10a4375f9
✨ Add support for adding multiple examples in request bodies and path, query, cookie, and header params ( #1267 )
...
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2021-05-05 20:20:56 +02:00
Sebastián Ramírez
4d208b2b90
🎨 Add newly required type annotations for mypy ( #2882 )
...
* ⬆️ Upgrade mypy
* 🎨 Add extra type annotations, now required by mypy
2021-03-01 20:01:50 +01:00
Sebastián Ramírez
e170c86412
🔖 Release version 0.63.0
2020-12-20 20:16:12 +01:00
Sebastián Ramírez
fdb6c9ccc5
✨ Improve type annotations, add support for mypy --strict, internally and for external packages ( #2547 )
2020-12-20 19:50:00 +01:00
Sebastián Ramírez
51e920e2fc
🔖 Release version 0.62.0
2020-11-29 19:36:38 +01:00