diff --git a/.github/workflows/samples-kotlin-echo-api.yaml b/.github/workflows/samples-kotlin-echo-api.yaml
index 0d92c30383bf..9fc5a0df4bb5 100644
--- a/.github/workflows/samples-kotlin-echo-api.yaml
+++ b/.github/workflows/samples-kotlin-echo-api.yaml
@@ -19,6 +19,7 @@ jobs:
# clients
- samples/client/echo_api/kotlin-jvm-spring-3-restclient
- samples/client/echo_api/kotlin-model-prefix-type-mappings
+ - samples/client/echo_api/kotlin-jvm-okhttp
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
diff --git a/.gitignore b/.gitignore
index 0b5b93e04a38..a2e29abe05bc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -220,6 +220,7 @@ samples/client/petstore/kotlin*/src/main/kotlin/test/
samples/client/petstore/kotlin*/build/
samples/server/others/kotlin-server/jaxrs-spec/build/
samples/client/echo_api/kotlin-jvm-spring-3-restclient/build/
+samples/client/echo_api/kotlin-jvm-okhttp/build/
# haskell
.stack-work
diff --git a/bin/configs/kotlin-jvm-okhttp-echo-api.yaml b/bin/configs/kotlin-jvm-okhttp-echo-api.yaml
new file mode 100644
index 000000000000..d28f767c6a40
--- /dev/null
+++ b/bin/configs/kotlin-jvm-okhttp-echo-api.yaml
@@ -0,0 +1,8 @@
+generatorName: kotlin
+outputDir: samples/client/echo_api/kotlin-jvm-okhttp
+inputSpec: modules/openapi-generator/src/test/resources/3_0/kotlin/echo_api.yaml
+templateDir: modules/openapi-generator/src/main/resources/kotlin-client
+modelNamePrefix: Api
+additionalProperties:
+ library: jvm-okhttp4
+ artifactId: kotlin-jvm-okhttp-echo-api
\ No newline at end of file
diff --git a/samples/client/echo_api/kotlin-jvm-okhttp/.openapi-generator-ignore b/samples/client/echo_api/kotlin-jvm-okhttp/.openapi-generator-ignore
new file mode 100644
index 000000000000..7484ee590a38
--- /dev/null
+++ b/samples/client/echo_api/kotlin-jvm-okhttp/.openapi-generator-ignore
@@ -0,0 +1,23 @@
+# OpenAPI Generator Ignore
+# Generated by openapi-generator https://github.com/openapitools/openapi-generator
+
+# Use this file to prevent files from being overwritten by the generator.
+# The patterns follow closely to .gitignore or .dockerignore.
+
+# As an example, the C# client generator defines ApiClient.cs.
+# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
+#ApiClient.cs
+
+# You can match any string of characters against a directory, file or extension with a single asterisk (*):
+#foo/*/qux
+# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
+
+# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
+#foo/**/qux
+# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
+
+# You can also negate patterns with an exclamation (!).
+# For example, you can ignore all files in a docs folder with the file extension .md:
+#docs/*.md
+# Then explicitly reverse the ignore rule for a single file:
+#!docs/README.md
diff --git a/samples/client/echo_api/kotlin-jvm-okhttp/.openapi-generator/FILES b/samples/client/echo_api/kotlin-jvm-okhttp/.openapi-generator/FILES
new file mode 100644
index 000000000000..f94d2fba7db1
--- /dev/null
+++ b/samples/client/echo_api/kotlin-jvm-okhttp/.openapi-generator/FILES
@@ -0,0 +1,54 @@
+README.md
+build.gradle
+docs/AuthApi.md
+docs/Bird.md
+docs/BodyApi.md
+docs/Category.md
+docs/DefaultValue.md
+docs/FormApi.md
+docs/HeaderApi.md
+docs/NumberPropertiesOnly.md
+docs/PathApi.md
+docs/Pet.md
+docs/Query.md
+docs/QueryApi.md
+docs/StringEnumRef.md
+docs/Tag.md
+docs/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.md
+gradle/wrapper/gradle-wrapper.jar
+gradle/wrapper/gradle-wrapper.properties
+gradlew
+gradlew.bat
+settings.gradle
+src/main/kotlin/org/openapitools/client/apis/AuthApi.kt
+src/main/kotlin/org/openapitools/client/apis/BodyApi.kt
+src/main/kotlin/org/openapitools/client/apis/FormApi.kt
+src/main/kotlin/org/openapitools/client/apis/HeaderApi.kt
+src/main/kotlin/org/openapitools/client/apis/PathApi.kt
+src/main/kotlin/org/openapitools/client/apis/QueryApi.kt
+src/main/kotlin/org/openapitools/client/infrastructure/ApiAbstractions.kt
+src/main/kotlin/org/openapitools/client/infrastructure/ApiClient.kt
+src/main/kotlin/org/openapitools/client/infrastructure/ApiResponse.kt
+src/main/kotlin/org/openapitools/client/infrastructure/BigDecimalAdapter.kt
+src/main/kotlin/org/openapitools/client/infrastructure/BigIntegerAdapter.kt
+src/main/kotlin/org/openapitools/client/infrastructure/ByteArrayAdapter.kt
+src/main/kotlin/org/openapitools/client/infrastructure/Errors.kt
+src/main/kotlin/org/openapitools/client/infrastructure/LocalDateAdapter.kt
+src/main/kotlin/org/openapitools/client/infrastructure/LocalDateTimeAdapter.kt
+src/main/kotlin/org/openapitools/client/infrastructure/OffsetDateTimeAdapter.kt
+src/main/kotlin/org/openapitools/client/infrastructure/PartConfig.kt
+src/main/kotlin/org/openapitools/client/infrastructure/RequestConfig.kt
+src/main/kotlin/org/openapitools/client/infrastructure/RequestMethod.kt
+src/main/kotlin/org/openapitools/client/infrastructure/ResponseExtensions.kt
+src/main/kotlin/org/openapitools/client/infrastructure/Serializer.kt
+src/main/kotlin/org/openapitools/client/infrastructure/URIAdapter.kt
+src/main/kotlin/org/openapitools/client/infrastructure/UUIDAdapter.kt
+src/main/kotlin/org/openapitools/client/models/ApiBird.kt
+src/main/kotlin/org/openapitools/client/models/ApiCategory.kt
+src/main/kotlin/org/openapitools/client/models/ApiDefaultValue.kt
+src/main/kotlin/org/openapitools/client/models/ApiNumberPropertiesOnly.kt
+src/main/kotlin/org/openapitools/client/models/ApiPet.kt
+src/main/kotlin/org/openapitools/client/models/ApiQuery.kt
+src/main/kotlin/org/openapitools/client/models/ApiStringEnumRef.kt
+src/main/kotlin/org/openapitools/client/models/ApiTag.kt
+src/main/kotlin/org/openapitools/client/models/ApiTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.kt
diff --git a/samples/client/echo_api/kotlin-jvm-okhttp/.openapi-generator/VERSION b/samples/client/echo_api/kotlin-jvm-okhttp/.openapi-generator/VERSION
new file mode 100644
index 000000000000..884119126398
--- /dev/null
+++ b/samples/client/echo_api/kotlin-jvm-okhttp/.openapi-generator/VERSION
@@ -0,0 +1 @@
+7.11.0-SNAPSHOT
diff --git a/samples/client/echo_api/kotlin-jvm-okhttp/README.md b/samples/client/echo_api/kotlin-jvm-okhttp/README.md
new file mode 100644
index 000000000000..b0abb04600e6
--- /dev/null
+++ b/samples/client/echo_api/kotlin-jvm-okhttp/README.md
@@ -0,0 +1,103 @@
+# org.openapitools.client - Kotlin client library for Echo Server API
+
+Echo Server API
+
+## Overview
+This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [openapi-spec](https://github.com/OAI/OpenAPI-Specification) from a remote server, you can easily generate an API client.
+
+- API version: 0.1.0
+- Package version:
+- Generator version: 7.11.0-SNAPSHOT
+- Build package: org.openapitools.codegen.languages.KotlinClientCodegen
+
+## Requires
+
+* Kotlin 1.7.21
+* Gradle 7.5
+
+## Build
+
+First, create the gradle wrapper script:
+
+```
+gradle wrapper
+```
+
+Then, run:
+
+```
+./gradlew check assemble
+```
+
+This runs all tests and packages the library.
+
+## Features/Implementation Notes
+
+* Supports JSON inputs/outputs, File inputs, and Form inputs.
+* Supports collection formats for query parameters: csv, tsv, ssv, pipes.
+* Some Kotlin and Java types are fully qualified to avoid conflicts with types defined in OpenAPI definitions.
+* Implementation of ApiClient is intended to reduce method counts, specifically to benefit Android targets.
+
+
+## Documentation for API Endpoints
+
+All URIs are relative to *http://localhost:3000*
+
+| Class | Method | HTTP request | Description |
+| ------------ | ------------- | ------------- | ------------- |
+| *AuthApi* | [**testAuthHttpBasic**](docs/AuthApi.md#testauthhttpbasic) | **POST** /auth/http/basic | To test HTTP basic authentication |
+| *AuthApi* | [**testAuthHttpBearer**](docs/AuthApi.md#testauthhttpbearer) | **POST** /auth/http/bearer | To test HTTP bearer authentication |
+| *BodyApi* | [**testBinaryGif**](docs/BodyApi.md#testbinarygif) | **POST** /binary/gif | Test binary (gif) response body |
+| *BodyApi* | [**testBodyApplicationOctetstreamBinary**](docs/BodyApi.md#testbodyapplicationoctetstreambinary) | **POST** /body/application/octetstream/binary | Test body parameter(s) |
+| *BodyApi* | [**testBodyMultipartFormdataArrayOfBinary**](docs/BodyApi.md#testbodymultipartformdataarrayofbinary) | **POST** /body/application/octetstream/array_of_binary | Test array of binary in multipart mime |
+| *BodyApi* | [**testBodyMultipartFormdataSingleBinary**](docs/BodyApi.md#testbodymultipartformdatasinglebinary) | **POST** /body/application/octetstream/single_binary | Test single binary in multipart mime |
+| *BodyApi* | [**testEchoBodyFreeFormObjectResponseString**](docs/BodyApi.md#testechobodyfreeformobjectresponsestring) | **POST** /echo/body/FreeFormObject/response_string | Test free form object |
+| *BodyApi* | [**testEchoBodyPet**](docs/BodyApi.md#testechobodypet) | **POST** /echo/body/Pet | Test body parameter(s) |
+| *BodyApi* | [**testEchoBodyPetResponseString**](docs/BodyApi.md#testechobodypetresponsestring) | **POST** /echo/body/Pet/response_string | Test empty response body |
+| *BodyApi* | [**testEchoBodyTagResponseString**](docs/BodyApi.md#testechobodytagresponsestring) | **POST** /echo/body/Tag/response_string | Test empty json (request body) |
+| *FormApi* | [**testFormIntegerBooleanString**](docs/FormApi.md#testformintegerbooleanstring) | **POST** /form/integer/boolean/string | Test form parameter(s) |
+| *FormApi* | [**testFormOneof**](docs/FormApi.md#testformoneof) | **POST** /form/oneof | Test form parameter(s) for oneOf schema |
+| *HeaderApi* | [**testHeaderIntegerBooleanStringEnums**](docs/HeaderApi.md#testheaderintegerbooleanstringenums) | **GET** /header/integer/boolean/string/enums | Test header parameter(s) |
+| *PathApi* | [**testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath**](docs/PathApi.md#testspathstringpathstringintegerpathintegerenumnonrefstringpathenumrefstringpath) | **GET** /path/string/{path_string}/integer/{path_integer}/{enum_nonref_string_path}/{enum_ref_string_path} | Test path parameter(s) |
+| *QueryApi* | [**testEnumRefString**](docs/QueryApi.md#testenumrefstring) | **GET** /query/enum_ref_string | Test query parameter(s) |
+| *QueryApi* | [**testQueryDatetimeDateString**](docs/QueryApi.md#testquerydatetimedatestring) | **GET** /query/datetime/date/string | Test query parameter(s) |
+| *QueryApi* | [**testQueryIntegerBooleanString**](docs/QueryApi.md#testqueryintegerbooleanstring) | **GET** /query/integer/boolean/string | Test query parameter(s) |
+| *QueryApi* | [**testQueryStyleDeepObjectExplodeTrueObject**](docs/QueryApi.md#testquerystyledeepobjectexplodetrueobject) | **GET** /query/style_deepObject/explode_true/object | Test query parameter(s) |
+| *QueryApi* | [**testQueryStyleFormExplodeTrueArrayString**](docs/QueryApi.md#testquerystyleformexplodetruearraystring) | **GET** /query/style_form/explode_true/array_string | Test query parameter(s) |
+| *QueryApi* | [**testQueryStyleFormExplodeTrueObject**](docs/QueryApi.md#testquerystyleformexplodetrueobject) | **GET** /query/style_form/explode_true/object | Test query parameter(s) |
+
+
+
+## Documentation for Models
+
+ - [org.openapitools.client.models.ApiBird](docs/ApiBird.md)
+ - [org.openapitools.client.models.ApiCategory](docs/ApiCategory.md)
+ - [org.openapitools.client.models.ApiDefaultValue](docs/ApiDefaultValue.md)
+ - [org.openapitools.client.models.ApiNumberPropertiesOnly](docs/ApiNumberPropertiesOnly.md)
+ - [org.openapitools.client.models.ApiPet](docs/ApiPet.md)
+ - [org.openapitools.client.models.ApiQuery](docs/ApiQuery.md)
+ - [org.openapitools.client.models.ApiStringEnumRef](docs/ApiStringEnumRef.md)
+ - [org.openapitools.client.models.ApiTag](docs/ApiTag.md)
+ - [org.openapitools.client.models.ApiTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter](docs/ApiTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.md)
+
+
+
+## Documentation for Authorization
+
+
+Authentication schemes defined for the API:
+
+### http_auth
+
+- **Type**: HTTP basic authentication
+
+
+### http_bearer_auth
+
+- **Type**: HTTP Bearer Token authentication
+
+
+
+## Author
+
+team@openapitools.org
diff --git a/samples/client/echo_api/kotlin-jvm-okhttp/build.gradle b/samples/client/echo_api/kotlin-jvm-okhttp/build.gradle
new file mode 100644
index 000000000000..ae12ac6e1442
--- /dev/null
+++ b/samples/client/echo_api/kotlin-jvm-okhttp/build.gradle
@@ -0,0 +1,62 @@
+group 'org.openapitools'
+version '1.0.0'
+
+wrapper {
+ gradleVersion = '8.7'
+ distributionUrl = "https://services.gradle.org/distributions/gradle-$gradleVersion-all.zip"
+}
+
+buildscript {
+ ext.kotlin_version = '1.9.23'
+ ext.spotless_version = "6.25.0"
+
+ repositories {
+ maven { url "https://repo1.maven.org/maven2" }
+ }
+ dependencies {
+ classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
+ classpath "com.diffplug.spotless:spotless-plugin-gradle:$spotless_version"
+ }
+}
+
+apply plugin: 'kotlin'
+apply plugin: 'maven-publish'
+apply plugin: 'com.diffplug.spotless'
+
+repositories {
+ maven { url "https://repo1.maven.org/maven2" }
+}
+
+// Use spotless plugin to automatically format code, remove unused import, etc
+// To apply changes directly to the file, run `gradlew spotlessApply`
+// Ref: https://github.com/diffplug/spotless/tree/main/plugin-gradle
+spotless {
+ // comment out below to run spotless as part of the `check` task
+ enforceCheck false
+
+ format 'misc', {
+ // define the files (e.g. '*.gradle', '*.md') to apply `misc` to
+ target '.gitignore'
+
+ // define the steps to apply to those files
+ trimTrailingWhitespace()
+ indentWithSpaces() // Takes an integer argument if you don't like 4
+ endWithNewline()
+ }
+ kotlin {
+ ktfmt()
+ }
+}
+
+test {
+ useJUnitPlatform()
+}
+
+dependencies {
+ implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
+ implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
+ implementation "com.squareup.moshi:moshi-kotlin:1.15.1"
+ implementation "com.squareup.moshi:moshi-adapters:1.15.1"
+ implementation "com.squareup.okhttp3:okhttp:4.12.0"
+ testImplementation "io.kotlintest:kotlintest-runner-junit5:3.4.2"
+}
diff --git a/samples/client/echo_api/kotlin-jvm-okhttp/docs/AuthApi.md b/samples/client/echo_api/kotlin-jvm-okhttp/docs/AuthApi.md
new file mode 100644
index 000000000000..2614b18e353a
--- /dev/null
+++ b/samples/client/echo_api/kotlin-jvm-okhttp/docs/AuthApi.md
@@ -0,0 +1,101 @@
+# AuthApi
+
+All URIs are relative to *http://localhost:3000*
+
+| Method | HTTP request | Description |
+| ------------- | ------------- | ------------- |
+| [**testAuthHttpBasic**](AuthApi.md#testAuthHttpBasic) | **POST** /auth/http/basic | To test HTTP basic authentication |
+| [**testAuthHttpBearer**](AuthApi.md#testAuthHttpBearer) | **POST** /auth/http/bearer | To test HTTP bearer authentication |
+
+
+
+# **testAuthHttpBasic**
+> kotlin.String testAuthHttpBasic()
+
+To test HTTP basic authentication
+
+To test HTTP basic authentication
+
+### Example
+```kotlin
+// Import classes:
+//import org.openapitools.client.infrastructure.*
+//import org.openapitools.client.models.*
+
+val apiInstance = AuthApi()
+try {
+ val result : kotlin.String = apiInstance.testAuthHttpBasic()
+ println(result)
+} catch (e: ClientException) {
+ println("4xx response calling AuthApi#testAuthHttpBasic")
+ e.printStackTrace()
+} catch (e: ServerException) {
+ println("5xx response calling AuthApi#testAuthHttpBasic")
+ e.printStackTrace()
+}
+```
+
+### Parameters
+This endpoint does not need any parameter.
+
+### Return type
+
+**kotlin.String**
+
+### Authorization
+
+
+Configure http_auth:
+ ApiClient.username = ""
+ ApiClient.password = ""
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: text/plain
+
+
+# **testAuthHttpBearer**
+> kotlin.String testAuthHttpBearer()
+
+To test HTTP bearer authentication
+
+To test HTTP bearer authentication
+
+### Example
+```kotlin
+// Import classes:
+//import org.openapitools.client.infrastructure.*
+//import org.openapitools.client.models.*
+
+val apiInstance = AuthApi()
+try {
+ val result : kotlin.String = apiInstance.testAuthHttpBearer()
+ println(result)
+} catch (e: ClientException) {
+ println("4xx response calling AuthApi#testAuthHttpBearer")
+ e.printStackTrace()
+} catch (e: ServerException) {
+ println("5xx response calling AuthApi#testAuthHttpBearer")
+ e.printStackTrace()
+}
+```
+
+### Parameters
+This endpoint does not need any parameter.
+
+### Return type
+
+**kotlin.String**
+
+### Authorization
+
+
+Configure http_bearer_auth:
+ ApiClient.accessToken = ""
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: text/plain
+
diff --git a/samples/client/echo_api/kotlin-jvm-okhttp/docs/Bird.md b/samples/client/echo_api/kotlin-jvm-okhttp/docs/Bird.md
new file mode 100644
index 000000000000..47dfa1d8cfe2
--- /dev/null
+++ b/samples/client/echo_api/kotlin-jvm-okhttp/docs/Bird.md
@@ -0,0 +1,11 @@
+
+# ApiBird
+
+## Properties
+| Name | Type | Description | Notes |
+| ------------ | ------------- | ------------- | ------------- |
+| **propertySize** | **kotlin.String** | | [optional] |
+| **color** | **kotlin.String** | | [optional] |
+
+
+
diff --git a/samples/client/echo_api/kotlin-jvm-okhttp/docs/BodyApi.md b/samples/client/echo_api/kotlin-jvm-okhttp/docs/BodyApi.md
new file mode 100644
index 000000000000..b59573fe21b5
--- /dev/null
+++ b/samples/client/echo_api/kotlin-jvm-okhttp/docs/BodyApi.md
@@ -0,0 +1,381 @@
+# BodyApi
+
+All URIs are relative to *http://localhost:3000*
+
+| Method | HTTP request | Description |
+| ------------- | ------------- | ------------- |
+| [**testBinaryGif**](BodyApi.md#testBinaryGif) | **POST** /binary/gif | Test binary (gif) response body |
+| [**testBodyApplicationOctetstreamBinary**](BodyApi.md#testBodyApplicationOctetstreamBinary) | **POST** /body/application/octetstream/binary | Test body parameter(s) |
+| [**testBodyMultipartFormdataArrayOfBinary**](BodyApi.md#testBodyMultipartFormdataArrayOfBinary) | **POST** /body/application/octetstream/array_of_binary | Test array of binary in multipart mime |
+| [**testBodyMultipartFormdataSingleBinary**](BodyApi.md#testBodyMultipartFormdataSingleBinary) | **POST** /body/application/octetstream/single_binary | Test single binary in multipart mime |
+| [**testEchoBodyFreeFormObjectResponseString**](BodyApi.md#testEchoBodyFreeFormObjectResponseString) | **POST** /echo/body/FreeFormObject/response_string | Test free form object |
+| [**testEchoBodyPet**](BodyApi.md#testEchoBodyPet) | **POST** /echo/body/Pet | Test body parameter(s) |
+| [**testEchoBodyPetResponseString**](BodyApi.md#testEchoBodyPetResponseString) | **POST** /echo/body/Pet/response_string | Test empty response body |
+| [**testEchoBodyTagResponseString**](BodyApi.md#testEchoBodyTagResponseString) | **POST** /echo/body/Tag/response_string | Test empty json (request body) |
+
+
+
+# **testBinaryGif**
+> java.io.File testBinaryGif()
+
+Test binary (gif) response body
+
+Test binary (gif) response body
+
+### Example
+```kotlin
+// Import classes:
+//import org.openapitools.client.infrastructure.*
+//import org.openapitools.client.models.*
+
+val apiInstance = BodyApi()
+try {
+ val result : java.io.File = apiInstance.testBinaryGif()
+ println(result)
+} catch (e: ClientException) {
+ println("4xx response calling BodyApi#testBinaryGif")
+ e.printStackTrace()
+} catch (e: ServerException) {
+ println("5xx response calling BodyApi#testBinaryGif")
+ e.printStackTrace()
+}
+```
+
+### Parameters
+This endpoint does not need any parameter.
+
+### Return type
+
+[**java.io.File**](java.io.File.md)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: Not defined
+
+
+# **testBodyApplicationOctetstreamBinary**
+> kotlin.String testBodyApplicationOctetstreamBinary(body)
+
+Test body parameter(s)
+
+Test body parameter(s)
+
+### Example
+```kotlin
+// Import classes:
+//import org.openapitools.client.infrastructure.*
+//import org.openapitools.client.models.*
+
+val apiInstance = BodyApi()
+val body : java.io.File = BINARY_DATA_HERE // java.io.File |
+try {
+ val result : kotlin.String = apiInstance.testBodyApplicationOctetstreamBinary(body)
+ println(result)
+} catch (e: ClientException) {
+ println("4xx response calling BodyApi#testBodyApplicationOctetstreamBinary")
+ e.printStackTrace()
+} catch (e: ServerException) {
+ println("5xx response calling BodyApi#testBodyApplicationOctetstreamBinary")
+ e.printStackTrace()
+}
+```
+
+### Parameters
+| Name | Type | Description | Notes |
+| ------------- | ------------- | ------------- | ------------- |
+| **body** | **java.io.File**| | [optional] |
+
+### Return type
+
+**kotlin.String**
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: application/octet-stream
+ - **Accept**: text/plain
+
+
+# **testBodyMultipartFormdataArrayOfBinary**
+> kotlin.String testBodyMultipartFormdataArrayOfBinary(files)
+
+Test array of binary in multipart mime
+
+Test array of binary in multipart mime
+
+### Example
+```kotlin
+// Import classes:
+//import org.openapitools.client.infrastructure.*
+//import org.openapitools.client.models.*
+
+val apiInstance = BodyApi()
+val files : kotlin.collections.List = /path/to/file.txt // kotlin.collections.List |
+try {
+ val result : kotlin.String = apiInstance.testBodyMultipartFormdataArrayOfBinary(files)
+ println(result)
+} catch (e: ClientException) {
+ println("4xx response calling BodyApi#testBodyMultipartFormdataArrayOfBinary")
+ e.printStackTrace()
+} catch (e: ServerException) {
+ println("5xx response calling BodyApi#testBodyMultipartFormdataArrayOfBinary")
+ e.printStackTrace()
+}
+```
+
+### Parameters
+| Name | Type | Description | Notes |
+| ------------- | ------------- | ------------- | ------------- |
+| **files** | **kotlin.collections.List<java.io.File>**| | |
+
+### Return type
+
+**kotlin.String**
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: multipart/form-data
+ - **Accept**: text/plain
+
+
+# **testBodyMultipartFormdataSingleBinary**
+> kotlin.String testBodyMultipartFormdataSingleBinary(myFile)
+
+Test single binary in multipart mime
+
+Test single binary in multipart mime
+
+### Example
+```kotlin
+// Import classes:
+//import org.openapitools.client.infrastructure.*
+//import org.openapitools.client.models.*
+
+val apiInstance = BodyApi()
+val myFile : java.io.File = BINARY_DATA_HERE // java.io.File |
+try {
+ val result : kotlin.String = apiInstance.testBodyMultipartFormdataSingleBinary(myFile)
+ println(result)
+} catch (e: ClientException) {
+ println("4xx response calling BodyApi#testBodyMultipartFormdataSingleBinary")
+ e.printStackTrace()
+} catch (e: ServerException) {
+ println("5xx response calling BodyApi#testBodyMultipartFormdataSingleBinary")
+ e.printStackTrace()
+}
+```
+
+### Parameters
+| Name | Type | Description | Notes |
+| ------------- | ------------- | ------------- | ------------- |
+| **myFile** | **java.io.File**| | [optional] |
+
+### Return type
+
+**kotlin.String**
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: multipart/form-data
+ - **Accept**: text/plain
+
+
+# **testEchoBodyFreeFormObjectResponseString**
+> kotlin.String testEchoBodyFreeFormObjectResponseString(body)
+
+Test free form object
+
+Test free form object
+
+### Example
+```kotlin
+// Import classes:
+//import org.openapitools.client.infrastructure.*
+//import org.openapitools.client.models.*
+
+val apiInstance = BodyApi()
+val body : kotlin.Any = Object // kotlin.Any | Free form object
+try {
+ val result : kotlin.String = apiInstance.testEchoBodyFreeFormObjectResponseString(body)
+ println(result)
+} catch (e: ClientException) {
+ println("4xx response calling BodyApi#testEchoBodyFreeFormObjectResponseString")
+ e.printStackTrace()
+} catch (e: ServerException) {
+ println("5xx response calling BodyApi#testEchoBodyFreeFormObjectResponseString")
+ e.printStackTrace()
+}
+```
+
+### Parameters
+| Name | Type | Description | Notes |
+| ------------- | ------------- | ------------- | ------------- |
+| **body** | **kotlin.Any**| Free form object | [optional] |
+
+### Return type
+
+**kotlin.String**
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: text/plain
+
+
+# **testEchoBodyPet**
+> ApiPet testEchoBodyPet(apiPet)
+
+Test body parameter(s)
+
+Test body parameter(s)
+
+### Example
+```kotlin
+// Import classes:
+//import org.openapitools.client.infrastructure.*
+//import org.openapitools.client.models.*
+
+val apiInstance = BodyApi()
+val apiPet : ApiPet = // ApiPet | Pet object that needs to be added to the store
+try {
+ val result : ApiPet = apiInstance.testEchoBodyPet(apiPet)
+ println(result)
+} catch (e: ClientException) {
+ println("4xx response calling BodyApi#testEchoBodyPet")
+ e.printStackTrace()
+} catch (e: ServerException) {
+ println("5xx response calling BodyApi#testEchoBodyPet")
+ e.printStackTrace()
+}
+```
+
+### Parameters
+| Name | Type | Description | Notes |
+| ------------- | ------------- | ------------- | ------------- |
+| **apiPet** | [**ApiPet**](ApiPet.md)| Pet object that needs to be added to the store | [optional] |
+
+### Return type
+
+[**ApiPet**](ApiPet.md)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+# **testEchoBodyPetResponseString**
+> kotlin.String testEchoBodyPetResponseString(apiPet)
+
+Test empty response body
+
+Test empty response body
+
+### Example
+```kotlin
+// Import classes:
+//import org.openapitools.client.infrastructure.*
+//import org.openapitools.client.models.*
+
+val apiInstance = BodyApi()
+val apiPet : ApiPet = // ApiPet | Pet object that needs to be added to the store
+try {
+ val result : kotlin.String = apiInstance.testEchoBodyPetResponseString(apiPet)
+ println(result)
+} catch (e: ClientException) {
+ println("4xx response calling BodyApi#testEchoBodyPetResponseString")
+ e.printStackTrace()
+} catch (e: ServerException) {
+ println("5xx response calling BodyApi#testEchoBodyPetResponseString")
+ e.printStackTrace()
+}
+```
+
+### Parameters
+| Name | Type | Description | Notes |
+| ------------- | ------------- | ------------- | ------------- |
+| **apiPet** | [**ApiPet**](ApiPet.md)| Pet object that needs to be added to the store | [optional] |
+
+### Return type
+
+**kotlin.String**
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: text/plain
+
+
+# **testEchoBodyTagResponseString**
+> kotlin.String testEchoBodyTagResponseString(apiTag)
+
+Test empty json (request body)
+
+Test empty json (request body)
+
+### Example
+```kotlin
+// Import classes:
+//import org.openapitools.client.infrastructure.*
+//import org.openapitools.client.models.*
+
+val apiInstance = BodyApi()
+val apiTag : ApiTag = // ApiTag | Tag object
+try {
+ val result : kotlin.String = apiInstance.testEchoBodyTagResponseString(apiTag)
+ println(result)
+} catch (e: ClientException) {
+ println("4xx response calling BodyApi#testEchoBodyTagResponseString")
+ e.printStackTrace()
+} catch (e: ServerException) {
+ println("5xx response calling BodyApi#testEchoBodyTagResponseString")
+ e.printStackTrace()
+}
+```
+
+### Parameters
+| Name | Type | Description | Notes |
+| ------------- | ------------- | ------------- | ------------- |
+| **apiTag** | [**ApiTag**](ApiTag.md)| Tag object | [optional] |
+
+### Return type
+
+**kotlin.String**
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: text/plain
+
diff --git a/samples/client/echo_api/kotlin-jvm-okhttp/docs/Category.md b/samples/client/echo_api/kotlin-jvm-okhttp/docs/Category.md
new file mode 100644
index 000000000000..6b06645c5e73
--- /dev/null
+++ b/samples/client/echo_api/kotlin-jvm-okhttp/docs/Category.md
@@ -0,0 +1,11 @@
+
+# ApiCategory
+
+## Properties
+| Name | Type | Description | Notes |
+| ------------ | ------------- | ------------- | ------------- |
+| **id** | **kotlin.Long** | | [optional] |
+| **name** | **kotlin.String** | | [optional] |
+
+
+
diff --git a/samples/client/echo_api/kotlin-jvm-okhttp/docs/DefaultValue.md b/samples/client/echo_api/kotlin-jvm-okhttp/docs/DefaultValue.md
new file mode 100644
index 000000000000..2b8019d1a220
--- /dev/null
+++ b/samples/client/echo_api/kotlin-jvm-okhttp/docs/DefaultValue.md
@@ -0,0 +1,24 @@
+
+# ApiDefaultValue
+
+## Properties
+| Name | Type | Description | Notes |
+| ------------ | ------------- | ------------- | ------------- |
+| **arrayStringEnumRefDefault** | [**kotlin.collections.List<ApiStringEnumRef>**](ApiStringEnumRef.md) | | [optional] |
+| **arrayStringEnumDefault** | [**inline**](#kotlin.collections.List<ArrayStringEnumDefault>) | | [optional] |
+| **arrayStringDefault** | **kotlin.collections.List<kotlin.String>** | | [optional] |
+| **arrayIntegerDefault** | **kotlin.collections.List<kotlin.Int>** | | [optional] |
+| **arrayString** | **kotlin.collections.List<kotlin.String>** | | [optional] |
+| **arrayStringNullable** | **kotlin.collections.List<kotlin.String>** | | [optional] |
+| **arrayStringExtensionNullable** | **kotlin.collections.List<kotlin.String>** | | [optional] |
+| **stringNullable** | **kotlin.String** | | [optional] |
+
+
+
+## Enum: array_string_enum_default
+| Name | Value |
+| ---- | ----- |
+| arrayStringEnumDefault | success, failure, unclassified |
+
+
+
diff --git a/samples/client/echo_api/kotlin-jvm-okhttp/docs/FormApi.md b/samples/client/echo_api/kotlin-jvm-okhttp/docs/FormApi.md
new file mode 100644
index 000000000000..5d229c127758
--- /dev/null
+++ b/samples/client/echo_api/kotlin-jvm-okhttp/docs/FormApi.md
@@ -0,0 +1,116 @@
+# FormApi
+
+All URIs are relative to *http://localhost:3000*
+
+| Method | HTTP request | Description |
+| ------------- | ------------- | ------------- |
+| [**testFormIntegerBooleanString**](FormApi.md#testFormIntegerBooleanString) | **POST** /form/integer/boolean/string | Test form parameter(s) |
+| [**testFormOneof**](FormApi.md#testFormOneof) | **POST** /form/oneof | Test form parameter(s) for oneOf schema |
+
+
+
+# **testFormIntegerBooleanString**
+> kotlin.String testFormIntegerBooleanString(integerForm, booleanForm, stringForm)
+
+Test form parameter(s)
+
+Test form parameter(s)
+
+### Example
+```kotlin
+// Import classes:
+//import org.openapitools.client.infrastructure.*
+//import org.openapitools.client.models.*
+
+val apiInstance = FormApi()
+val integerForm : kotlin.Int = 56 // kotlin.Int |
+val booleanForm : kotlin.Boolean = true // kotlin.Boolean |
+val stringForm : kotlin.String = stringForm_example // kotlin.String |
+try {
+ val result : kotlin.String = apiInstance.testFormIntegerBooleanString(integerForm, booleanForm, stringForm)
+ println(result)
+} catch (e: ClientException) {
+ println("4xx response calling FormApi#testFormIntegerBooleanString")
+ e.printStackTrace()
+} catch (e: ServerException) {
+ println("5xx response calling FormApi#testFormIntegerBooleanString")
+ e.printStackTrace()
+}
+```
+
+### Parameters
+| **integerForm** | **kotlin.Int**| | [optional] |
+| **booleanForm** | **kotlin.Boolean**| | [optional] |
+| Name | Type | Description | Notes |
+| ------------- | ------------- | ------------- | ------------- |
+| **stringForm** | **kotlin.String**| | [optional] |
+
+### Return type
+
+**kotlin.String**
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: application/x-www-form-urlencoded
+ - **Accept**: text/plain
+
+
+# **testFormOneof**
+> kotlin.String testFormOneof(form1, form2, form3, form4, id, name)
+
+Test form parameter(s) for oneOf schema
+
+Test form parameter(s) for oneOf schema
+
+### Example
+```kotlin
+// Import classes:
+//import org.openapitools.client.infrastructure.*
+//import org.openapitools.client.models.*
+
+val apiInstance = FormApi()
+val form1 : kotlin.String = form1_example // kotlin.String |
+val form2 : kotlin.Int = 56 // kotlin.Int |
+val form3 : kotlin.String = form3_example // kotlin.String |
+val form4 : kotlin.Boolean = true // kotlin.Boolean |
+val id : kotlin.Long = 789 // kotlin.Long |
+val name : kotlin.String = name_example // kotlin.String |
+try {
+ val result : kotlin.String = apiInstance.testFormOneof(form1, form2, form3, form4, id, name)
+ println(result)
+} catch (e: ClientException) {
+ println("4xx response calling FormApi#testFormOneof")
+ e.printStackTrace()
+} catch (e: ServerException) {
+ println("5xx response calling FormApi#testFormOneof")
+ e.printStackTrace()
+}
+```
+
+### Parameters
+| **form1** | **kotlin.String**| | [optional] |
+| **form2** | **kotlin.Int**| | [optional] |
+| **form3** | **kotlin.String**| | [optional] |
+| **form4** | **kotlin.Boolean**| | [optional] |
+| **id** | **kotlin.Long**| | [optional] |
+| Name | Type | Description | Notes |
+| ------------- | ------------- | ------------- | ------------- |
+| **name** | **kotlin.String**| | [optional] |
+
+### Return type
+
+**kotlin.String**
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: application/x-www-form-urlencoded
+ - **Accept**: text/plain
+
diff --git a/samples/client/echo_api/kotlin-jvm-okhttp/docs/HeaderApi.md b/samples/client/echo_api/kotlin-jvm-okhttp/docs/HeaderApi.md
new file mode 100644
index 000000000000..0d48e224e7c7
--- /dev/null
+++ b/samples/client/echo_api/kotlin-jvm-okhttp/docs/HeaderApi.md
@@ -0,0 +1,63 @@
+# HeaderApi
+
+All URIs are relative to *http://localhost:3000*
+
+| Method | HTTP request | Description |
+| ------------- | ------------- | ------------- |
+| [**testHeaderIntegerBooleanStringEnums**](HeaderApi.md#testHeaderIntegerBooleanStringEnums) | **GET** /header/integer/boolean/string/enums | Test header parameter(s) |
+
+
+
+# **testHeaderIntegerBooleanStringEnums**
+> kotlin.String testHeaderIntegerBooleanStringEnums(integerHeader, booleanHeader, stringHeader, enumNonrefStringHeader, enumRefStringHeader)
+
+Test header parameter(s)
+
+Test header parameter(s)
+
+### Example
+```kotlin
+// Import classes:
+//import org.openapitools.client.infrastructure.*
+//import org.openapitools.client.models.*
+
+val apiInstance = HeaderApi()
+val integerHeader : kotlin.Int = 56 // kotlin.Int |
+val booleanHeader : kotlin.Boolean = true // kotlin.Boolean |
+val stringHeader : kotlin.String = stringHeader_example // kotlin.String |
+val enumNonrefStringHeader : kotlin.String = enumNonrefStringHeader_example // kotlin.String |
+val enumRefStringHeader : ApiStringEnumRef = // ApiStringEnumRef |
+try {
+ val result : kotlin.String = apiInstance.testHeaderIntegerBooleanStringEnums(integerHeader, booleanHeader, stringHeader, enumNonrefStringHeader, enumRefStringHeader)
+ println(result)
+} catch (e: ClientException) {
+ println("4xx response calling HeaderApi#testHeaderIntegerBooleanStringEnums")
+ e.printStackTrace()
+} catch (e: ServerException) {
+ println("5xx response calling HeaderApi#testHeaderIntegerBooleanStringEnums")
+ e.printStackTrace()
+}
+```
+
+### Parameters
+| **integerHeader** | **kotlin.Int**| | [optional] |
+| **booleanHeader** | **kotlin.Boolean**| | [optional] |
+| **stringHeader** | **kotlin.String**| | [optional] |
+| **enumNonrefStringHeader** | **kotlin.String**| | [optional] [enum: success, failure, unclassified] |
+| Name | Type | Description | Notes |
+| ------------- | ------------- | ------------- | ------------- |
+| **enumRefStringHeader** | [**ApiStringEnumRef**](.md)| | [optional] [enum: success, failure, unclassified] |
+
+### Return type
+
+**kotlin.String**
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: text/plain
+
diff --git a/samples/client/echo_api/kotlin-jvm-okhttp/docs/NumberPropertiesOnly.md b/samples/client/echo_api/kotlin-jvm-okhttp/docs/NumberPropertiesOnly.md
new file mode 100644
index 000000000000..a3bd77d17bbd
--- /dev/null
+++ b/samples/client/echo_api/kotlin-jvm-okhttp/docs/NumberPropertiesOnly.md
@@ -0,0 +1,12 @@
+
+# ApiNumberPropertiesOnly
+
+## Properties
+| Name | Type | Description | Notes |
+| ------------ | ------------- | ------------- | ------------- |
+| **number** | [**java.math.BigDecimal**](java.math.BigDecimal.md) | | [optional] |
+| **float** | **kotlin.Float** | | [optional] |
+| **double** | **kotlin.Double** | | [optional] |
+
+
+
diff --git a/samples/client/echo_api/kotlin-jvm-okhttp/docs/PathApi.md b/samples/client/echo_api/kotlin-jvm-okhttp/docs/PathApi.md
new file mode 100644
index 000000000000..e2445c0bc23a
--- /dev/null
+++ b/samples/client/echo_api/kotlin-jvm-okhttp/docs/PathApi.md
@@ -0,0 +1,61 @@
+# PathApi
+
+All URIs are relative to *http://localhost:3000*
+
+| Method | HTTP request | Description |
+| ------------- | ------------- | ------------- |
+| [**testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath**](PathApi.md#testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath) | **GET** /path/string/{path_string}/integer/{path_integer}/{enum_nonref_string_path}/{enum_ref_string_path} | Test path parameter(s) |
+
+
+
+# **testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath**
+> kotlin.String testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath(pathString, pathInteger, enumNonrefStringPath, enumRefStringPath)
+
+Test path parameter(s)
+
+Test path parameter(s)
+
+### Example
+```kotlin
+// Import classes:
+//import org.openapitools.client.infrastructure.*
+//import org.openapitools.client.models.*
+
+val apiInstance = PathApi()
+val pathString : kotlin.String = pathString_example // kotlin.String |
+val pathInteger : kotlin.Int = 56 // kotlin.Int |
+val enumNonrefStringPath : kotlin.String = enumNonrefStringPath_example // kotlin.String |
+val enumRefStringPath : ApiStringEnumRef = // ApiStringEnumRef |
+try {
+ val result : kotlin.String = apiInstance.testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath(pathString, pathInteger, enumNonrefStringPath, enumRefStringPath)
+ println(result)
+} catch (e: ClientException) {
+ println("4xx response calling PathApi#testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath")
+ e.printStackTrace()
+} catch (e: ServerException) {
+ println("5xx response calling PathApi#testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath")
+ e.printStackTrace()
+}
+```
+
+### Parameters
+| **pathString** | **kotlin.String**| | |
+| **pathInteger** | **kotlin.Int**| | |
+| **enumNonrefStringPath** | **kotlin.String**| | [enum: success, failure, unclassified] |
+| Name | Type | Description | Notes |
+| ------------- | ------------- | ------------- | ------------- |
+| **enumRefStringPath** | [**ApiStringEnumRef**](.md)| | [enum: success, failure, unclassified] |
+
+### Return type
+
+**kotlin.String**
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: text/plain
+
diff --git a/samples/client/echo_api/kotlin-jvm-okhttp/docs/Pet.md b/samples/client/echo_api/kotlin-jvm-okhttp/docs/Pet.md
new file mode 100644
index 000000000000..e7552df1e079
--- /dev/null
+++ b/samples/client/echo_api/kotlin-jvm-okhttp/docs/Pet.md
@@ -0,0 +1,22 @@
+
+# ApiPet
+
+## Properties
+| Name | Type | Description | Notes |
+| ------------ | ------------- | ------------- | ------------- |
+| **name** | **kotlin.String** | | |
+| **photoUrls** | **kotlin.collections.List<kotlin.String>** | | |
+| **id** | **kotlin.Long** | | [optional] |
+| **category** | [**ApiCategory**](ApiCategory.md) | | [optional] |
+| **tags** | [**kotlin.collections.List<ApiTag>**](ApiTag.md) | | [optional] |
+| **status** | [**inline**](#Status) | pet status in the store | [optional] |
+
+
+
+## Enum: status
+| Name | Value |
+| ---- | ----- |
+| status | available, pending, sold |
+
+
+
diff --git a/samples/client/echo_api/kotlin-jvm-okhttp/docs/Query.md b/samples/client/echo_api/kotlin-jvm-okhttp/docs/Query.md
new file mode 100644
index 000000000000..9020df8a3502
--- /dev/null
+++ b/samples/client/echo_api/kotlin-jvm-okhttp/docs/Query.md
@@ -0,0 +1,18 @@
+
+# ApiQuery
+
+## Properties
+| Name | Type | Description | Notes |
+| ------------ | ------------- | ------------- | ------------- |
+| **id** | **kotlin.Long** | Query | [optional] |
+| **outcomes** | [**inline**](#kotlin.collections.List<Outcomes>) | | [optional] |
+
+
+
+## Enum: outcomes
+| Name | Value |
+| ---- | ----- |
+| outcomes | SUCCESS, FAILURE, SKIPPED |
+
+
+
diff --git a/samples/client/echo_api/kotlin-jvm-okhttp/docs/QueryApi.md b/samples/client/echo_api/kotlin-jvm-okhttp/docs/QueryApi.md
new file mode 100644
index 000000000000..20b2a4d282a7
--- /dev/null
+++ b/samples/client/echo_api/kotlin-jvm-okhttp/docs/QueryApi.md
@@ -0,0 +1,300 @@
+# QueryApi
+
+All URIs are relative to *http://localhost:3000*
+
+| Method | HTTP request | Description |
+| ------------- | ------------- | ------------- |
+| [**testEnumRefString**](QueryApi.md#testEnumRefString) | **GET** /query/enum_ref_string | Test query parameter(s) |
+| [**testQueryDatetimeDateString**](QueryApi.md#testQueryDatetimeDateString) | **GET** /query/datetime/date/string | Test query parameter(s) |
+| [**testQueryIntegerBooleanString**](QueryApi.md#testQueryIntegerBooleanString) | **GET** /query/integer/boolean/string | Test query parameter(s) |
+| [**testQueryStyleDeepObjectExplodeTrueObject**](QueryApi.md#testQueryStyleDeepObjectExplodeTrueObject) | **GET** /query/style_deepObject/explode_true/object | Test query parameter(s) |
+| [**testQueryStyleFormExplodeTrueArrayString**](QueryApi.md#testQueryStyleFormExplodeTrueArrayString) | **GET** /query/style_form/explode_true/array_string | Test query parameter(s) |
+| [**testQueryStyleFormExplodeTrueObject**](QueryApi.md#testQueryStyleFormExplodeTrueObject) | **GET** /query/style_form/explode_true/object | Test query parameter(s) |
+
+
+
+# **testEnumRefString**
+> kotlin.String testEnumRefString(enumNonrefStringQuery, enumRefStringQuery)
+
+Test query parameter(s)
+
+Test query parameter(s)
+
+### Example
+```kotlin
+// Import classes:
+//import org.openapitools.client.infrastructure.*
+//import org.openapitools.client.models.*
+
+val apiInstance = QueryApi()
+val enumNonrefStringQuery : kotlin.String = enumNonrefStringQuery_example // kotlin.String |
+val enumRefStringQuery : ApiStringEnumRef = // ApiStringEnumRef |
+try {
+ val result : kotlin.String = apiInstance.testEnumRefString(enumNonrefStringQuery, enumRefStringQuery)
+ println(result)
+} catch (e: ClientException) {
+ println("4xx response calling QueryApi#testEnumRefString")
+ e.printStackTrace()
+} catch (e: ServerException) {
+ println("5xx response calling QueryApi#testEnumRefString")
+ e.printStackTrace()
+}
+```
+
+### Parameters
+| **enumNonrefStringQuery** | **kotlin.String**| | [optional] [enum: success, failure, unclassified] |
+| Name | Type | Description | Notes |
+| ------------- | ------------- | ------------- | ------------- |
+| **enumRefStringQuery** | [**ApiStringEnumRef**](.md)| | [optional] [enum: success, failure, unclassified] |
+
+### Return type
+
+**kotlin.String**
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: text/plain
+
+
+# **testQueryDatetimeDateString**
+> kotlin.String testQueryDatetimeDateString(datetimeQuery, dateQuery, stringQuery)
+
+Test query parameter(s)
+
+Test query parameter(s)
+
+### Example
+```kotlin
+// Import classes:
+//import org.openapitools.client.infrastructure.*
+//import org.openapitools.client.models.*
+
+val apiInstance = QueryApi()
+val datetimeQuery : java.time.OffsetDateTime = 2013-10-20T19:20:30+01:00 // java.time.OffsetDateTime |
+val dateQuery : java.time.LocalDate = 2013-10-20 // java.time.LocalDate |
+val stringQuery : kotlin.String = stringQuery_example // kotlin.String |
+try {
+ val result : kotlin.String = apiInstance.testQueryDatetimeDateString(datetimeQuery, dateQuery, stringQuery)
+ println(result)
+} catch (e: ClientException) {
+ println("4xx response calling QueryApi#testQueryDatetimeDateString")
+ e.printStackTrace()
+} catch (e: ServerException) {
+ println("5xx response calling QueryApi#testQueryDatetimeDateString")
+ e.printStackTrace()
+}
+```
+
+### Parameters
+| **datetimeQuery** | **java.time.OffsetDateTime**| | [optional] |
+| **dateQuery** | **java.time.LocalDate**| | [optional] |
+| Name | Type | Description | Notes |
+| ------------- | ------------- | ------------- | ------------- |
+| **stringQuery** | **kotlin.String**| | [optional] |
+
+### Return type
+
+**kotlin.String**
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: text/plain
+
+
+# **testQueryIntegerBooleanString**
+> kotlin.String testQueryIntegerBooleanString(integerQuery, booleanQuery, stringQuery)
+
+Test query parameter(s)
+
+Test query parameter(s)
+
+### Example
+```kotlin
+// Import classes:
+//import org.openapitools.client.infrastructure.*
+//import org.openapitools.client.models.*
+
+val apiInstance = QueryApi()
+val integerQuery : kotlin.Int = 56 // kotlin.Int |
+val booleanQuery : kotlin.Boolean = true // kotlin.Boolean |
+val stringQuery : kotlin.String = stringQuery_example // kotlin.String |
+try {
+ val result : kotlin.String = apiInstance.testQueryIntegerBooleanString(integerQuery, booleanQuery, stringQuery)
+ println(result)
+} catch (e: ClientException) {
+ println("4xx response calling QueryApi#testQueryIntegerBooleanString")
+ e.printStackTrace()
+} catch (e: ServerException) {
+ println("5xx response calling QueryApi#testQueryIntegerBooleanString")
+ e.printStackTrace()
+}
+```
+
+### Parameters
+| **integerQuery** | **kotlin.Int**| | [optional] |
+| **booleanQuery** | **kotlin.Boolean**| | [optional] |
+| Name | Type | Description | Notes |
+| ------------- | ------------- | ------------- | ------------- |
+| **stringQuery** | **kotlin.String**| | [optional] |
+
+### Return type
+
+**kotlin.String**
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: text/plain
+
+
+# **testQueryStyleDeepObjectExplodeTrueObject**
+> kotlin.String testQueryStyleDeepObjectExplodeTrueObject(queryObject)
+
+Test query parameter(s)
+
+Test query parameter(s)
+
+### Example
+```kotlin
+// Import classes:
+//import org.openapitools.client.infrastructure.*
+//import org.openapitools.client.models.*
+
+val apiInstance = QueryApi()
+val queryObject : ApiPet = // ApiPet |
+try {
+ val result : kotlin.String = apiInstance.testQueryStyleDeepObjectExplodeTrueObject(queryObject)
+ println(result)
+} catch (e: ClientException) {
+ println("4xx response calling QueryApi#testQueryStyleDeepObjectExplodeTrueObject")
+ e.printStackTrace()
+} catch (e: ServerException) {
+ println("5xx response calling QueryApi#testQueryStyleDeepObjectExplodeTrueObject")
+ e.printStackTrace()
+}
+```
+
+### Parameters
+| Name | Type | Description | Notes |
+| ------------- | ------------- | ------------- | ------------- |
+| **queryObject** | [**ApiPet**](.md)| | [optional] |
+
+### Return type
+
+**kotlin.String**
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: text/plain
+
+
+# **testQueryStyleFormExplodeTrueArrayString**
+> kotlin.String testQueryStyleFormExplodeTrueArrayString(queryObject)
+
+Test query parameter(s)
+
+Test query parameter(s)
+
+### Example
+```kotlin
+// Import classes:
+//import org.openapitools.client.infrastructure.*
+//import org.openapitools.client.models.*
+
+val apiInstance = QueryApi()
+val queryObject : ApiTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter = // ApiTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter |
+try {
+ val result : kotlin.String = apiInstance.testQueryStyleFormExplodeTrueArrayString(queryObject)
+ println(result)
+} catch (e: ClientException) {
+ println("4xx response calling QueryApi#testQueryStyleFormExplodeTrueArrayString")
+ e.printStackTrace()
+} catch (e: ServerException) {
+ println("5xx response calling QueryApi#testQueryStyleFormExplodeTrueArrayString")
+ e.printStackTrace()
+}
+```
+
+### Parameters
+| Name | Type | Description | Notes |
+| ------------- | ------------- | ------------- | ------------- |
+| **queryObject** | [**ApiTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter**](.md)| | [optional] |
+
+### Return type
+
+**kotlin.String**
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: text/plain
+
+
+# **testQueryStyleFormExplodeTrueObject**
+> kotlin.String testQueryStyleFormExplodeTrueObject(queryObject)
+
+Test query parameter(s)
+
+Test query parameter(s)
+
+### Example
+```kotlin
+// Import classes:
+//import org.openapitools.client.infrastructure.*
+//import org.openapitools.client.models.*
+
+val apiInstance = QueryApi()
+val queryObject : ApiPet = // ApiPet |
+try {
+ val result : kotlin.String = apiInstance.testQueryStyleFormExplodeTrueObject(queryObject)
+ println(result)
+} catch (e: ClientException) {
+ println("4xx response calling QueryApi#testQueryStyleFormExplodeTrueObject")
+ e.printStackTrace()
+} catch (e: ServerException) {
+ println("5xx response calling QueryApi#testQueryStyleFormExplodeTrueObject")
+ e.printStackTrace()
+}
+```
+
+### Parameters
+| Name | Type | Description | Notes |
+| ------------- | ------------- | ------------- | ------------- |
+| **queryObject** | [**ApiPet**](.md)| | [optional] |
+
+### Return type
+
+**kotlin.String**
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: text/plain
+
diff --git a/samples/client/echo_api/kotlin-jvm-okhttp/docs/StringEnumRef.md b/samples/client/echo_api/kotlin-jvm-okhttp/docs/StringEnumRef.md
new file mode 100644
index 000000000000..2cb64c9874f3
--- /dev/null
+++ b/samples/client/echo_api/kotlin-jvm-okhttp/docs/StringEnumRef.md
@@ -0,0 +1,14 @@
+
+# ApiStringEnumRef
+
+## Enum
+
+
+ * `success` (value: `"success"`)
+
+ * `failure` (value: `"failure"`)
+
+ * `unclassified` (value: `"unclassified"`)
+
+
+
diff --git a/samples/client/echo_api/kotlin-jvm-okhttp/docs/Tag.md b/samples/client/echo_api/kotlin-jvm-okhttp/docs/Tag.md
new file mode 100644
index 000000000000..11567f173fc9
--- /dev/null
+++ b/samples/client/echo_api/kotlin-jvm-okhttp/docs/Tag.md
@@ -0,0 +1,11 @@
+
+# ApiTag
+
+## Properties
+| Name | Type | Description | Notes |
+| ------------ | ------------- | ------------- | ------------- |
+| **id** | **kotlin.Long** | | [optional] |
+| **name** | **kotlin.String** | | [optional] |
+
+
+
diff --git a/samples/client/echo_api/kotlin-jvm-okhttp/docs/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.md b/samples/client/echo_api/kotlin-jvm-okhttp/docs/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.md
new file mode 100644
index 000000000000..199eb808c1e0
--- /dev/null
+++ b/samples/client/echo_api/kotlin-jvm-okhttp/docs/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.md
@@ -0,0 +1,10 @@
+
+# ApiTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter
+
+## Properties
+| Name | Type | Description | Notes |
+| ------------ | ------------- | ------------- | ------------- |
+| **propertyValues** | **kotlin.collections.List<kotlin.String>** | | [optional] |
+
+
+
diff --git a/samples/client/echo_api/kotlin-jvm-okhttp/gradle/wrapper/gradle-wrapper.jar b/samples/client/echo_api/kotlin-jvm-okhttp/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 000000000000..d64cd4917707
Binary files /dev/null and b/samples/client/echo_api/kotlin-jvm-okhttp/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/samples/client/echo_api/kotlin-jvm-okhttp/gradle/wrapper/gradle-wrapper.properties b/samples/client/echo_api/kotlin-jvm-okhttp/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 000000000000..e7646dead063
--- /dev/null
+++ b/samples/client/echo_api/kotlin-jvm-okhttp/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,7 @@
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-all.zip
+networkTimeout=10000
+validateDistributionUrl=true
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
diff --git a/samples/client/echo_api/kotlin-jvm-okhttp/gradlew b/samples/client/echo_api/kotlin-jvm-okhttp/gradlew
new file mode 100644
index 000000000000..9d0ce634cb11
--- /dev/null
+++ b/samples/client/echo_api/kotlin-jvm-okhttp/gradlew
@@ -0,0 +1,249 @@
+#!/bin/sh
+
+#
+# Copyright © 2015-2021 the original authors.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+##############################################################################
+#
+# Gradle start up script for POSIX generated by Gradle.
+#
+# Important for running:
+#
+# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
+# noncompliant, but you have some other compliant shell such as ksh or
+# bash, then to run this script, type that shell name before the whole
+# command line, like:
+#
+# ksh Gradle
+#
+# Busybox and similar reduced shells will NOT work, because this script
+# requires all of these POSIX shell features:
+# * functions;
+# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
+# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
+# * compound commands having a testable exit status, especially «case»;
+# * various built-in commands including «command», «set», and «ulimit».
+#
+# Important for patching:
+#
+# (2) This script targets any POSIX shell, so it avoids extensions provided
+# by Bash, Ksh, etc; in particular arrays are avoided.
+#
+# The "traditional" practice of packing multiple parameters into a
+# space-separated string is a well documented source of bugs and security
+# problems, so this is (mostly) avoided, by progressively accumulating
+# options in "$@", and eventually passing that to Java.
+#
+# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
+# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
+# see the in-line comments for details.
+#
+# There are tweaks for specific operating systems such as AIX, CygWin,
+# Darwin, MinGW, and NonStop.
+#
+# (3) This script is generated from the Groovy template
+# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
+# within the Gradle project.
+#
+# You can find Gradle at https://github.com/gradle/gradle/.
+#
+##############################################################################
+
+# Attempt to set APP_HOME
+
+# Resolve links: $0 may be a link
+app_path=$0
+
+# Need this for daisy-chained symlinks.
+while
+APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
+[ -h "$app_path" ]
+do
+ls=$( ls -ld "$app_path" )
+link=${ls#*' -> '}
+case $link in #(
+/*) app_path=$link ;; #(
+*) app_path=$APP_HOME$link ;;
+esac
+done
+
+# This is normally unused
+# shellcheck disable=SC2034
+APP_BASE_NAME=${0##*/}
+# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
+APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD=maximum
+
+warn () {
+echo "$*"
+} >&2
+
+die () {
+echo
+echo "$*"
+echo
+exit 1
+} >&2
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+nonstop=false
+case "$( uname )" in #(
+CYGWIN* ) cygwin=true ;; #(
+Darwin* ) darwin=true ;; #(
+MSYS* | MINGW* ) msys=true ;; #(
+NONSTOP* ) nonstop=true ;;
+esac
+
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+# IBM's JDK on AIX uses strange locations for the executables
+JAVACMD=$JAVA_HOME/jre/sh/java
+else
+JAVACMD=$JAVA_HOME/bin/java
+fi
+if [ ! -x "$JAVACMD" ] ; then
+die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+fi
+else
+JAVACMD=java
+if ! command -v java >/dev/null 2>&1
+then
+die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+fi
+fi
+
+# Increase the maximum file descriptors if we can.
+if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
+case $MAX_FD in #(
+max*)
+# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
+# shellcheck disable=SC2039,SC3045
+MAX_FD=$( ulimit -H -n ) ||
+warn "Could not query maximum file descriptor limit"
+esac
+case $MAX_FD in #(
+'' | soft) :;; #(
+*)
+# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
+# shellcheck disable=SC2039,SC3045
+ulimit -n "$MAX_FD" ||
+warn "Could not set maximum file descriptor limit to $MAX_FD"
+esac
+fi
+
+# Collect all arguments for the java command, stacking in reverse order:
+# * args from the command line
+# * the main class name
+# * -classpath
+# * -D...appname settings
+# * --module-path (only if needed)
+# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
+
+# For Cygwin or MSYS, switch paths to Windows format before running java
+if "$cygwin" || "$msys" ; then
+APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
+CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
+
+JAVACMD=$( cygpath --unix "$JAVACMD" )
+
+# Now convert the arguments - kludge to limit ourselves to /bin/sh
+for arg do
+if
+case $arg in #(
+-*) false ;; # don't mess with options #(
+/?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
+[ -e "$t" ] ;; #(
+*) false ;;
+esac
+then
+arg=$( cygpath --path --ignore --mixed "$arg" )
+fi
+# Roll the args list around exactly as many times as the number of
+# args, so each arg winds up back in the position where it started, but
+# possibly modified.
+#
+# NB: a `for` loop captures its iteration list before it begins, so
+# changing the positional parameters here affects neither the number of
+# iterations, nor the values presented in `arg`.
+shift # remove old arg
+set -- "$@" "$arg" # push replacement arg
+done
+fi
+
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
+
+# Collect all arguments for the java command:
+# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
+# and any embedded shellness will be escaped.
+# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
+# treated as '${Hostname}' itself on the command line.
+
+set -- \
+"-Dorg.gradle.appname=$APP_BASE_NAME" \
+-classpath "$CLASSPATH" \
+org.gradle.wrapper.GradleWrapperMain \
+"$@"
+
+# Stop when "xargs" is not available.
+if ! command -v xargs >/dev/null 2>&1
+then
+die "xargs is not available"
+fi
+
+# Use "xargs" to parse quoted args.
+#
+# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
+#
+# In Bash we could simply go:
+#
+# readarray ARGS < <( xargs -n1 <<<"$var" ) &&
+# set -- "${ARGS[@]}" "$@"
+#
+# but POSIX shell has neither arrays nor command substitution, so instead we
+# post-process each arg (as a line of input to sed) to backslash-escape any
+# character that might be a shell metacharacter, then use eval to reverse
+# that process (while maintaining the separation between arguments), and wrap
+# the whole thing up as a single "set" statement.
+#
+# This will of course break if any of these variables contains a newline or
+# an unmatched quote.
+#
+
+eval "set -- $(
+printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
+xargs -n1 |
+sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
+tr '\n' ' '
+)" '"$@"'
+
+exec "$JAVACMD" "$@"
diff --git a/samples/client/echo_api/kotlin-jvm-okhttp/gradlew.bat b/samples/client/echo_api/kotlin-jvm-okhttp/gradlew.bat
new file mode 100644
index 000000000000..107acd32c4e6
--- /dev/null
+++ b/samples/client/echo_api/kotlin-jvm-okhttp/gradlew.bat
@@ -0,0 +1,89 @@
+@rem
+@rem Copyright 2015 the original author or authors.
+@rem
+@rem Licensed under the Apache License, Version 2.0 (the "License");
+@rem you may not use this file except in compliance with the License.
+@rem You may obtain a copy of the License at
+@rem
+@rem https://www.apache.org/licenses/LICENSE-2.0
+@rem
+@rem Unless required by applicable law or agreed to in writing, software
+@rem distributed under the License is distributed on an "AS IS" BASIS,
+@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+@rem See the License for the specific language governing permissions and
+@rem limitations under the License.
+@rem
+
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Resolve any "." and ".." in APP_HOME to make it shorter.
+for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto execute
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto execute
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/samples/client/echo_api/kotlin-jvm-okhttp/settings.gradle b/samples/client/echo_api/kotlin-jvm-okhttp/settings.gradle
new file mode 100644
index 000000000000..a3172e97648b
--- /dev/null
+++ b/samples/client/echo_api/kotlin-jvm-okhttp/settings.gradle
@@ -0,0 +1 @@
+rootProject.name = 'kotlin-jvm-okhttp-echo-api'
diff --git a/samples/client/echo_api/kotlin-jvm-okhttp/src/main/kotlin/org/openapitools/client/apis/AuthApi.kt b/samples/client/echo_api/kotlin-jvm-okhttp/src/main/kotlin/org/openapitools/client/apis/AuthApi.kt
new file mode 100644
index 000000000000..2ce89c06213b
--- /dev/null
+++ b/samples/client/echo_api/kotlin-jvm-okhttp/src/main/kotlin/org/openapitools/client/apis/AuthApi.kt
@@ -0,0 +1,186 @@
+/**
+ *
+ * Please note:
+ * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * Do not edit this file manually.
+ *
+ */
+
+@file:Suppress(
+ "ArrayInDataClass",
+ "EnumEntryName",
+ "RemoveRedundantQualifierName",
+ "UnusedImport"
+)
+
+package org.openapitools.client.apis
+
+import java.io.IOException
+import okhttp3.Call
+import okhttp3.HttpUrl
+
+
+import com.squareup.moshi.Json
+
+import org.openapitools.client.infrastructure.ApiClient
+import org.openapitools.client.infrastructure.ApiResponse
+import org.openapitools.client.infrastructure.ClientException
+import org.openapitools.client.infrastructure.ClientError
+import org.openapitools.client.infrastructure.ServerException
+import org.openapitools.client.infrastructure.ServerError
+import org.openapitools.client.infrastructure.MultiValueMap
+import org.openapitools.client.infrastructure.PartConfig
+import org.openapitools.client.infrastructure.RequestConfig
+import org.openapitools.client.infrastructure.RequestMethod
+import org.openapitools.client.infrastructure.ResponseType
+import org.openapitools.client.infrastructure.Success
+import org.openapitools.client.infrastructure.toMultiValue
+
+class AuthApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory = ApiClient.defaultClient) : ApiClient(basePath, client) {
+ companion object {
+ @JvmStatic
+ val defaultBasePath: String by lazy {
+ System.getProperties().getProperty(ApiClient.baseUrlKey, "http://localhost:3000")
+ }
+ }
+
+ /**
+ * To test HTTP basic authentication
+ * To test HTTP basic authentication
+ * @return kotlin.String
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ * @throws UnsupportedOperationException If the API returns an informational or redirection response
+ * @throws ClientException If the API returns a client error response
+ * @throws ServerException If the API returns a server error response
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class)
+ fun testAuthHttpBasic() : kotlin.String {
+ val localVarResponse = testAuthHttpBasicWithHttpInfo()
+
+ return when (localVarResponse.responseType) {
+ ResponseType.Success -> (localVarResponse as Success<*>).data as kotlin.String
+ ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.")
+ ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.")
+ ResponseType.ClientError -> {
+ val localVarError = localVarResponse as ClientError<*>
+ throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ ResponseType.ServerError -> {
+ val localVarError = localVarResponse as ServerError<*>
+ throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()} ${localVarError.body}", localVarError.statusCode, localVarResponse)
+ }
+ }
+ }
+
+ /**
+ * To test HTTP basic authentication
+ * To test HTTP basic authentication
+ * @return ApiResponse
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class)
+ fun testAuthHttpBasicWithHttpInfo() : ApiResponse {
+ val localVariableConfig = testAuthHttpBasicRequestConfig()
+
+ return request(
+ localVariableConfig
+ )
+ }
+
+ /**
+ * To obtain the request config of the operation testAuthHttpBasic
+ *
+ * @return RequestConfig
+ */
+ fun testAuthHttpBasicRequestConfig() : RequestConfig {
+ val localVariableBody = null
+ val localVariableQuery: MultiValueMap = mutableMapOf()
+ val localVariableHeaders: MutableMap = mutableMapOf()
+ localVariableHeaders["Accept"] = "text/plain"
+
+ return RequestConfig(
+ method = RequestMethod.POST,
+ path = "/auth/http/basic",
+ query = localVariableQuery,
+ headers = localVariableHeaders,
+ requiresAuthentication = true,
+ body = localVariableBody
+ )
+ }
+
+ /**
+ * To test HTTP bearer authentication
+ * To test HTTP bearer authentication
+ * @return kotlin.String
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ * @throws UnsupportedOperationException If the API returns an informational or redirection response
+ * @throws ClientException If the API returns a client error response
+ * @throws ServerException If the API returns a server error response
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class)
+ fun testAuthHttpBearer() : kotlin.String {
+ val localVarResponse = testAuthHttpBearerWithHttpInfo()
+
+ return when (localVarResponse.responseType) {
+ ResponseType.Success -> (localVarResponse as Success<*>).data as kotlin.String
+ ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.")
+ ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.")
+ ResponseType.ClientError -> {
+ val localVarError = localVarResponse as ClientError<*>
+ throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ ResponseType.ServerError -> {
+ val localVarError = localVarResponse as ServerError<*>
+ throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()} ${localVarError.body}", localVarError.statusCode, localVarResponse)
+ }
+ }
+ }
+
+ /**
+ * To test HTTP bearer authentication
+ * To test HTTP bearer authentication
+ * @return ApiResponse
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class)
+ fun testAuthHttpBearerWithHttpInfo() : ApiResponse {
+ val localVariableConfig = testAuthHttpBearerRequestConfig()
+
+ return request(
+ localVariableConfig
+ )
+ }
+
+ /**
+ * To obtain the request config of the operation testAuthHttpBearer
+ *
+ * @return RequestConfig
+ */
+ fun testAuthHttpBearerRequestConfig() : RequestConfig {
+ val localVariableBody = null
+ val localVariableQuery: MultiValueMap = mutableMapOf()
+ val localVariableHeaders: MutableMap = mutableMapOf()
+ localVariableHeaders["Accept"] = "text/plain"
+
+ return RequestConfig(
+ method = RequestMethod.POST,
+ path = "/auth/http/bearer",
+ query = localVariableQuery,
+ headers = localVariableHeaders,
+ requiresAuthentication = true,
+ body = localVariableBody
+ )
+ }
+
+
+ private fun encodeURIComponent(uriComponent: kotlin.String): kotlin.String =
+ HttpUrl.Builder().scheme("http").host("localhost").addPathSegment(uriComponent).build().encodedPathSegments[0]
+}
diff --git a/samples/client/echo_api/kotlin-jvm-okhttp/src/main/kotlin/org/openapitools/client/apis/BodyApi.kt b/samples/client/echo_api/kotlin-jvm-okhttp/src/main/kotlin/org/openapitools/client/apis/BodyApi.kt
new file mode 100644
index 000000000000..6f006bfd9241
--- /dev/null
+++ b/samples/client/echo_api/kotlin-jvm-okhttp/src/main/kotlin/org/openapitools/client/apis/BodyApi.kt
@@ -0,0 +1,623 @@
+/**
+ *
+ * Please note:
+ * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * Do not edit this file manually.
+ *
+ */
+
+@file:Suppress(
+ "ArrayInDataClass",
+ "EnumEntryName",
+ "RemoveRedundantQualifierName",
+ "UnusedImport"
+)
+
+package org.openapitools.client.apis
+
+import java.io.IOException
+import okhttp3.Call
+import okhttp3.HttpUrl
+
+import org.openapitools.client.models.ApiPet
+import org.openapitools.client.models.ApiTag
+
+import com.squareup.moshi.Json
+
+import org.openapitools.client.infrastructure.ApiClient
+import org.openapitools.client.infrastructure.ApiResponse
+import org.openapitools.client.infrastructure.ClientException
+import org.openapitools.client.infrastructure.ClientError
+import org.openapitools.client.infrastructure.ServerException
+import org.openapitools.client.infrastructure.ServerError
+import org.openapitools.client.infrastructure.MultiValueMap
+import org.openapitools.client.infrastructure.PartConfig
+import org.openapitools.client.infrastructure.RequestConfig
+import org.openapitools.client.infrastructure.RequestMethod
+import org.openapitools.client.infrastructure.ResponseType
+import org.openapitools.client.infrastructure.Success
+import org.openapitools.client.infrastructure.toMultiValue
+
+class BodyApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory = ApiClient.defaultClient) : ApiClient(basePath, client) {
+ companion object {
+ @JvmStatic
+ val defaultBasePath: String by lazy {
+ System.getProperties().getProperty(ApiClient.baseUrlKey, "http://localhost:3000")
+ }
+ }
+
+ /**
+ * Test binary (gif) response body
+ * Test binary (gif) response body
+ * @return java.io.File
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ * @throws UnsupportedOperationException If the API returns an informational or redirection response
+ * @throws ClientException If the API returns a client error response
+ * @throws ServerException If the API returns a server error response
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class)
+ fun testBinaryGif() : java.io.File {
+ val localVarResponse = testBinaryGifWithHttpInfo()
+
+ return when (localVarResponse.responseType) {
+ ResponseType.Success -> (localVarResponse as Success<*>).data as java.io.File
+ ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.")
+ ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.")
+ ResponseType.ClientError -> {
+ val localVarError = localVarResponse as ClientError<*>
+ throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ ResponseType.ServerError -> {
+ val localVarError = localVarResponse as ServerError<*>
+ throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()} ${localVarError.body}", localVarError.statusCode, localVarResponse)
+ }
+ }
+ }
+
+ /**
+ * Test binary (gif) response body
+ * Test binary (gif) response body
+ * @return ApiResponse
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class)
+ fun testBinaryGifWithHttpInfo() : ApiResponse {
+ val localVariableConfig = testBinaryGifRequestConfig()
+
+ return request(
+ localVariableConfig
+ )
+ }
+
+ /**
+ * To obtain the request config of the operation testBinaryGif
+ *
+ * @return RequestConfig
+ */
+ fun testBinaryGifRequestConfig() : RequestConfig {
+ val localVariableBody = null
+ val localVariableQuery: MultiValueMap = mutableMapOf()
+ val localVariableHeaders: MutableMap = mutableMapOf()
+
+ return RequestConfig(
+ method = RequestMethod.POST,
+ path = "/binary/gif",
+ query = localVariableQuery,
+ headers = localVariableHeaders,
+ requiresAuthentication = false,
+ body = localVariableBody
+ )
+ }
+
+ /**
+ * Test body parameter(s)
+ * Test body parameter(s)
+ * @param body (optional)
+ * @return kotlin.String
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ * @throws UnsupportedOperationException If the API returns an informational or redirection response
+ * @throws ClientException If the API returns a client error response
+ * @throws ServerException If the API returns a server error response
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class)
+ fun testBodyApplicationOctetstreamBinary(body: java.io.File? = null) : kotlin.String {
+ val localVarResponse = testBodyApplicationOctetstreamBinaryWithHttpInfo(body = body)
+
+ return when (localVarResponse.responseType) {
+ ResponseType.Success -> (localVarResponse as Success<*>).data as kotlin.String
+ ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.")
+ ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.")
+ ResponseType.ClientError -> {
+ val localVarError = localVarResponse as ClientError<*>
+ throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ ResponseType.ServerError -> {
+ val localVarError = localVarResponse as ServerError<*>
+ throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()} ${localVarError.body}", localVarError.statusCode, localVarResponse)
+ }
+ }
+ }
+
+ /**
+ * Test body parameter(s)
+ * Test body parameter(s)
+ * @param body (optional)
+ * @return ApiResponse
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class)
+ fun testBodyApplicationOctetstreamBinaryWithHttpInfo(body: java.io.File?) : ApiResponse {
+ val localVariableConfig = testBodyApplicationOctetstreamBinaryRequestConfig(body = body)
+
+ return request(
+ localVariableConfig
+ )
+ }
+
+ /**
+ * To obtain the request config of the operation testBodyApplicationOctetstreamBinary
+ *
+ * @param body (optional)
+ * @return RequestConfig
+ */
+ fun testBodyApplicationOctetstreamBinaryRequestConfig(body: java.io.File?) : RequestConfig {
+ val localVariableBody = body
+ val localVariableQuery: MultiValueMap = mutableMapOf()
+ val localVariableHeaders: MutableMap = mutableMapOf()
+ localVariableHeaders["Content-Type"] = "application/octet-stream"
+ localVariableHeaders["Accept"] = "text/plain"
+
+ return RequestConfig(
+ method = RequestMethod.POST,
+ path = "/body/application/octetstream/binary",
+ query = localVariableQuery,
+ headers = localVariableHeaders,
+ requiresAuthentication = false,
+ body = localVariableBody
+ )
+ }
+
+ /**
+ * Test array of binary in multipart mime
+ * Test array of binary in multipart mime
+ * @param files
+ * @return kotlin.String
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ * @throws UnsupportedOperationException If the API returns an informational or redirection response
+ * @throws ClientException If the API returns a client error response
+ * @throws ServerException If the API returns a server error response
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class)
+ fun testBodyMultipartFormdataArrayOfBinary(files: kotlin.collections.List) : kotlin.String {
+ val localVarResponse = testBodyMultipartFormdataArrayOfBinaryWithHttpInfo(files = files)
+
+ return when (localVarResponse.responseType) {
+ ResponseType.Success -> (localVarResponse as Success<*>).data as kotlin.String
+ ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.")
+ ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.")
+ ResponseType.ClientError -> {
+ val localVarError = localVarResponse as ClientError<*>
+ throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ ResponseType.ServerError -> {
+ val localVarError = localVarResponse as ServerError<*>
+ throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()} ${localVarError.body}", localVarError.statusCode, localVarResponse)
+ }
+ }
+ }
+
+ /**
+ * Test array of binary in multipart mime
+ * Test array of binary in multipart mime
+ * @param files
+ * @return ApiResponse
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class)
+ fun testBodyMultipartFormdataArrayOfBinaryWithHttpInfo(files: kotlin.collections.List) : ApiResponse {
+ val localVariableConfig = testBodyMultipartFormdataArrayOfBinaryRequestConfig(files = files)
+
+ return request