I have this validation:

 /**
 * @return the name
 */
 @NotNull
 //Validation: 
 @Pattern(regexp="(?U)\\w[\\w -]*\\w")
 public final String getName() {
 return name;
 }


The @Pattern is converted to a pattern constraint in swagger, but the (?U) 
switch is not supported.

How can I override the pattern? I didn't see a "pattern" param in 
@ApiModelProperty.

In any case, I would rather override the pattern in my Rest definition than 
in my model definition if possible.

-- 
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.

Reply via email to