#Support for javax.validation annotations
field.required=@"javax.validation.constraints.NotBlank
field.required=@javax.validation.constraints.NotNull
field.required=@javax.validation.constraints.NotEmpty
field.required=@io.swagger.annotations.ApiModelProperty#required
SwaggerModel.java
public class SwaggerModel {
@ApiModelProperty(value = "Field A", required = true)
private String a;
public String getA() {
return a;
}
public void setA(String a) {
this.a = a;
}
}
name | type | required | default | desc | other |
---|---|---|---|---|---|
a | integer | Yes | mock: @natural(0,10000) |