forked from loafle/openapi-generator-original
* feat: add companion object to data classes if the implement the interface java.io.Serializable * style: format template file * style: adapt to project's original code style * fix: add missing imports * style: reverted mustache template to original styling * test: generate additional samples for kotlin-springboot-reactive and kotlin-springboot * docs: name full qualified classname of interface java.io.Serializable to prevent confusion with kotlinx.serialization
1.6 KiB
1.6 KiB
id: generator-opts-client-kotlin title: Config Options for kotlin sidebar_label: kotlin
Option | Description | Values | Default |
---|---|---|---|
sourceFolder | source folder for generated code | src/main/kotlin | |
packageName | Generated artifact package name. | org.openapitools.client | |
apiSuffix | suffix for api classes | Api | |
groupId | Generated artifact package's organization (i.e. maven groupId). | org.openapitools | |
artifactId | Generated artifact id (name of jar). | kotlin-client | |
artifactVersion | Generated artifact's package version. | 1.0.0 | |
enumPropertyNaming | Naming convention for enum properties: 'camelCase', 'PascalCase', 'snake_case', 'UPPERCASE', and 'original' | camelCase | |
serializationLibrary | What serialization library to use: 'moshi' (default), or 'gson' | moshi | |
parcelizeModels | toggle "@Parcelize" for generated models | null | |
serializableModel | boolean - toggle "implements java.io.Serializable" for generated models | null | |
dateLibrary | Option. Date library to use |
|
java8 |
collectionType | Option. Collection type to use |
|
array |
library | Library template (sub-template) to use |
|
jvm |