An error occurred while fetching the assigned milestone of the selected merge_request.
bin
openapi3
kotlin-client-petstore-multiplatform.sh +35 -0
windows
kotlin-client-petstore-multiplatform.bat +10 -0
kotlin-client-petstore-multiplatform.sh +32 -0
docs/generators
kotlin.md +2 -1
modules/openapi-generator/src/main
java/org/openapitools/codegen/languages
KotlinClientCodegen.java +177 -19
resources/kotlin-client
infrastructure
ApiAbstractions.kt.mustache +5 -2
libraries
jvm/infrastructure
ApiClient.kt.mustache +0 -0
ApiInfrastructureResponse.kt.mustache +0 -0
ApplicationDelegates.kt.mustache +0 -0
ByteArrayAdapter.kt.mustache +0 -0
Errors.kt.mustache +0 -0
LocalDateAdapter.kt.mustache +0 -0
LocalDateTimeAdapter.kt.mustache +0 -0
ResponseExtensions.kt.mustache +0 -0
Serializer.kt.mustache +0 -0
UUIDAdapter.kt.mustache +0 -0
multiplatform
commonTest
coroutine.mustache +13 -0
infrastructure
ApiClient.kt.mustache +122 -0
HttpResponse.kt.mustache +51 -0
iosTest
coroutine.mustache +8 -0
jvmTest
coroutine.mustache +8 -0
api.mustache +90 -0
build.gradle.mustache +138 -0
gradle-wrapper.jar +0 -0
gradle-wrapper.properties.mustache +6 -0
gradlew.bat.mustache +90 -0
gradlew.mustache +160 -0
serial_wrapper_request_list.mustache +10 -0
serial_wrapper_request_map.mustache +10 -0
serial_wrapper_response_list.mustache +10 -0
serial_wrapper_response_map.mustache +10 -0
README.mustache +8 -1
data_class.mustache +22 -3
data_class_opt_var.mustache +3 -1
data_class_req_var.mustache +3 -1
enum_class.mustache +13 -0
settings.gradle.mustache +1 -0
samples
client/petstore
kotlin
src/main/kotlin/org/openapitools/client
infrastructure
ApiAbstractions.kt +5 -2
models
ApiResponse.kt +1 -1
Category.kt +1 -1
Order.kt +5 -2
Pet.kt +5 -2
Tag.kt +1 -1
User.kt +1 -1
settings.gradle +1 -0
kotlin-multiplatform
.openapi-generator
VERSION +1 -0
docs
ApiResponse.md +12 -0
Category.md +11 -0
Order.md +22 -0
Pet.md +22 -0
PetApi.md +405 -0
StoreApi.md +196 -0
Tag.md +11 -0
User.md +17 -0
UserApi.md +376 -0
gradle/wrapper
gradle-wrapper.jar +0 -0
gradle-wrapper.properties +6 -0
src
commonMain/kotlin/…/openapitools/client
apis
PetApi.kt +365 -0
StoreApi.kt +196 -0
UserApi.kt +350 -0
infrastructure
ApiAbstractions.kt +23 -0
ApiClient.kt +129 -0
HttpResponse.kt +51 -0
RequestConfig.kt +16 -0
RequestMethod.kt +8 -0
models
ApiResponse.kt +30 -0
Category.kt +28 -0
Order.kt +56 -0
Pet.kt +58 -0
Tag.kt +28 -0
User.kt +41 -0
commonTest/kotlin/util
Coroutine.kt +23 -0
iosTest/kotlin/util
Coroutine.kt +18 -0
jvmTest/kotlin/util
Coroutine.kt +18 -0
.openapi-generator-ignore +23 -0
README.md +81 -0
build.gradle +138 -0
gradlew +160 -0
gradlew.bat +90 -0
settings.gradle +2 -0
kotlin-string
src/main/kotlin/org/openapitools/client
infrastructure
ApiAbstractions.kt +5 -2
models
ApiResponse.kt +1 -1
Category.kt +1 -1
Order.kt +5 -2
Pet.kt +5 -2
Tag.kt +1 -1
User.kt +1 -1
settings.gradle +1 -0
kotlin-threetenbp
src/main/kotlin/org/openapitools/client
infrastructure
ApiAbstractions.kt +5 -2
models
ApiResponse.kt +1 -1
Category.kt +1 -1
Order.kt +5 -2
Pet.kt +5 -2
Tag.kt +1 -1
User.kt +1 -1
settings.gradle +1 -0
openapi3/client/…/kotlin-multiplatform
.openapi-generator
VERSION +1 -0
docs
200Response.md +11 -0
AdditionalPropertiesClass.md +11 -0
Animal.md +11 -0
AnotherFakeApi.md +56 -0
ApiResponse.md +12 -0
ArrayOfArrayOfNumberOnly.md +10 -0
ArrayOfNumberOnly.md +10 -0
ArrayTest.md +12 -0
Capitalization.md +15 -0
Cat.md +10 -0
CatAllOf.md +10 -0
Category.md +11 -0
ClassModel.md +10 -0
Client.md +10 -0
DefaultApi.md +50 -0
Dog.md +10 -0
DogAllOf.md +10 -0
EnumArrays.md +25 -0
EnumClass.md +14 -0
EnumTest.md +45 -0
FakeApi.md +727 -0
FakeClassnameTags123Api.md +59 -0
FileSchemaTestClass.md +11 -0
Foo.md +10 -0
FormatTest.md +24 -0
HasOnlyReadOnly.md +11 -0
HealthCheckResult.md +10 -0
InlineObject.md +11 -0
InlineObject1.md +11 -0
InlineObject2.md +25 -0
InlineObject3.md +23 -0
InlineObject4.md +11 -0
InlineObject5.md +11 -0
InlineResponseDefault.md +10 -0
List.md +10 -0
MapTest.md +20 -0
MixedPropertiesAndAdditionalPropertiesClass.md +12 -0
Name.md +13 -0
NullableClass.md +21 -0
NumberOnly.md +10 -0
Order.md +22 -0
OuterComposite.md +12 -0
OuterEnum.md +14 -0
OuterEnumDefaultValue.md +14 -0
OuterEnumInteger.md +14 -0
OuterEnumIntegerDefaultValue.md +14 -0
Pet.md +22 -0
PetApi.md +457 -0
ReadOnlyFirst.md +11 -0
Return.md +10 -0
SpecialModelName.md +10 -0
StoreApi.md +196 -0
Tag.md +11 -0
User.md +17 -0
UserApi.md +376 -0
gradle/wrapper
gradle-wrapper.jar +0 -0
gradle-wrapper.properties +6 -0
src
commonMain/kotlin/…/openapitools/client
apis
AnotherFakeApi.kt +81 -0
DefaultApi.kt +80 -0
FakeApi.kt +641 -0
FakeClassnameTags123Api.kt +81 -0
PetApi.kt +406 -0
StoreApi.kt +196 -0
UserApi.kt +350 -0
infrastructure
ApiAbstractions.kt +23 -0
ApiClient.kt +179 -0
HttpResponse.kt +51 -0
RequestConfig.kt +16 -0
RequestMethod.kt +8 -0
models
AdditionalPropertiesClass.kt +28 -0
Animal.kt +28 -0
ApiResponse.kt +30 -0
ArrayOfArrayOfNumberOnly.kt +26 -0
ArrayOfNumberOnly.kt +26 -0
ArrayTest.kt +31 -0
Capitalization.kt +37 -0
Cat.kt +30 -0
CatAllOf.kt +26 -0
Category.kt +28 -0
ClassModel.kt +26 -0
Client.kt +26 -0
Dog.kt +30 -0
DogAllOf.kt +26 -0
EnumArrays.kt +62 -0
EnumClass.kt +38 -0
EnumTest.kt +116 -0
FileSchemaTestClass.kt +28 -0
Foo.kt +26 -0
FormatTest.kt +56 -0
HasOnlyReadOnly.kt +28 -0
HealthCheckResult.kt +26 -0
InlineObject.kt +30 -0
InlineObject1.kt +30 -0
InlineObject2.kt +66 -0
InlineObject3.kt +66 -0
InlineObject4.kt +30 -0
InlineObject5.kt +30 -0
InlineResponseDefault.kt +27 -0
List.kt +26 -0
MapTest.kt +49 -0
MixedPropertiesAndAdditionalPropertiesClass.kt +31 -0
Model200Response.kt +28 -0
Name.kt +32 -0
NullableClass.kt +48 -0
NumberOnly.kt +26 -0
Order.kt +56 -0
OuterComposite.kt +30 -0
OuterEnum.kt +38 -0
OuterEnumDefaultValue.kt +38 -0
OuterEnumInteger.kt +38 -0
OuterEnumIntegerDefaultValue.kt +38 -0
Pet.kt +58 -0
ReadOnlyFirst.kt +28 -0
Return.kt +26 -0
SpecialModelname.kt +26 -0
Tag.kt +28 -0
User.kt +41 -0
commonTest/kotlin/util
Coroutine.kt +23 -0
iosTest/kotlin/util
Coroutine.kt +18 -0
jvmTest/kotlin/util
Coroutine.kt +18 -0
.openapi-generator-ignore +23 -0
README.md +158 -0
build.gradle +138 -0
gradlew +160 -0
gradlew.bat +90 -0
settings.gradle +2 -0
+ 35
- 0
ags="generate -i modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml -t modules/openapi-generator/src/main/resources/kotlin-client -g kotlin --artifact-id kotlin-client-petstore-multiplatform --library multiplatform -o samples/openapi3/client/petstore/kotlin-multiplatform $@"
+ 10
- 0
bin/kotlin-client-petstore-multiplatform.sh
0 → 100755
+ 32
- 0
+ 2
- 1
@@ -16,5 +16,6 @@ sidebar_label: kotlin
|library|Library template (sub-template) to use|<dl><dt>**jvm**</dt><dd>Platform: Java Virtual Machine. HTTP client: OkHttp 2.7.5. JSON processing: Gson 2.8.1.</dd><dt>**multiplatform**</dt><dd>Platform: Kotlin multiplatform. HTTP client: Ktor 1.2.4. JSON processing: Kotlinx Serialization: 0.12.0.</dd><dl>|jvm|
+ 177
- 19
@@ -19,21 +19,42 @@ package org.openapitools.codegen.languages;
@@ -81,9 +102,9 @@ public class KotlinClientCodegen extends AbstractKotlinCodegen {
@@ -95,6 +116,15 @@ public class KotlinClientCodegen extends AbstractKotlinCodegen {
@@ -121,10 +151,80 @@ public class KotlinClientCodegen extends AbstractKotlinCodegen {
@@ -151,25 +251,83 @@ public class KotlinClientCodegen extends AbstractKotlinCodegen {