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

Adding methods with empty value

Open arturmkr opened this issue 4 years ago • 0 comments

Methods with empty value are not added to the swagger file.

Example:

@RestController
@RequestMapping("/account")
public class AccountController {
 @ApiOperation(value = "Create account", tags = {"Account"})
    @PostMapping(value = "", consumes = "application/json", produces = "application/json")
    public Account createAccount(@RequestBody AccountCreationRequest request) {

    }
}

As I understood option allowEmptyValue should be added. Could you please advice, how to solve it?

arturmkr avatar Jan 29 '21 21:01 arturmkr