{
"errors": {
"body": "Unexpected token 'R', \"Received: \"... is not valid JSON"
},
"success": false,
"result": {}
}
The only way to avoid this is not to specify requestBody at all. In that case, however, /docs gets broken and doesn't allow to submit file as a request body.
It seems that the router tries to parse and validate non-JSON request body and fails.
Example route:
Error response:
The only way to avoid this is not to specify
requestBody
at all. In that case, however,/docs
gets broken and doesn't allow to submit file as a request body.