You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
note minLength and maxLength are swagger spec 2.0 features and are not part of the 1.2 spec which is why this doclet doesnt support these yet, it will in future when swagger spec 2.0 is supported, there is a separate task for that
A bean field like:
@SiZe(min = 1, max = 36)
@NotNull
private String subject
Will show up in the swagger json as:
"subject" : {
"type" : "string"
}
It should be used to set maxLength and minLength per the @SiZe documentation(http://docs.oracle.com/javaee/7/api/javax/validation/constraints/Size.html):
"subject" : {
"type" : "string",
"minLength" : "1",
"maxLength" : "36"
}
The text was updated successfully, but these errors were encountered: