Skip to content
This repository has been archived by the owner on Sep 2, 2023. It is now read-only.

allowableValues not working for "range" in @ApiModelProperty #150

Open
ashok1979sharma opened this issue Sep 28, 2019 · 0 comments
Open

Comments

@ashok1979sharma
Copy link

I am using 1.0.6 version.
allowableValues works if I give value like allowableValues="Pune", but when I use range it doesn't generate minLength and maxLength attributes in generated swagger json.

@ApiModelProperty(value = "City", allowableValues="range[4, 50]")
@XmlAttribute
private String city;

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant