xxxxxxxxxx
- You could be sending multiple body parameters to a routing function
and you need to account for the change in response model with added keys
https://fastapi.tiangolo.com/tutorial/body-multiple-params/#multiple-body-parameters
- to default the function parameter to include these keys, enable the embed attribute
def getRequestData(request: RequestBody = Body( , embed=True)):
- to access the key value pairs in the "request" variable: response.key
- Your pydantic models (schema) may be expecting a specific data type and not be receiving it