fastapi 422 Unprocessable Entity code example

Example: fastapi error 422

- 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

Tags:

Misc Example