Skip to content

JsonSchema2SourceCode

fge edited this page Feb 26, 2013 · 2 revisions

Link to source code

https://github.com/fge/json-schema-processor-examples/blob/master/src/main/java/com/github/fge/jsonschema2pojo/JsonSchema2SourceCode.java

Input and output

  • Input: a SchemaHolder.
  • Output: a ValueHolder<String>.

What it does

This processor generates a Java source file from a JSON Schema.

Prior to the generation proper, a syntax validator is inserted, which first checks that the schema conforms to draft v3: jsonschema2pojo does not have support for draft v4 yet.

It is available online.

Software used