From: Sebastián Ramírez Date: Sun, 29 Sep 2019 22:09:37 +0000 (-0500) Subject: :memo: Update release notes X-Git-Tag: 0.39.0~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f1bee9a27155908cf9351fec187c8137ea58f2cc;p=thirdparty%2Ffastapi%2Ffastapi.git :memo: Update release notes --- diff --git a/docs/release-notes.md b/docs/release-notes.md index 729cc507f0..108902bf2d 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -1,5 +1,8 @@ ## Latest changes +* Allow path parameters to have default values (e.g. `None`) and discard them instead of raising an error. + * This allows declaring a parameter like `user_id: str = None` that can be taken from a query parameter, but the same path operation can be included in a router with a path `/users/{user_id}`, in which case will be taken from the path and will be required. + * PR [#464](https://github.com/tiangolo/fastapi/pull/464) by [@jonathanunderwood](https://github.com/jonathanunderwood). * Add support for setting a `default_response_class` in the `FastAPI` instance or in `include_router`. Initial PR [#467](https://github.com/tiangolo/fastapi/pull/467) by [@toppk](https://github.com/toppk). * Add support for type annotations using strings and `from __future__ import annotations`. PR [#451](https://github.com/tiangolo/fastapi/pull/451) by [@dmontagu](https://github.com/dmontagu).