title: Java Class to JSON custom Schema by Annotation
body: <p>I am currently generating my Json Schema like this:</p>
  
  <pre><code>class Item {
      public int id;
      public string name;
      public string description;
  }
  
  ObjectMapper mapper = new ObjectMapper();
  SchemaFactoryWrapper visitor = new SchemaFactoryWrapper();
  mapper.acceptJsonFormatVisitor(Item.class, visitor);
  JsonSchema schema = visitor.finalSchema();
  System.out.println(mapper.writerWithDefaultPrettyPrinter().writeValueAsString(schema));
  </code></pre>
  
  <p>Which prints:</p>
  
  <pre><code>{
      "type": "object",
      "id": "urn:jsonschema:de:foo:bar:User",
      "properties": {
          "id": { "type": "integer" },
          "name": { "type": "string" },
          "description": { "type": "string" }
      }
  }
  </code></pre>
  
  <p>Now I want to append additional information to each type from annotations of the Item class. I want this to provide information for how to display an input for that field.</p>
  
  <pre><code>class User {
  
      public int id;
      public string name;
      @MyJsonSchemaAnnotation(fieldName = "input", value = "textarea")
      public string description;
  }
  </code></pre>
  
  <p>Which will give me:</p>
  
  <pre><code>{
      "type": "object",
      "id": "urn:jsonschema:de:foo:bar:User",
      "properties": {
          "id": { "type": "integer" },
          "name": { "type": "string" },
          "description": { "type": "string", "input": "textarea" }
      }
  }
  </code></pre>
  
  <p>I think this is similar to @JsonDescription or the JSR 303 Annotations. I'm a bit lost if this is possible at all and if so which way i have to implement it. So if anyone could give me a hint where to look at it would be much appreciated!</p>