Open API 3.x adds support for requestBody to be required. By default, it is optional. Currently, rswag doesn't have the option to declare the request body as mandatory.
Add support for a required key to the parameter method. If the parameter is in: :body, the required boolean will be respected. E.g.
parameter name: :order, in: :body, required: true, schema: { '$ref' => '#/components/schemas/order' }
I believe modifying this method should be enough to get it done. I'd be happy to open up a PR once the team okays the approach.
Let me know what you think @BookOfGreg! Shouldn't be too tough to knock this out quickly.
Addressed in: #342
+1 for this!
Most helpful comment
Addressed in: #342