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

The "required" flag on "requestBody" is not managed

Open esimonneau opened this issue 3 years ago • 0 comments

On "OpenAPI" documentation, we can read that the request body is not required by default but a "required" flag exists to make it mandatory :

image

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 ?

esimonneau avatar Jan 17 '22 08:01 esimonneau