fj-roman 7eb2be9c99 [Kotlin] add apiSuffix configuration (#2690)
* add apiSuffix configuration

* Add default value for Api suffix

* remove overriding method toApiName

* refactor the global option apiSuffix to kotlin specific feature

* add missing Option for apiSuffix

* extend readme.md for apiSuffix configuration

* update doc

* add testcase
2019-05-07 21:37:32 +08:00

1.1 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
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). null
artifactVersion Generated artifact's package version. 1.0.0
enumPropertyNaming Naming convention for enum properties: 'camelCase', 'PascalCase', 'snake_case', 'UPPERCASE', and 'original' camelCase
parcelizeModels toggle "@Parcelize" for generated models null
dateLibrary Option. Date library to use
string
String
java8
Java 8 native JSR310
threetenbp
Threetenbp
null
collectionType Option. Collection type to use
array
kotlin.Array
list
kotlin.collections.List
null