CaioFauza
3716cf7464
Added required parameter to default error schema
Co-authored-by: Leonardo Mendes <leonardom1808@gmail.com>
Co-authored-by: Gustavo Braga <gustavobb@al.insper.edu.br>
4 years ago
CaioFauza
75e5770030
Added default error schema to app constructor
Co-authored-by: Leonardo Mendes <leonardom1808@gmail.com>
Co-authored-by: Gustavo Braga <gustavobb@al.insper.edu.br>
4 years ago
Sebastián Ramírez
5d80e02ae8
🔖 Release version 0.70.0
4 years ago
Sebastián Ramírez
921b6f742a
🔖 Release version 0.69.0
4 years ago
Thomas Grainger
11d0a08acd
✨ Add support for Trio via AnyIO ( #3372 )
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
4 years ago
Sebastián Ramírez
378fa4ef75
🔖 Release version 0.68.2
4 years ago
Sebastián Ramírez
7b6e198d31
🔖 Release version 0.68.1
4 years ago
Sebastián Ramírez
20d4834546
✨ Add support for `read_with_orm_mode`, to support SQLModel relationship attributes ( #3757 )
4 years ago
Sebastián Ramírez
717a1ec409
🔖 Release version 0.68.0
4 years ago
Sebastián Ramírez
97fa743ecb
✨ Update OpenAPI models, supporting recursive models and extensions ( #3628 )
4 years ago
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>
4 years ago
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>
4 years ago
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>
4 years ago
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>
4 years ago
Sebastián Ramírez
a0209a0d2c
🔖 Release version 0.67.0
4 years ago
Sebastián Ramírez
684c0077cc
✨ Add support for `dataclasses` in request bodies and `response_model` ( #3577 )
4 years ago
Sebastián Ramírez
96fdfc53cc
✨ Support `dataclasses` in responses ( #3576 )
Co-authored-by: amit lissack <amit@opentrons.com>
4 years ago
Marcelo Trylesinski
1ce7258a01
✏️ Fix typo on docstring in datastructures file ( #2887 )
4 years ago
Sebastián Ramírez
0a38c51b9e
🔖 Release 0.66.1
4 years ago
Sebastián Ramírez
7e9d5aacf8
🔖 Release version 0.66.0
4 years ago
Rubikoid
0e0931d308
🐛 Fix include/exclude for dicts in `jsonable_encoder` ( #2016 )
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
4 years ago
Sebastián Ramírez
dc5a966548
✨ Allow setting the `response_class` to `RedirectResponse` and returning the URL from the function ( #3457 )
4 years ago
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>
4 years ago
Sebastián Ramírez
79f52c76cf
🔖 Release version 0.65.3
4 years ago
Sebastián Ramírez
edf6b2d61f
♻ Assume request bodies contain JSON when no Content-Type header is provided ( #3456 )
4 years ago
Sebastián Ramírez
4d91f978d2
🔖 Release version 0.65.2
4 years ago
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>
4 years ago
Sebastián Ramírez
43df5d05ed
🔖 Release FastAPI version 0.65.1
4 years ago
Sebastián Ramírez
b890bd1dc5
🔖 Release version 0.65.0
4 years ago
Hannes Küttner
4aed0411e9
⬆️ Upgrade Starlette to 0.14.2, including internal UJSONResponse migrated from Starlette ( #2335 )
4 years ago
Sebastián Ramírez
2a67321130
🔖 Release version 0.64.0
4 years ago
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>
4 years ago
Sebastián Ramírez
4d208b2b90
🎨 Add newly required type annotations for mypy ( #2882 )
* ⬆️ Upgrade mypy
* 🎨 Add extra type annotations, now required by mypy
4 years ago
Sebastián Ramírez
e170c86412
🔖 Release version 0.63.0
5 years ago
Sebastián Ramírez
fdb6c9ccc5
✨ Improve type annotations, add support for mypy --strict, internally and for external packages ( #2547 )
5 years ago
Sebastián Ramírez
51e920e2fc
🔖 Release version 0.62.0
5 years ago
Sebastián Ramírez
313bbe802f
✨ Add support for shared/top-level parameters (dependencies, tags, etc) ( #2434 )
* ✨ Add Default and DefaultPlaceholder data structures
to handle defaults and overrides
* ✨ Add utils to get values by priority handling DefaultPlaceholders
* ✨ Add support for top-level parameters in FastAPI, APIRouter, include_router
including: prefix, tags, dependencies, deprecated, include_in_schema, responses, default_response_class, callbacks
* ♻️ Update openapi utils to handle DefaultPlaceholder for response_class
* 📝 Update bigger-application example code to use top-level params
and showcase them in APIRouter, FastAPI, include_router
* 📝 Update docs for Bigger Applications, include diagrams, top-level params
* 🔥 Simplify code and docs for callbacks as default_response_class is no longer required
* 📝 Add docs for top-level dependencies, in FastAPI()
* 📝 Add docs reference to top-level dependencies in docs for decorator
* ✅ Update/increase tests for Bigger Applications including shared parameters
* ✅ Add tests for top-level dependencies in FastAPI()
* ✅ Add tests for internal DefaultPlaceholder
* ✅ Update/increase tests for callbacks with top-level parameters
* ✅ Add LOTS of tests covering branches and cases for shared parameters
in top-level FastAPI, path operations, include_router, APIRouter, its path operations, nested include_router, nested APIRouter, and its path operations
* 🎨 Format/reorder parameters for consistency in FastAPI, APIRouter, include_router
5 years ago
Sebastián Ramírez
166088775a
🔖 Release version 0.61.2
5 years ago
John Riebold
b8e6d18385
📌 Relax Swagger UI version pin ( #2089 )
5 years ago
Yurii Karabas
4ce18167e7
🐛 Fix bug overriding custom HTTPException and RequestValidationError from exception_handlers ( #1924 )
5 years ago
Marcelo Trylesinski
b299792ebf
✏️ Fix typo on dependencies utils and cleanup unused variable ( #1912 )
5 years ago
Sebastián Ramírez
e77ea63577
🔖 Release version 0.61.1
5 years ago
Sebastián Ramírez
0dfde6e284
🐛 Fix issues introduced by removing sqlalchemy safeguard in jsonable_encoder ( #1987 )
5 years ago
Sebastián Ramírez
a6897963d5
🔖 Release version 0.61.0
5 years ago
Sebastián Ramírez
cdba8481c2
🔥 Remove old/unused parameter sqlalchemy_safe from jsonable_encoder ( #1864 )
5 years ago
Sebastián Ramírez
e1758d107e
⬆ Require Pydantic > 1.0 ( #1862 )
* 🔥 Remove support for Pydantic < 1.0
* 🔥 Remove deprecated skip_defaults from jsonable_encoder and set default for exclude to None, as in Pydantic
* ♻️ Set default of response_model_exclude=None as in Pydantic
* ⬆️ Require Pydantic >=1.0.0 in requirements
5 years ago
Nik
b9a0179a03
✨ Add support for injecting HTTPConnection ( #1827 )
5 years ago
Rupsi Kaushik
5ed48ccdc8
Export WebSocketDisconnect and add example handling disconnections to docs ( #1822 )
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
5 years ago
Nima Mashhadi M. Reza
da9b5201c4
🔧 Add Flake8 linting ( #1774 )
Co-authored-by: nimashadix <nimashadix@pop-os.localdomain>
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
5 years ago
Sebastián Ramírez
79e08a2541
🔖 Release version 0.60.2
5 years ago