]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commit
:sparkles: Implement response_model_exclude_defaults and response_model_exclude_none...
authorvoegtlel <5764745+voegtlel@users.noreply.github.com>
Sun, 5 Apr 2020 13:04:46 +0000 (15:04 +0200)
committerGitHub <noreply@github.com>
Sun, 5 Apr 2020 13:04:46 +0000 (15:04 +0200)
commit3397d4d69a9c2d64c1219fcbf291ea5697a4abb8
treeca047189f2e6d04520c1f52f4f808e6e24285832
parent766157bfb4e7dfccba09ab398e8ec444d14e947c
:sparkles: Implement response_model_exclude_defaults and response_model_exclude_none (#1166)

* Implemented response_model_exclude_defaults and response_model_exclude_none to be compatible pydantic options.

* :truck: Rename and invert include_none to exclude_none to keep in sync with Pydantic

Co-authored-by: Lukas Voegtle <lukas.voegtle@sick.de>
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
fastapi/applications.py
fastapi/encoders.py
fastapi/openapi/utils.py
fastapi/routing.py
tests/test_jsonable_encoder.py
tests/test_skip_defaults.py