Nadav Zingerman
375513f114
✨ Add support for PEP-593 `Annotated` for specifying dependencies and parameters ( #4871 )
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>
2 years ago
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
3 years ago
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>
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
fdb6c9ccc5
✨ Improve type annotations, add support for mypy --strict, internally and for external packages ( #2547 )
5 years ago
Nima Mashhadi M. Reza
3223de5598
🎨 Add typing.Optional to variables that accept None as value ( #1731 )
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
bff5dbbf5d
✨ Implement dependency value cache per request ( #292 )
* ✨ Add dependency cache, with support for disabling it
* ✅ Add tests for dependency cache
* 📝 Add docs about dependency value caching
6 years ago
Sebastián Ramírez
ca27317b65
✨ Add param functions, to override types, to make mypy happy ( #226 )
6 years ago