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
I have added a below pattern validation for List of String. Though the pattern is picked up by swagger for String type variables while swagger does not pick a pattern for a list of strings.
My class looks like this:
public class Sample {
@Pattern(regexp="[a-zA-Z-]*")
private String key;
private List<@Pattern(regexp="[a-zA-Z]*") String values;
//getters and setters are written
I have added a below pattern validation for List of String. Though the pattern is picked up by swagger for String type variables while swagger does not pick a pattern for a list of strings.
My class looks like this:
}
The swagger output looks like :
Any help on how can we get Pattern added for List of String
I am using io.swagger version 1.5.19
validation API version -> validation-api-2.0.1
The text was updated successfully, but these errors were encountered: