diff --git a/.github/workflows/samples-kotlin-client.yaml b/.github/workflows/samples-kotlin-client.yaml index 9fe322623d7..e12810ee3b4 100644 --- a/.github/workflows/samples-kotlin-client.yaml +++ b/.github/workflows/samples-kotlin-client.yaml @@ -4,9 +4,11 @@ on: push: branches: - 'samples/client/petstore/kotlin*/**' + - 'samples/client/others/kotlin-jvm-okhttp-parameter-tests/**' pull_request: paths: - 'samples/client/petstore/kotlin*/**' + - 'samples/client/others/kotlin-jvm-okhttp-parameter-tests/**' env: GRADLE_VERSION: 6.9 @@ -60,6 +62,7 @@ jobs: - samples/client/petstore/kotlin-jvm-spring-3-webclient - samples/client/petstore/kotlin-spring-cloud - samples/client/petstore/kotlin-name-parameter-mappings + - samples/client/others/kotlin-jvm-okhttp-parameter-tests steps: - uses: actions/checkout@v3 - uses: actions/setup-java@v3 diff --git a/bin/configs/kotlin-jvm-okhttp-parameter-tests.yaml b/bin/configs/kotlin-jvm-okhttp-parameter-tests.yaml new file mode 100644 index 00000000000..1f1a37de219 --- /dev/null +++ b/bin/configs/kotlin-jvm-okhttp-parameter-tests.yaml @@ -0,0 +1,7 @@ +generatorName: kotlin +outputDir: samples/client/others/kotlin-jvm-okhttp-parameter-tests +library: jvm-okhttp4 +inputSpec: modules/openapi-generator/src/test/resources/3_0/parameter-test-spec.yaml +templateDir: modules/openapi-generator/src/main/resources/kotlin-client +additionalProperties: + artifactId: kotlin-petstore-okhttp4-parameter-tests diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractKotlinCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractKotlinCodegen.java index 0f33606640f..30dd20f83f7 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractKotlinCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractKotlinCodegen.java @@ -18,6 +18,8 @@ package org.openapitools.codegen.languages; import com.fasterxml.jackson.databind.node.ArrayNode; +import com.google.common.collect.ImmutableMap; +import com.samskivert.mustache.Mustache; import io.swagger.v3.oas.models.media.ArraySchema; import io.swagger.v3.oas.models.media.ComposedSchema; import io.swagger.v3.oas.models.media.Schema; @@ -27,6 +29,8 @@ import org.apache.commons.lang3.StringUtils; import org.openapitools.codegen.*; import org.openapitools.codegen.model.ModelMap; import org.openapitools.codegen.model.ModelsMap; +import org.openapitools.codegen.templating.mustache.EscapeChar; +import org.openapitools.codegen.templating.mustache.JoinWithCommaLambda; import org.openapitools.codegen.utils.ModelUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -1165,4 +1169,10 @@ public abstract class AbstractKotlinCodegen extends DefaultCodegen implements Co public void setAdditionalModelTypeAnnotations(final List additionalModelTypeAnnotations) { this.additionalModelTypeAnnotations = additionalModelTypeAnnotations; } + + @Override + protected ImmutableMap.Builder addMustacheLambdas() { + return super.addMustacheLambdas() + .put("escapeDollar", new EscapeChar("(? = mutableMapOf({{#hasFormParams}}"Content-Type" to {{^consumes}}"multipart/form-data"{{/consumes}}{{#consumes.0}}"{{{mediaType}}}"{{/consumes.0}}{{/hasFormParams}}) {{#headerParams}} - {{{paramName}}}{{^required}}?{{/required}}.apply { localVariableHeaders["{{baseName}}"] = {{#isContainer}}this.joinToString(separator = collectionDelimiter("{{collectionFormat}}")){{/isContainer}}{{^isContainer}}this.toString(){{/isContainer}} } + {{{paramName}}}{{^required}}?{{/required}}.apply { localVariableHeaders["{{#lambda.escapeDollar}}{{baseName}}{{/lambda.escapeDollar}}"] = {{#isContainer}}this.joinToString(separator = collectionDelimiter("{{collectionFormat}}")){{/isContainer}}{{^isContainer}}this.toString(){{/isContainer}} } {{/headerParams}} {{^hasFormParams}}{{#hasConsumes}}{{#consumes}}localVariableHeaders["Content-Type"] = "{{{mediaType}}}" {{/consumes}}{{/hasConsumes}}{{/hasFormParams}}{{#hasProduces}}localVariableHeaders["Accept"] = "{{#produces}}{{{mediaType}}}{{^-last}}, {{/-last}}{{/produces}}" @@ -225,7 +225,7 @@ import {{packageName}}.infrastructure.toMultiValue return RequestConfig( method = RequestMethod.{{httpMethod}}, - path = "{{path}}"{{#pathParams}}.replace("{"+"{{baseName}}"+"}", encodeURIComponent({{#isContainer}}{{paramName}}.joinToString(","){{/isContainer}}{{^isContainer}}{{{paramName}}}{{#isEnum}}.value{{/isEnum}}.toString(){{/isContainer}})){{/pathParams}}, + path = "{{path}}"{{#pathParams}}.replace("{"+"{{#lambda.escapeDollar}}{{baseName}}{{/lambda.escapeDollar}}"+"}", encodeURIComponent({{#isContainer}}{{paramName}}.joinToString(","){{/isContainer}}{{^isContainer}}{{{paramName}}}{{#isEnum}}.value{{/isEnum}}.toString(){{/isContainer}})){{/pathParams}}, query = localVariableQuery, headers = localVariableHeaders, requiresAuthentication = {{#hasAuthMethods}}true{{/hasAuthMethods}}{{^hasAuthMethods}}false{{/hasAuthMethods}}, diff --git a/modules/openapi-generator/src/main/resources/kotlin-server/libraries/jaxrs-spec/cookieParams.mustache b/modules/openapi-generator/src/main/resources/kotlin-server/libraries/jaxrs-spec/cookieParams.mustache index 2a933154fc8..40648eb494d 100644 --- a/modules/openapi-generator/src/main/resources/kotlin-server/libraries/jaxrs-spec/cookieParams.mustache +++ b/modules/openapi-generator/src/main/resources/kotlin-server/libraries/jaxrs-spec/cookieParams.mustache @@ -1 +1 @@ -{{#isCookieParam}}@CookieParam("{{baseName}}"){{#useBeanValidation}}{{>beanValidationQueryParams}}{{/useBeanValidation}}{{^isContainer}}{{#defaultValue}} @DefaultValue({{{.}}}){{/defaultValue}}{{/isContainer}} {{#useSwaggerAnnotations}}{{#description}} @ApiParam("{{.}}"){{/description}}{{/useSwaggerAnnotations}} {{paramName}}: {{{dataType}}}{{#isNullable}}?{{/isNullable}}{{^isNullable}}{{^defaultValue}}{{^required}}?{{/required}}{{/defaultValue}}{{/isNullable}}{{/isCookieParam}} \ No newline at end of file +{{#isCookieParam}}@CookieParam("{{#lambda.escapeDollar}}{{baseName}}{{/lambda.escapeDollar}}"){{#useBeanValidation}}{{>beanValidationQueryParams}}{{/useBeanValidation}}{{^isContainer}}{{#defaultValue}} @DefaultValue({{{.}}}){{/defaultValue}}{{/isContainer}} {{#useSwaggerAnnotations}}{{#description}} @ApiParam("{{.}}"){{/description}}{{/useSwaggerAnnotations}} {{paramName}}: {{{dataType}}}{{#isNullable}}?{{/isNullable}}{{^isNullable}}{{^defaultValue}}{{^required}}?{{/required}}{{/defaultValue}}{{/isNullable}}{{/isCookieParam}} \ No newline at end of file diff --git a/modules/openapi-generator/src/main/resources/kotlin-server/libraries/jaxrs-spec/pathParams.mustache b/modules/openapi-generator/src/main/resources/kotlin-server/libraries/jaxrs-spec/pathParams.mustache index 8148b70d6c2..b148f41beac 100644 --- a/modules/openapi-generator/src/main/resources/kotlin-server/libraries/jaxrs-spec/pathParams.mustache +++ b/modules/openapi-generator/src/main/resources/kotlin-server/libraries/jaxrs-spec/pathParams.mustache @@ -1 +1 @@ -{{#isPathParam}}@PathParam("{{baseName}}"){{#useBeanValidation}}{{>beanValidationPathParams}}{{/useBeanValidation}}{{#useSwaggerAnnotations}}{{#description}} @ApiParam("{{.}}"){{/description}}{{/useSwaggerAnnotations}} {{paramName}}: {{{dataType}}}{{#isNullable}}?{{/isNullable}}{{^isNullable}}{{^defaultValue}}{{^required}}?{{/required}}{{/defaultValue}}{{/isNullable}}{{/isPathParam}} \ No newline at end of file +{{#isPathParam}}@PathParam("{{#lambda.escapeDollar}}{{#lambda.escapeDollar}}{{baseName}}{{/lambda.escapeDollar}}{{/lambda.escapeDollar}}"){{#useBeanValidation}}{{>beanValidationPathParams}}{{/useBeanValidation}}{{#useSwaggerAnnotations}}{{#description}} @ApiParam("{{.}}"){{/description}}{{/useSwaggerAnnotations}} {{paramName}}: {{{dataType}}}{{#isNullable}}?{{/isNullable}}{{^isNullable}}{{^defaultValue}}{{^required}}?{{/required}}{{/defaultValue}}{{/isNullable}}{{/isPathParam}} \ No newline at end of file diff --git a/modules/openapi-generator/src/main/resources/kotlin-server/libraries/jaxrs-spec/queryParams.mustache b/modules/openapi-generator/src/main/resources/kotlin-server/libraries/jaxrs-spec/queryParams.mustache index d6468ba1d7c..fa6f1c583cb 100644 --- a/modules/openapi-generator/src/main/resources/kotlin-server/libraries/jaxrs-spec/queryParams.mustache +++ b/modules/openapi-generator/src/main/resources/kotlin-server/libraries/jaxrs-spec/queryParams.mustache @@ -1 +1 @@ -{{#isQueryParam}}@QueryParam("{{baseName}}"){{#useBeanValidation}}{{>beanValidationQueryParams}}{{/useBeanValidation}}{{^isContainer}}{{#defaultValue}} @DefaultValue({{{.}}}){{/defaultValue}}{{/isContainer}} {{#useSwaggerAnnotations}}{{#description}} @ApiParam("{{.}}"){{/description}}{{/useSwaggerAnnotations}} {{paramName}}: {{{dataType}}}{{#isNullable}}?{{/isNullable}}{{^isNullable}}{{^defaultValue}}{{^required}}?{{/required}}{{/defaultValue}}{{/isNullable}}{{/isQueryParam}} \ No newline at end of file +{{#isQueryParam}}@QueryParam("{{#lambda.escapeDollar}}{{baseName}}{{/lambda.escapeDollar}}"){{#useBeanValidation}}{{>beanValidationQueryParams}}{{/useBeanValidation}}{{^isContainer}}{{#defaultValue}} @DefaultValue({{{.}}}){{/defaultValue}}{{/isContainer}} {{#useSwaggerAnnotations}}{{#description}} @ApiParam("{{.}}"){{/description}}{{/useSwaggerAnnotations}} {{paramName}}: {{{dataType}}}{{#isNullable}}?{{/isNullable}}{{^isNullable}}{{^defaultValue}}{{^required}}?{{/required}}{{/defaultValue}}{{/isNullable}}{{/isQueryParam}} \ No newline at end of file diff --git a/modules/openapi-generator/src/test/resources/3_0/parameter-test-spec.yaml b/modules/openapi-generator/src/test/resources/3_0/parameter-test-spec.yaml index 364f7f5da74..14d1b311ebf 100644 --- a/modules/openapi-generator/src/test/resources/3_0/parameter-test-spec.yaml +++ b/modules/openapi-generator/src/test/resources/3_0/parameter-test-spec.yaml @@ -69,6 +69,11 @@ paths: schema: nullable: true type: string + - name: $query-$dollar-sign + in: query + description: query parameter with dollar sign + schema: + type: string responses: '200': description: successful operation diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/.openapi-generator-ignore b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/.openapi-generator-ignore new file mode 100644 index 00000000000..7484ee590a3 --- /dev/null +++ b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/.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/others/kotlin-jvm-okhttp-parameter-tests/.openapi-generator/FILES b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/.openapi-generator/FILES new file mode 100644 index 00000000000..2d00928eb93 --- /dev/null +++ b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/.openapi-generator/FILES @@ -0,0 +1,26 @@ +README.md +build.gradle +docs/DefaultApi.md +gradle/wrapper/gradle-wrapper.jar +gradle/wrapper/gradle-wrapper.properties +gradlew +gradlew.bat +settings.gradle +src/main/kotlin/org/openapitools/client/apis/DefaultApi.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 diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/.openapi-generator/VERSION b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/.openapi-generator/VERSION new file mode 100644 index 00000000000..757e6740040 --- /dev/null +++ b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/.openapi-generator/VERSION @@ -0,0 +1 @@ +7.0.0-SNAPSHOT \ No newline at end of file diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/README.md b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/README.md new file mode 100644 index 00000000000..c4906ffcafd --- /dev/null +++ b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/README.md @@ -0,0 +1,59 @@ +# org.openapitools.client - Kotlin client library for Test parameters + +test parameters + +## 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: 1.0.0 +- Package version: +- 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* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**findPetsByStatus**](docs/DefaultApi.md#findpetsbystatus) | **GET** /test/parameters/{path_default}/{path_nullable} | Finds Pets by status + + + +## Documentation for Models + + + + +## Documentation for Authorization + +Endpoints do not require authorization. + diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build.gradle b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build.gradle new file mode 100644 index 00000000000..66a3c68b890 --- /dev/null +++ b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build.gradle @@ -0,0 +1,38 @@ +group 'org.openapitools' +version '1.0.0' + +wrapper { + gradleVersion = '7.5' + distributionUrl = "https://services.gradle.org/distributions/gradle-$gradleVersion-all.zip" +} + +buildscript { + ext.kotlin_version = '1.7.21' + + repositories { + maven { url "https://repo1.maven.org/maven2" } + } + dependencies { + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" + } +} + +apply plugin: 'kotlin' +apply plugin: 'maven-publish' + +repositories { + maven { url "https://repo1.maven.org/maven2" } +} + +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.13.0" + implementation "com.squareup.moshi:moshi-adapters:1.13.0" + implementation "com.squareup.okhttp3:okhttp:4.10.0" + testImplementation "io.kotlintest:kotlintest-runner-junit5:3.4.2" +} diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/META-INF/kotlin-petstore-okhttp4-parameter-tests.kotlin_module b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/META-INF/kotlin-petstore-okhttp4-parameter-tests.kotlin_module new file mode 100644 index 00000000000..95a2a402417 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/META-INF/kotlin-petstore-okhttp4-parameter-tests.kotlin_module differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/apis/DefaultApi$Companion$defaultBasePath$2.class b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/apis/DefaultApi$Companion$defaultBasePath$2.class new file mode 100644 index 00000000000..5e7a0ef0727 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/apis/DefaultApi$Companion$defaultBasePath$2.class differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/apis/DefaultApi$Companion.class b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/apis/DefaultApi$Companion.class new file mode 100644 index 00000000000..f667e3c2c65 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/apis/DefaultApi$Companion.class differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/apis/DefaultApi$WhenMappings.class b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/apis/DefaultApi$WhenMappings.class new file mode 100644 index 00000000000..cd437199b8a Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/apis/DefaultApi$WhenMappings.class differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/apis/DefaultApi.class b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/apis/DefaultApi.class new file mode 100644 index 00000000000..8f451af4cea Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/apis/DefaultApi.class differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/ApiAbstractionsKt$defaultMultiValueConverter$1.class b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/ApiAbstractionsKt$defaultMultiValueConverter$1.class new file mode 100644 index 00000000000..c1927388d56 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/ApiAbstractionsKt$defaultMultiValueConverter$1.class differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/ApiAbstractionsKt.class b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/ApiAbstractionsKt.class new file mode 100644 index 00000000000..f527fb494f4 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/ApiAbstractionsKt.class differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/ApiClient$Companion$defaultClient$2.class b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/ApiClient$Companion$defaultClient$2.class new file mode 100644 index 00000000000..67b00ba2910 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/ApiClient$Companion$defaultClient$2.class differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/ApiClient$Companion.class b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/ApiClient$Companion.class new file mode 100644 index 00000000000..bc260c88be4 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/ApiClient$Companion.class differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/ApiClient$WhenMappings.class b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/ApiClient$WhenMappings.class new file mode 100644 index 00000000000..bc4215c2f8f Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/ApiClient$WhenMappings.class differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/ApiClient.class b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/ApiClient.class new file mode 100644 index 00000000000..8048214c14d Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/ApiClient.class differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/ApiResponse.class b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/ApiResponse.class new file mode 100644 index 00000000000..dfd730993a8 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/ApiResponse.class differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/BigDecimalAdapter.class b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/BigDecimalAdapter.class new file mode 100644 index 00000000000..2d0483d227b Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/BigDecimalAdapter.class differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/BigIntegerAdapter.class b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/BigIntegerAdapter.class new file mode 100644 index 00000000000..4772bacd374 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/BigIntegerAdapter.class differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/ByteArrayAdapter.class b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/ByteArrayAdapter.class new file mode 100644 index 00000000000..7222aea9add Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/ByteArrayAdapter.class differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/ClientError.class b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/ClientError.class new file mode 100644 index 00000000000..397e000846d Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/ClientError.class differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/ClientException$Companion.class b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/ClientException$Companion.class new file mode 100644 index 00000000000..f97988e17a7 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/ClientException$Companion.class differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/ClientException.class b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/ClientException.class new file mode 100644 index 00000000000..6fc6f87f350 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/ClientException.class differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/Informational.class b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/Informational.class new file mode 100644 index 00000000000..2fd6b6cd26a Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/Informational.class differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/LocalDateAdapter.class b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/LocalDateAdapter.class new file mode 100644 index 00000000000..8a8d0bcf445 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/LocalDateAdapter.class differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/LocalDateTimeAdapter.class b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/LocalDateTimeAdapter.class new file mode 100644 index 00000000000..0c57d53ada5 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/LocalDateTimeAdapter.class differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/OffsetDateTimeAdapter.class b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/OffsetDateTimeAdapter.class new file mode 100644 index 00000000000..0c00ec3d8a6 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/OffsetDateTimeAdapter.class differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/PartConfig.class b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/PartConfig.class new file mode 100644 index 00000000000..4b941545214 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/PartConfig.class differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/Redirection.class b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/Redirection.class new file mode 100644 index 00000000000..c32ef20a21c Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/Redirection.class differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/RequestConfig.class b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/RequestConfig.class new file mode 100644 index 00000000000..329decb8166 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/RequestConfig.class differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/RequestMethod.class b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/RequestMethod.class new file mode 100644 index 00000000000..020766c01f3 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/RequestMethod.class differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/Response.class b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/Response.class new file mode 100644 index 00000000000..0e409ab8ac6 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/Response.class differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/ResponseExtensionsKt.class b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/ResponseExtensionsKt.class new file mode 100644 index 00000000000..ddf9819ac0f Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/ResponseExtensionsKt.class differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/ResponseType.class b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/ResponseType.class new file mode 100644 index 00000000000..3efe35f2ea3 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/ResponseType.class differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/Serializer$moshi$2.class b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/Serializer$moshi$2.class new file mode 100644 index 00000000000..8a70e732c5d Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/Serializer$moshi$2.class differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/Serializer.class b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/Serializer.class new file mode 100644 index 00000000000..daaa87e8be9 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/Serializer.class differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/ServerError.class b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/ServerError.class new file mode 100644 index 00000000000..5a1d280901d Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/ServerError.class differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/ServerException$Companion.class b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/ServerException$Companion.class new file mode 100644 index 00000000000..aff1655bae3 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/ServerException$Companion.class differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/ServerException.class b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/ServerException.class new file mode 100644 index 00000000000..0f93463dc92 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/ServerException.class differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/Success.class b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/Success.class new file mode 100644 index 00000000000..9b7cbad11c7 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/Success.class differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/URIAdapter.class b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/URIAdapter.class new file mode 100644 index 00000000000..36d4ade27d3 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/URIAdapter.class differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/UUIDAdapter.class b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/UUIDAdapter.class new file mode 100644 index 00000000000..9a4d01cfe62 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/UUIDAdapter.class differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/inputs/source-to-output.tab b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/inputs/source-to-output.tab new file mode 100644 index 00000000000..05c3500b278 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/inputs/source-to-output.tab differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream new file mode 100644 index 00000000000..a2a4c8cd979 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream.len b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream.len new file mode 100644 index 00000000000..81cdbc1ae4b Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream.len differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.len b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.len new file mode 100644 index 00000000000..09407efabbe Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.len differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.values.at b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.values.at new file mode 100644 index 00000000000..e6471ff308b Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.values.at differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i new file mode 100644 index 00000000000..3d8f47f237d Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i.len b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i.len new file mode 100644 index 00000000000..131e265740f Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i.len differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab new file mode 100644 index 00000000000..995016e4690 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream new file mode 100644 index 00000000000..5013e02ab7a Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream.len b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream.len new file mode 100644 index 00000000000..6f9277755f2 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream.len differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.len b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.len new file mode 100644 index 00000000000..8d483a8627f Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.len differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.values.at b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.values.at new file mode 100644 index 00000000000..b7011bcb77b Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.values.at differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i new file mode 100644 index 00000000000..d36d79eb02d Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i.len b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i.len new file mode 100644 index 00000000000..131e265740f Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i.len differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab new file mode 100644 index 00000000000..691e79b03a5 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream new file mode 100644 index 00000000000..5013e02ab7a Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len new file mode 100644 index 00000000000..6f9277755f2 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len new file mode 100644 index 00000000000..8d483a8627f Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at new file mode 100644 index 00000000000..3ba04039c40 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i new file mode 100644 index 00000000000..d36d79eb02d Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i.len b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i.len new file mode 100644 index 00000000000..131e265740f Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i.len differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab new file mode 100644 index 00000000000..14a2d7a4aae Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream new file mode 100644 index 00000000000..c0e36ab9e46 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream.len b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream.len new file mode 100644 index 00000000000..1c209ae2a7d Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream.len differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.len b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.len new file mode 100644 index 00000000000..2a17e6e5bd9 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.len differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.values.at b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.values.at new file mode 100644 index 00000000000..907b0ef45df Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.values.at differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i new file mode 100644 index 00000000000..28d0f1a654d Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i.len b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i.len new file mode 100644 index 00000000000..131e265740f Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i.len differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/inline-functions.tab b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/inline-functions.tab new file mode 100644 index 00000000000..14a2d7a4aae Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/inline-functions.tab differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/inline-functions.tab.keystream b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/inline-functions.tab.keystream new file mode 100644 index 00000000000..c0e36ab9e46 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/inline-functions.tab.keystream differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/inline-functions.tab.keystream.len b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/inline-functions.tab.keystream.len new file mode 100644 index 00000000000..1c209ae2a7d Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/inline-functions.tab.keystream.len differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/inline-functions.tab.len b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/inline-functions.tab.len new file mode 100644 index 00000000000..2a17e6e5bd9 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/inline-functions.tab.len differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/inline-functions.tab.values.at b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/inline-functions.tab.values.at new file mode 100644 index 00000000000..6224f69323c Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/inline-functions.tab.values.at differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/inline-functions.tab_i b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/inline-functions.tab_i new file mode 100644 index 00000000000..28d0f1a654d Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/inline-functions.tab_i differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/inline-functions.tab_i.len b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/inline-functions.tab_i.len new file mode 100644 index 00000000000..131e265740f Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/inline-functions.tab_i.len differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab new file mode 100644 index 00000000000..1258c7b8d5f Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream new file mode 100644 index 00000000000..ef54d811080 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len new file mode 100644 index 00000000000..bbe26b90d79 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len new file mode 100644 index 00000000000..c580238d5e2 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at new file mode 100644 index 00000000000..fdbcb0f9b90 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i new file mode 100644 index 00000000000..4800dbcd0ec Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i.len b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i.len new file mode 100644 index 00000000000..131e265740f Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i.len differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab new file mode 100644 index 00000000000..e382093d6f2 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.keystream b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.keystream new file mode 100644 index 00000000000..938d1c9ea10 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.keystream differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.keystream.len b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.keystream.len new file mode 100644 index 00000000000..64b37414556 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.keystream.len differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.len b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.len new file mode 100644 index 00000000000..01bdaa1da7d Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.len differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.values.at b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.values.at new file mode 100644 index 00000000000..6fcb00a84b3 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.values.at differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab_i b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab_i new file mode 100644 index 00000000000..89aa5dd944f Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab_i differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab_i.len b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab_i.len new file mode 100644 index 00000000000..131e265740f Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab_i.len differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab new file mode 100644 index 00000000000..fccbe7c2532 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream new file mode 100644 index 00000000000..c8b01568da6 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream.len b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream.len new file mode 100644 index 00000000000..1e488a564ac Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream.len differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.len b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.len new file mode 100644 index 00000000000..3085af4de91 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.len differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.at b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.at new file mode 100644 index 00000000000..f812db19907 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.at differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i new file mode 100644 index 00000000000..bac5e302498 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i.len b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i.len new file mode 100644 index 00000000000..131e265740f Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i.len differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab new file mode 100644 index 00000000000..5d229e05cfe Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream new file mode 100644 index 00000000000..02488b40540 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len new file mode 100644 index 00000000000..81cdbc1ae4b Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.len b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.len new file mode 100644 index 00000000000..09407efabbe Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.len differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at new file mode 100644 index 00000000000..c86522c76dc Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i new file mode 100644 index 00000000000..69d6cb39b3b Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i.len b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i.len new file mode 100644 index 00000000000..131e265740f Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i.len differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab new file mode 100644 index 00000000000..83791916258 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream new file mode 100644 index 00000000000..623f9a1e9de Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream.len b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream.len new file mode 100644 index 00000000000..cfb143064a9 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream.len differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.len b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.len new file mode 100644 index 00000000000..ec8f944c8ac Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.len differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.values.at b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.values.at new file mode 100644 index 00000000000..cdf9a9140f7 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.values.at differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i new file mode 100644 index 00000000000..162f1227199 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i.len b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i.len new file mode 100644 index 00000000000..131e265740f Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i.len differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab new file mode 100644 index 00000000000..0e89b8c47e9 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream new file mode 100644 index 00000000000..73b13db5f29 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len new file mode 100644 index 00000000000..021b277168d Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.len b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.len new file mode 100644 index 00000000000..a5413564614 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.len differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.values.at b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.values.at new file mode 100644 index 00000000000..3bcc1902667 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.values.at differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i new file mode 100644 index 00000000000..680b6e355d4 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i.len b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i.len new file mode 100644 index 00000000000..131e265740f Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i.len differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/counters.tab b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/counters.tab new file mode 100644 index 00000000000..6562d99d987 --- /dev/null +++ b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/counters.tab @@ -0,0 +1,2 @@ +18 +0 \ No newline at end of file diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/file-to-id.tab b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/file-to-id.tab new file mode 100644 index 00000000000..ca318bb1444 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/file-to-id.tab differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream new file mode 100644 index 00000000000..02488b40540 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream.len b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream.len new file mode 100644 index 00000000000..81cdbc1ae4b Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream.len differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.len b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.len new file mode 100644 index 00000000000..09407efabbe Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.len differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.values.at b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.values.at new file mode 100644 index 00000000000..5b7bdc31c77 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.values.at differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i new file mode 100644 index 00000000000..d7b5dfe85d2 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i.len b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i.len new file mode 100644 index 00000000000..131e265740f Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i.len differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab new file mode 100644 index 00000000000..d9de6598048 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream new file mode 100644 index 00000000000..99cb6e96aa0 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream.len b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream.len new file mode 100644 index 00000000000..c54fd0d994e Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream.len differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.len b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.len new file mode 100644 index 00000000000..09407efabbe Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.len differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.values.at b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.values.at new file mode 100644 index 00000000000..c11c2582103 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.values.at differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i new file mode 100644 index 00000000000..504f86b4251 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i.len b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i.len new file mode 100644 index 00000000000..131e265740f Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i.len differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab new file mode 100644 index 00000000000..a8a5679fb9b Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream new file mode 100644 index 00000000000..08c765bbc1e Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream.len b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream.len new file mode 100644 index 00000000000..8351a57ab97 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream.len differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab.len b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab.len new file mode 100644 index 00000000000..f9be1c08c85 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab.len differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at new file mode 100644 index 00000000000..2d75cfe856e Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab_i b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab_i new file mode 100644 index 00000000000..17e804cd149 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab_i differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab_i.len b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab_i.len new file mode 100644 index 00000000000..131e265740f Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab_i.len differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/last-build.bin b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/last-build.bin new file mode 100644 index 00000000000..ffc4e0f1739 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/cacheable/last-build.bin differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/local-state/build-history.bin b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/local-state/build-history.bin new file mode 100644 index 00000000000..53446b1a1b7 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/compileKotlin/local-state/build-history.bin differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/kotlinpetstoreokhttp4parametertests100jar-classes.txt b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/kotlinpetstoreokhttp4parametertests100jar-classes.txt new file mode 100644 index 00000000000..a1bcd4130cf --- /dev/null +++ b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/kotlin/kotlinpetstoreokhttp4parametertests100jar-classes.txt @@ -0,0 +1 @@ +/Users/williamcheng/Code/openapi-generator7/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/apis/DefaultApi$Companion$defaultBasePath$2.class:/Users/williamcheng/Code/openapi-generator7/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/apis/DefaultApi$Companion.class:/Users/williamcheng/Code/openapi-generator7/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/apis/DefaultApi$WhenMappings.class:/Users/williamcheng/Code/openapi-generator7/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/apis/DefaultApi.class:/Users/williamcheng/Code/openapi-generator7/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/ApiAbstractionsKt$defaultMultiValueConverter$1.class:/Users/williamcheng/Code/openapi-generator7/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/ApiAbstractionsKt.class:/Users/williamcheng/Code/openapi-generator7/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/ApiClient$Companion$defaultClient$2.class:/Users/williamcheng/Code/openapi-generator7/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/ApiClient$Companion.class:/Users/williamcheng/Code/openapi-generator7/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/ApiClient$WhenMappings.class:/Users/williamcheng/Code/openapi-generator7/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/ApiClient.class:/Users/williamcheng/Code/openapi-generator7/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/ApiResponse.class:/Users/williamcheng/Code/openapi-generator7/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/BigDecimalAdapter.class:/Users/williamcheng/Code/openapi-generator7/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/BigIntegerAdapter.class:/Users/williamcheng/Code/openapi-generator7/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/ByteArrayAdapter.class:/Users/williamcheng/Code/openapi-generator7/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/ClientError.class:/Users/williamcheng/Code/openapi-generator7/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/ClientException$Companion.class:/Users/williamcheng/Code/openapi-generator7/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/ClientException.class:/Users/williamcheng/Code/openapi-generator7/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/Informational.class:/Users/williamcheng/Code/openapi-generator7/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/LocalDateAdapter.class:/Users/williamcheng/Code/openapi-generator7/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/LocalDateTimeAdapter.class:/Users/williamcheng/Code/openapi-generator7/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/OffsetDateTimeAdapter.class:/Users/williamcheng/Code/openapi-generator7/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/PartConfig.class:/Users/williamcheng/Code/openapi-generator7/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/Redirection.class:/Users/williamcheng/Code/openapi-generator7/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/RequestConfig.class:/Users/williamcheng/Code/openapi-generator7/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/RequestMethod.class:/Users/williamcheng/Code/openapi-generator7/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/Response.class:/Users/williamcheng/Code/openapi-generator7/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/ResponseExtensionsKt.class:/Users/williamcheng/Code/openapi-generator7/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/ResponseType.class:/Users/williamcheng/Code/openapi-generator7/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/Serializer$moshi$2.class:/Users/williamcheng/Code/openapi-generator7/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/Serializer.class:/Users/williamcheng/Code/openapi-generator7/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/ServerError.class:/Users/williamcheng/Code/openapi-generator7/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/ServerException$Companion.class:/Users/williamcheng/Code/openapi-generator7/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/ServerException.class:/Users/williamcheng/Code/openapi-generator7/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/Success.class:/Users/williamcheng/Code/openapi-generator7/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/URIAdapter.class:/Users/williamcheng/Code/openapi-generator7/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/classes/kotlin/main/org/openapitools/client/infrastructure/UUIDAdapter.class \ No newline at end of file diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/libs/kotlin-petstore-okhttp4-parameter-tests-1.0.0.jar b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/libs/kotlin-petstore-okhttp4-parameter-tests-1.0.0.jar new file mode 100644 index 00000000000..a396294a394 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/libs/kotlin-petstore-okhttp4-parameter-tests-1.0.0.jar differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/tmp/jar/MANIFEST.MF b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/tmp/jar/MANIFEST.MF new file mode 100644 index 00000000000..59499bce4a2 --- /dev/null +++ b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build/tmp/jar/MANIFEST.MF @@ -0,0 +1,2 @@ +Manifest-Version: 1.0 + diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/docs/DefaultApi.md b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/docs/DefaultApi.md new file mode 100644 index 00000000000..9082c6dd97d --- /dev/null +++ b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/docs/DefaultApi.md @@ -0,0 +1,71 @@ +# DefaultApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**findPetsByStatus**](DefaultApi.md#findPetsByStatus) | **GET** /test/parameters/{path_default}/{path_nullable} | Finds Pets by status + + + +# **findPetsByStatus** +> findPetsByStatus(pathDefault, pathNullable, queryDefault, headerDefault, cookieDefault, queryNullable, headerNullable, cookieNullable, dollarQueryDollarDollarSign) + +Finds Pets by status + +Multiple status values can be provided with comma separated strings + +### Example +```kotlin +// Import classes: +//import org.openapitools.client.infrastructure.* +//import org.openapitools.client.models.* + +val apiInstance = DefaultApi() +val pathDefault : kotlin.String = pathDefault_example // kotlin.String | path default +val pathNullable : kotlin.String = pathNullable_example // kotlin.String | path_nullable +val queryDefault : kotlin.String = queryDefault_example // kotlin.String | query default +val headerDefault : kotlin.String = headerDefault_example // kotlin.String | header default +val cookieDefault : kotlin.String = cookieDefault_example // kotlin.String | cookie default +val queryNullable : kotlin.String = queryNullable_example // kotlin.String | query nullable +val headerNullable : kotlin.String = headerNullable_example // kotlin.String | header nullable +val cookieNullable : kotlin.String = cookieNullable_example // kotlin.String | cookie_nullable +val dollarQueryDollarDollarSign : kotlin.String = dollarQueryDollarDollarSign_example // kotlin.String | query parameter with dollar sign +try { + apiInstance.findPetsByStatus(pathDefault, pathNullable, queryDefault, headerDefault, cookieDefault, queryNullable, headerNullable, cookieNullable, dollarQueryDollarDollarSign) +} catch (e: ClientException) { + println("4xx response calling DefaultApi#findPetsByStatus") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling DefaultApi#findPetsByStatus") + e.printStackTrace() +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pathDefault** | **kotlin.String**| path default | + **pathNullable** | **kotlin.String**| path_nullable | + **queryDefault** | **kotlin.String**| query default | [optional] [default to "available"] + **headerDefault** | **kotlin.String**| header default | [optional] [default to "available"] + **cookieDefault** | **kotlin.String**| cookie default | [optional] [default to "available"] + **queryNullable** | **kotlin.String**| query nullable | [optional] + **headerNullable** | **kotlin.String**| header nullable | [optional] + **cookieNullable** | **kotlin.String**| cookie_nullable | [optional] + **dollarQueryDollarDollarSign** | **kotlin.String**| query parameter with dollar sign | [optional] + +### Return type + +null (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/gradle/wrapper/gradle-wrapper.jar b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 00000000000..c1962a79e29 Binary files /dev/null and b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/gradle/wrapper/gradle-wrapper.jar differ diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/gradle/wrapper/gradle-wrapper.properties b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 00000000000..8707e8b5067 --- /dev/null +++ b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,6 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-all.zip +networkTimeout=10000 +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/gradlew b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/gradlew new file mode 100644 index 00000000000..aeb74cbb43e --- /dev/null +++ b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/gradlew @@ -0,0 +1,245 @@ +#!/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##*/} +APP_HOME=$( cd "${APP_HOME:-./}" && 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 + which java >/dev/null 2>&1 || 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 + +# 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=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=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, and $GRADLE_OPTS can contain fragments of +# shell script including quotes and variable substitutions, so put them in +# double quotes to make sure that they get re-expanded; and +# * put everything else in single quotes, so that it's not re-expanded. + +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/others/kotlin-jvm-okhttp-parameter-tests/gradlew.bat b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/gradlew.bat new file mode 100644 index 00000000000..93e3f59f135 --- /dev/null +++ b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/gradlew.bat @@ -0,0 +1,92 @@ +@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=. +@rem This is normally unused +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% equ 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% equ 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! +set EXIT_CODE=%ERRORLEVEL% +if %EXIT_CODE% equ 0 set EXIT_CODE=1 +if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% +exit /b %EXIT_CODE% + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/settings.gradle b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/settings.gradle new file mode 100644 index 00000000000..0e6aed9e795 --- /dev/null +++ b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/settings.gradle @@ -0,0 +1,2 @@ + +rootProject.name = 'kotlin-petstore-okhttp4-parameter-tests' diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/src/main/kotlin/org/openapitools/client/apis/DefaultApi.kt b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/src/main/kotlin/org/openapitools/client/apis/DefaultApi.kt new file mode 100644 index 00000000000..3d2b94aa15b --- /dev/null +++ b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/src/main/kotlin/org/openapitools/client/apis/DefaultApi.kt @@ -0,0 +1,155 @@ +/** + * + * 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.OkHttpClient +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 DefaultApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient = ApiClient.defaultClient) : ApiClient(basePath, client) { + companion object { + @JvmStatic + val defaultBasePath: String by lazy { + System.getProperties().getProperty(ApiClient.baseUrlKey, "http://localhost") + } + } + + /** + * Finds Pets by status + * Multiple status values can be provided with comma separated strings + * @param pathDefault path default + * @param pathNullable path_nullable + * @param queryDefault query default (optional, default to "available") + * @param headerDefault header default (optional, default to "available") + * @param cookieDefault cookie default (optional, default to "available") + * @param queryNullable query nullable (optional) + * @param headerNullable header nullable (optional) + * @param cookieNullable cookie_nullable (optional) + * @param dollarQueryDollarDollarSign query parameter with dollar sign (optional) + * @return void + * @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 + */ + @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class) + fun findPetsByStatus(pathDefault: kotlin.String, pathNullable: kotlin.String, queryDefault: kotlin.String? = "available", headerDefault: kotlin.String? = "available", cookieDefault: kotlin.String? = "available", queryNullable: kotlin.String? = null, headerNullable: kotlin.String? = null, cookieNullable: kotlin.String? = null, dollarQueryDollarDollarSign: kotlin.String? = null) : Unit { + val localVarResponse = findPetsByStatusWithHttpInfo(pathDefault = pathDefault, pathNullable = pathNullable, queryDefault = queryDefault, headerDefault = headerDefault, cookieDefault = cookieDefault, queryNullable = queryNullable, headerNullable = headerNullable, cookieNullable = cookieNullable, dollarQueryDollarDollarSign = dollarQueryDollarDollarSign) + + return when (localVarResponse.responseType) { + ResponseType.Success -> Unit + 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.statusCode, localVarResponse) + } + } + } + + /** + * Finds Pets by status + * Multiple status values can be provided with comma separated strings + * @param pathDefault path default + * @param pathNullable path_nullable + * @param queryDefault query default (optional, default to "available") + * @param headerDefault header default (optional, default to "available") + * @param cookieDefault cookie default (optional, default to "available") + * @param queryNullable query nullable (optional) + * @param headerNullable header nullable (optional) + * @param cookieNullable cookie_nullable (optional) + * @param dollarQueryDollarDollarSign query parameter with dollar sign (optional) + * @return ApiResponse + * @throws IllegalStateException If the request is not correctly configured + * @throws IOException Rethrows the OkHttp execute method exception + */ + @Throws(IllegalStateException::class, IOException::class) + fun findPetsByStatusWithHttpInfo(pathDefault: kotlin.String, pathNullable: kotlin.String, queryDefault: kotlin.String?, headerDefault: kotlin.String?, cookieDefault: kotlin.String?, queryNullable: kotlin.String?, headerNullable: kotlin.String?, cookieNullable: kotlin.String?, dollarQueryDollarDollarSign: kotlin.String?) : ApiResponse { + val localVariableConfig = findPetsByStatusRequestConfig(pathDefault = pathDefault, pathNullable = pathNullable, queryDefault = queryDefault, headerDefault = headerDefault, cookieDefault = cookieDefault, queryNullable = queryNullable, headerNullable = headerNullable, cookieNullable = cookieNullable, dollarQueryDollarDollarSign = dollarQueryDollarDollarSign) + + return request( + localVariableConfig + ) + } + + /** + * To obtain the request config of the operation findPetsByStatus + * + * @param pathDefault path default + * @param pathNullable path_nullable + * @param queryDefault query default (optional, default to "available") + * @param headerDefault header default (optional, default to "available") + * @param cookieDefault cookie default (optional, default to "available") + * @param queryNullable query nullable (optional) + * @param headerNullable header nullable (optional) + * @param cookieNullable cookie_nullable (optional) + * @param dollarQueryDollarDollarSign query parameter with dollar sign (optional) + * @return RequestConfig + */ + fun findPetsByStatusRequestConfig(pathDefault: kotlin.String, pathNullable: kotlin.String, queryDefault: kotlin.String?, headerDefault: kotlin.String?, cookieDefault: kotlin.String?, queryNullable: kotlin.String?, headerNullable: kotlin.String?, cookieNullable: kotlin.String?, dollarQueryDollarDollarSign: kotlin.String?) : RequestConfig { + val localVariableBody = null + val localVariableQuery: MultiValueMap = mutableMapOf>() + .apply { + if (queryDefault != null) { + put("query_default", listOf(queryDefault.toString())) + } + if (queryNullable != null) { + put("query_nullable", listOf(queryNullable.toString())) + } + if (dollarQueryDollarDollarSign != null) { + put("\$query-\$dollar-sign", listOf(dollarQueryDollarDollarSign.toString())) + } + } + val localVariableHeaders: MutableMap = mutableMapOf() + headerDefault?.apply { localVariableHeaders["header_default"] = this.toString() } + headerNullable?.apply { localVariableHeaders["header_nullable"] = this.toString() } + + return RequestConfig( + method = RequestMethod.GET, + path = "/test/parameters/{path_default}/{path_nullable}".replace("{"+"path_default"+"}", encodeURIComponent(pathDefault.toString())).replace("{"+"path_nullable"+"}", encodeURIComponent(pathNullable.toString())), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = false, + 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/others/kotlin-jvm-okhttp-parameter-tests/src/main/kotlin/org/openapitools/client/infrastructure/ApiAbstractions.kt b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/src/main/kotlin/org/openapitools/client/infrastructure/ApiAbstractions.kt new file mode 100644 index 00000000000..a4a4491eac0 --- /dev/null +++ b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/src/main/kotlin/org/openapitools/client/infrastructure/ApiAbstractions.kt @@ -0,0 +1,23 @@ +package org.openapitools.client.infrastructure + +typealias MultiValueMap = MutableMap> + +fun collectionDelimiter(collectionFormat: String) = when(collectionFormat) { + "csv" -> "," + "tsv" -> "\t" + "pipe" -> "|" + "space" -> " " + else -> "" +} + +val defaultMultiValueConverter: (item: Any?) -> String = { item -> "$item" } + +fun toMultiValue(items: Array, collectionFormat: String, map: (item: T) -> String = defaultMultiValueConverter) + = toMultiValue(items.asIterable(), collectionFormat, map) + +fun toMultiValue(items: Iterable, collectionFormat: String, map: (item: T) -> String = defaultMultiValueConverter): List { + return when(collectionFormat) { + "multi" -> items.map(map) + else -> listOf(items.joinToString(separator = collectionDelimiter(collectionFormat), transform = map)) + } +} diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/src/main/kotlin/org/openapitools/client/infrastructure/ApiClient.kt b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/src/main/kotlin/org/openapitools/client/infrastructure/ApiClient.kt new file mode 100644 index 00000000000..ea4b7b65935 --- /dev/null +++ b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/src/main/kotlin/org/openapitools/client/infrastructure/ApiClient.kt @@ -0,0 +1,245 @@ +package org.openapitools.client.infrastructure + +import okhttp3.OkHttpClient +import okhttp3.RequestBody +import okhttp3.RequestBody.Companion.asRequestBody +import okhttp3.RequestBody.Companion.toRequestBody +import okhttp3.FormBody +import okhttp3.HttpUrl.Companion.toHttpUrlOrNull +import okhttp3.ResponseBody +import okhttp3.MediaType.Companion.toMediaTypeOrNull +import okhttp3.Request +import okhttp3.Headers +import okhttp3.Headers.Companion.toHeaders +import okhttp3.MultipartBody +import okhttp3.Call +import okhttp3.Callback +import okhttp3.Response +import okhttp3.internal.EMPTY_REQUEST +import java.io.BufferedWriter +import java.io.File +import java.io.FileWriter +import java.io.IOException +import java.net.URLConnection +import java.time.LocalDate +import java.time.LocalDateTime +import java.time.LocalTime +import java.time.OffsetDateTime +import java.time.OffsetTime +import java.util.Locale +import com.squareup.moshi.adapter + +open class ApiClient(val baseUrl: String, val client: OkHttpClient = defaultClient) { + companion object { + protected const val ContentType = "Content-Type" + protected const val Accept = "Accept" + protected const val Authorization = "Authorization" + protected const val JsonMediaType = "application/json" + protected const val FormDataMediaType = "multipart/form-data" + protected const val FormUrlEncMediaType = "application/x-www-form-urlencoded" + protected const val XmlMediaType = "application/xml" + + val apiKey: MutableMap = mutableMapOf() + val apiKeyPrefix: MutableMap = mutableMapOf() + var username: String? = null + var password: String? = null + var accessToken: String? = null + const val baseUrlKey = "org.openapitools.client.baseUrl" + + @JvmStatic + val defaultClient: OkHttpClient by lazy { + builder.build() + } + + @JvmStatic + val builder: OkHttpClient.Builder = OkHttpClient.Builder() + } + + /** + * Guess Content-Type header from the given file (defaults to "application/octet-stream"). + * + * @param file The given file + * @return The guessed Content-Type + */ + protected fun guessContentTypeFromFile(file: File): String { + val contentType = URLConnection.guessContentTypeFromName(file.name) + return contentType ?: "application/octet-stream" + } + + protected inline fun requestBody(content: T, mediaType: String?): RequestBody = + when { + content is File -> content.asRequestBody((mediaType ?: guessContentTypeFromFile(content)).toMediaTypeOrNull()) + mediaType == FormDataMediaType -> + MultipartBody.Builder() + .setType(MultipartBody.FORM) + .apply { + // content's type *must* be Map> + @Suppress("UNCHECKED_CAST") + (content as Map>).forEach { (name, part) -> + if (part.body is File) { + val partHeaders = part.headers.toMutableMap() + + ("Content-Disposition" to "form-data; name=\"$name\"; filename=\"${part.body.name}\"") + val fileMediaType = guessContentTypeFromFile(part.body).toMediaTypeOrNull() + addPart( + partHeaders.toHeaders(), + part.body.asRequestBody(fileMediaType) + ) + } else { + val partHeaders = part.headers.toMutableMap() + + ("Content-Disposition" to "form-data; name=\"$name\"") + addPart( + partHeaders.toHeaders(), + parameterToString(part.body).toRequestBody(null) + ) + } + } + }.build() + mediaType == FormUrlEncMediaType -> { + FormBody.Builder().apply { + // content's type *must* be Map> + @Suppress("UNCHECKED_CAST") + (content as Map>).forEach { (name, part) -> + add(name, parameterToString(part.body)) + } + }.build() + } + mediaType == null || mediaType.startsWith("application/") && mediaType.endsWith("json") -> + if (content == null) { + EMPTY_REQUEST + } else { + Serializer.moshi.adapter(T::class.java).toJson(content) + .toRequestBody((mediaType ?: JsonMediaType).toMediaTypeOrNull()) + } + mediaType == XmlMediaType -> throw UnsupportedOperationException("xml not currently supported.") + // TODO: this should be extended with other serializers + else -> throw UnsupportedOperationException("requestBody currently only supports JSON body and File body.") + } + + @OptIn(ExperimentalStdlibApi::class) + protected inline fun responseBody(body: ResponseBody?, mediaType: String? = JsonMediaType): T? { + if(body == null) { + return null + } + if (T::class.java == File::class.java) { + // return tempFile + // Attention: if you are developing an android app that supports API Level 25 and bellow, please check flag supportAndroidApiLevel25AndBelow in https://openapi-generator.tech/docs/generators/kotlin#config-options + val tempFile = java.nio.file.Files.createTempFile("tmp.org.openapitools.client", null).toFile() + tempFile.deleteOnExit() + body.byteStream().use { inputStream -> + tempFile.outputStream().use { tempFileOutputStream -> + inputStream.copyTo(tempFileOutputStream) + } + } + return tempFile as T + } + val bodyContent = body.string() + if (bodyContent.isEmpty()) { + return null + } + return when { + mediaType==null || (mediaType.startsWith("application/") && mediaType.endsWith("json")) -> + Serializer.moshi.adapter().fromJson(bodyContent) + else -> throw UnsupportedOperationException("responseBody currently only supports JSON body.") + } + } + + + protected inline fun request(requestConfig: RequestConfig): ApiResponse { + val httpUrl = baseUrl.toHttpUrlOrNull() ?: throw IllegalStateException("baseUrl is invalid.") + + val url = httpUrl.newBuilder() + .addEncodedPathSegments(requestConfig.path.trimStart('/')) + .apply { + requestConfig.query.forEach { query -> + query.value.forEach { queryValue -> + addQueryParameter(query.key, queryValue) + } + } + }.build() + + // take content-type/accept from spec or set to default (application/json) if not defined + if (requestConfig.body != null && requestConfig.headers[ContentType].isNullOrEmpty()) { + requestConfig.headers[ContentType] = JsonMediaType + } + if (requestConfig.headers[Accept].isNullOrEmpty()) { + requestConfig.headers[Accept] = JsonMediaType + } + val headers = requestConfig.headers + + if (headers[Accept].isNullOrEmpty()) { + throw kotlin.IllegalStateException("Missing Accept header. This is required.") + } + + val contentType = if (headers[ContentType] != null) { + // TODO: support multiple contentType options here. + (headers[ContentType] as String).substringBefore(";").lowercase(Locale.US) + } else { + null + } + + val request = when (requestConfig.method) { + RequestMethod.DELETE -> Request.Builder().url(url).delete(requestBody(requestConfig.body, contentType)) + RequestMethod.GET -> Request.Builder().url(url) + RequestMethod.HEAD -> Request.Builder().url(url).head() + RequestMethod.PATCH -> Request.Builder().url(url).patch(requestBody(requestConfig.body, contentType)) + RequestMethod.PUT -> Request.Builder().url(url).put(requestBody(requestConfig.body, contentType)) + RequestMethod.POST -> Request.Builder().url(url).post(requestBody(requestConfig.body, contentType)) + RequestMethod.OPTIONS -> Request.Builder().url(url).method("OPTIONS", null) + }.apply { + headers.forEach { header -> addHeader(header.key, header.value) } + }.build() + + val response = client.newCall(request).execute() + + val accept = response.header(ContentType)?.substringBefore(";")?.lowercase(Locale.US) + + // TODO: handle specific mapping types. e.g. Map> + return when { + response.isRedirect -> Redirection( + response.code, + response.headers.toMultimap() + ) + response.isInformational -> Informational( + response.message, + response.code, + response.headers.toMultimap() + ) + response.isSuccessful -> Success( + responseBody(response.body, accept), + response.code, + response.headers.toMultimap() + ) + response.isClientError -> ClientError( + response.message, + response.body?.string(), + response.code, + response.headers.toMultimap() + ) + else -> ServerError( + response.message, + response.body?.string(), + response.code, + response.headers.toMultimap() + ) + } + } + + protected fun parameterToString(value: Any?): String = when (value) { + null -> "" + is Array<*> -> toMultiValue(value, "csv").toString() + is Iterable<*> -> toMultiValue(value, "csv").toString() + is OffsetDateTime, is OffsetTime, is LocalDateTime, is LocalDate, is LocalTime -> + parseDateToQueryString(value) + else -> value.toString() + } + + protected inline fun parseDateToQueryString(value : T): String { + /* + .replace("\"", "") converts the json object string to an actual string for the query parameter. + The moshi or gson adapter allows a more generic solution instead of trying to use a native + formatter. It also easily allows to provide a simple way to define a custom date format pattern + inside a gson/moshi adapter. + */ + return Serializer.moshi.adapter(T::class.java).toJson(value).replace("\"", "") + } +} diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/src/main/kotlin/org/openapitools/client/infrastructure/ApiResponse.kt b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/src/main/kotlin/org/openapitools/client/infrastructure/ApiResponse.kt new file mode 100644 index 00000000000..cf2cfaa95d9 --- /dev/null +++ b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/src/main/kotlin/org/openapitools/client/infrastructure/ApiResponse.kt @@ -0,0 +1,43 @@ +package org.openapitools.client.infrastructure + +enum class ResponseType { + Success, Informational, Redirection, ClientError, ServerError +} + +interface Response + +abstract class ApiResponse(val responseType: ResponseType): Response { + abstract val statusCode: Int + abstract val headers: Map> +} + +class Success( + val data: T, + override val statusCode: Int = -1, + override val headers: Map> = mapOf() +): ApiResponse(ResponseType.Success) + +class Informational( + val statusText: String, + override val statusCode: Int = -1, + override val headers: Map> = mapOf() +) : ApiResponse(ResponseType.Informational) + +class Redirection( + override val statusCode: Int = -1, + override val headers: Map> = mapOf() +) : ApiResponse(ResponseType.Redirection) + +class ClientError( + val message: String? = null, + val body: Any? = null, + override val statusCode: Int = -1, + override val headers: Map> = mapOf() +) : ApiResponse(ResponseType.ClientError) + +class ServerError( + val message: String? = null, + val body: Any? = null, + override val statusCode: Int = -1, + override val headers: Map> +): ApiResponse(ResponseType.ServerError) diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/src/main/kotlin/org/openapitools/client/infrastructure/BigDecimalAdapter.kt b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/src/main/kotlin/org/openapitools/client/infrastructure/BigDecimalAdapter.kt new file mode 100644 index 00000000000..064b57fc6b8 --- /dev/null +++ b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/src/main/kotlin/org/openapitools/client/infrastructure/BigDecimalAdapter.kt @@ -0,0 +1,17 @@ +package org.openapitools.client.infrastructure + +import com.squareup.moshi.FromJson +import com.squareup.moshi.ToJson +import java.math.BigDecimal + +class BigDecimalAdapter { + @ToJson + fun toJson(value: BigDecimal): String { + return value.toPlainString() + } + + @FromJson + fun fromJson(value: String): BigDecimal { + return BigDecimal(value) + } +} diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/src/main/kotlin/org/openapitools/client/infrastructure/BigIntegerAdapter.kt b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/src/main/kotlin/org/openapitools/client/infrastructure/BigIntegerAdapter.kt new file mode 100644 index 00000000000..7df6057b450 --- /dev/null +++ b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/src/main/kotlin/org/openapitools/client/infrastructure/BigIntegerAdapter.kt @@ -0,0 +1,17 @@ +package org.openapitools.client.infrastructure + +import com.squareup.moshi.FromJson +import com.squareup.moshi.ToJson +import java.math.BigInteger + +class BigIntegerAdapter { + @ToJson + fun toJson(value: BigInteger): String { + return value.toString() + } + + @FromJson + fun fromJson(value: String): BigInteger { + return BigInteger(value) + } +} diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/src/main/kotlin/org/openapitools/client/infrastructure/ByteArrayAdapter.kt b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/src/main/kotlin/org/openapitools/client/infrastructure/ByteArrayAdapter.kt new file mode 100644 index 00000000000..ff5e2a81ee8 --- /dev/null +++ b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/src/main/kotlin/org/openapitools/client/infrastructure/ByteArrayAdapter.kt @@ -0,0 +1,12 @@ +package org.openapitools.client.infrastructure + +import com.squareup.moshi.FromJson +import com.squareup.moshi.ToJson + +class ByteArrayAdapter { + @ToJson + fun toJson(data: ByteArray): String = String(data) + + @FromJson + fun fromJson(data: String): ByteArray = data.toByteArray() +} diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/src/main/kotlin/org/openapitools/client/infrastructure/Errors.kt b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/src/main/kotlin/org/openapitools/client/infrastructure/Errors.kt new file mode 100644 index 00000000000..c83993b9055 --- /dev/null +++ b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/src/main/kotlin/org/openapitools/client/infrastructure/Errors.kt @@ -0,0 +1,18 @@ +@file:Suppress("unused") +package org.openapitools.client.infrastructure + +import java.lang.RuntimeException + +open class ClientException(message: kotlin.String? = null, val statusCode: Int = -1, val response: Response? = null) : RuntimeException(message) { + + companion object { + private const val serialVersionUID: Long = 123L + } +} + +open class ServerException(message: kotlin.String? = null, val statusCode: Int = -1, val response: Response? = null) : RuntimeException(message) { + + companion object { + private const val serialVersionUID: Long = 456L + } +} diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/src/main/kotlin/org/openapitools/client/infrastructure/LocalDateAdapter.kt b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/src/main/kotlin/org/openapitools/client/infrastructure/LocalDateAdapter.kt new file mode 100644 index 00000000000..b2e1654479a --- /dev/null +++ b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/src/main/kotlin/org/openapitools/client/infrastructure/LocalDateAdapter.kt @@ -0,0 +1,19 @@ +package org.openapitools.client.infrastructure + +import com.squareup.moshi.FromJson +import com.squareup.moshi.ToJson +import java.time.LocalDate +import java.time.format.DateTimeFormatter + +class LocalDateAdapter { + @ToJson + fun toJson(value: LocalDate): String { + return DateTimeFormatter.ISO_LOCAL_DATE.format(value) + } + + @FromJson + fun fromJson(value: String): LocalDate { + return LocalDate.parse(value, DateTimeFormatter.ISO_LOCAL_DATE) + } + +} diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/src/main/kotlin/org/openapitools/client/infrastructure/LocalDateTimeAdapter.kt b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/src/main/kotlin/org/openapitools/client/infrastructure/LocalDateTimeAdapter.kt new file mode 100644 index 00000000000..e082db94811 --- /dev/null +++ b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/src/main/kotlin/org/openapitools/client/infrastructure/LocalDateTimeAdapter.kt @@ -0,0 +1,19 @@ +package org.openapitools.client.infrastructure + +import com.squareup.moshi.FromJson +import com.squareup.moshi.ToJson +import java.time.LocalDateTime +import java.time.format.DateTimeFormatter + +class LocalDateTimeAdapter { + @ToJson + fun toJson(value: LocalDateTime): String { + return DateTimeFormatter.ISO_LOCAL_DATE_TIME.format(value) + } + + @FromJson + fun fromJson(value: String): LocalDateTime { + return LocalDateTime.parse(value, DateTimeFormatter.ISO_LOCAL_DATE_TIME) + } + +} diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/src/main/kotlin/org/openapitools/client/infrastructure/OffsetDateTimeAdapter.kt b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/src/main/kotlin/org/openapitools/client/infrastructure/OffsetDateTimeAdapter.kt new file mode 100644 index 00000000000..87437871a31 --- /dev/null +++ b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/src/main/kotlin/org/openapitools/client/infrastructure/OffsetDateTimeAdapter.kt @@ -0,0 +1,19 @@ +package org.openapitools.client.infrastructure + +import com.squareup.moshi.FromJson +import com.squareup.moshi.ToJson +import java.time.OffsetDateTime +import java.time.format.DateTimeFormatter + +class OffsetDateTimeAdapter { + @ToJson + fun toJson(value: OffsetDateTime): String { + return DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(value) + } + + @FromJson + fun fromJson(value: String): OffsetDateTime { + return OffsetDateTime.parse(value, DateTimeFormatter.ISO_OFFSET_DATE_TIME) + } + +} diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/src/main/kotlin/org/openapitools/client/infrastructure/PartConfig.kt b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/src/main/kotlin/org/openapitools/client/infrastructure/PartConfig.kt new file mode 100644 index 00000000000..be00e38fbae --- /dev/null +++ b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/src/main/kotlin/org/openapitools/client/infrastructure/PartConfig.kt @@ -0,0 +1,11 @@ +package org.openapitools.client.infrastructure + +/** + * Defines a config object for a given part of a multi-part request. + * NOTE: Headers is a Map because rfc2616 defines + * multi-valued headers as csv-only. + */ +data class PartConfig( + val headers: MutableMap = mutableMapOf(), + val body: T? = null +) diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/src/main/kotlin/org/openapitools/client/infrastructure/RequestConfig.kt b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/src/main/kotlin/org/openapitools/client/infrastructure/RequestConfig.kt new file mode 100644 index 00000000000..c3518a2d173 --- /dev/null +++ b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/src/main/kotlin/org/openapitools/client/infrastructure/RequestConfig.kt @@ -0,0 +1,18 @@ +package org.openapitools.client.infrastructure + +/** + * Defines a config object for a given request. + * NOTE: This object doesn't include 'body' because it + * allows for caching of the constructed object + * for many request definitions. + * NOTE: Headers is a Map because rfc2616 defines + * multi-valued headers as csv-only. + */ +data class RequestConfig( + val method: RequestMethod, + val path: String, + val headers: MutableMap = mutableMapOf(), + val query: MutableMap> = mutableMapOf(), + val requiresAuthentication: Boolean, + val body: T? = null +) diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/src/main/kotlin/org/openapitools/client/infrastructure/RequestMethod.kt b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/src/main/kotlin/org/openapitools/client/infrastructure/RequestMethod.kt new file mode 100644 index 00000000000..beb56f07cdd --- /dev/null +++ b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/src/main/kotlin/org/openapitools/client/infrastructure/RequestMethod.kt @@ -0,0 +1,8 @@ +package org.openapitools.client.infrastructure + +/** + * Provides enumerated HTTP verbs + */ +enum class RequestMethod { + GET, DELETE, HEAD, OPTIONS, PATCH, POST, PUT +} diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/src/main/kotlin/org/openapitools/client/infrastructure/ResponseExtensions.kt b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/src/main/kotlin/org/openapitools/client/infrastructure/ResponseExtensions.kt new file mode 100644 index 00000000000..9bd2790dc14 --- /dev/null +++ b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/src/main/kotlin/org/openapitools/client/infrastructure/ResponseExtensions.kt @@ -0,0 +1,24 @@ +package org.openapitools.client.infrastructure + +import okhttp3.Response + +/** + * Provides an extension to evaluation whether the response is a 1xx code + */ +val Response.isInformational : Boolean get() = this.code in 100..199 + +/** + * Provides an extension to evaluation whether the response is a 3xx code + */ +@Suppress("EXTENSION_SHADOWED_BY_MEMBER") +val Response.isRedirect : Boolean get() = this.code in 300..399 + +/** + * Provides an extension to evaluation whether the response is a 4xx code + */ +val Response.isClientError : Boolean get() = this.code in 400..499 + +/** + * Provides an extension to evaluation whether the response is a 5xx (Standard) through 999 (non-standard) code + */ +val Response.isServerError : Boolean get() = this.code in 500..999 diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/src/main/kotlin/org/openapitools/client/infrastructure/Serializer.kt b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/src/main/kotlin/org/openapitools/client/infrastructure/Serializer.kt new file mode 100644 index 00000000000..e22592e47d7 --- /dev/null +++ b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/src/main/kotlin/org/openapitools/client/infrastructure/Serializer.kt @@ -0,0 +1,23 @@ +package org.openapitools.client.infrastructure + +import com.squareup.moshi.Moshi +import com.squareup.moshi.kotlin.reflect.KotlinJsonAdapterFactory + +object Serializer { + @JvmStatic + val moshiBuilder: Moshi.Builder = Moshi.Builder() + .add(OffsetDateTimeAdapter()) + .add(LocalDateTimeAdapter()) + .add(LocalDateAdapter()) + .add(UUIDAdapter()) + .add(ByteArrayAdapter()) + .add(URIAdapter()) + .add(KotlinJsonAdapterFactory()) + .add(BigDecimalAdapter()) + .add(BigIntegerAdapter()) + + @JvmStatic + val moshi: Moshi by lazy { + moshiBuilder.build() + } +} diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/src/main/kotlin/org/openapitools/client/infrastructure/URIAdapter.kt b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/src/main/kotlin/org/openapitools/client/infrastructure/URIAdapter.kt new file mode 100644 index 00000000000..927522757da --- /dev/null +++ b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/src/main/kotlin/org/openapitools/client/infrastructure/URIAdapter.kt @@ -0,0 +1,13 @@ +package org.openapitools.client.infrastructure + +import com.squareup.moshi.FromJson +import com.squareup.moshi.ToJson +import java.net.URI + +class URIAdapter { + @ToJson + fun toJson(uri: URI) = uri.toString() + + @FromJson + fun fromJson(s: String): URI = URI.create(s) +} diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/src/main/kotlin/org/openapitools/client/infrastructure/UUIDAdapter.kt b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/src/main/kotlin/org/openapitools/client/infrastructure/UUIDAdapter.kt new file mode 100644 index 00000000000..7ccf7dc25d2 --- /dev/null +++ b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/src/main/kotlin/org/openapitools/client/infrastructure/UUIDAdapter.kt @@ -0,0 +1,13 @@ +package org.openapitools.client.infrastructure + +import com.squareup.moshi.FromJson +import com.squareup.moshi.ToJson +import java.util.UUID + +class UUIDAdapter { + @ToJson + fun toJson(uuid: UUID) = uuid.toString() + + @FromJson + fun fromJson(s: String): UUID = UUID.fromString(s) +} diff --git a/samples/server/others/kotlin-server/jaxrs-spec/src/main/kotlin/org/openapitools/server/apis/DefaultApi.kt b/samples/server/others/kotlin-server/jaxrs-spec/src/main/kotlin/org/openapitools/server/apis/DefaultApi.kt index c448f38e266..984bb8420d9 100644 --- a/samples/server/others/kotlin-server/jaxrs-spec/src/main/kotlin/org/openapitools/server/apis/DefaultApi.kt +++ b/samples/server/others/kotlin-server/jaxrs-spec/src/main/kotlin/org/openapitools/server/apis/DefaultApi.kt @@ -14,7 +14,7 @@ import java.io.InputStream class DefaultApi { @GET - suspend fun findPetsByStatus(@PathParam("path_default") pathDefault: kotlin.String,@PathParam("path_nullable") pathNullable: kotlin.String,@QueryParam("query_default") @DefaultValue("available") queryDefault: kotlin.String,@HeaderParam("header_default") @DefaultValue("available") headerDefault: kotlin.String,@CookieParam("cookie_default") @DefaultValue("available") cookieDefault: kotlin.String,@QueryParam("query_nullable") queryNullable: kotlin.String?,@HeaderParam("header_nullable") headerNullable: kotlin.String?,@CookieParam("cookie_nullable") cookieNullable: kotlin.String?): Response { + suspend fun findPetsByStatus(@PathParam("path_default") pathDefault: kotlin.String,@PathParam("path_nullable") pathNullable: kotlin.String,@QueryParam("query_default") @DefaultValue("available") queryDefault: kotlin.String,@HeaderParam("header_default") @DefaultValue("available") headerDefault: kotlin.String,@CookieParam("cookie_default") @DefaultValue("available") cookieDefault: kotlin.String,@QueryParam("query_nullable") queryNullable: kotlin.String?,@HeaderParam("header_nullable") headerNullable: kotlin.String?,@CookieParam("cookie_nullable") cookieNullable: kotlin.String?,@QueryParam("\$query-\$dollar-sign") dollarQueryDollarDollarSign: kotlin.String?): Response { return Response.ok().entity("magic!").build(); } }