nishiki-tech / nishiki-documents

8 stars 0 forks source link

The quantity of the food can be a float #155

Closed hitohata closed 9 months ago

hitohata commented 9 months ago

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:

{
    "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"
        }
    ]
}

Browser/OS

response from the Prism

Additional Context

None