Skip to content

Add support for inclusive and exclusive ranges for allowable values #1955

@JohnNiang

Description

@JohnNiang

The @ApiParam(allowableValue="range[1,40]") is not worked in Spring Boot.

eg:
@ApiParam(name = "page", value = "页数", allowableValues = "range[0, infinity)", allowMultiple = true) //
@RequestParam(value = "page", required = false) Integer page, //
@ApiParam(name = "rpp", value = "每页记录数(records per page)", allowableValues = "range[0, 40]") //
@RequestParam(value = "rpp", required = false) Integer rpp

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions