What's Changed
Features
- Add reserved handler kwarg
body
by @Goldziher in #1029 (see: route handlers in the documentation) - Support
Path
alongsidePurePath
for serialization by @provinzkraut in #1044 - Ensure HTTP requests with invalid payloads return 400. by @peterschutt in #1048
- CLI: Add OpenAPI to TypeScript and OpenAPI schema generation commands by @Goldziher in #1053
- CLI: Add cwd to
sys.path
to enable running apps with uvicorn from anywhere by @provinzkraut in #1038
Bugfixes
- Ensure unique OpenAPI operation IDs by @maggias in #1007
- Fix issue when response is an empty iterable of DTOs by @abdulhaq-e in #1040
- Fix
meter
in OpenTelemetry middleware being passed a meterprovider` by @Lugoues in #1056
Docs
- Revise "Exceptions and exception handling" and "Lifecycle hooks" sections by @provinzkraut in #1019
- Add examples about background tasks usage with responses by @pomma89 in #1034
- Fix type hint in example
sqlalchemy_async.py
by @hestal in #1027
New Contributors
- @maggias made their first contribution in #1007
- @hestal made their first contribution in #1027
- @pomma89 made their first contribution in #1034
- @abdulhaq-e made their first contribution in #1040
- @Lugoues made their first contribution in #1056
- @JacobCoffee made their first contribution in #1061
Full Changelog: v1.48.1...v1.49.0