Jan baa53cbf57 [kotlin-client][kotlin-server] feature: allow creation of kotlin data classes that implement java.io.Serializable (#3997)
* feat: allow creation of kotlin data classes that implement java.io.Serializable, by adding the config option serializableModel=(true|false)

* docs: add markdown docu for new configOption serializableModel

* fix: do not use parcelize in script

* update kotlin samples

* add the option, update the doc
2019-10-02 00:13:00 +08:00

1004 B


id: generator-opts-server-kotlin-vertx title: Config Options for kotlin-vertx sidebar_label: kotlin-vertx

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
serializationLibrary What serialization library to use: 'moshi' (default), or 'gson' moshi
parcelizeModels toggle "@Parcelize" for generated models null
serializableModel boolean - toggle "implements Serializable" for generated models null