You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Processing the following Spring MVC controller operation results in a "body" parameter with "required: false":
public void addObject(@ApiParam(value = "Object to add") @RequestBody Object theObject)
However, @RequestBody is by default required if the 'required' attribute is not specified. Shouldn't the body parameter in the Swagger JSON be required too, then?
Regards,
Bruno
The text was updated successfully, but these errors were encountered:
Hi,
Processing the following Spring MVC controller operation results in a "body" parameter with "required: false":
public void addObject(@ApiParam(value = "Object to add") @RequestBody Object theObject)
However, @RequestBody is by default required if the 'required' attribute is not specified. Shouldn't the body parameter in the Swagger JSON be required too, then?
Regards,
Bruno
The text was updated successfully, but these errors were encountered: