swagger-maven-plugin icon indicating copy to clipboard operation
swagger-maven-plugin copied to clipboard

springmvc: @ResponseBody(required=true) is ignored

Open mbr74 opened this issue 6 years ago • 1 comments

Required body parameter is generated like an optional body parameter using Spring-MVC annotation @ResponseBody with default value TRUE for required. Even @ResponseBody(required=true) does not help. The "required" parameter is ignored by the Swagger reader/transformer.

mbr74 avatar Feb 11 '19 14:02 mbr74

Same here... And when body is added, name is defaulted to "body", not to parameter name used in method.

andyrozman avatar Nov 01 '23 12:11 andyrozman