Forum Discussion

rkarremolla's avatar
rkarremolla
Occasional Visitor
11 months ago

Requestbody is not working

When we set rest requestBody optional ,it is showing as required on swagger UI.

 

Code( @io.swagger.v3.oas.annotations.parameters.RequestBody(description = "Additional infomation required to onboard an account (False)") @org.springframework.web.bind.annotation.RequestBody Map<String, Object> params)

 

 

No RepliesBe the first to reply