Skip to content

Commit f1bee9a

Browse files
committed
📝 Update release notes
1 parent b20b221 commit f1bee9a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/release-notes.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
## Latest changes
22

3+
* Allow path parameters to have default values (e.g. `None`) and discard them instead of raising an error.
4+
* 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.
5+
* PR [#464](https://github.com/tiangolo/fastapi/pull/464) by [@jonathanunderwood](https://github.com/jonathanunderwood).
36
* 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).
47
* 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).
58

0 commit comments

Comments
 (0)