title: Java - How to make JSON date validation?
body: <p>I have this piece of code:</p>
  
  <pre><code>@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
      protected Date statusDate;
  </code></pre>
  
  <p>But for somehow it accepts date formats like - </p>
  
  <pre><code>"statusDate": "2017-13-27"
  </code></pre>
  
  <p>or</p>
  
  <pre><code>"statusDate": "201823-12-12"
  </code></pre>
  
  <p>Is it possible to validate the format within the request (not manually)?</p>