The quantity of the food can be a float. When calling this function using a mock server, that server returns an error because of the data type.
What is Expected
Should accept the float
Screenshots
This returns the following error:
{
"type": "https://stoplight.io/prism/errors#UNPROCESSABLE_ENTITY",
"title": "Invalid request",
"status": 422,
"detail": "Your request is not valid and no HTTP validation response was found in the spec, so Prism is generating this error for you.",
"validation": [
{
"location": [
"body",
"quantity"
],
"severity": "Error",
"code": "type",
"message": "Request body property quantity must be integer,null"
}
]
}
Describe the Problem
The quantity of the food can be a float. When calling this function using a mock server, that server returns an error because of the data type.
What is Expected
Should accept the float
Screenshots
This returns the following error:
Browser/OS
response from the Prism
Additional Context
None