28 Commits (3da206c06df1283518a54b18f27bed33f2d22612)

Author SHA1 Message Date
Sebastián Ramírez 3da206c06d
🎨 Update internal types for Python 3.10 (#14898) 4 months ago
rijenkii 66dc695071
Replace `dict` by `Mapping` on `HTTPException.headers` (#12997) 4 months ago
Motov Yurii 3a41403ccd
📝 Add links to related sections of docs to docstrings (#14776) 4 months ago
Sebastián Ramírez e300630551
Drop support for `pydantic.v1` (#14609) 5 months ago
Sebastián Ramírez 535b5daa31
🔊 Add a custom `FastAPIDeprecationWarning` (#14605) 5 months ago
Sebastián Ramírez 1c4fc96c91
♻️ Upgrade internal syntax to Python 3.9+ 🎉 (#14564) 6 months ago
Savannah Ostrowski e1117f7550
🚸 Improve tracebacks by adding endpoint metadata (#14306) 6 months ago
Sebastián Ramírez ac438b9934
Add support for dependencies with scopes, support `scope="request"` for dependencies with `yield` that exit before the response is sent (#14262) 7 months ago
Sebastián Ramírez d390f2e41f
Migrate internal reference documentation from `typing_extensions.Doc` to `annotated_doc.Doc` (#14222) 7 months ago
Aleksei Kotenko 9c80842cea
♻️ Update mypy (#11049) 2 years ago
Sebastián Ramírez 05ca41cfd1
Add reference (code API) docs with PEP 727, add subclass with custom docstrings for `BackgroundTasks`, refactor docs structure (#10392) 3 years ago
Sebastián Ramírez 5e8f7f13d7
Add `ResponseValidationError` printable details, to show up in server error logs (#10078) 3 years ago
Sebastián Ramírez 0976185af9
Add support for Pydantic v2 (#9816) 3 years ago
Sebastián Ramírez 6dd8e567cc
🐛 Fix `HTTPException` header type annotations (#9648) 3 years ago
Sebastián Ramírez d537ee93d7
Re-export Starlette's `WebSocketException` and add it to docs (#5629) 4 years ago
Marcelo Trylesinski f396912043
⬆ Upgrade Starlette from 0.19.0 to 0.19.1 (#4819) 4 years ago
Marcelo Trylesinski 86fa3cb24f
⬆ Upgrade Starlette from 0.18.0 to 0.19.0 (#4488) 4 years ago
Sebastián Ramírez 4d208b2b90
🎨 Add newly required type annotations for mypy (#2882) 5 years ago
Sebastián Ramírez e1758d107e
⬆ Require Pydantic > 1.0 (#1862) 6 years ago
Nima Mashhadi M. Reza 3223de5598
🎨 Add typing.Optional to variables that accept None as value (#1731) 6 years ago
Patrick McKenna afad59dfbb
🐛 Admit valid types for Pydantic fields as responses models (#1017) 6 years ago
Aviram Hassan 5db99a27cf add body to RequestValidationError for easier debugging (#853) 6 years ago
dmontagu ab2b86fe2c Add support for Pydantic v1 and above 🎉 (#646) 7 years ago
Kamal Gill 4642f63a1e 🐛 Use proper import for Request -- fixes #492 (#493) 7 years ago
dmontagu fc7d123347 ⬆️ Upgrade support to Pydantic version 0.32.2 (breaking change) (#463) 7 years ago
Sebastián Ramírez 3ed112e8a9
🐛 Fix type declaration of HTTPException (#279) 7 years ago
Sebastián Ramírez 62af6e0eeb
Separate Pydantic's ValidationError handler and improve docs for error handling (#273) 7 years ago
Sebastián Ramírez 8772e2f2ee
Add HTTPException with custom headers (#35) 7 years ago