@GetMapping("/health") @ResponseStatus(HttpStatus.OK) fun check() { } This function only returns a status code and nothing more. I would expect the generated documentation to reflect this. Thank you.