title: How to include Bean Validation constraints in Jackson generated JSON schema
body: <p>I am using Jersey 1.2 (still using JDK 1.5) and have developed a REST Booking Web Resource and an associated Booking POJO.</p>
  
  <p>I have used Bean Validation to restrict the size/type of the fields e.g.</p>
  
  <pre><code>@NotNull
  @Size(message="invalid size",min=3,max=20)
  @Pattern(message="invalid pattern",regexp = "^[A-Za-z]*")
  @JsonProperty(value = "forename")
  private String forename;
  </code></pre>
  
  <p>and have used the Jackson ObjectMapper.generateJsonSchema class to generate the JSON schema however this ignores all the validation annotations so I just get:</p>
  
  <pre><code>"forename" : {
    "type" : "string"
  }
  </code></pre>
  
  <p>Is there any way to include the restriction information as part of the generated schema?</p>
  
  <p>Many thanks</p>