mirror of
https://github.com/rjNemo/fastapi
synced 2026-06-06 10:36:39 +00:00
* 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>
3 lines
176 B
Python
3 lines
176 B
Python
METHODS_WITH_BODY = set(("GET", "HEAD", "POST", "PUT", "DELETE", "PATCH"))
|
|
STATUS_CODES_WITH_NO_BODY = set((100, 101, 102, 103, 204, 304))
|
|
REF_PREFIX = "#/components/schemas/"
|