]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commit
✨ Add support for adding OpenAPI schema for GET requests with a body (#1626)
authorJAYATI SHRIVASTAVA <gaurijove@gmail.com>
Sun, 19 Jul 2020 10:17:50 +0000 (15:47 +0530)
committerGitHub <noreply@github.com>
Sun, 19 Jul 2020 10:17:50 +0000 (12:17 +0200)
commit2b47f3e56b0b46d85be4ee4626e08741b5e69382
tree73b75956ee8752cc25edd5f999b1364c8d784edd
parentd60dd1b60e0acd0afcd5688e5759f450b6e7340c
✨ Add support for adding OpenAPI schema for GET requests with a body (#1626)

* add test for get request body's openapi schema

* 📝 Update docs note for GET requests with body

* ✅ Update test for GET request with body, test it receives the body

* 🔇 Temporary type ignore while it's handled in Pydantic

Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
docs/en/docs/tutorial/body.md
fastapi/dependencies/utils.py
fastapi/openapi/constants.py
tests/test_get_request_body.py [new file with mode: 0644]