openapi-backend
openapi-backend copied to clipboard
The "required" flag on "requestBody" is not managed
On "OpenAPI" documentation, we can read that the request body is not required by default but a "required" flag exists to make it mandatory :

But this field seems to be not managed and I saw that the body becomes required if "application/json" is the only specified format defined for the content See validation.js
Could it be possible to add push "requestBody" on the required array only if the "required" flag is set to "true" on OpenAPI documentation ?