Option | Description | Values | Default |
apiSuffix | suffix for api classes | | Api |
artifactId | Generated artifact id (name of jar). | | null |
artifactVersion | Generated artifact's package version. | | 1.0.0 |
enumPropertyNaming | Naming convention for enum properties: 'camelCase', 'PascalCase', 'snake_case', 'UPPERCASE', and 'original' | | camelCase |
groupId | Generated artifact package's organization (i.e. maven groupId). | | org.openapitools |
modelMutable | Create mutable models | | false |
packageName | Generated artifact package name. | | org.openapitools |
parcelizeModels | toggle "@Parcelize" for generated models | | null |
serializableModel | boolean - toggle "implements Serializable" for generated models | | null |
serializationLibrary | What serialization library to use: 'moshi' (default), or 'gson' | | moshi |
sortModelPropertiesByRequiredFlag | Sort model properties to place required parameters before optional parameters. | | null |
sortParamsByRequiredFlag | Sort method arguments to place required parameters before optional parameters. | | null |
sourceFolder | source folder for generated code | | src/main/kotlin |
IMPORT MAPPING
Type/Alias | Imports |
BigDecimal | java.math.BigDecimal |
Date | java.util.Date |
DateTime | java.time.LocalDateTime |
File | java.io.File |
LocalDate | java.time.LocalDate |
LocalDateTime | java.time.LocalDateTime |
LocalTime | java.time.LocalTime |
Timestamp | java.sql.Timestamp |
URI | java.net.URI |
UUID | java.util.UUID |
INSTANTIATION TYPES
Type/Alias | Instantiated By |
array | kotlin.arrayOf |
list | kotlin.arrayOf |
map | kotlin.mapOf |
LANGUAGE PRIMITIVES
- kotlin.Array
- kotlin.Boolean
- kotlin.Byte
- kotlin.ByteArray
- kotlin.Char
- kotlin.Double
- kotlin.Float
- kotlin.Int
- kotlin.Long
- kotlin.Short
- kotlin.String
- kotlin.collections.List
- kotlin.collections.Map
- kotlin.collections.Set
RESERVED WORDS
- as
- break
- class
- continue
- do
- else
- false
- for
- fun
- if
- in
- interface
- is
- null
- object
- package
- return
- super
- this
- throw
- true
- try
- typealias
- typeof
- val
- var
- when
- while
Last updated on 1/20/2020