Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
src/main Licenses adjusted.... Jun 23, 2018
README.md
pom.xml

README.md

Simple JSON Schema example

JSONSchema types are generated by jsonschema2pojo

<configuration>
    <ramlFile>${project.build.resources[0].directory}/example_json_schema.raml</ramlFile>
    <resourcePackage>example.jsonschema</resourcePackage>
    <jsonMapper>jackson2</jsonMapper>
    <jsonMapperConfiguration>
        <includeHashcodeAndEquals>true</includeHashcodeAndEquals>
    </jsonMapperConfiguration>
</configuration>

The jsonMapper configuration parameter specifies which annotation strategy should be used by jsonschema2pojo. Available options are jackson, jackson2 and gson

The jsonMapperConfiguration parameter allows for some configuration of the mapper. These are the currently supported values for this configuration.

  • IncludeJsr303Annotations
  • UseCommonsLang3
  • GenerateBuilders
  • IncludeHashcodeAndEquals
  • CustomAnnotator
  • IncludeToString
  • UseLongIntegers
  • IncludeConstructors
  • ConstructorsRequiredPropertiesOnly
  • IncludeAccessors
  • UseJodaDates
  • UseJodaLocalDates
  • UseJodaLocalTimes
  • DateTimeType
  • DateType

You can find more information on this jsonschema2pojo documentation page.

You can’t perform that action at this time.