Version 2.4.0
If e.g. @ApiParam(allowableValues="range[1, 11]") is set, it is never displayed in the API docs (minLength=1, maxLength=11).
It doesn't work directly for a Request parameter:
@RequestParam @ApiParam(value="description", allowableValues="range[1, 11]") String sample;
It also doesn't work if the parameter is declared using @ModelAttribute.
For @ApiModelProperty it works as desired:
@ApiModelProperty(value="description", allowableValues="range[1, 11]")
=> will display minLength=1, maxLength=11.
Can you pls check why this is missing for @ApiParam?
Version 2.4.0
If e.g. @ApiParam(allowableValues="range[1, 11]") is set, it is never displayed in the API docs (minLength=1, maxLength=11).
It doesn't work directly for a Request parameter:
It also doesn't work if the parameter is declared using @ModelAttribute.
For @ApiModelProperty it works as desired:
=> will display minLength=1, maxLength=11.
Can you pls check why this is missing for @ApiParam?