krakenjs/hapi-openapi

Can't mark body as optional

dcharbonnier opened this issue · 0 comments

When a requestBody is defined it's always required or the api return a 400.
The specification says :

Request bodies are optional by default. To mark the body as required, use required: true.

required: false does not even solve the issue