2019-01-18 09:39:33 +00:00
---
title: Config Options for groovy
sidebar_label: groovy
---
| Option | Description | Values | Default |
| ------ | ----------- | ------ | ------- |
2020-01-20 01:19:11 +00:00
|additionalModelTypeAnnotations|Additional annotations for model type(class level annotations)| |null|
2019-01-18 09:39:33 +00:00
|allowUnicodeIdentifiers|boolean, toggles whether unicode identifiers are allowed in names or not, default is false| |false|
2019-05-06 14:31:12 +00:00
|apiPackage|package for generated api classes| |org.openapitools.api|
|artifactId|artifactId in generated pom.xml. This also becomes part of the generated library's filename| |openapi-groovy|
|artifactVersion|artifact version in generated pom.xml. This also becomes part of the generated library's filename| |1.0.0|
2020-01-20 01:19:11 +00:00
|bigDecimalAsString|Treat BigDecimal values as Strings to avoid precision loss.| |false|
|booleanGetterPrefix|Set booleanGetterPrefix| |get|
|dateLibrary|Option. Date library to use|< dl > < dt > **joda**< / dt > < dd > Joda (for legacy app only)< / dd > < dt > **legacy**< / dt > < dd > Legacy java.util.Date (if you really have a good reason not to use threetenbp< / dd > < dt > **java8-localdatetime**< / dt > < dd > Java 8 using LocalDateTime (for legacy app only)< / dd > < dt > **java8**< / dt > < dd > Java 8 native JSR310 (preferred for jdk 1.8+) - note: this also sets " java8" to true< / dd > < dt > **threetenbp**< / dt > < dd > Backport of JSR310 (preferred for jdk < 1.8)< / dd > < dl > |legacy|
2019-05-06 14:31:12 +00:00
|developerEmail|developer email in generated pom.xml| |team@openapitools.org|
2020-01-20 01:19:11 +00:00
|developerName|developer name in generated pom.xml| |OpenAPI-Generator Contributors|
2019-05-06 14:31:12 +00:00
|developerOrganization|developer organization in generated pom.xml| |OpenAPITools.org|
|developerOrganizationUrl|developer organization URL in generated pom.xml| |http://openapitools.org|
2020-01-20 01:19:11 +00:00
|disableHtmlEscaping|Disable HTML escaping of JSON strings when using gson (needed to avoid problems with byte[] fields)| |false|
|ensureUniqueParams|Whether to ensure parameter names are unique in an operation (rename parameters that are not).| |true|
2019-01-18 09:39:33 +00:00
|fullJavaUtil|whether to use fully qualified name for classes under java.util. This option only works for Java API client| |false|
2020-01-20 01:19:11 +00:00
|groupId|groupId in generated pom.xml| |org.openapitools|
2019-05-06 14:31:12 +00:00
|hideGenerationTimestamp|Hides the generation timestamp when files are generated.| |false|
2020-01-20 01:19:11 +00:00
|invokerPackage|root package for generated code| |org.openapitools.api|
2019-05-06 14:31:12 +00:00
|java8|Option. Use Java8 classes instead of third party equivalents|< dl > < dt > **true**< / dt > < dd > Use Java 8 classes such as Base64< / dd > < dt > **false**< / dt > < dd > Various third party libraries as needed< / dd > < dl > |false|
2020-01-20 01:19:11 +00:00
|licenseName|The name of the license| |Unlicense|
|licenseUrl|The URL of the license| |http://unlicense.org|
|modelPackage|package for generated models| |org.openapitools.model|
2019-01-18 09:39:33 +00:00
|parentArtifactId|parent artifactId in generated pom N.B. parentGroupId, parentArtifactId and parentVersion must all be specified for any of them to take effect| |null|
2020-01-20 01:19:11 +00:00
|parentGroupId|parent groupId in generated pom N.B. parentGroupId, parentArtifactId and parentVersion must all be specified for any of them to take effect| |null|
2019-01-18 09:39:33 +00:00
|parentVersion|parent version in generated pom N.B. parentGroupId, parentArtifactId and parentVersion must all be specified for any of them to take effect| |null|
2020-01-20 01:19:11 +00:00
|prependFormOrBodyParameters|Add form or body parameters to the beginning of the parameter list.| |false|
|scmConnection|SCM connection in generated pom.xml| |scm:git:git@github.com:openapitools/openapi-generator.git|
|scmDeveloperConnection|SCM developer connection in generated pom.xml| |scm:git:git@github.com:openapitools/openapi-generator.git|
|scmUrl|SCM URL in generated pom.xml| |https://github.com/openapitools/openapi-generator|
|serializableModel|boolean - toggle " implements Serializable" for generated models| |false|
2019-05-06 14:31:12 +00:00
|snapshotVersion|Uses a SNAPSHOT version.|< dl > < dt > **true**< / dt > < dd > Use a SnapShot Version< / dd > < dt > **false**< / dt > < dd > Use a Release Version< / dd > < dl > |null|
2020-01-20 01:19:11 +00:00
|sortModelPropertiesByRequiredFlag|Sort model properties to place required parameters before optional parameters.| |true|
|sortParamsByRequiredFlag|Sort method arguments to place required parameters before optional parameters.| |true|
|sourceFolder|source folder for generated code| |src/main/groovy|
|withXml|whether to include support for application/xml content type and include XML annotations in the model (works with libraries that provide support for JSON and XML)| |false|
2020-01-09 02:54:05 +00:00
## IMPORT MAPPING
| Type/Alias | Imports |
| ---------- | ------- |
2020-01-20 01:19:11 +00:00
|Array|java.util.List|
2020-01-09 02:54:05 +00:00
|ArrayList|java.util.ArrayList|
|BigDecimal|java.math.BigDecimal|
|Date|java.util.Date|
|DateTime|org.joda.time.*|
|File|java.io.File|
2020-01-20 01:19:11 +00:00
|HashMap|java.util.HashMap|
|List|java.util.*|
|LocalDate|org.joda.time.*|
|LocalDateTime|org.joda.time.*|
|LocalTime|org.joda.time.*|
2020-01-09 02:54:05 +00:00
|Map|java.util.Map|
2020-01-20 01:19:11 +00:00
|Set|java.util.*|
|Timestamp|java.sql.Timestamp|
|URI|java.net.URI|
|UUID|java.util.UUID|
2020-01-09 02:54:05 +00:00
## INSTANTIATION TYPES
| Type/Alias | Instantiated By |
| ---------- | --------------- |
|array|ArrayList|
|map|HashMap|
## LANGUAGE PRIMITIVES
< ul data-columns = "2" style = "list-style-type: disc;-webkit-columns:2;-moz-columns:2;columns:2;-moz-column-fill:auto;column-fill:auto" > < li > ArrayList< / li >
2020-01-20 01:19:11 +00:00
< li > Boolean< / li >
2020-01-09 02:54:05 +00:00
< li > Date< / li >
2020-01-20 01:19:11 +00:00
< li > Double< / li >
< li > File< / li >
2020-01-09 02:54:05 +00:00
< li > Float< / li >
2020-01-20 01:19:11 +00:00
< li > Integer< / li >
2020-01-09 02:54:05 +00:00
< li > Long< / li >
< li > Map< / li >
2020-01-20 01:19:11 +00:00
< li > Object< / li >
< li > String< / li >
< li > boolean< / li >
< li > byte[]< / li >
2020-01-09 02:54:05 +00:00
< / ul >
## RESERVED WORDS
2020-01-20 01:19:11 +00:00
< ul data-columns = "2" style = "list-style-type: disc;-webkit-columns:2;-moz-columns:2;columns:2;-moz-column-fill:auto;column-fill:auto" > < li > abstract< / li >
2020-01-09 02:54:05 +00:00
< li > apiclient< / li >
2020-01-20 01:19:11 +00:00
< li > apiexception< / li >
< li > apiresponse< / li >
< li > assert< / li >
< li > boolean< / li >
< li > break< / li >
< li > byte< / li >
2020-01-09 02:54:05 +00:00
< li > case< / li >
2020-01-20 01:19:11 +00:00
< li > catch< / li >
< li > char< / li >
< li > class< / li >
< li > configuration< / li >
< li > const< / li >
< li > continue< / li >
< li > default< / li >
< li > do< / li >
2020-01-09 02:54:05 +00:00
< li > double< / li >
2020-01-20 01:19:11 +00:00
< li > else< / li >
2020-01-09 02:54:05 +00:00
< li > enum< / li >
< li > extends< / li >
< li > final< / li >
2020-01-20 01:19:11 +00:00
< li > finally< / li >
< li > float< / li >
< li > for< / li >
< li > goto< / li >
< li > if< / li >
2020-01-09 02:54:05 +00:00
< li > implements< / li >
< li > import< / li >
2020-01-20 01:19:11 +00:00
< li > instanceof< / li >
< li > int< / li >
2020-01-09 02:54:05 +00:00
< li > interface< / li >
2020-01-20 01:19:11 +00:00
< li > localreturntype< / li >
< li > localvaraccept< / li >
< li > localvaraccepts< / li >
< li > localvarauthnames< / li >
2020-01-09 02:54:05 +00:00
< li > localvarcollectionqueryparams< / li >
2020-01-20 01:19:11 +00:00
< li > localvarcontenttype< / li >
< li > localvarcontenttypes< / li >
2020-01-09 02:54:05 +00:00
< li > localvarcookieparams< / li >
< li > localvarformparams< / li >
2020-01-20 01:19:11 +00:00
< li > localvarheaderparams< / li >
< li > localvarpath< / li >
2020-01-09 02:54:05 +00:00
< li > localvarpostbody< / li >
2020-01-20 01:19:11 +00:00
< li > localvarqueryparams< / li >
< li > long< / li >
< li > native< / li >
< li > new< / li >
< li > null< / li >
< li > object< / li >
< li > package< / li >
< li > private< / li >
< li > protected< / li >
< li > public< / li >
2020-01-09 02:54:05 +00:00
< li > return< / li >
2020-01-20 01:19:11 +00:00
< li > short< / li >
< li > static< / li >
< li > strictfp< / li >
< li > stringutil< / li >
< li > super< / li >
< li > switch< / li >
< li > synchronized< / li >
< li > this< / li >
< li > throw< / li >
< li > throws< / li >
< li > transient< / li >
< li > try< / li >
< li > void< / li >
< li > volatile< / li >
< li > while< / li >
2020-01-09 02:54:05 +00:00
< / ul >