Sounds like a bug. We should also support hibernate-validation annotations if you want to give it a try.
From: 'Miceal Gallagher' via Swagger <[email protected]> Reply-To: "[email protected]" <[email protected]> Date: Friday, 12 May 2017 at 5:58 To: Swagger <[email protected]> Subject: Re: Is there a field size/length annotation? Discovered Range[0, N], still doesn't work. Using it like so: @ApiModelProperty(allowableValues = "range[1, 100]", required = true) public final String fromName; Only shows the field as being required and not the range limits. On Friday, 12 May 2017 08:39:40 UTC-4, Miceal Gallagher wrote: Is there any annotation that allows me to specify the max length of a model-attribute length? -- You received this message because you are subscribed to the Google Groups "Swagger" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Swagger" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
