hapi-openapi
hapi-openapi copied to clipboard
Can't mark body as optional
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