]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commit
:sparkles: Allow defaults in path parameters (and don't use them) (#450) (#464)
authorjonathanunderwood <jonathan.underwood@gmail.com>
Sun, 29 Sep 2019 22:03:16 +0000 (23:03 +0100)
committerSebastián Ramírez <tiangolo@gmail.com>
Sun, 29 Sep 2019 22:03:16 +0000 (17:03 -0500)
commitb20b2218cd7fde2114ee1cedf367bdba04df0381
treed2bea3e5eed7459e692119b842d6a452946a622b
parentb9cf69cd4231be18bfad90f3cac82e463f710349
:sparkles: Allow defaults in path parameters (and don't use them) (#450) (#464)

This allows using parameters that can have defaults (e.g. `None`) that can be used as query parameters.

But can also be used in routers with that include those parameters as part of the path.
fastapi/dependencies/utils.py
tests/test_infer_param_optionality.py [new file with mode: 0644]