title: using Jackson to produce a json schema from a class, what do I need to do to the given output?
body: <p>I want to create a JsonSchema file from my java classes using latest Jackson libraries .</p>
  
  <p>When I have a java class like the following:</p>
  
  <pre><code>class MyClass {
      String status;
  }
  </code></pre>
  
  <p>how do I need to annotate the field so that the schema output would look like this:</p>
  
  <pre><code>{
     ...
     "status": {
         "description": "status",
         "type": [ "string", "null" ],
         "maxLength":12                   
     }, ...
  }
  </code></pre>
  
  <p>?</p>
  
  <p>Cheers</p>