jsonschema2pojo-cli

Generate DTO style Java classes from JSON Schema documents (FORK)

License

License

Categories

Categories

CLI User Interface JSON Data
GroupId

GroupId

com.github.samskiter.jsonschema2pojo
ArtifactId

ArtifactId

jsonschema2pojo-cli
Last Version

Last Version

0.4.23-fork.3
Release Date

Release Date

Type

Type

sh
Description

Description

jsonschema2pojo-cli
Generate DTO style Java classes from JSON Schema documents (FORK)

Download jsonschema2pojo-cli

Dependencies

compile (4)

Group / Artifact Type Version
com.github.samskiter.jsonschema2pojo : jsonschema2pojo-core jar 0.4.23-fork.3
com.beust : jcommander jar 1.30
commons-lang : commons-lang jar 2.6
com.google.code.findbugs : annotations jar 1.3.9

test (3)

Group / Artifact Type Version
junit : junit jar 4.11
org.hamcrest : hamcrest-all jar 1.3
org.mockito : mockito-all jar 1.9.5

Project Modules

There are no modules declared in this project.

jsonschema2pojo Build Status Maven Central

jsonschema2pojo generates Java types from JSON Schema (or example JSON) and can annotate those types for data-binding with Jackson 1.x, Jackson 2.x or Gson.

Try jsonschema2pojo online
or brew install jsonschema2pojo

You can use jsonschema2pojo as a Maven plugin, an Ant task, a command line utility, a Gradle plugin or embedded within your own Java app. The Getting Started guide will show you how.

A very simple Maven example:

<plugin>
    <groupId>org.jsonschema2pojo</groupId>
    <artifactId>jsonschema2pojo-maven-plugin</artifactId>
    <version>0.4.22</version>
    <configuration>
        <sourceDirectory>${basedir}/src/main/resources/schema</sourceDirectory>
        <targetPackage>com.example.types</targetPackage>
    </configuration>
    <executions>
        <execution>
            <goals>
                <goal>generate</goal>
            </goals>
        </execution>
    </executions>
</plugin>

Useful pages:

Project resources:

Licensed under the Apache License, Version 2.0.

Versions

Version
0.4.23-fork.3
0.4.23-fork.2
0.4.23-fork.1