mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-05-22 09:30:54 +00:00
* Some clean code. * Add support for retrofit2 in models and apis. Need work in ApiClient, but it's not urgent. * Add ApiClient with retrofit2 support. * Remove unnecessary package. * Add scripts to generate samples. * Generate sample of retrofit2 * Change toUpperCase to toUpperCase(Locale.ROOT) to fix compile. * Added GSON library when it's needed * Fix typo. * Add some missing common files. * Execute bin script. * Remove copy&paste error in script. * [kotlin] update outdated files * Fix apis with no params. * Add missing import in ApiClient * Add support for CSV, SSV, TSV, PIPES, SPACES in retrofit 2 library. * Fix package name. * Execute kotlin-client-retrofit2.sh script. * force rebuild. * execute script again. * Add missing imports from okhttp3. @Deprecated has a message param that java not. Add it with a default message. * Execute retrofit2 script. * Rerun script.
1.9 KiB
1.9 KiB
title | sidebar_label |
---|---|
Config Options for kotlin | 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 Serializable" for generated models | null | |
modelMutable | Create mutable models | false | |
dateLibrary | Option. Date library to use |
|
java8 |
collectionType | Option. Collection type to use |
|
array |
library | Library template (sub-template) to use |
|
jvm-okhttp4 |