hapi-openapi icon indicating copy to clipboard operation
hapi-openapi copied to clipboard

Can't mark body as optional

Open dcharbonnier opened this issue 3 years ago • 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

dcharbonnier avatar Feb 23 '22 07:02 dcharbonnier