Full name:
org.jsonschema2pojo:jsonschema2pojo-maven-plugin:1.2.2:generate
Description:
Attributes:
compile
.generate-sources
.Name | Type | Since | Description |
---|---|---|---|
<addCompileSourceRoot> |
boolean |
0.1.9 |
Add the output directory to the project as a source root, so that the generated java types are compiled and included in the project artifact. Default value is: true .User property is: jsonschema2pojo.addCompileSourceRoot . |
<annotationStyle> |
String |
0.3.1 |
The style of annotations to use in the generated Java types.
Supported values:
Default value is: jackson2 .User property is: jsonschema2pojo.annotationStyle . |
<classNamePrefix> |
String |
0.4.6 |
Whether to add a prefix to generated classes. User property is: jsonschema2pojo.classNamePrefix . |
<classNameSuffix> |
String |
0.4.6 |
Whether to add a suffix to generated classes. User property is: jsonschema2pojo.classNameSuffix . |
<constructorsRequiredPropertiesOnly> |
boolean |
0.4.8 |
The 'constructorsRequiredPropertiesOnly' configuration option. This is a legacy configuration option used to turn on isIncludeRequiredPropertiesConstructor() and off the isIncludeAllPropertiesConstructor() configuration options. It is specifically tied to the isIncludeConstructors() property, and will do nothing if that property is not enabledDefault value is: false .User property is: jsonschema2pojo.constructorsRequiredPropertiesOnly . |
<customAnnotator> |
String |
0.3.6 |
A fully qualified class name, referring to a custom annotator class that implements org.jsonschema2pojo.Annotator and will be used in addition to the one chosen by annotationStyle .
If you want to use the custom annotator alone, set Default value is: org.jsonschema2pojo.NoopAnnotator .User property is: jsonschema2pojo.customAnnotator . |
<customDatePattern> |
String |
0.4.33 |
A custom pattern to use when formatting date fields during serialization. Requires support from your JSON binding library. User property is: jsonschema2pojo.customDatePattern . |
<customDateTimePattern> |
String |
0.4.33 |
A custom pattern to use when formatting date-time fields during serialization. Requires support from your JSON binding library. User property is: jsonschema2pojo.customDatePattern . |
<customRuleFactory> |
String |
0.4.5 |
A fully qualified class name, referring to an class that extends org.jsonschema2pojo.rules.RuleFactory and will be used to create instances of Rules used for code generation.Default value is: org.jsonschema2pojo.rules.RuleFactory .User property is: jsonschema2pojo.customRuleFactory . |
<customTimePattern> |
String |
0.4.36 |
A custom pattern to use when formatting time fields during serialization. Requires support from your JSON binding library. User property is: jsonschema2pojo.customTimePattern . |
<dateTimeType> |
String |
0.4.22 |
What type to use instead of string when adding string type fields of format date-time to generated Java types. User property is: jsonschema2pojo.dateTimeType . |
<dateType> |
String |
0.4.22 |
What type to use instead of string when adding string type fields of format date (not date-time) to generated Java types. User property is: jsonschema2pojo.dateType . |
<excludes> |
String[] |
0.4.3 |
List of file patterns to exclude. This only applies to the initial scan of the file system and will not prevent inclusion through a "$ref" in one of the schemas. |
<fileExtensions> |
String[] |
0.4.23 |
The strings (no preceeding dot) that should be considered as file name extensions, and therefore ignored, when creating Java class names. User property is: jsonschema2pojo.fileExtensions . |
<formatDateTimes> |
boolean |
0.4.29 |
Whether the fields of type `date` are formatted during serialization with a default pattern of yyyy-MM-dd'T'HH:mm:ss.SSSZ. Default value is: false .User property is: jsonschema2pojo.formatDateTimes . |
<formatDates> |
boolean |
0.4.33 |
Whether the fields of type `date` are formatted during serialization with a default pattern of yyyy-MM-dd. Default value is: false .User property is: jsonschema2pojo.formatDates . |
<formatTimes> |
boolean |
0.4.36 |
Whether the fields of type `time` are formatted during serialization with a default pattern of HH:mm:ss.SSS. Default value is: false .User property is: jsonschema2pojo.formatTimes . |
<formatTypeMapping> |
Map<String,String> |
1.0.0 |
(no description) User property is: jsonschema2pojo.formatTypeMapping . |
<generateBuilders> |
boolean |
0.1.2 |
Whether to generate builder-style methods of the form withXxx(value) (that return this ), alongside the standard, void-return setters.Default value is: false .User property is: jsonschema2pojo.generateBuilders . |
<includeAdditionalProperties> |
boolean |
0.4.14 |
Whether to allow 'additional properties' support in objects. Setting this to false will disable additional properties support, regardless of the input schema(s). Default value is: true .User property is: jsonschema2pojo.includeAdditionalProperties . |
<includeAllPropertiesConstructor> |
boolean |
1.0.3 |
The 'includeAllPropertiesConstructor' configuration option. This property works in collaboration with the isIncludeConstructors() configuration option and is incompatible with isConstructorsRequiredPropertiesOnly() , and will have no effect if isIncludeConstructors() is not set to true. If isIncludeConstructors() is set to true then this configuration determines whether the resulting object should include a constructor with all listed properties as parameters.Default value is: true .User property is: jsonschema2pojo.includeAllPropertiesConstructor . |
<includeConstructorPropertiesAnnotation> |
boolean |
1.0.2 |
(no description) Default value is: false .User property is: jsonschema2pojo.includeConstructorPropertiesAnnotation . |
<includeConstructors> |
boolean |
0.4.8 |
Whether to generate constructors or not Default value is: false .User property is: jsonschema2pojo.includeConstructors . |
<includeCopyConstructor> |
boolean |
1.0.3 |
The 'includeCopyConstructor' configuration option. This property works in collaboration with the isIncludeConstructors() configuration option and is incompatible with isConstructorsRequiredPropertiesOnly() , and will have no effect if isIncludeConstructors() is not set to true. If isIncludeConstructors() is set to true then this configuration determines whether the resulting object should include a constructor the class itself as a parameter, with the expectation that all properties from the originating class will assigned to the new class.Default value is: false .User property is: jsonschema2pojo.includeCopyConstructor . |
<includeDynamicAccessors> |
boolean |
0.4.17 |
Whether to include dynamic getters, setters, and builders or to omit these methods. User property is: jsonschema2pojo.includeDynamicAccessors . |
<includeDynamicBuilders> |
boolean |
- |
Whether to include dynamic builders or to omit these methods. Default value is: false .User property is: jsonschema2pojo.includeDynamicBuilders . |
<includeDynamicGetters> |
boolean |
- |
Whether to include dynamic getters or to omit these methods. Default value is: false .User property is: jsonschema2pojo.includeDynamicGetters . |
<includeDynamicSetters> |
boolean |
- |
Whether to include dynamic setters or to omit these methods. Default value is: false .User property is: jsonschema2pojo.includeDynamicSetters . |
<includeGeneratedAnnotation> |
boolean |
- |
Whether to include a javax.annotation.Generated (Java 8 and lower) or javax.annotation.processing.Generated (Java 9+) in on generated types. See also: targetVersion. Default value is: true .User property is: jsonschema2pojo.includeGeneratedAnnotation . |
<includeGetters> |
boolean |
- |
Whether to include getters or to omit this accessor method and create public fields instead Default value is: true .User property is: jsonschema2pojo.includeGetters . |
<includeHashcodeAndEquals> |
boolean |
0.3.1 |
Whether to include hashCode and equals methods in generated Java types.Default value is: true .User property is: jsonschema2pojo.includeHashcodeAndEquals . |
<includeJsr303Annotations> |
boolean |
0.3.2 |
Whether to include JSR-303/349 annotations (for schema rules like minimum, maximum, etc) in generated Java types.
Schema rules and the annotation they produce:
Default value is: false .User property is: jsonschema2pojo.includeJsr303Annotations . |
<includeJsr305Annotations> |
boolean |
0.4.8 |
Whether to include JSR-305 annotations (for schema rules like Nullable, NonNull, etc) in generated Java types. Default value is: false .User property is: jsonschema2pojo.includeJsr305Annotations . |
<includeRequiredPropertiesConstructor> |
boolean |
1.0.3 |
The 'includeRequiredPropertiesConstructor' configuration option. This property works in collaboration with the isIncludeConstructors() configuration option and is incompatible with isConstructorsRequiredPropertiesOnly() , and will have no effect if isIncludeConstructors() is not set to true. If isIncludeConstructors() is set to true then this configuration determines whether the resulting object should include a constructor with only the required properties as parameters.Default value is: false .User property is: jsonschema2pojo.includeRequiredPropertiesConstructor . |
<includeSetters> |
boolean |
- |
Whether to include setters or to omit this accessor method and create public fields instead Default value is: true .User property is: jsonschema2pojo.includeSetters . |
<includeToString> |
boolean |
0.3.1 |
Whether to include a toString method in generated Java types.Default value is: true .User property is: jsonschema2pojo.includeToString . |
<includeTypeInfo> |
boolean |
1.0.2 |
Whether to include json type information; often required to support polymorphic type handling.
By default the type information is stored in the @class property, this can be overridden in the deserializationClassProperty of the schema. Default value is: false .User property is: jsonschema2pojo.includeTypeInfo . |
<includes> |
String[] |
0.4.3 |
List of file patterns to include. |
<inclusionLevel> |
String |
- |
The Level of inclusion to set in the generated Java types for Jackson serializers.
Supported values
Default value is: NON_NULL .User property is: jsonschema2pojo.inclusionLevel . |
<initializeCollections> |
boolean |
No version given |
Whether to initialize Set and List fields as empty collections, or leave them as null .Default value is: true .User property is: jsonschema2pojo.initializeCollections . |
<outputDirectory> |
File |
0.1.0 |
Target directory for generated Java source files. Default value is: ${project.build.directory}/generated-sources/jsonschema2pojo .User property is: jsonschema2pojo.outputDirectory . |
<outputEncoding> |
String |
0.4.0 |
The character encoding that should be used when writing the generated Java source files. Default value is: UTF-8 .User property is: jsonschema2pojo.outputEncoding . |
<parcelable> |
boolean |
0.4.11 |
Whether to make the generated types 'parcelable' (for Android development). Default value is: false .User property is: jsonschema2pojo.parcelable . |
<propertyWordDelimiters> |
String |
0.2.2 |
The characters that should be considered as word delimiters when creating Java Bean property names from JSON property names. If blank or not set, JSON properties will be considered to contain a single word when creating Java Bean property names. Default value is: - _ .User property is: jsonschema2pojo.propertyWordDelimiters . |
<refFragmentPathDelimiters> |
String |
0.4.31 |
A string containing any characters that should act as path delimiters when resolving $ref fragments. By default, #, / and . are used in an attempt to support JSON Pointer and JSON Path. Default value is: #/. .User property is: jsonschema2pojo.refFragmentPathDelimiters . |
<removeOldOutput> |
boolean |
0.3.7 |
Whether to empty the target directory before generation occurs, to clear out all source files that have been generated previously.
Be warned, when activated this option will cause jsonschema2pojo to indiscriminately delete the entire contents of the target directory (all files and folders) before it begins generating sources. Default value is: false .User property is: jsonschema2pojo.removeOldOutput . |
<serializable> |
boolean |
0.4.23 |
Whether to make the generated types 'serializable'. Default value is: false .User property is: jsonschema2pojo.serializable . |
<skip> |
boolean |
0.2.1 |
Skip plugin execution (don't read/validate any schema files, don't generate any java types). Default value is: false .User property is: jsonschema2pojo.skip . |
<sourceDirectory> |
String |
0.1.0 |
Location of the JSON Schema file(s). Note: this may refer to a single file or a directory of files. User property is: jsonschema2pojo.sourceDirectory . |
<sourcePaths> |
String[] |
0.3.1 |
An array of locations of the JSON Schema file(s). Note: each item may refer to a single file or a directory of files. User property is: jsonschema2pojo.sourcePaths . |
<sourceSortOrder> |
String |
0.4.34 |
The sort order to be applied when recursively processing the source files. By default the OS can influence the processing order. Supported values:
Default value is: OS .User property is: jsonschema2pojo.sourceSortOrder . |
<sourceType> |
String |
0.3.3 |
The type of input documents that will be read
Supported values:
Default value is: jsonschema .User property is: jsonschema2pojo.sourceType . |
<targetPackage> |
String |
0.1.0 |
Package name used for generated Java classes (for types where a fully qualified name has not been supplied in the schema using the 'javaType' property). User property is: jsonschema2pojo.targetPackage . |
<targetVersion> |
String |
- |
The target version for generated source files, used whenever decisions are made about generating source code that may be incompatible with older JVMs. Acceptable values include e.g. 1.6, 1.8, 8, 9, 10, 11.
If not set, the value of targetVersion is auto-detected. For auto-detection, the first value found in the following list will be used:
User property is: jsonschema2pojo.targetVersion . |
<timeType> |
String |
0.4.22 |
What type to use instead of string when adding string type fields of format time (not date-time) to generated Java types. User property is: jsonschema2pojo.timeType . |
<toStringExcludes> |
String[] |
0.4.35 |
The fields to be excluded from toString generation User property is: jsonschema2pojo.toStringExcludes . |
<useBigDecimals> |
boolean |
0.4.22 |
Whether to use the java type java.math.BigDecimal instead of float (or Float ) when representing the JSON Schema type 'number'. Note that this configuration overrides isUseDoubleNumbers() .Default value is: false .User property is: jsonschema2pojo.useBigDecimals . |
<useBigIntegers> |
boolean |
0.4.25 |
Whether to use the java type java.math.BigInteger instead of int (or Integer ) when representing the JSON Schema type 'integer'. Note that this configuration overrides isUseLongIntegers() .Default value is: false .User property is: jsonschema2pojo.useBigIntegers . |
<useCommonsLang3> |
boolean |
0.4.1 |
Whether to use commons-lang 3.x imports instead of commons-lang 2.x imports when adding equals, hashCode and toString methods. Default value is: false .User property is: jsonschema2pojo.useCommonsLang3 . |
<useDoubleNumbers> |
boolean |
0.4.0 |
Whether to use the java type double (or Double ) instead of float (or Float ) when representing the JSON Schema type 'number'.Default value is: true .User property is: jsonschema2pojo.useDoubleNumbers . |
<useInnerClassBuilders> |
boolean |
1.0.0 |
If set to true, then the gang of four builder pattern will be used to generate builders on generated classes. Note: This property works in collaboration with the isGenerateBuilders() method. If the isGenerateBuilders() is false, then this property will not do anything.Default value is: false .User property is: jsonschema2pojo.useInnerClassBuilders . |
<useJakartaValidation> |
boolean |
- |
Whether to use annotations from jakarta.validation package instead of javax.validation package when adding JSR-303 annotations to generated Java types. This property works in collaboration with the isIncludeJsr303Annotations() configuration option. If the isIncludeJsr303Annotations() returns false , then this configuration option will not affect anything.Default value is: false .User property is: jsonschema2pojo.useJakartaValidation . |
<useJodaDates> |
boolean |
0.4.0 |
Whether to use org.joda.time.DateTime instead of java.util.Date when adding date type fields to generated Java types.Default value is: false .User property is: jsonschema2pojo.useJodaDates . |
<useJodaLocalDates> |
boolean |
0.4.9 |
Whether to use org.joda.time.LocalDate instead of string when adding string type fields of format date (not date-time) to generated Java types.Default value is: false .User property is: jsonschema2pojo.useJodaLocalDates . |
<useJodaLocalTimes> |
boolean |
0.4.9 |
Whether to use org.joda.time.LocalTime instead of string when adding string type fields of format time (not date-time) to generated Java types.Default value is: false .User property is: jsonschema2pojo.useJodaLocalTimes . |
<useLongIntegers> |
boolean |
0.2.2 |
Whether to use the java type long (or Long ) instead of int (or Integer ) when representing the JSON Schema type 'integer'.Default value is: false .User property is: jsonschema2pojo.useLongIntegers . |
<useOptionalForGetters> |
boolean |
- |
Whether to use java.util.Optional as return type for getters of non-required fields.Default value is: false .User property is: jsonschema2pojo.useOptionalForGetters . |
<usePrimitives> |
boolean |
0.2.0 |
Whether to use primitives (long , double , boolean ) instead of wrapper types where possible when generating bean properties (has the side-effect of making those properties non-null).Default value is: false .User property is: jsonschema2pojo.usePrimitives . |
<useTitleAsClassname> |
boolean |
1.0.0 |
Use the title as class name. Otherwise, the property and file name is used. Default value is: false .User property is: jsonschema2pojo.useTitleAsClassname . |
boolean
0.1.9
No
jsonschema2pojo.addCompileSourceRoot
true
Supported values:
jackson2
(apply annotations from the Jackson 2.x library)jackson
(alias for jackson2)jsonb
(apply annotations from the JSON-B 1.x library)jsonb2
(apply annotations from the JSON-B 2.x library)gson
(apply annotations from the gson library)moshi1
(apply annotations from the moshi 1.x library)none
(apply no annotations at all)java.lang.String
0.3.1
No
jsonschema2pojo.annotationStyle
jackson2
java.lang.String
0.4.6
No
jsonschema2pojo.classNamePrefix
java.lang.String
0.4.6
No
jsonschema2pojo.classNameSuffix
isIncludeRequiredPropertiesConstructor()
and off the isIncludeAllPropertiesConstructor()
configuration options. It is specifically tied to the isIncludeConstructors()
property, and will do nothing if that property is not enabledboolean
0.4.8
No
jsonschema2pojo.constructorsRequiredPropertiesOnly
false
org.jsonschema2pojo.Annotator
and will be used in addition to the one chosen by annotationStyle
.
If you want to use the custom annotator alone, set annotationStyle
to none
.
java.lang.String
0.3.6
No
jsonschema2pojo.customAnnotator
org.jsonschema2pojo.NoopAnnotator
java.lang.String
0.4.33
No
jsonschema2pojo.customDatePattern
java.lang.String
0.4.33
No
jsonschema2pojo.customDatePattern
org.jsonschema2pojo.rules.RuleFactory
and will be used to create instances of Rules used for code generation.java.lang.String
0.4.5
No
jsonschema2pojo.customRuleFactory
org.jsonschema2pojo.rules.RuleFactory
java.lang.String
0.4.36
No
jsonschema2pojo.customTimePattern
java.lang.String
0.4.22
No
jsonschema2pojo.dateTimeType
java.lang.String
0.4.22
No
jsonschema2pojo.dateType
java.lang.String[]
0.4.3
No
java.lang.String[]
0.4.23
No
jsonschema2pojo.fileExtensions
boolean
0.4.29
No
jsonschema2pojo.formatDateTimes
false
boolean
0.4.33
No
jsonschema2pojo.formatDates
false
boolean
0.4.36
No
jsonschema2pojo.formatTimes
false
java.util.Map<java.lang.String, java.lang.String>
1.0.0
No
jsonschema2pojo.formatTypeMapping
withXxx(value)
(that return this
), alongside the standard, void-return setters.boolean
0.1.2
No
jsonschema2pojo.generateBuilders
false
boolean
0.4.14
No
jsonschema2pojo.includeAdditionalProperties
true
isIncludeConstructors()
configuration option and is incompatible with isConstructorsRequiredPropertiesOnly()
, and will have no effect if isIncludeConstructors()
is not set to true. If isIncludeConstructors()
is set to true then this configuration determines whether the resulting object should include a constructor with all listed properties as parameters.boolean
1.0.3
No
jsonschema2pojo.includeAllPropertiesConstructor
true
boolean
1.0.2
No
jsonschema2pojo.includeConstructorPropertiesAnnotation
false
boolean
0.4.8
No
jsonschema2pojo.includeConstructors
false
isIncludeConstructors()
configuration option and is incompatible with isConstructorsRequiredPropertiesOnly()
, and will have no effect if isIncludeConstructors()
is not set to true. If isIncludeConstructors()
is set to true then this configuration determines whether the resulting object should include a constructor the class itself as a parameter, with the expectation that all properties from the originating class will assigned to the new class.boolean
1.0.3
No
jsonschema2pojo.includeCopyConstructor
false
boolean
0.4.17
No
jsonschema2pojo.includeDynamicAccessors
boolean
No
jsonschema2pojo.includeDynamicBuilders
false
boolean
No
jsonschema2pojo.includeDynamicGetters
false
boolean
No
jsonschema2pojo.includeDynamicSetters
false
boolean
No
jsonschema2pojo.includeGeneratedAnnotation
true
boolean
No
jsonschema2pojo.includeGetters
true
hashCode
and equals
methods in generated Java types.boolean
0.3.1
No
jsonschema2pojo.includeHashcodeAndEquals
true
Schema rules and the annotation they produce:
boolean
0.3.2
No
jsonschema2pojo.includeJsr303Annotations
false
boolean
0.4.8
No
jsonschema2pojo.includeJsr305Annotations
false
isIncludeConstructors()
configuration option and is incompatible with isConstructorsRequiredPropertiesOnly()
, and will have no effect if isIncludeConstructors()
is not set to true. If isIncludeConstructors()
is set to true then this configuration determines whether the resulting object should include a constructor with only the required properties as parameters.boolean
1.0.3
No
jsonschema2pojo.includeRequiredPropertiesConstructor
false
boolean
No
jsonschema2pojo.includeSetters
true
toString
method in generated Java types.boolean
0.3.1
No
jsonschema2pojo.includeToString
true
By default the type information is stored in the @class property, this can be overridden in the deserializationClassProperty of the schema.
boolean
1.0.2
No
jsonschema2pojo.includeTypeInfo
false
java.lang.String[]
0.4.3
No
Supported values
ALWAYS
NON_ABSENT
NON_DEFAULT
NON_EMPTY
NON_NULL
USE_DEFAULTS
java.lang.String
No
jsonschema2pojo.inclusionLevel
NON_NULL
null
.boolean
No version given
No
jsonschema2pojo.initializeCollections
true
java.io.File
0.1.0
No
jsonschema2pojo.outputDirectory
${project.build.directory}/generated-sources/jsonschema2pojo
java.lang.String
0.4.0
No
jsonschema2pojo.outputEncoding
UTF-8
boolean
0.4.11
No
jsonschema2pojo.parcelable
false
java.lang.String
0.2.2
No
jsonschema2pojo.propertyWordDelimiters
- _
java.lang.String
0.4.31
No
jsonschema2pojo.refFragmentPathDelimiters
#/.
Be warned, when activated this option will cause jsonschema2pojo to indiscriminately delete the entire contents of the target directory (all files and folders) before it begins generating sources.
boolean
0.3.7
No
jsonschema2pojo.removeOldOutput
false
boolean
0.4.23
No
jsonschema2pojo.serializable
false
boolean
0.2.1
No
jsonschema2pojo.skip
false
java.lang.String
0.1.0
No
jsonschema2pojo.sourceDirectory
java.lang.String[]
0.3.1
No
jsonschema2pojo.sourcePaths
OS
(Let the OS influence the order the source files are processed.)FILES_FIRST
(Case sensitive sort, visit the files first. The source files are processed in a breadth first sort order.)SUBDIRS_FIRST
(Case sensitive sort, visit the sub-directories before the files. The source files are processed in a depth first sort order.)java.lang.String
0.4.34
No
jsonschema2pojo.sourceSortOrder
OS
Supported values:
jsonschema
(schema documents, containing formal rules that describe the structure of JSON data)json
(documents that represent an example of the kind of JSON data that the generated Java types will be mapped to)yamlschema
(JSON schema documents, represented as YAML)yaml
(documents that represent an example of the kind of YAML (or JSON) data that the generated Java types will be mapped to)java.lang.String
0.3.3
No
jsonschema2pojo.sourceType
jsonschema
java.lang.String
0.1.0
No
jsonschema2pojo.targetPackage
java.lang.String
No
jsonschema2pojo.targetVersion
java.lang.String
0.4.22
No
jsonschema2pojo.timeType
java.lang.String[]
0.4.35
No
jsonschema2pojo.toStringExcludes
java.math.BigDecimal
instead of float
(or Float
) when representing the JSON Schema type 'number'. Note that this configuration overrides isUseDoubleNumbers()
.boolean
0.4.22
No
jsonschema2pojo.useBigDecimals
false
java.math.BigInteger
instead of int
(or Integer
) when representing the JSON Schema type 'integer'. Note that this configuration overrides isUseLongIntegers()
.boolean
0.4.25
No
jsonschema2pojo.useBigIntegers
false
boolean
0.4.1
No
jsonschema2pojo.useCommonsLang3
false
double
(or Double
) instead of float
(or Float
) when representing the JSON Schema type 'number'.boolean
0.4.0
No
jsonschema2pojo.useDoubleNumbers
true
isGenerateBuilders()
method. If the isGenerateBuilders()
is false, then this property will not do anything.boolean
1.0.0
No
jsonschema2pojo.useInnerClassBuilders
false
jakarta.validation
package instead of javax.validation
package when adding JSR-303 annotations to generated Java types. This property works in collaboration with the isIncludeJsr303Annotations()
configuration option. If the isIncludeJsr303Annotations()
returns false
, then this configuration option will not affect anything.boolean
No
jsonschema2pojo.useJakartaValidation
false
org.joda.time.DateTime
instead of java.util.Date
when adding date type fields to generated Java types.boolean
0.4.0
No
jsonschema2pojo.useJodaDates
false
org.joda.time.LocalDate
instead of string when adding string type fields of format date (not date-time) to generated Java types.boolean
0.4.9
No
jsonschema2pojo.useJodaLocalDates
false
org.joda.time.LocalTime
instead of string when adding string type fields of format time (not date-time) to generated Java types.boolean
0.4.9
No
jsonschema2pojo.useJodaLocalTimes
false
long
(or Long
) instead of int
(or Integer
) when representing the JSON Schema type 'integer'.boolean
0.2.2
No
jsonschema2pojo.useLongIntegers
false
java.util.Optional
as return type for getters of non-required fields.boolean
No
jsonschema2pojo.useOptionalForGetters
false
long
, double
, boolean
) instead of wrapper types where possible when generating bean properties (has the side-effect of making those properties non-null).boolean
0.2.0
No
jsonschema2pojo.usePrimitives
false
boolean
1.0.0
No
jsonschema2pojo.useTitleAsClassname
false