Swagger enum values not getting displayed in drop down?
问题 This is my controller method where the enum is accepted @GetMapping("/{sortBy}/{page}/{size}") public ResponseDto<ReviewsResponseDto, Void> searchAllReviews( @PathVariable(value = "sortBy") ReviewsSortBy sortBy, @PathVariable Integer page, @PathVariable Integer size) This is my enum ReviewsSortBy @Getter @ToString public enum ReviewsSortBy { DEFAULT, FEATURED, RECENT; } Now the problem is that swagger doesnt display the possible values of enum in dropdown, instead it just displays