diff --git a/bin/configs/unmaintained/kotlin-jvm-retrofit2-rx.yaml b/bin/configs/unmaintained/kotlin-jvm-retrofit2-rx.yaml deleted file mode 100644 index 882aa38c7c5..00000000000 --- a/bin/configs/unmaintained/kotlin-jvm-retrofit2-rx.yaml +++ /dev/null @@ -1,11 +0,0 @@ -generatorName: kotlin -outputDir: samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx -library: jvm-retrofit2 -inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml -templateDir: modules/openapi-generator/src/main/resources/kotlin-client -additionalProperties: - serializationLibrary: gson - useRxJava: "true" - artifactId: kotlin-petstore-rx-client - serializableModel: "true" - dateLibrary: java8 diff --git a/bin/configs/unmaintained/kotlin-jvm-retrofit2-rx2-kotlinx_serialization.yaml b/bin/configs/unmaintained/kotlin-jvm-retrofit2-rx2-kotlinx_serialization.yaml deleted file mode 100644 index afd9f324186..00000000000 --- a/bin/configs/unmaintained/kotlin-jvm-retrofit2-rx2-kotlinx_serialization.yaml +++ /dev/null @@ -1,11 +0,0 @@ -generatorName: kotlin -outputDir: samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2-kotlinx_serialization -library: jvm-retrofit2 -inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml -templateDir: modules/openapi-generator/src/main/resources/kotlin-client -additionalProperties: - serializationLibrary: kotlinx_serialization - useRxJava2: "true" - artifactId: kotlin-petstore-rx2-kotlinx_serialization-client - serializableModel: "true" - dateLibrary: java8 diff --git a/bin/configs/unmaintained/kotlin-jvm-retrofit2-rx2.yaml b/bin/configs/unmaintained/kotlin-jvm-retrofit2-rx2.yaml deleted file mode 100644 index 2332ff3be1f..00000000000 --- a/bin/configs/unmaintained/kotlin-jvm-retrofit2-rx2.yaml +++ /dev/null @@ -1,11 +0,0 @@ -generatorName: kotlin -outputDir: samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2 -library: jvm-retrofit2 -inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml -templateDir: modules/openapi-generator/src/main/resources/kotlin-client -additionalProperties: - serializationLibrary: gson - useRxJava2: "true" - artifactId: kotlin-petstore-rx2-client - serializableModel: "true" - dateLibrary: java8 diff --git a/docs/generators/kotlin.md b/docs/generators/kotlin.md index 07b1d811dce..20f682abfde 100644 --- a/docs/generators/kotlin.md +++ b/docs/generators/kotlin.md @@ -43,8 +43,6 @@ These options may be applied as additional-properties (cli) or configOptions (pl |sourceFolder|source folder for generated code| |src/main/kotlin| |supportAndroidApiLevel25AndBelow|[WARNING] This flag will generate code that has a known security vulnerability. It uses `kotlin.io.createTempFile` instead of `java.nio.file.Files.createTempFile` in order to support Android API level 25 and bellow. For more info, please check the following links https://github.com/OpenAPITools/openapi-generator/security/advisories/GHSA-23x4-m842-fmwf, https://github.com/OpenAPITools/openapi-generator/pull/9284| |false| |useCoroutines|Whether to use the Coroutines adapter with the retrofit2 library.| |false| -|useRxJava|Whether to use the RxJava adapter with the retrofit2 library. IMPORTANT: this option has been deprecated. Please use `useRxJava3` instead.| |false| -|useRxJava2|Whether to use the RxJava2 adapter with the retrofit2 library. IMPORTANT: this option has been deprecated. Please use `useRxJava3` instead.| |false| |useRxJava3|Whether to use the RxJava3 adapter with the retrofit2 library.| |false| |useSettingsGradle|Whether the project uses settings.gradle.| |false| diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/KotlinClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/KotlinClientCodegen.java index 3aa92513f64..f6fd6d359f0 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/KotlinClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/KotlinClientCodegen.java @@ -66,8 +66,6 @@ public class KotlinClientCodegen extends AbstractKotlinCodegen { protected static final String JVM_VERTX = "jvm-vertx"; protected static final String JVM_SPRING_WEBCLIENT = "jvm-spring-webclient"; - public static final String USE_RX_JAVA = "useRxJava"; - public static final String USE_RX_JAVA2 = "useRxJava2"; public static final String USE_RX_JAVA3 = "useRxJava3"; public static final String USE_COROUTINES = "useCoroutines"; public static final String DO_NOT_USE_RX_AND_COROUTINES = "doNotUseRxAndCoroutines"; @@ -236,8 +234,6 @@ public class KotlinClientCodegen extends AbstractKotlinCodegen { requestDateConverter.setDefault(this.requestDateConverter); cliOptions.add(requestDateConverter); - cliOptions.add(CliOption.newBoolean(USE_RX_JAVA, "Whether to use the RxJava adapter with the retrofit2 library. IMPORTANT: this option has been deprecated. Please use `useRxJava3` instead.")); - cliOptions.add(CliOption.newBoolean(USE_RX_JAVA2, "Whether to use the RxJava2 adapter with the retrofit2 library. IMPORTANT: this option has been deprecated. Please use `useRxJava3` instead.")); cliOptions.add(CliOption.newBoolean(USE_RX_JAVA3, "Whether to use the RxJava3 adapter with the retrofit2 library.")); cliOptions.add(CliOption.newBoolean(USE_COROUTINES, "Whether to use the Coroutines adapter with the retrofit2 library.")); cliOptions.add(CliOption.newBoolean(OMIT_GRADLE_PLUGIN_VERSIONS, "Whether to declare Gradle plugin versions in build files.")); @@ -276,30 +272,8 @@ public class KotlinClientCodegen extends AbstractKotlinCodegen { this.generateRoomModels = generateRoomModels; } - public void setUseRxJava(boolean useRxJava) { - if (useRxJava) { - this.useRxJava2 = false; - this.useRxJava3 = false; - this.doNotUseRxAndCoroutines = false; - this.useCoroutines = false; - } - this.useRxJava = useRxJava; - } - - public void setUseRxJava2(boolean useRxJava2) { - if (useRxJava2) { - this.useRxJava = false; - this.useRxJava3 = false; - this.doNotUseRxAndCoroutines = false; - this.useCoroutines = false; - } - this.useRxJava2 = useRxJava2; - } - public void setUseRxJava3(boolean useRxJava3) { if (useRxJava3) { - this.useRxJava = false; - this.useRxJava2 = false; this.doNotUseRxAndCoroutines = false; this.useCoroutines = false; } @@ -308,8 +282,6 @@ public class KotlinClientCodegen extends AbstractKotlinCodegen { public void setDoNotUseRxAndCoroutines(boolean doNotUseRxAndCoroutines) { if (doNotUseRxAndCoroutines) { - this.useRxJava = false; - this.useRxJava2 = false; this.useRxJava3 = false; this.useCoroutines = false; } @@ -318,8 +290,6 @@ public class KotlinClientCodegen extends AbstractKotlinCodegen { public void setUseCoroutines(boolean useCoroutines) { if (useCoroutines) { - this.useRxJava = false; - this.useRxJava2 = false; this.useRxJava3 = false; this.doNotUseRxAndCoroutines = false; } @@ -381,17 +351,9 @@ public class KotlinClientCodegen extends AbstractKotlinCodegen { super.processOpts(); - boolean hasRx = additionalProperties.containsKey(USE_RX_JAVA); - boolean hasRx2 = additionalProperties.containsKey(USE_RX_JAVA2); boolean hasRx3 = additionalProperties.containsKey(USE_RX_JAVA3); boolean hasCoroutines = additionalProperties.containsKey(USE_COROUTINES); int optionCount = 0; - if (hasRx) { - optionCount++; - } - if (hasRx2) { - optionCount++; - } if (hasRx3) { optionCount++; } @@ -403,17 +365,13 @@ public class KotlinClientCodegen extends AbstractKotlinCodegen { // RxJava & Coroutines if (hasConflict) { LOGGER.warn("You specified RxJava versions 1 and 2 and 3 or Coroutines together, please choose one of them."); - } else if (hasRx) { - this.setUseRxJava(Boolean.parseBoolean(additionalProperties.get(USE_RX_JAVA).toString())); - } else if (hasRx2) { - this.setUseRxJava2(Boolean.parseBoolean(additionalProperties.get(USE_RX_JAVA2).toString())); } else if (hasRx3) { this.setUseRxJava3(Boolean.parseBoolean(additionalProperties.get(USE_RX_JAVA3).toString())); } else if (hasCoroutines) { this.setUseCoroutines(Boolean.parseBoolean(additionalProperties.get(USE_COROUTINES).toString())); } - if (!hasRx && !hasRx2 && !hasRx3 && !hasCoroutines) { + if (!hasRx3 && !hasCoroutines) { setDoNotUseRxAndCoroutines(true); additionalProperties.put(DO_NOT_USE_RX_AND_COROUTINES, true); } diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/.openapi-generator-ignore b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/.openapi-generator-ignore deleted file mode 100644 index 7484ee590a3..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/.openapi-generator-ignore +++ /dev/null @@ -1,23 +0,0 @@ -# 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/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/.openapi-generator/FILES b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/.openapi-generator/FILES deleted file mode 100644 index 2fcf69d6457..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/.openapi-generator/FILES +++ /dev/null @@ -1,116 +0,0 @@ -README.md -build.gradle -docs/200Response.md -docs/AdditionalPropertiesClass.md -docs/Animal.md -docs/AnotherFakeApi.md -docs/ApiResponse.md -docs/ArrayOfArrayOfNumberOnly.md -docs/ArrayOfNumberOnly.md -docs/ArrayTest.md -docs/Capitalization.md -docs/Cat.md -docs/CatAllOf.md -docs/Category.md -docs/ClassModel.md -docs/Client.md -docs/DefaultApi.md -docs/Dog.md -docs/DogAllOf.md -docs/EnumArrays.md -docs/EnumClass.md -docs/EnumTest.md -docs/FakeApi.md -docs/FakeClassnameTags123Api.md -docs/FileSchemaTestClass.md -docs/Foo.md -docs/FormatTest.md -docs/HasOnlyReadOnly.md -docs/HealthCheckResult.md -docs/InlineResponseDefault.md -docs/List.md -docs/MapTest.md -docs/MixedPropertiesAndAdditionalPropertiesClass.md -docs/Name.md -docs/NullableClass.md -docs/NumberOnly.md -docs/Order.md -docs/OuterComposite.md -docs/OuterEnum.md -docs/OuterEnumDefaultValue.md -docs/OuterEnumInteger.md -docs/OuterEnumIntegerDefaultValue.md -docs/Pet.md -docs/PetApi.md -docs/ReadOnlyFirst.md -docs/Return.md -docs/SpecialModelName.md -docs/StoreApi.md -docs/Tag.md -docs/User.md -docs/UserApi.md -settings.gradle -src/main/kotlin/org/openapitools/client/apis/AnotherFakeApi.kt -src/main/kotlin/org/openapitools/client/apis/DefaultApi.kt -src/main/kotlin/org/openapitools/client/apis/FakeApi.kt -src/main/kotlin/org/openapitools/client/apis/FakeClassnameTags123Api.kt -src/main/kotlin/org/openapitools/client/apis/PetApi.kt -src/main/kotlin/org/openapitools/client/apis/StoreApi.kt -src/main/kotlin/org/openapitools/client/apis/UserApi.kt -src/main/kotlin/org/openapitools/client/auth/ApiKeyAuth.kt -src/main/kotlin/org/openapitools/client/auth/HttpBasicAuth.kt -src/main/kotlin/org/openapitools/client/auth/HttpBearerAuth.kt -src/main/kotlin/org/openapitools/client/auth/OAuth.kt -src/main/kotlin/org/openapitools/client/auth/OAuthFlow.kt -src/main/kotlin/org/openapitools/client/auth/OAuthOkHttpClient.kt -src/main/kotlin/org/openapitools/client/infrastructure/ApiClient.kt -src/main/kotlin/org/openapitools/client/infrastructure/ByteArrayAdapter.kt -src/main/kotlin/org/openapitools/client/infrastructure/CollectionFormats.kt -src/main/kotlin/org/openapitools/client/infrastructure/DateAdapter.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/ResponseExt.kt -src/main/kotlin/org/openapitools/client/infrastructure/Serializer.kt -src/main/kotlin/org/openapitools/client/models/AdditionalPropertiesClass.kt -src/main/kotlin/org/openapitools/client/models/Animal.kt -src/main/kotlin/org/openapitools/client/models/ApiResponse.kt -src/main/kotlin/org/openapitools/client/models/ArrayOfArrayOfNumberOnly.kt -src/main/kotlin/org/openapitools/client/models/ArrayOfNumberOnly.kt -src/main/kotlin/org/openapitools/client/models/ArrayTest.kt -src/main/kotlin/org/openapitools/client/models/Capitalization.kt -src/main/kotlin/org/openapitools/client/models/Cat.kt -src/main/kotlin/org/openapitools/client/models/CatAllOf.kt -src/main/kotlin/org/openapitools/client/models/Category.kt -src/main/kotlin/org/openapitools/client/models/ClassModel.kt -src/main/kotlin/org/openapitools/client/models/Client.kt -src/main/kotlin/org/openapitools/client/models/Dog.kt -src/main/kotlin/org/openapitools/client/models/DogAllOf.kt -src/main/kotlin/org/openapitools/client/models/EnumArrays.kt -src/main/kotlin/org/openapitools/client/models/EnumClass.kt -src/main/kotlin/org/openapitools/client/models/EnumTest.kt -src/main/kotlin/org/openapitools/client/models/FileSchemaTestClass.kt -src/main/kotlin/org/openapitools/client/models/Foo.kt -src/main/kotlin/org/openapitools/client/models/FormatTest.kt -src/main/kotlin/org/openapitools/client/models/HasOnlyReadOnly.kt -src/main/kotlin/org/openapitools/client/models/HealthCheckResult.kt -src/main/kotlin/org/openapitools/client/models/InlineResponseDefault.kt -src/main/kotlin/org/openapitools/client/models/List.kt -src/main/kotlin/org/openapitools/client/models/MapTest.kt -src/main/kotlin/org/openapitools/client/models/MixedPropertiesAndAdditionalPropertiesClass.kt -src/main/kotlin/org/openapitools/client/models/Model200Response.kt -src/main/kotlin/org/openapitools/client/models/Name.kt -src/main/kotlin/org/openapitools/client/models/NullableClass.kt -src/main/kotlin/org/openapitools/client/models/NumberOnly.kt -src/main/kotlin/org/openapitools/client/models/Order.kt -src/main/kotlin/org/openapitools/client/models/OuterComposite.kt -src/main/kotlin/org/openapitools/client/models/OuterEnum.kt -src/main/kotlin/org/openapitools/client/models/OuterEnumDefaultValue.kt -src/main/kotlin/org/openapitools/client/models/OuterEnumInteger.kt -src/main/kotlin/org/openapitools/client/models/OuterEnumIntegerDefaultValue.kt -src/main/kotlin/org/openapitools/client/models/Pet.kt -src/main/kotlin/org/openapitools/client/models/ReadOnlyFirst.kt -src/main/kotlin/org/openapitools/client/models/Return.kt -src/main/kotlin/org/openapitools/client/models/SpecialModelname.kt -src/main/kotlin/org/openapitools/client/models/Tag.kt -src/main/kotlin/org/openapitools/client/models/User.kt diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/.openapi-generator/VERSION b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/.openapi-generator/VERSION deleted file mode 100644 index 3fa3b389a57..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -5.0.1-SNAPSHOT \ No newline at end of file diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/README.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/README.md deleted file mode 100644 index 1d23b6fdad2..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/README.md +++ /dev/null @@ -1,167 +0,0 @@ -# org.openapitools.client - Kotlin client library for OpenAPI Petstore - -## Requires - -* Kotlin 1.3.61 -* Gradle 4.9 - -## 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://petstore.swagger.io:80/v2* - -Class | Method | HTTP request | Description ------------- | ------------- | ------------- | ------------- -*AnotherFakeApi* | [**call123testSpecialTags**](docs/AnotherFakeApi.md#call123testspecialtags) | **PATCH** another-fake/dummy | To test special tags -*DefaultApi* | [**fooGet**](docs/DefaultApi.md#fooget) | **GET** foo | -*FakeApi* | [**fakeHealthGet**](docs/FakeApi.md#fakehealthget) | **GET** fake/health | Health check endpoint -*FakeApi* | [**fakeHttpSignatureTest**](docs/FakeApi.md#fakehttpsignaturetest) | **GET** fake/http-signature-test | test http signature authentication -*FakeApi* | [**fakeOuterBooleanSerialize**](docs/FakeApi.md#fakeouterbooleanserialize) | **POST** fake/outer/boolean | -*FakeApi* | [**fakeOuterCompositeSerialize**](docs/FakeApi.md#fakeoutercompositeserialize) | **POST** fake/outer/composite | -*FakeApi* | [**fakeOuterNumberSerialize**](docs/FakeApi.md#fakeouternumberserialize) | **POST** fake/outer/number | -*FakeApi* | [**fakeOuterStringSerialize**](docs/FakeApi.md#fakeouterstringserialize) | **POST** fake/outer/string | -*FakeApi* | [**testBodyWithFileSchema**](docs/FakeApi.md#testbodywithfileschema) | **PUT** fake/body-with-file-schema | -*FakeApi* | [**testBodyWithQueryParams**](docs/FakeApi.md#testbodywithqueryparams) | **PUT** fake/body-with-query-params | -*FakeApi* | [**testClientModel**](docs/FakeApi.md#testclientmodel) | **PATCH** fake | To test \"client\" model -*FakeApi* | [**testEndpointParameters**](docs/FakeApi.md#testendpointparameters) | **POST** fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 -*FakeApi* | [**testEnumParameters**](docs/FakeApi.md#testenumparameters) | **GET** fake | To test enum parameters -*FakeApi* | [**testGroupParameters**](docs/FakeApi.md#testgroupparameters) | **DELETE** fake | Fake endpoint to test group parameters (optional) -*FakeApi* | [**testInlineAdditionalProperties**](docs/FakeApi.md#testinlineadditionalproperties) | **POST** fake/inline-additionalProperties | test inline additionalProperties -*FakeApi* | [**testJsonFormData**](docs/FakeApi.md#testjsonformdata) | **GET** fake/jsonFormData | test json serialization of form data -*FakeApi* | [**testQueryParameterCollectionFormat**](docs/FakeApi.md#testqueryparametercollectionformat) | **PUT** fake/test-query-parameters | -*FakeClassnameTags123Api* | [**testClassname**](docs/FakeClassnameTags123Api.md#testclassname) | **PATCH** fake_classname_test | To test class name in snake case -*PetApi* | [**addPet**](docs/PetApi.md#addpet) | **POST** pet | Add a new pet to the store -*PetApi* | [**deletePet**](docs/PetApi.md#deletepet) | **DELETE** pet/{petId} | Deletes a pet -*PetApi* | [**findPetsByStatus**](docs/PetApi.md#findpetsbystatus) | **GET** pet/findByStatus | Finds Pets by status -*PetApi* | [**findPetsByTags**](docs/PetApi.md#findpetsbytags) | **GET** pet/findByTags | Finds Pets by tags -*PetApi* | [**getPetById**](docs/PetApi.md#getpetbyid) | **GET** pet/{petId} | Find pet by ID -*PetApi* | [**updatePet**](docs/PetApi.md#updatepet) | **PUT** pet | Update an existing pet -*PetApi* | [**updatePetWithForm**](docs/PetApi.md#updatepetwithform) | **POST** pet/{petId} | Updates a pet in the store with form data -*PetApi* | [**uploadFile**](docs/PetApi.md#uploadfile) | **POST** pet/{petId}/uploadImage | uploads an image -*PetApi* | [**uploadFileWithRequiredFile**](docs/PetApi.md#uploadfilewithrequiredfile) | **POST** fake/{petId}/uploadImageWithRequiredFile | uploads an image (required) -*StoreApi* | [**deleteOrder**](docs/StoreApi.md#deleteorder) | **DELETE** store/order/{order_id} | Delete purchase order by ID -*StoreApi* | [**getInventory**](docs/StoreApi.md#getinventory) | **GET** store/inventory | Returns pet inventories by status -*StoreApi* | [**getOrderById**](docs/StoreApi.md#getorderbyid) | **GET** store/order/{order_id} | Find purchase order by ID -*StoreApi* | [**placeOrder**](docs/StoreApi.md#placeorder) | **POST** store/order | Place an order for a pet -*UserApi* | [**createUser**](docs/UserApi.md#createuser) | **POST** user | Create user -*UserApi* | [**createUsersWithArrayInput**](docs/UserApi.md#createuserswitharrayinput) | **POST** user/createWithArray | Creates list of users with given input array -*UserApi* | [**createUsersWithListInput**](docs/UserApi.md#createuserswithlistinput) | **POST** user/createWithList | Creates list of users with given input array -*UserApi* | [**deleteUser**](docs/UserApi.md#deleteuser) | **DELETE** user/{username} | Delete user -*UserApi* | [**getUserByName**](docs/UserApi.md#getuserbyname) | **GET** user/{username} | Get user by user name -*UserApi* | [**loginUser**](docs/UserApi.md#loginuser) | **GET** user/login | Logs user into the system -*UserApi* | [**logoutUser**](docs/UserApi.md#logoutuser) | **GET** user/logout | Logs out current logged in user session -*UserApi* | [**updateUser**](docs/UserApi.md#updateuser) | **PUT** user/{username} | Updated user - - - -## Documentation for Models - - - [org.openapitools.client.models.AdditionalPropertiesClass](docs/AdditionalPropertiesClass.md) - - [org.openapitools.client.models.Animal](docs/Animal.md) - - [org.openapitools.client.models.ApiResponse](docs/ApiResponse.md) - - [org.openapitools.client.models.ArrayOfArrayOfNumberOnly](docs/ArrayOfArrayOfNumberOnly.md) - - [org.openapitools.client.models.ArrayOfNumberOnly](docs/ArrayOfNumberOnly.md) - - [org.openapitools.client.models.ArrayTest](docs/ArrayTest.md) - - [org.openapitools.client.models.Capitalization](docs/Capitalization.md) - - [org.openapitools.client.models.Cat](docs/Cat.md) - - [org.openapitools.client.models.CatAllOf](docs/CatAllOf.md) - - [org.openapitools.client.models.Category](docs/Category.md) - - [org.openapitools.client.models.ClassModel](docs/ClassModel.md) - - [org.openapitools.client.models.Client](docs/Client.md) - - [org.openapitools.client.models.Dog](docs/Dog.md) - - [org.openapitools.client.models.DogAllOf](docs/DogAllOf.md) - - [org.openapitools.client.models.EnumArrays](docs/EnumArrays.md) - - [org.openapitools.client.models.EnumClass](docs/EnumClass.md) - - [org.openapitools.client.models.EnumTest](docs/EnumTest.md) - - [org.openapitools.client.models.FileSchemaTestClass](docs/FileSchemaTestClass.md) - - [org.openapitools.client.models.Foo](docs/Foo.md) - - [org.openapitools.client.models.FormatTest](docs/FormatTest.md) - - [org.openapitools.client.models.HasOnlyReadOnly](docs/HasOnlyReadOnly.md) - - [org.openapitools.client.models.HealthCheckResult](docs/HealthCheckResult.md) - - [org.openapitools.client.models.InlineResponseDefault](docs/InlineResponseDefault.md) - - [org.openapitools.client.models.List](docs/List.md) - - [org.openapitools.client.models.MapTest](docs/MapTest.md) - - [org.openapitools.client.models.MixedPropertiesAndAdditionalPropertiesClass](docs/MixedPropertiesAndAdditionalPropertiesClass.md) - - [org.openapitools.client.models.Model200Response](docs/Model200Response.md) - - [org.openapitools.client.models.Name](docs/Name.md) - - [org.openapitools.client.models.NullableClass](docs/NullableClass.md) - - [org.openapitools.client.models.NumberOnly](docs/NumberOnly.md) - - [org.openapitools.client.models.Order](docs/Order.md) - - [org.openapitools.client.models.OuterComposite](docs/OuterComposite.md) - - [org.openapitools.client.models.OuterEnum](docs/OuterEnum.md) - - [org.openapitools.client.models.OuterEnumDefaultValue](docs/OuterEnumDefaultValue.md) - - [org.openapitools.client.models.OuterEnumInteger](docs/OuterEnumInteger.md) - - [org.openapitools.client.models.OuterEnumIntegerDefaultValue](docs/OuterEnumIntegerDefaultValue.md) - - [org.openapitools.client.models.Pet](docs/Pet.md) - - [org.openapitools.client.models.ReadOnlyFirst](docs/ReadOnlyFirst.md) - - [org.openapitools.client.models.Return](docs/Return.md) - - [org.openapitools.client.models.SpecialModelname](docs/SpecialModelname.md) - - [org.openapitools.client.models.Tag](docs/Tag.md) - - [org.openapitools.client.models.User](docs/User.md) - - - -## Documentation for Authorization - - -### api_key - -- **Type**: API key -- **API key parameter name**: api_key -- **Location**: HTTP header - - -### api_key_query - -- **Type**: API key -- **API key parameter name**: api_key_query -- **Location**: URL query string - - -### bearer_test - -- **Type**: HTTP basic authentication - - -### http_basic_test - -- **Type**: HTTP basic authentication - - -### http_signature_test - -- **Type**: HTTP basic authentication - - -### petstore_auth - -- **Type**: OAuth -- **Flow**: implicit -- **Authorization URL**: http://petstore.swagger.io/api/oauth/dialog -- **Scopes**: - - write:pets: modify pets in your account - - read:pets: read your pets - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/build.gradle b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/build.gradle deleted file mode 100644 index d459b42d020..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/build.gradle +++ /dev/null @@ -1,43 +0,0 @@ -group 'org.openapitools' -version '1.0.0' - -wrapper { - gradleVersion = '4.9' - distributionUrl = "https://services.gradle.org/distributions/gradle-$gradleVersion-all.zip" -} - -buildscript { - ext.kotlin_version = '1.3.61' - ext.retrofitVersion = '2.6.2' - ext.rxJavaVersion = '1.3.8' - - repositories { - maven { url "https://repo1.maven.org/maven2" } - } - dependencies { - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" - } -} - -apply plugin: 'kotlin' - -repositories { - maven { url "https://repo1.maven.org/maven2" } -} - -test { - useJUnitPlatform() -} - -dependencies { - compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version" - compile "com.google.code.gson:gson:2.8.6" - compile "org.apache.oltu.oauth2:org.apache.oltu.oauth2.client:1.0.0" - compile "com.squareup.okhttp3:logging-interceptor:4.4.0" - compile "io.reactivex:rxjava:$rxJavaVersion" - compile "com.squareup.retrofit2:adapter-rxjava:$retrofitVersion" - compile "com.squareup.retrofit2:retrofit:$retrofitVersion" - compile "com.squareup.retrofit2:converter-gson:$retrofitVersion" - compile "com.squareup.retrofit2:converter-scalars:$retrofitVersion" - testCompile "io.kotlintest:kotlintest-runner-junit5:3.1.0" -} diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/200Response.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/200Response.md deleted file mode 100644 index 53c1edacfb8..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/200Response.md +++ /dev/null @@ -1,11 +0,0 @@ - -# Model200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **kotlin.Int** | | [optional] -**propertyClass** | **kotlin.String** | | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/AdditionalPropertiesClass.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/AdditionalPropertiesClass.md deleted file mode 100644 index 1025301ce94..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/AdditionalPropertiesClass.md +++ /dev/null @@ -1,11 +0,0 @@ - -# AdditionalPropertiesClass - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**mapProperty** | **kotlin.collections.Map<kotlin.String, kotlin.String>** | | [optional] -**mapOfMapProperty** | **kotlin.collections.Map<kotlin.String, kotlin.collections.Map<kotlin.String, kotlin.String>>** | | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/Animal.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/Animal.md deleted file mode 100644 index 5ce5a4972c8..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/Animal.md +++ /dev/null @@ -1,11 +0,0 @@ - -# Animal - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**className** | **kotlin.String** | | -**color** | **kotlin.String** | | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/AnotherFakeApi.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/AnotherFakeApi.md deleted file mode 100644 index 807d93ebe74..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/AnotherFakeApi.md +++ /dev/null @@ -1,47 +0,0 @@ -# AnotherFakeApi - -All URIs are relative to *http://petstore.swagger.io:80/v2* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**call123testSpecialTags**](AnotherFakeApi.md#call123testSpecialTags) | **PATCH** another-fake/dummy | To test special tags - - - -To test special tags - -To test special tags and operation ID starting with number - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(AnotherFakeApi::class.java) -val client : Client = // Client | client model - -val result : Client = webService.call123testSpecialTags(client) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | - -### Return type - -[**Client**](Client.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/ApiResponse.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/ApiResponse.md deleted file mode 100644 index 6b4c6bf2779..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/ApiResponse.md +++ /dev/null @@ -1,12 +0,0 @@ - -# ApiResponse - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **kotlin.Int** | | [optional] -**type** | **kotlin.String** | | [optional] -**message** | **kotlin.String** | | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/ArrayOfArrayOfNumberOnly.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/ArrayOfArrayOfNumberOnly.md deleted file mode 100644 index bcc306caeb6..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/ArrayOfArrayOfNumberOnly.md +++ /dev/null @@ -1,10 +0,0 @@ - -# ArrayOfArrayOfNumberOnly - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**arrayArrayNumber** | **kotlin.collections.List<kotlin.collections.List<java.math.BigDecimal>>** | | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/ArrayOfNumberOnly.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/ArrayOfNumberOnly.md deleted file mode 100644 index 00c57a7885e..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/ArrayOfNumberOnly.md +++ /dev/null @@ -1,10 +0,0 @@ - -# ArrayOfNumberOnly - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**arrayNumber** | [**kotlin.collections.List<java.math.BigDecimal>**](java.math.BigDecimal.md) | | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/ArrayTest.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/ArrayTest.md deleted file mode 100644 index 45e59c8fe77..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/ArrayTest.md +++ /dev/null @@ -1,12 +0,0 @@ - -# ArrayTest - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**arrayOfString** | **kotlin.collections.List<kotlin.String>** | | [optional] -**arrayArrayOfInteger** | **kotlin.collections.List<kotlin.collections.List<kotlin.Long>>** | | [optional] -**arrayArrayOfModel** | **kotlin.collections.List<kotlin.collections.List<ReadOnlyFirst>>** | | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/Capitalization.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/Capitalization.md deleted file mode 100644 index 9d44a82fb7f..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/Capitalization.md +++ /dev/null @@ -1,15 +0,0 @@ - -# Capitalization - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**smallCamel** | **kotlin.String** | | [optional] -**capitalCamel** | **kotlin.String** | | [optional] -**smallSnake** | **kotlin.String** | | [optional] -**capitalSnake** | **kotlin.String** | | [optional] -**scAETHFlowPoints** | **kotlin.String** | | [optional] -**ATT_NAME** | **kotlin.String** | Name of the pet | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/Cat.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/Cat.md deleted file mode 100644 index b6da7c47ced..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/Cat.md +++ /dev/null @@ -1,10 +0,0 @@ - -# Cat - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**declawed** | **kotlin.Boolean** | | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/CatAllOf.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/CatAllOf.md deleted file mode 100644 index fb8883197a1..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/CatAllOf.md +++ /dev/null @@ -1,10 +0,0 @@ - -# CatAllOf - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**declawed** | **kotlin.Boolean** | | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/Category.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/Category.md deleted file mode 100644 index 1f12c3eb158..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/Category.md +++ /dev/null @@ -1,11 +0,0 @@ - -# Category - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **kotlin.String** | | -**id** | **kotlin.Long** | | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/ClassModel.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/ClassModel.md deleted file mode 100644 index 50ad61b51a5..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/ClassModel.md +++ /dev/null @@ -1,10 +0,0 @@ - -# ClassModel - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**propertyClass** | **kotlin.String** | | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/Client.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/Client.md deleted file mode 100644 index 11afbcf0c9f..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/Client.md +++ /dev/null @@ -1,10 +0,0 @@ - -# Client - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**client** | **kotlin.String** | | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/DefaultApi.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/DefaultApi.md deleted file mode 100644 index 1b907e27cb6..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/DefaultApi.md +++ /dev/null @@ -1,41 +0,0 @@ -# DefaultApi - -All URIs are relative to *http://petstore.swagger.io:80/v2* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**fooGet**](DefaultApi.md#fooGet) | **GET** foo | - - - - - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(DefaultApi::class.java) - -val result : InlineResponseDefault = webService.fooGet() -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**InlineResponseDefault**](InlineResponseDefault.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/Dog.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/Dog.md deleted file mode 100644 index 41d9c6ba0d1..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/Dog.md +++ /dev/null @@ -1,10 +0,0 @@ - -# Dog - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**breed** | **kotlin.String** | | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/DogAllOf.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/DogAllOf.md deleted file mode 100644 index 6b14d5e9147..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/DogAllOf.md +++ /dev/null @@ -1,10 +0,0 @@ - -# DogAllOf - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**breed** | **kotlin.String** | | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/EnumArrays.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/EnumArrays.md deleted file mode 100644 index c3c5e235bfe..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/EnumArrays.md +++ /dev/null @@ -1,25 +0,0 @@ - -# EnumArrays - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**justSymbol** | [**inline**](#JustSymbolEnum) | | [optional] -**arrayEnum** | [**inline**](#kotlin.collections.List<ArrayEnumEnum>) | | [optional] - - - -## Enum: just_symbol -Name | Value ----- | ----- -justSymbol | >=, $ - - - -## Enum: array_enum -Name | Value ----- | ----- -arrayEnum | fish, crab - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/EnumClass.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/EnumClass.md deleted file mode 100644 index 5ddb262871f..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/EnumClass.md +++ /dev/null @@ -1,14 +0,0 @@ - -# EnumClass - -## Enum - - - * `abc` (value: `"_abc"`) - - * `minusEfg` (value: `"-efg"`) - - * `leftParenthesisXyzRightParenthesis` (value: `"(xyz)"`) - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/EnumTest.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/EnumTest.md deleted file mode 100644 index f0370049eb3..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/EnumTest.md +++ /dev/null @@ -1,45 +0,0 @@ - -# EnumTest - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**enumStringRequired** | [**inline**](#EnumStringRequiredEnum) | | -**enumString** | [**inline**](#EnumStringEnum) | | [optional] -**enumInteger** | [**inline**](#EnumIntegerEnum) | | [optional] -**enumNumber** | [**inline**](#EnumNumberEnum) | | [optional] -**outerEnum** | [**OuterEnum**](OuterEnum.md) | | [optional] -**outerEnumInteger** | [**OuterEnumInteger**](OuterEnumInteger.md) | | [optional] -**outerEnumDefaultValue** | [**OuterEnumDefaultValue**](OuterEnumDefaultValue.md) | | [optional] -**outerEnumIntegerDefaultValue** | [**OuterEnumIntegerDefaultValue**](OuterEnumIntegerDefaultValue.md) | | [optional] - - - -## Enum: enum_string_required -Name | Value ----- | ----- -enumStringRequired | UPPER, lower, - - - -## Enum: enum_string -Name | Value ----- | ----- -enumString | UPPER, lower, - - - -## Enum: enum_integer -Name | Value ----- | ----- -enumInteger | 1, -1 - - - -## Enum: enum_number -Name | Value ----- | ----- -enumNumber | 1.1, -1.2 - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/FakeApi.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/FakeApi.md deleted file mode 100644 index 29f5fd073c0..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/FakeApi.md +++ /dev/null @@ -1,651 +0,0 @@ -# FakeApi - -All URIs are relative to *http://petstore.swagger.io:80/v2* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**fakeHealthGet**](FakeApi.md#fakeHealthGet) | **GET** fake/health | Health check endpoint -[**fakeHttpSignatureTest**](FakeApi.md#fakeHttpSignatureTest) | **GET** fake/http-signature-test | test http signature authentication -[**fakeOuterBooleanSerialize**](FakeApi.md#fakeOuterBooleanSerialize) | **POST** fake/outer/boolean | -[**fakeOuterCompositeSerialize**](FakeApi.md#fakeOuterCompositeSerialize) | **POST** fake/outer/composite | -[**fakeOuterNumberSerialize**](FakeApi.md#fakeOuterNumberSerialize) | **POST** fake/outer/number | -[**fakeOuterStringSerialize**](FakeApi.md#fakeOuterStringSerialize) | **POST** fake/outer/string | -[**testBodyWithFileSchema**](FakeApi.md#testBodyWithFileSchema) | **PUT** fake/body-with-file-schema | -[**testBodyWithQueryParams**](FakeApi.md#testBodyWithQueryParams) | **PUT** fake/body-with-query-params | -[**testClientModel**](FakeApi.md#testClientModel) | **PATCH** fake | To test \"client\" model -[**testEndpointParameters**](FakeApi.md#testEndpointParameters) | **POST** fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 -[**testEnumParameters**](FakeApi.md#testEnumParameters) | **GET** fake | To test enum parameters -[**testGroupParameters**](FakeApi.md#testGroupParameters) | **DELETE** fake | Fake endpoint to test group parameters (optional) -[**testInlineAdditionalProperties**](FakeApi.md#testInlineAdditionalProperties) | **POST** fake/inline-additionalProperties | test inline additionalProperties -[**testJsonFormData**](FakeApi.md#testJsonFormData) | **GET** fake/jsonFormData | test json serialization of form data -[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** fake/test-query-parameters | - - - -Health check endpoint - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(FakeApi::class.java) - -val result : HealthCheckResult = webService.fakeHealthGet() -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**HealthCheckResult**](HealthCheckResult.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -test http signature authentication - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(FakeApi::class.java) -val pet : Pet = // Pet | Pet object that needs to be added to the store -val query1 : kotlin.String = query1_example // kotlin.String | query parameter -val header1 : kotlin.String = header1_example // kotlin.String | header parameter - -webService.fakeHttpSignatureTest(pet, query1, header1) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | - **query1** | **kotlin.String**| query parameter | [optional] - **header1** | **kotlin.String**| header parameter | [optional] - -### Return type - -null (empty response body) - -### Authorization - - - -### HTTP request headers - - - **Content-Type**: application/json, application/xml - - **Accept**: Not defined - - - - -Test serialization of outer boolean types - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(FakeApi::class.java) -val body : kotlin.Boolean = true // kotlin.Boolean | Input boolean as post body - -val result : kotlin.Boolean = webService.fakeOuterBooleanSerialize(body) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **kotlin.Boolean**| Input boolean as post body | [optional] - -### Return type - -**kotlin.Boolean** - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: */* - - - - -Test serialization of object with outer number type - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(FakeApi::class.java) -val outerComposite : OuterComposite = // OuterComposite | Input composite as post body - -val result : OuterComposite = webService.fakeOuterCompositeSerialize(outerComposite) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **outerComposite** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional] - -### Return type - -[**OuterComposite**](OuterComposite.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: */* - - - - -Test serialization of outer number types - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(FakeApi::class.java) -val body : java.math.BigDecimal = 8.14 // java.math.BigDecimal | Input number as post body - -val result : java.math.BigDecimal = webService.fakeOuterNumberSerialize(body) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **java.math.BigDecimal**| Input number as post body | [optional] - -### Return type - -[**java.math.BigDecimal**](java.math.BigDecimal.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: */* - - - - -Test serialization of outer string types - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(FakeApi::class.java) -val body : kotlin.String = body_example // kotlin.String | Input string as post body - -val result : kotlin.String = webService.fakeOuterStringSerialize(body) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **kotlin.String**| Input string as post body | [optional] - -### Return type - -**kotlin.String** - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: */* - - - - -For this test, the body for this request much reference a schema named `File`. - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(FakeApi::class.java) -val fileSchemaTestClass : FileSchemaTestClass = // FileSchemaTestClass | - -webService.testBodyWithFileSchema(fileSchemaTestClass) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: Not defined - - - - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(FakeApi::class.java) -val query : kotlin.String = query_example // kotlin.String | -val user : User = // User | - -webService.testBodyWithQueryParams(query, user) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **query** | **kotlin.String**| | - **user** | [**User**](User.md)| | - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: Not defined - - -To test \"client\" model - -To test \"client\" model - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(FakeApi::class.java) -val client : Client = // Client | client model - -val result : Client = webService.testClientModel(client) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | - -### Return type - -[**Client**](Client.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - -Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - -Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -apiClient.setCredentials("USERNAME", "PASSWORD") -val webService = apiClient.createWebservice(FakeApi::class.java) -val number : java.math.BigDecimal = 8.14 // java.math.BigDecimal | None -val double : kotlin.Double = 1.2 // kotlin.Double | None -val patternWithoutDelimiter : kotlin.String = patternWithoutDelimiter_example // kotlin.String | None -val byte : kotlin.ByteArray = BYTE_ARRAY_DATA_HERE // kotlin.ByteArray | None -val integer : kotlin.Int = 56 // kotlin.Int | None -val int32 : kotlin.Int = 56 // kotlin.Int | None -val int64 : kotlin.Long = 789 // kotlin.Long | None -val float : kotlin.Float = 3.4 // kotlin.Float | None -val string : kotlin.String = string_example // kotlin.String | None -val binary : java.io.File = BINARY_DATA_HERE // java.io.File | None -val date : java.time.LocalDate = 2013-10-20 // java.time.LocalDate | None -val dateTime : java.time.OffsetDateTime = 2013-10-20T19:20:30+01:00 // java.time.OffsetDateTime | None -val password : kotlin.String = password_example // kotlin.String | None -val paramCallback : kotlin.String = paramCallback_example // kotlin.String | None - -webService.testEndpointParameters(number, double, patternWithoutDelimiter, byte, integer, int32, int64, float, string, binary, date, dateTime, password, paramCallback) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **number** | **java.math.BigDecimal**| None | - **double** | **kotlin.Double**| None | - **patternWithoutDelimiter** | **kotlin.String**| None | - **byte** | **kotlin.ByteArray**| None | - **integer** | **kotlin.Int**| None | [optional] - **int32** | **kotlin.Int**| None | [optional] - **int64** | **kotlin.Long**| None | [optional] - **float** | **kotlin.Float**| None | [optional] - **string** | **kotlin.String**| None | [optional] - **binary** | **java.io.File**| None | [optional] - **date** | **java.time.LocalDate**| None | [optional] - **dateTime** | **java.time.OffsetDateTime**| None | [optional] - **password** | **kotlin.String**| None | [optional] - **paramCallback** | **kotlin.String**| None | [optional] - -### Return type - -null (empty response body) - -### Authorization - - -Configure http_basic_test: - ApiClient().setCredentials("USERNAME", "PASSWORD") - -### HTTP request headers - - - **Content-Type**: application/x-www-form-urlencoded - - **Accept**: Not defined - - -To test enum parameters - -To test enum parameters - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(FakeApi::class.java) -val enumHeaderStringArray : kotlin.collections.List = // kotlin.collections.List | Header parameter enum test (string array) -val enumHeaderString : kotlin.String = enumHeaderString_example // kotlin.String | Header parameter enum test (string) -val enumQueryStringArray : kotlin.collections.List = // kotlin.collections.List | Query parameter enum test (string array) -val enumQueryString : kotlin.String = enumQueryString_example // kotlin.String | Query parameter enum test (string) -val enumQueryInteger : kotlin.Int = 56 // kotlin.Int | Query parameter enum test (double) -val enumQueryDouble : kotlin.Double = 1.2 // kotlin.Double | Query parameter enum test (double) -val enumFormStringArray : kotlin.collections.List = enumFormStringArray_example // kotlin.collections.List | Form parameter enum test (string array) -val enumFormString : kotlin.String = enumFormString_example // kotlin.String | Form parameter enum test (string) - -webService.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **enumHeaderStringArray** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| Header parameter enum test (string array) | [optional] [enum: >, $] - **enumHeaderString** | **kotlin.String**| Header parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] - **enumQueryStringArray** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| Query parameter enum test (string array) | [optional] [enum: >, $] - **enumQueryString** | **kotlin.String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] - **enumQueryInteger** | **kotlin.Int**| Query parameter enum test (double) | [optional] [enum: 1, -2] - **enumQueryDouble** | **kotlin.Double**| Query parameter enum test (double) | [optional] [enum: 1.1, -1.2] - **enumFormStringArray** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| Form parameter enum test (string array) | [optional] [default to $] [enum: >, $] - **enumFormString** | **kotlin.String**| Form parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/x-www-form-urlencoded - - **Accept**: Not defined - - -Fake endpoint to test group parameters (optional) - -Fake endpoint to test group parameters (optional) - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -apiClient.setBearerToken("TOKEN") -val webService = apiClient.createWebservice(FakeApi::class.java) -val requiredStringGroup : kotlin.Int = 56 // kotlin.Int | Required String in group parameters -val requiredBooleanGroup : kotlin.Boolean = true // kotlin.Boolean | Required Boolean in group parameters -val requiredInt64Group : kotlin.Long = 789 // kotlin.Long | Required Integer in group parameters -val stringGroup : kotlin.Int = 56 // kotlin.Int | String in group parameters -val booleanGroup : kotlin.Boolean = true // kotlin.Boolean | Boolean in group parameters -val int64Group : kotlin.Long = 789 // kotlin.Long | Integer in group parameters - -webService.testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **requiredStringGroup** | **kotlin.Int**| Required String in group parameters | - **requiredBooleanGroup** | **kotlin.Boolean**| Required Boolean in group parameters | - **requiredInt64Group** | **kotlin.Long**| Required Integer in group parameters | - **stringGroup** | **kotlin.Int**| String in group parameters | [optional] - **booleanGroup** | **kotlin.Boolean**| Boolean in group parameters | [optional] - **int64Group** | **kotlin.Long**| Integer in group parameters | [optional] - -### Return type - -null (empty response body) - -### Authorization - - -Configure bearer_test: - ApiClient().setBearerToken("TOKEN") - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: Not defined - - -test inline additionalProperties - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(FakeApi::class.java) -val requestBody : kotlin.collections.Map = // kotlin.collections.Map | request body - -webService.testInlineAdditionalProperties(requestBody) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **requestBody** | [**kotlin.collections.Map<kotlin.String, kotlin.String>**](kotlin.String.md)| request body | - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: Not defined - - -test json serialization of form data - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(FakeApi::class.java) -val param : kotlin.String = param_example // kotlin.String | field1 -val param2 : kotlin.String = param2_example // kotlin.String | field2 - -webService.testJsonFormData(param, param2) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **param** | **kotlin.String**| field1 | - **param2** | **kotlin.String**| field2 | - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/x-www-form-urlencoded - - **Accept**: Not defined - - - - -To test the collection format in query parameters - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(FakeApi::class.java) -val pipe : kotlin.collections.List = // kotlin.collections.List | -val ioutil : kotlin.collections.List = // kotlin.collections.List | -val http : kotlin.collections.List = // kotlin.collections.List | -val url : kotlin.collections.List = // kotlin.collections.List | -val context : kotlin.collections.List = // kotlin.collections.List | - -webService.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pipe** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| | - **ioutil** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| | - **http** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| | - **url** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| | - **context** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| | - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: Not defined - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/FakeClassnameTags123Api.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/FakeClassnameTags123Api.md deleted file mode 100644 index 2f6a955e487..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/FakeClassnameTags123Api.md +++ /dev/null @@ -1,47 +0,0 @@ -# FakeClassnameTags123Api - -All URIs are relative to *http://petstore.swagger.io:80/v2* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**testClassname**](FakeClassnameTags123Api.md#testClassname) | **PATCH** fake_classname_test | To test class name in snake case - - - -To test class name in snake case - -To test class name in snake case - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(FakeClassnameTags123Api::class.java) -val client : Client = // Client | client model - -val result : Client = webService.testClassname(client) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | - -### Return type - -[**Client**](Client.md) - -### Authorization - - - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/FileSchemaTestClass.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/FileSchemaTestClass.md deleted file mode 100644 index e5512f82f6f..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/FileSchemaTestClass.md +++ /dev/null @@ -1,11 +0,0 @@ - -# FileSchemaTestClass - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**file** | [**java.io.File**](java.io.File.md) | | [optional] -**files** | [**kotlin.collections.List<java.io.File>**](java.io.File.md) | | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/Foo.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/Foo.md deleted file mode 100644 index e3e9918872b..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/Foo.md +++ /dev/null @@ -1,10 +0,0 @@ - -# Foo - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**bar** | **kotlin.String** | | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/FormatTest.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/FormatTest.md deleted file mode 100644 index 01b408499e7..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/FormatTest.md +++ /dev/null @@ -1,25 +0,0 @@ - -# FormatTest - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**number** | [**java.math.BigDecimal**](java.math.BigDecimal.md) | | -**byte** | **kotlin.ByteArray** | | -**date** | [**java.time.LocalDate**](java.time.LocalDate.md) | | -**password** | **kotlin.String** | | -**integer** | **kotlin.Int** | | [optional] -**int32** | **kotlin.Int** | | [optional] -**int64** | **kotlin.Long** | | [optional] -**float** | **kotlin.Float** | | [optional] -**double** | **kotlin.Double** | | [optional] -**decimal** | [**java.math.BigDecimal**](java.math.BigDecimal.md) | | [optional] -**string** | **kotlin.String** | | [optional] -**binary** | [**java.io.File**](java.io.File.md) | | [optional] -**dateTime** | [**java.time.OffsetDateTime**](java.time.OffsetDateTime.md) | | [optional] -**uuid** | [**java.util.UUID**](java.util.UUID.md) | | [optional] -**patternWithDigits** | **kotlin.String** | A string that is a 10 digit number. Can have leading zeros. | [optional] -**patternWithDigitsAndDelimiter** | **kotlin.String** | A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/HasOnlyReadOnly.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/HasOnlyReadOnly.md deleted file mode 100644 index ed3e4750f44..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/HasOnlyReadOnly.md +++ /dev/null @@ -1,11 +0,0 @@ - -# HasOnlyReadOnly - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**bar** | **kotlin.String** | | [optional] [readonly] -**foo** | **kotlin.String** | | [optional] [readonly] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/HealthCheckResult.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/HealthCheckResult.md deleted file mode 100644 index 472dc310457..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/HealthCheckResult.md +++ /dev/null @@ -1,10 +0,0 @@ - -# HealthCheckResult - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**nullableMessage** | **kotlin.String** | | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/InlineObject.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/InlineObject.md deleted file mode 100644 index 2156c70addf..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/InlineObject.md +++ /dev/null @@ -1,11 +0,0 @@ - -# InlineObject - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **kotlin.String** | Updated name of the pet | [optional] -**status** | **kotlin.String** | Updated status of the pet | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/InlineObject1.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/InlineObject1.md deleted file mode 100644 index 2a77eecba2b..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/InlineObject1.md +++ /dev/null @@ -1,11 +0,0 @@ - -# InlineObject1 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**additionalMetadata** | **kotlin.String** | Additional data to pass to server | [optional] -**file** | [**java.io.File**](java.io.File.md) | file to upload | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/InlineObject2.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/InlineObject2.md deleted file mode 100644 index a98ffe031b3..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/InlineObject2.md +++ /dev/null @@ -1,25 +0,0 @@ - -# InlineObject2 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**enumFormStringArray** | [**inline**](#kotlin.collections.List<EnumFormStringArrayEnum>) | Form parameter enum test (string array) | [optional] -**enumFormString** | [**inline**](#EnumFormStringEnum) | Form parameter enum test (string) | [optional] - - - -## Enum: enum_form_string_array -Name | Value ----- | ----- -enumFormStringArray | >, $ - - - -## Enum: enum_form_string -Name | Value ----- | ----- -enumFormString | _abc, -efg, (xyz) - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/InlineObject3.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/InlineObject3.md deleted file mode 100644 index 4ca6979b280..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/InlineObject3.md +++ /dev/null @@ -1,23 +0,0 @@ - -# InlineObject3 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**number** | [**java.math.BigDecimal**](java.math.BigDecimal.md) | None | -**double** | **kotlin.Double** | None | -**patternWithoutDelimiter** | **kotlin.String** | None | -**byte** | **kotlin.ByteArray** | None | -**integer** | **kotlin.Int** | None | [optional] -**int32** | **kotlin.Int** | None | [optional] -**int64** | **kotlin.Long** | None | [optional] -**float** | **kotlin.Float** | None | [optional] -**string** | **kotlin.String** | None | [optional] -**binary** | [**java.io.File**](java.io.File.md) | None | [optional] -**date** | [**java.time.LocalDate**](java.time.LocalDate.md) | None | [optional] -**dateTime** | [**java.time.OffsetDateTime**](java.time.OffsetDateTime.md) | None | [optional] -**password** | **kotlin.String** | None | [optional] -**callback** | **kotlin.String** | None | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/InlineObject4.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/InlineObject4.md deleted file mode 100644 index 03c4daa7631..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/InlineObject4.md +++ /dev/null @@ -1,11 +0,0 @@ - -# InlineObject4 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**param** | **kotlin.String** | field1 | -**param2** | **kotlin.String** | field2 | - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/InlineObject5.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/InlineObject5.md deleted file mode 100644 index c3c020b20f6..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/InlineObject5.md +++ /dev/null @@ -1,11 +0,0 @@ - -# InlineObject5 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**requiredFile** | [**java.io.File**](java.io.File.md) | file to upload | -**additionalMetadata** | **kotlin.String** | Additional data to pass to server | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/InlineResponseDefault.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/InlineResponseDefault.md deleted file mode 100644 index afdd81b1383..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/InlineResponseDefault.md +++ /dev/null @@ -1,10 +0,0 @@ - -# InlineResponseDefault - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**string** | [**Foo**](Foo.md) | | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/List.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/List.md deleted file mode 100644 index f426d541a40..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/List.md +++ /dev/null @@ -1,10 +0,0 @@ - -# List - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**`123list`** | **kotlin.String** | | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/MapTest.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/MapTest.md deleted file mode 100644 index 8cee39e3604..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/MapTest.md +++ /dev/null @@ -1,20 +0,0 @@ - -# MapTest - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**mapMapOfString** | **kotlin.collections.Map<kotlin.String, kotlin.collections.Map<kotlin.String, kotlin.String>>** | | [optional] -**mapOfEnumString** | [**inline**](#kotlin.collections.Map<kotlin.String, InnerEnum>) | | [optional] -**directMap** | **kotlin.collections.Map<kotlin.String, kotlin.Boolean>** | | [optional] -**indirectMap** | **kotlin.collections.Map<kotlin.String, kotlin.Boolean>** | | [optional] - - - -## Enum: map_of_enum_string -Name | Value ----- | ----- -mapOfEnumString | UPPER, lower - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/MixedPropertiesAndAdditionalPropertiesClass.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/MixedPropertiesAndAdditionalPropertiesClass.md deleted file mode 100644 index 74456741217..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/MixedPropertiesAndAdditionalPropertiesClass.md +++ /dev/null @@ -1,12 +0,0 @@ - -# MixedPropertiesAndAdditionalPropertiesClass - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**uuid** | [**java.util.UUID**](java.util.UUID.md) | | [optional] -**dateTime** | [**java.time.OffsetDateTime**](java.time.OffsetDateTime.md) | | [optional] -**map** | [**kotlin.collections.Map<kotlin.String, Animal>**](Animal.md) | | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/Name.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/Name.md deleted file mode 100644 index 343700533c7..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/Name.md +++ /dev/null @@ -1,13 +0,0 @@ - -# Name - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **kotlin.Int** | | -**snakeCase** | **kotlin.Int** | | [optional] [readonly] -**property** | **kotlin.String** | | [optional] -**`123number`** | **kotlin.Int** | | [optional] [readonly] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/NullableClass.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/NullableClass.md deleted file mode 100644 index 335943c01ea..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/NullableClass.md +++ /dev/null @@ -1,21 +0,0 @@ - -# NullableClass - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**integerProp** | **kotlin.Int** | | [optional] -**numberProp** | [**java.math.BigDecimal**](java.math.BigDecimal.md) | | [optional] -**booleanProp** | **kotlin.Boolean** | | [optional] -**stringProp** | **kotlin.String** | | [optional] -**dateProp** | [**java.time.LocalDate**](java.time.LocalDate.md) | | [optional] -**datetimeProp** | [**java.time.OffsetDateTime**](java.time.OffsetDateTime.md) | | [optional] -**arrayNullableProp** | [**kotlin.collections.List<kotlin.Any>**](kotlin.Any.md) | | [optional] -**arrayAndItemsNullableProp** | [**kotlin.collections.List<kotlin.Any>**](kotlin.Any.md) | | [optional] -**arrayItemsNullable** | [**kotlin.collections.List<kotlin.Any>**](kotlin.Any.md) | | [optional] -**objectNullableProp** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | [optional] -**objectAndItemsNullableProp** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | [optional] -**objectItemsNullable** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/NumberOnly.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/NumberOnly.md deleted file mode 100644 index 41e8b82470b..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/NumberOnly.md +++ /dev/null @@ -1,10 +0,0 @@ - -# NumberOnly - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**justNumber** | [**java.math.BigDecimal**](java.math.BigDecimal.md) | | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/Order.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/Order.md deleted file mode 100644 index 5112f08958d..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/Order.md +++ /dev/null @@ -1,22 +0,0 @@ - -# Order - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **kotlin.Long** | | [optional] -**petId** | **kotlin.Long** | | [optional] -**quantity** | **kotlin.Int** | | [optional] -**shipDate** | [**java.time.OffsetDateTime**](java.time.OffsetDateTime.md) | | [optional] -**status** | [**inline**](#StatusEnum) | Order Status | [optional] -**complete** | **kotlin.Boolean** | | [optional] - - - -## Enum: status -Name | Value ----- | ----- -status | placed, approved, delivered - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/OuterComposite.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/OuterComposite.md deleted file mode 100644 index 5296703674d..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/OuterComposite.md +++ /dev/null @@ -1,12 +0,0 @@ - -# OuterComposite - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**myNumber** | [**java.math.BigDecimal**](java.math.BigDecimal.md) | | [optional] -**myString** | **kotlin.String** | | [optional] -**myBoolean** | **kotlin.Boolean** | | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/OuterEnum.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/OuterEnum.md deleted file mode 100644 index 9e7ecb9499a..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/OuterEnum.md +++ /dev/null @@ -1,14 +0,0 @@ - -# OuterEnum - -## Enum - - - * `placed` (value: `"placed"`) - - * `approved` (value: `"approved"`) - - * `delivered` (value: `"delivered"`) - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/OuterEnumDefaultValue.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/OuterEnumDefaultValue.md deleted file mode 100644 index 821d297a001..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/OuterEnumDefaultValue.md +++ /dev/null @@ -1,14 +0,0 @@ - -# OuterEnumDefaultValue - -## Enum - - - * `placed` (value: `"placed"`) - - * `approved` (value: `"approved"`) - - * `delivered` (value: `"delivered"`) - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/OuterEnumInteger.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/OuterEnumInteger.md deleted file mode 100644 index b40f6e4b7ef..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/OuterEnumInteger.md +++ /dev/null @@ -1,14 +0,0 @@ - -# OuterEnumInteger - -## Enum - - - * `_0` (value: `0`) - - * `_1` (value: `1`) - - * `_2` (value: `2`) - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/OuterEnumIntegerDefaultValue.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/OuterEnumIntegerDefaultValue.md deleted file mode 100644 index c2fb3ee41d7..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/OuterEnumIntegerDefaultValue.md +++ /dev/null @@ -1,14 +0,0 @@ - -# OuterEnumIntegerDefaultValue - -## Enum - - - * `_0` (value: `0`) - - * `_1` (value: `1`) - - * `_2` (value: `2`) - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/Pet.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/Pet.md deleted file mode 100644 index c82844b5ee8..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/Pet.md +++ /dev/null @@ -1,22 +0,0 @@ - -# Pet - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **kotlin.String** | | -**photoUrls** | **kotlin.collections.List<kotlin.String>** | | -**id** | **kotlin.Long** | | [optional] -**category** | [**Category**](Category.md) | | [optional] -**tags** | [**kotlin.collections.List<Tag>**](Tag.md) | | [optional] -**status** | [**inline**](#StatusEnum) | pet status in the store | [optional] - - - -## Enum: status -Name | Value ----- | ----- -status | available, pending, sold - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/PetApi.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/PetApi.md deleted file mode 100644 index 32d031b57a9..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/PetApi.md +++ /dev/null @@ -1,361 +0,0 @@ -# PetApi - -All URIs are relative to *http://petstore.swagger.io:80/v2* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**addPet**](PetApi.md#addPet) | **POST** pet | Add a new pet to the store -[**deletePet**](PetApi.md#deletePet) | **DELETE** pet/{petId} | Deletes a pet -[**findPetsByStatus**](PetApi.md#findPetsByStatus) | **GET** pet/findByStatus | Finds Pets by status -[**findPetsByTags**](PetApi.md#findPetsByTags) | **GET** pet/findByTags | Finds Pets by tags -[**getPetById**](PetApi.md#getPetById) | **GET** pet/{petId} | Find pet by ID -[**updatePet**](PetApi.md#updatePet) | **PUT** pet | Update an existing pet -[**updatePetWithForm**](PetApi.md#updatePetWithForm) | **POST** pet/{petId} | Updates a pet in the store with form data -[**uploadFile**](PetApi.md#uploadFile) | **POST** pet/{petId}/uploadImage | uploads an image -[**uploadFileWithRequiredFile**](PetApi.md#uploadFileWithRequiredFile) | **POST** fake/{petId}/uploadImageWithRequiredFile | uploads an image (required) - - - -Add a new pet to the store - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(PetApi::class.java) -val pet : Pet = // Pet | Pet object that needs to be added to the store - -webService.addPet(pet) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | - -### Return type - -null (empty response body) - -### Authorization - - - -### HTTP request headers - - - **Content-Type**: application/json, application/xml - - **Accept**: Not defined - - -Deletes a pet - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(PetApi::class.java) -val petId : kotlin.Long = 789 // kotlin.Long | Pet id to delete -val apiKey : kotlin.String = apiKey_example // kotlin.String | - -webService.deletePet(petId, apiKey) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **petId** | **kotlin.Long**| Pet id to delete | - **apiKey** | **kotlin.String**| | [optional] - -### Return type - -null (empty response body) - -### Authorization - - - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: Not defined - - -Finds Pets by status - -Multiple status values can be provided with comma separated strings - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(PetApi::class.java) -val status : kotlin.collections.List = // kotlin.collections.List | Status values that need to be considered for filter - -val result : kotlin.collections.List = webService.findPetsByStatus(status) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **status** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| Status values that need to be considered for filter | [enum: available, pending, sold] - -### Return type - -[**kotlin.collections.List<Pet>**](Pet.md) - -### Authorization - - - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/xml, application/json - - -Finds Pets by tags - -Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(PetApi::class.java) -val tags : kotlin.collections.List = // kotlin.collections.List | Tags to filter by - -val result : kotlin.collections.List = webService.findPetsByTags(tags) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **tags** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| Tags to filter by | - -### Return type - -[**kotlin.collections.List<Pet>**](Pet.md) - -### Authorization - - - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/xml, application/json - - -Find pet by ID - -Returns a single pet - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(PetApi::class.java) -val petId : kotlin.Long = 789 // kotlin.Long | ID of pet to return - -val result : Pet = webService.getPetById(petId) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **petId** | **kotlin.Long**| ID of pet to return | - -### Return type - -[**Pet**](Pet.md) - -### Authorization - - - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/xml, application/json - - -Update an existing pet - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(PetApi::class.java) -val pet : Pet = // Pet | Pet object that needs to be added to the store - -webService.updatePet(pet) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | - -### Return type - -null (empty response body) - -### Authorization - - - -### HTTP request headers - - - **Content-Type**: application/json, application/xml - - **Accept**: Not defined - - -Updates a pet in the store with form data - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(PetApi::class.java) -val petId : kotlin.Long = 789 // kotlin.Long | ID of pet that needs to be updated -val name : kotlin.String = name_example // kotlin.String | Updated name of the pet -val status : kotlin.String = status_example // kotlin.String | Updated status of the pet - -webService.updatePetWithForm(petId, name, status) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **petId** | **kotlin.Long**| ID of pet that needs to be updated | - **name** | **kotlin.String**| Updated name of the pet | [optional] - **status** | **kotlin.String**| Updated status of the pet | [optional] - -### Return type - -null (empty response body) - -### Authorization - - - -### HTTP request headers - - - **Content-Type**: application/x-www-form-urlencoded - - **Accept**: Not defined - - -uploads an image - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(PetApi::class.java) -val petId : kotlin.Long = 789 // kotlin.Long | ID of pet to update -val additionalMetadata : kotlin.String = additionalMetadata_example // kotlin.String | Additional data to pass to server -val file : java.io.File = BINARY_DATA_HERE // java.io.File | file to upload - -val result : ApiResponse = webService.uploadFile(petId, additionalMetadata, file) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **petId** | **kotlin.Long**| ID of pet to update | - **additionalMetadata** | **kotlin.String**| Additional data to pass to server | [optional] - **file** | **java.io.File**| file to upload | [optional] - -### Return type - -[**ApiResponse**](ApiResponse.md) - -### Authorization - - - -### HTTP request headers - - - **Content-Type**: multipart/form-data - - **Accept**: application/json - - -uploads an image (required) - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(PetApi::class.java) -val petId : kotlin.Long = 789 // kotlin.Long | ID of pet to update -val requiredFile : java.io.File = BINARY_DATA_HERE // java.io.File | file to upload -val additionalMetadata : kotlin.String = additionalMetadata_example // kotlin.String | Additional data to pass to server - -val result : ApiResponse = webService.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **petId** | **kotlin.Long**| ID of pet to update | - **requiredFile** | **java.io.File**| file to upload | - **additionalMetadata** | **kotlin.String**| Additional data to pass to server | [optional] - -### Return type - -[**ApiResponse**](ApiResponse.md) - -### Authorization - - - -### HTTP request headers - - - **Content-Type**: multipart/form-data - - **Accept**: application/json - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/ReadOnlyFirst.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/ReadOnlyFirst.md deleted file mode 100644 index 825f613f090..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/ReadOnlyFirst.md +++ /dev/null @@ -1,11 +0,0 @@ - -# ReadOnlyFirst - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**bar** | **kotlin.String** | | [optional] [readonly] -**baz** | **kotlin.String** | | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/Return.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/Return.md deleted file mode 100644 index a5437240dc3..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/Return.md +++ /dev/null @@ -1,10 +0,0 @@ - -# Return - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**`return`** | **kotlin.Int** | | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/SpecialModelName.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/SpecialModelName.md deleted file mode 100644 index b179e705ab0..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/SpecialModelName.md +++ /dev/null @@ -1,10 +0,0 @@ - -# SpecialModelname - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**dollarSpecialPropertyName** | **kotlin.Long** | | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/StoreApi.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/StoreApi.md deleted file mode 100644 index 6679986a80d..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/StoreApi.md +++ /dev/null @@ -1,158 +0,0 @@ -# StoreApi - -All URIs are relative to *http://petstore.swagger.io:80/v2* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**deleteOrder**](StoreApi.md#deleteOrder) | **DELETE** store/order/{order_id} | Delete purchase order by ID -[**getInventory**](StoreApi.md#getInventory) | **GET** store/inventory | Returns pet inventories by status -[**getOrderById**](StoreApi.md#getOrderById) | **GET** store/order/{order_id} | Find purchase order by ID -[**placeOrder**](StoreApi.md#placeOrder) | **POST** store/order | Place an order for a pet - - - -Delete purchase order by ID - -For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(StoreApi::class.java) -val orderId : kotlin.String = orderId_example // kotlin.String | ID of the order that needs to be deleted - -webService.deleteOrder(orderId) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **orderId** | **kotlin.String**| ID of the order that needs to be deleted | - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: Not defined - - -Returns pet inventories by status - -Returns a map of status codes to quantities - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(StoreApi::class.java) - -val result : kotlin.collections.Map = webService.getInventory() -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -**kotlin.collections.Map<kotlin.String, kotlin.Int>** - -### Authorization - - - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -Find purchase order by ID - -For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(StoreApi::class.java) -val orderId : kotlin.Long = 789 // kotlin.Long | ID of pet that needs to be fetched - -val result : Order = webService.getOrderById(orderId) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **orderId** | **kotlin.Long**| ID of pet that needs to be fetched | - -### Return type - -[**Order**](Order.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/xml, application/json - - -Place an order for a pet - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(StoreApi::class.java) -val order : Order = // Order | order placed for purchasing the pet - -val result : Order = webService.placeOrder(order) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **order** | [**Order**](Order.md)| order placed for purchasing the pet | - -### Return type - -[**Order**](Order.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/xml, application/json - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/Tag.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/Tag.md deleted file mode 100644 index 60ce1bcdbad..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/Tag.md +++ /dev/null @@ -1,11 +0,0 @@ - -# Tag - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **kotlin.Long** | | [optional] -**name** | **kotlin.String** | | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/User.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/User.md deleted file mode 100644 index e801729b5ed..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/User.md +++ /dev/null @@ -1,17 +0,0 @@ - -# User - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **kotlin.Long** | | [optional] -**username** | **kotlin.String** | | [optional] -**firstName** | **kotlin.String** | | [optional] -**lastName** | **kotlin.String** | | [optional] -**email** | **kotlin.String** | | [optional] -**password** | **kotlin.String** | | [optional] -**phone** | **kotlin.String** | | [optional] -**userStatus** | **kotlin.Int** | User Status | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/UserApi.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/UserApi.md deleted file mode 100644 index bb904d243cf..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/UserApi.md +++ /dev/null @@ -1,310 +0,0 @@ -# UserApi - -All URIs are relative to *http://petstore.swagger.io:80/v2* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createUser**](UserApi.md#createUser) | **POST** user | Create user -[**createUsersWithArrayInput**](UserApi.md#createUsersWithArrayInput) | **POST** user/createWithArray | Creates list of users with given input array -[**createUsersWithListInput**](UserApi.md#createUsersWithListInput) | **POST** user/createWithList | Creates list of users with given input array -[**deleteUser**](UserApi.md#deleteUser) | **DELETE** user/{username} | Delete user -[**getUserByName**](UserApi.md#getUserByName) | **GET** user/{username} | Get user by user name -[**loginUser**](UserApi.md#loginUser) | **GET** user/login | Logs user into the system -[**logoutUser**](UserApi.md#logoutUser) | **GET** user/logout | Logs out current logged in user session -[**updateUser**](UserApi.md#updateUser) | **PUT** user/{username} | Updated user - - - -Create user - -This can only be done by the logged in user. - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(UserApi::class.java) -val user : User = // User | Created user object - -webService.createUser(user) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **user** | [**User**](User.md)| Created user object | - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: Not defined - - -Creates list of users with given input array - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(UserApi::class.java) -val user : kotlin.collections.List = // kotlin.collections.List | List of user object - -webService.createUsersWithArrayInput(user) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **user** | [**kotlin.collections.List<User>**](User.md)| List of user object | - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: Not defined - - -Creates list of users with given input array - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(UserApi::class.java) -val user : kotlin.collections.List = // kotlin.collections.List | List of user object - -webService.createUsersWithListInput(user) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **user** | [**kotlin.collections.List<User>**](User.md)| List of user object | - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: Not defined - - -Delete user - -This can only be done by the logged in user. - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(UserApi::class.java) -val username : kotlin.String = username_example // kotlin.String | The name that needs to be deleted - -webService.deleteUser(username) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **username** | **kotlin.String**| The name that needs to be deleted | - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: Not defined - - -Get user by user name - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(UserApi::class.java) -val username : kotlin.String = username_example // kotlin.String | The name that needs to be fetched. Use user1 for testing. - -val result : User = webService.getUserByName(username) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **username** | **kotlin.String**| The name that needs to be fetched. Use user1 for testing. | - -### Return type - -[**User**](User.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/xml, application/json - - -Logs user into the system - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(UserApi::class.java) -val username : kotlin.String = username_example // kotlin.String | The user name for login -val password : kotlin.String = password_example // kotlin.String | The password for login in clear text - -val result : kotlin.String = webService.loginUser(username, password) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **username** | **kotlin.String**| The user name for login | - **password** | **kotlin.String**| The password for login in clear text | - -### Return type - -**kotlin.String** - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/xml, application/json - - -Logs out current logged in user session - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(UserApi::class.java) - -webService.logoutUser() -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: Not defined - - -Updated user - -This can only be done by the logged in user. - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(UserApi::class.java) -val username : kotlin.String = username_example // kotlin.String | name that need to be deleted -val user : User = // User | Updated user object - -webService.updateUser(username, user) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **username** | **kotlin.String**| name that need to be deleted | - **user** | [**User**](User.md)| Updated user object | - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: Not defined - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/settings.gradle b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/settings.gradle deleted file mode 100644 index 06f03c0c413..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/settings.gradle +++ /dev/null @@ -1,2 +0,0 @@ - -rootProject.name = 'kotlin-petstore-rx-client' \ No newline at end of file diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/apis/AnotherFakeApi.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/apis/AnotherFakeApi.kt deleted file mode 100644 index 2a83ecce73e..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/apis/AnotherFakeApi.kt +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapitools.client.apis - -import org.openapitools.client.infrastructure.CollectionFormats.* -import retrofit2.http.* -import okhttp3.RequestBody -import rx.Observable - -import org.openapitools.client.models.Client - -interface AnotherFakeApi { - /** - * To test special tags - * To test special tags and operation ID starting with number - * Responses: - * - 200: successful operation - * - * @param client client model - * @return [Call]<[Client]> - */ - @PATCH("another-fake/dummy") - fun call123testSpecialTags(@Body client: Client): Observable - -} diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/apis/DefaultApi.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/apis/DefaultApi.kt deleted file mode 100644 index c4aa25b4eea..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/apis/DefaultApi.kt +++ /dev/null @@ -1,22 +0,0 @@ -package org.openapitools.client.apis - -import org.openapitools.client.infrastructure.CollectionFormats.* -import retrofit2.http.* -import okhttp3.RequestBody -import rx.Observable - -import org.openapitools.client.models.InlineResponseDefault - -interface DefaultApi { - /** - * - * - * Responses: - * - 0: response - * - * @return [Call]<[InlineResponseDefault]> - */ - @GET("foo") - fun fooGet(): Observable - -} diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/apis/FakeApi.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/apis/FakeApi.kt deleted file mode 100644 index dc48e24db4c..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/apis/FakeApi.kt +++ /dev/null @@ -1,235 +0,0 @@ -package org.openapitools.client.apis - -import org.openapitools.client.infrastructure.CollectionFormats.* -import retrofit2.http.* -import okhttp3.RequestBody -import rx.Observable - -import org.openapitools.client.models.Client -import org.openapitools.client.models.FileSchemaTestClass -import org.openapitools.client.models.HealthCheckResult -import org.openapitools.client.models.OuterComposite -import org.openapitools.client.models.Pet -import org.openapitools.client.models.User - -import okhttp3.MultipartBody - -interface FakeApi { - /** - * Health check endpoint - * - * Responses: - * - 200: The instance started successfully - * - * @return [Call]<[HealthCheckResult]> - */ - @GET("fake/health") - fun fakeHealthGet(): Observable - - /** - * test http signature authentication - * - * Responses: - * - 200: The instance started successfully - * - * @param pet Pet object that needs to be added to the store - * @param query1 query parameter (optional) - * @param header1 header parameter (optional) - * @return [Call]<[Unit]> - */ - @GET("fake/http-signature-test") - fun fakeHttpSignatureTest(@Body pet: Pet, @Query("query_1") query1: kotlin.String? = null, @Header("header_1") header1: kotlin.String): Observable - - /** - * - * Test serialization of outer boolean types - * Responses: - * - 200: Output boolean - * - * @param body Input boolean as post body (optional) - * @return [Call]<[kotlin.Boolean]> - */ - @POST("fake/outer/boolean") - fun fakeOuterBooleanSerialize(@Body body: kotlin.Boolean? = null): Observable - - /** - * - * Test serialization of object with outer number type - * Responses: - * - 200: Output composite - * - * @param outerComposite Input composite as post body (optional) - * @return [Call]<[OuterComposite]> - */ - @POST("fake/outer/composite") - fun fakeOuterCompositeSerialize(@Body outerComposite: OuterComposite? = null): Observable - - /** - * - * Test serialization of outer number types - * Responses: - * - 200: Output number - * - * @param body Input number as post body (optional) - * @return [Call]<[java.math.BigDecimal]> - */ - @POST("fake/outer/number") - fun fakeOuterNumberSerialize(@Body body: java.math.BigDecimal? = null): Observable - - /** - * - * Test serialization of outer string types - * Responses: - * - 200: Output string - * - * @param body Input string as post body (optional) - * @return [Call]<[kotlin.String]> - */ - @POST("fake/outer/string") - fun fakeOuterStringSerialize(@Body body: kotlin.String? = null): Observable - - /** - * - * For this test, the body for this request much reference a schema named `File`. - * Responses: - * - 200: Success - * - * @param fileSchemaTestClass - * @return [Call]<[Unit]> - */ - @PUT("fake/body-with-file-schema") - fun testBodyWithFileSchema(@Body fileSchemaTestClass: FileSchemaTestClass): Observable - - /** - * - * - * Responses: - * - 200: Success - * - * @param query - * @param user - * @return [Call]<[Unit]> - */ - @PUT("fake/body-with-query-params") - fun testBodyWithQueryParams(@Query("query") query: kotlin.String, @Body user: User): Observable - - /** - * To test \"client\" model - * To test \"client\" model - * Responses: - * - 200: successful operation - * - * @param client client model - * @return [Call]<[Client]> - */ - @PATCH("fake") - fun testClientModel(@Body client: Client): Observable - - /** - * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - * Responses: - * - 400: Invalid username supplied - * - 404: User not found - * - * @param number None - * @param double None - * @param patternWithoutDelimiter None - * @param byte None - * @param integer None (optional) - * @param int32 None (optional) - * @param int64 None (optional) - * @param float None (optional) - * @param string None (optional) - * @param binary None (optional) - * @param date None (optional) - * @param dateTime None (optional) - * @param password None (optional) - * @param paramCallback None (optional) - * @return [Call]<[Unit]> - */ - @FormUrlEncoded - @POST("fake") - fun testEndpointParameters(@Field("number") number: java.math.BigDecimal, @Field("double") double: kotlin.Double, @Field("pattern_without_delimiter") patternWithoutDelimiter: kotlin.String, @Field("byte") byte: kotlin.ByteArray, @Field("integer") integer: kotlin.Int, @Field("int32") int32: kotlin.Int, @Field("int64") int64: kotlin.Long, @Field("float") float: kotlin.Float, @Field("string") string: kotlin.String, @Field("binary") binary: MultipartBody.Part, @Field("date") date: java.time.LocalDate, @Field("dateTime") dateTime: java.time.OffsetDateTime, @Field("password") password: kotlin.String, @Field("callback") paramCallback: kotlin.String): Observable - - /** - * To test enum parameters - * To test enum parameters - * Responses: - * - 400: Invalid request - * - 404: Not found - * - * @param enumHeaderStringArray Header parameter enum test (string array) (optional) - * @param enumHeaderString Header parameter enum test (string) (optional, default to -efg) - * @param enumQueryStringArray Query parameter enum test (string array) (optional) - * @param enumQueryString Query parameter enum test (string) (optional, default to -efg) - * @param enumQueryInteger Query parameter enum test (double) (optional) - * @param enumQueryDouble Query parameter enum test (double) (optional) - * @param enumFormStringArray Form parameter enum test (string array) (optional, default to $) - * @param enumFormString Form parameter enum test (string) (optional, default to -efg) - * @return [Call]<[Unit]> - */ - @FormUrlEncoded - @GET("fake") - fun testEnumParameters(@Header("enum_header_string_array") enumHeaderStringArray: kotlin.collections.List, @Header("enum_header_string") enumHeaderString: kotlin.String, @Query("enum_query_string_array") enumQueryStringArray: kotlin.collections.List? = null, @Query("enum_query_string") enumQueryString: kotlin.String? = null, @Query("enum_query_integer") enumQueryInteger: kotlin.Int? = null, @Query("enum_query_double") enumQueryDouble: kotlin.Double? = null, @Field("enum_form_string_array") enumFormStringArray: kotlin.collections.List, @Field("enum_form_string") enumFormString: kotlin.String): Observable - - /** - * Fake endpoint to test group parameters (optional) - * Fake endpoint to test group parameters (optional) - * Responses: - * - 400: Something wrong - * - * @param requiredStringGroup Required String in group parameters - * @param requiredBooleanGroup Required Boolean in group parameters - * @param requiredInt64Group Required Integer in group parameters - * @param stringGroup String in group parameters (optional) - * @param booleanGroup Boolean in group parameters (optional) - * @param int64Group Integer in group parameters (optional) - * @return [Call]<[Unit]> - */ - @DELETE("fake") - fun testGroupParameters(@Query("required_string_group") requiredStringGroup: kotlin.Int, @Header("required_boolean_group") requiredBooleanGroup: kotlin.Boolean, @Query("required_int64_group") requiredInt64Group: kotlin.Long, @Query("string_group") stringGroup: kotlin.Int? = null, @Header("boolean_group") booleanGroup: kotlin.Boolean, @Query("int64_group") int64Group: kotlin.Long? = null): Observable - - /** - * test inline additionalProperties - * - * Responses: - * - 200: successful operation - * - * @param requestBody request body - * @return [Call]<[Unit]> - */ - @POST("fake/inline-additionalProperties") - fun testInlineAdditionalProperties(@Body requestBody: kotlin.collections.Map): Observable - - /** - * test json serialization of form data - * - * Responses: - * - 200: successful operation - * - * @param param field1 - * @param param2 field2 - * @return [Call]<[Unit]> - */ - @FormUrlEncoded - @GET("fake/jsonFormData") - fun testJsonFormData(@Field("param") param: kotlin.String, @Field("param2") param2: kotlin.String): Observable - - /** - * - * To test the collection format in query parameters - * Responses: - * - 200: Success - * - * @param pipe - * @param ioutil - * @param http - * @param url - * @param context - * @return [Call]<[Unit]> - */ - @PUT("fake/test-query-parameters") - fun testQueryParameterCollectionFormat(@Query("pipe") pipe: kotlin.collections.List, @Query("ioutil") ioutil: CSVParams, @Query("http") http: SSVParams, @Query("url") url: CSVParams, @Query("context") context: kotlin.collections.List): Observable - -} diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/apis/FakeClassnameTags123Api.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/apis/FakeClassnameTags123Api.kt deleted file mode 100644 index 4a5856cdd0f..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/apis/FakeClassnameTags123Api.kt +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapitools.client.apis - -import org.openapitools.client.infrastructure.CollectionFormats.* -import retrofit2.http.* -import okhttp3.RequestBody -import rx.Observable - -import org.openapitools.client.models.Client - -interface FakeClassnameTags123Api { - /** - * To test class name in snake case - * To test class name in snake case - * Responses: - * - 200: successful operation - * - * @param client client model - * @return [Call]<[Client]> - */ - @PATCH("fake_classname_test") - fun testClassname(@Body client: Client): Observable - -} diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/apis/PetApi.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/apis/PetApi.kt deleted file mode 100644 index 7564e9260db..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/apis/PetApi.kt +++ /dev/null @@ -1,143 +0,0 @@ -package org.openapitools.client.apis - -import org.openapitools.client.infrastructure.CollectionFormats.* -import retrofit2.http.* -import okhttp3.RequestBody -import rx.Observable - -import org.openapitools.client.models.ApiResponse -import org.openapitools.client.models.Pet - -import okhttp3.MultipartBody - -interface PetApi { - /** - * Add a new pet to the store - * - * Responses: - * - 200: Successful operation - * - 405: Invalid input - * - * @param pet Pet object that needs to be added to the store - * @return [Call]<[Unit]> - */ - @POST("pet") - fun addPet(@Body pet: Pet): Observable - - /** - * Deletes a pet - * - * Responses: - * - 200: Successful operation - * - 400: Invalid pet value - * - * @param petId Pet id to delete - * @param apiKey (optional) - * @return [Call]<[Unit]> - */ - @DELETE("pet/{petId}") - fun deletePet(@Path("petId") petId: kotlin.Long, @Header("api_key") apiKey: kotlin.String): Observable - - /** - * Finds Pets by status - * Multiple status values can be provided with comma separated strings - * Responses: - * - 200: successful operation - * - 400: Invalid status value - * - * @param status Status values that need to be considered for filter - * @return [Call]<[kotlin.collections.List]> - */ - @GET("pet/findByStatus") - fun findPetsByStatus(@Query("status") status: CSVParams): Observable> - - /** - * Finds Pets by tags - * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. - * Responses: - * - 200: successful operation - * - 400: Invalid tag value - * - * @param tags Tags to filter by - * @return [Call]<[kotlin.collections.List]> - */ - @Deprecated("This api was deprecated") - @GET("pet/findByTags") - fun findPetsByTags(@Query("tags") tags: CSVParams): Observable> - - /** - * Find pet by ID - * Returns a single pet - * Responses: - * - 200: successful operation - * - 400: Invalid ID supplied - * - 404: Pet not found - * - * @param petId ID of pet to return - * @return [Call]<[Pet]> - */ - @GET("pet/{petId}") - fun getPetById(@Path("petId") petId: kotlin.Long): Observable - - /** - * Update an existing pet - * - * Responses: - * - 200: Successful operation - * - 400: Invalid ID supplied - * - 404: Pet not found - * - 405: Validation exception - * - * @param pet Pet object that needs to be added to the store - * @return [Call]<[Unit]> - */ - @PUT("pet") - fun updatePet(@Body pet: Pet): Observable - - /** - * Updates a pet in the store with form data - * - * Responses: - * - 200: Successful operation - * - 405: Invalid input - * - * @param petId ID of pet that needs to be updated - * @param name Updated name of the pet (optional) - * @param status Updated status of the pet (optional) - * @return [Call]<[Unit]> - */ - @FormUrlEncoded - @POST("pet/{petId}") - fun updatePetWithForm(@Path("petId") petId: kotlin.Long, @Field("name") name: kotlin.String, @Field("status") status: kotlin.String): Observable - - /** - * uploads an image - * - * Responses: - * - 200: successful operation - * - * @param petId ID of pet to update - * @param additionalMetadata Additional data to pass to server (optional) - * @param file file to upload (optional) - * @return [Call]<[ApiResponse]> - */ - @Multipart - @POST("pet/{petId}/uploadImage") - fun uploadFile(@Path("petId") petId: kotlin.Long, @Part("additionalMetadata") additionalMetadata: kotlin.String, @Part file: MultipartBody.Part): Observable - - /** - * uploads an image (required) - * - * Responses: - * - 200: successful operation - * - * @param petId ID of pet to update - * @param requiredFile file to upload - * @param additionalMetadata Additional data to pass to server (optional) - * @return [Call]<[ApiResponse]> - */ - @Multipart - @POST("fake/{petId}/uploadImageWithRequiredFile") - fun uploadFileWithRequiredFile(@Path("petId") petId: kotlin.Long, @Part requiredFile: MultipartBody.Part, @Part("additionalMetadata") additionalMetadata: kotlin.String): Observable - -} diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt deleted file mode 100644 index 743fcc84942..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt +++ /dev/null @@ -1,62 +0,0 @@ -package org.openapitools.client.apis - -import org.openapitools.client.infrastructure.CollectionFormats.* -import retrofit2.http.* -import okhttp3.RequestBody -import rx.Observable - -import org.openapitools.client.models.Order - -interface StoreApi { - /** - * Delete purchase order by ID - * For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors - * Responses: - * - 400: Invalid ID supplied - * - 404: Order not found - * - * @param orderId ID of the order that needs to be deleted - * @return [Call]<[Unit]> - */ - @DELETE("store/order/{order_id}") - fun deleteOrder(@Path("order_id") orderId: kotlin.String): Observable - - /** - * Returns pet inventories by status - * Returns a map of status codes to quantities - * Responses: - * - 200: successful operation - * - * @return [Call]<[kotlin.collections.Map]> - */ - @GET("store/inventory") - fun getInventory(): Observable> - - /** - * Find purchase order by ID - * For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions - * Responses: - * - 200: successful operation - * - 400: Invalid ID supplied - * - 404: Order not found - * - * @param orderId ID of pet that needs to be fetched - * @return [Call]<[Order]> - */ - @GET("store/order/{order_id}") - fun getOrderById(@Path("order_id") orderId: kotlin.Long): Observable - - /** - * Place an order for a pet - * - * Responses: - * - 200: successful operation - * - 400: Invalid Order - * - * @param order order placed for purchasing the pet - * @return [Call]<[Order]> - */ - @POST("store/order") - fun placeOrder(@Body order: Order): Observable - -} diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/apis/UserApi.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/apis/UserApi.kt deleted file mode 100644 index 6884a8b85c1..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/apis/UserApi.kt +++ /dev/null @@ -1,113 +0,0 @@ -package org.openapitools.client.apis - -import org.openapitools.client.infrastructure.CollectionFormats.* -import retrofit2.http.* -import okhttp3.RequestBody -import rx.Observable - -import org.openapitools.client.models.User - -interface UserApi { - /** - * Create user - * This can only be done by the logged in user. - * Responses: - * - 0: successful operation - * - * @param user Created user object - * @return [Call]<[Unit]> - */ - @POST("user") - fun createUser(@Body user: User): Observable - - /** - * Creates list of users with given input array - * - * Responses: - * - 0: successful operation - * - * @param user List of user object - * @return [Call]<[Unit]> - */ - @POST("user/createWithArray") - fun createUsersWithArrayInput(@Body user: kotlin.collections.List): Observable - - /** - * Creates list of users with given input array - * - * Responses: - * - 0: successful operation - * - * @param user List of user object - * @return [Call]<[Unit]> - */ - @POST("user/createWithList") - fun createUsersWithListInput(@Body user: kotlin.collections.List): Observable - - /** - * Delete user - * This can only be done by the logged in user. - * Responses: - * - 400: Invalid username supplied - * - 404: User not found - * - * @param username The name that needs to be deleted - * @return [Call]<[Unit]> - */ - @DELETE("user/{username}") - fun deleteUser(@Path("username") username: kotlin.String): Observable - - /** - * Get user by user name - * - * Responses: - * - 200: successful operation - * - 400: Invalid username supplied - * - 404: User not found - * - * @param username The name that needs to be fetched. Use user1 for testing. - * @return [Call]<[User]> - */ - @GET("user/{username}") - fun getUserByName(@Path("username") username: kotlin.String): Observable - - /** - * Logs user into the system - * - * Responses: - * - 200: successful operation - * - 400: Invalid username/password supplied - * - * @param username The user name for login - * @param password The password for login in clear text - * @return [Call]<[kotlin.String]> - */ - @GET("user/login") - fun loginUser(@Query("username") username: kotlin.String, @Query("password") password: kotlin.String): Observable - - /** - * Logs out current logged in user session - * - * Responses: - * - 0: successful operation - * - * @return [Call]<[Unit]> - */ - @GET("user/logout") - fun logoutUser(): Observable - - /** - * Updated user - * This can only be done by the logged in user. - * Responses: - * - 400: Invalid user supplied - * - 404: User not found - * - * @param username name that need to be deleted - * @param user Updated user object - * @return [Call]<[Unit]> - */ - @PUT("user/{username}") - fun updateUser(@Path("username") username: kotlin.String, @Body user: User): Observable - -} diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/auth/ApiKeyAuth.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/auth/ApiKeyAuth.kt deleted file mode 100644 index 524d5190ef8..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/auth/ApiKeyAuth.kt +++ /dev/null @@ -1,50 +0,0 @@ -package org.openapitools.client.auth - -import java.io.IOException -import java.net.URI -import java.net.URISyntaxException - -import okhttp3.Interceptor -import okhttp3.Response - -class ApiKeyAuth( - private val location: String = "", - private val paramName: String = "", - private var apiKey: String = "" -) : Interceptor { - - @Throws(IOException::class) - override fun intercept(chain: Interceptor.Chain): Response { - var request = chain.request() - - if ("query" == location) { - var newQuery = request.url.toUri().query - val paramValue = "$paramName=$apiKey" - if (newQuery == null) { - newQuery = paramValue - } else { - newQuery += "&$paramValue" - } - - val newUri: URI - try { - val oldUri = request.url.toUri() - newUri = URI(oldUri.scheme, oldUri.authority, - oldUri.path, newQuery, oldUri.fragment) - } catch (e: URISyntaxException) { - throw IOException(e) - } - - request = request.newBuilder().url(newUri.toURL()).build() - } else if ("header" == location) { - request = request.newBuilder() - .addHeader(paramName, apiKey) - .build() - } else if ("cookie" == location) { - request = request.newBuilder() - .addHeader("Cookie", "$paramName=$apiKey") - .build() - } - return chain.proceed(request) - } -} diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/auth/HttpBasicAuth.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/auth/HttpBasicAuth.kt deleted file mode 100644 index 575bea19540..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/auth/HttpBasicAuth.kt +++ /dev/null @@ -1,33 +0,0 @@ -package org.openapitools.client.auth - -import java.io.IOException - -import kotlin.jvm.Throws -import okhttp3.Interceptor -import okhttp3.Interceptor.Chain -import okhttp3.Response -import okhttp3.Credentials - -class HttpBasicAuth( - private var username: String = "", - private var password: String = "" -) : Interceptor { - - fun setCredentials(username: String, password: String) { - this.username = username - this.password = password - } - - @Throws(IOException::class) - override fun intercept(chain: Chain): Response { - var request = chain.request() - - // If the request already have an authorization (eg. Basic auth), do nothing - if (request.header("Authorization") == null && username.isNotBlank() && password.isNotBlank()) { - request = request.newBuilder() - .addHeader("Authorization", Credentials.basic(username, password)) - .build() - } - return chain.proceed(request) - } -} diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/auth/HttpBearerAuth.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/auth/HttpBearerAuth.kt deleted file mode 100644 index 775ad903c43..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/auth/HttpBearerAuth.kt +++ /dev/null @@ -1,39 +0,0 @@ -package org.openapitools.client.auth - -import java.io.IOException - -import okhttp3.Interceptor -import okhttp3.Interceptor.Chain -import okhttp3.Response - -class HttpBearerAuth( - private var schema: String = "", - var bearerToken: String = "" -) : Interceptor { - - @Throws(IOException::class) - override fun intercept(chain: Chain): Response { - var request = chain.request() - - // If the request already have an authorization (eg. Basic auth), do nothing - if (request.header("Authorization") == null && bearerToken.isNotBlank()) { - request = request.newBuilder() - .addHeader("Authorization", headerValue()) - .build() - } - return chain.proceed(request) - } - - private fun headerValue(): String { - return if (schema.isNotBlank()) { - "${upperCaseBearer()} $bearerToken" - } else { - bearerToken - } - } - - private fun upperCaseBearer(): String { - return if (schema.toLowerCase().equals("bearer")) "Bearer" else schema - } - -} diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/auth/OAuth.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/auth/OAuth.kt deleted file mode 100644 index 311a8f43979..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/auth/OAuth.kt +++ /dev/null @@ -1,151 +0,0 @@ -package org.openapitools.client.auth - -import java.net.HttpURLConnection.HTTP_UNAUTHORIZED -import java.net.HttpURLConnection.HTTP_FORBIDDEN - -import java.io.IOException - -import org.apache.oltu.oauth2.client.OAuthClient -import org.apache.oltu.oauth2.client.request.OAuthBearerClientRequest -import org.apache.oltu.oauth2.client.request.OAuthClientRequest -import org.apache.oltu.oauth2.client.request.OAuthClientRequest.AuthenticationRequestBuilder -import org.apache.oltu.oauth2.client.request.OAuthClientRequest.TokenRequestBuilder -import org.apache.oltu.oauth2.common.exception.OAuthProblemException -import org.apache.oltu.oauth2.common.exception.OAuthSystemException -import org.apache.oltu.oauth2.common.message.types.GrantType -import org.apache.oltu.oauth2.common.token.BasicOAuthToken - -import okhttp3.Interceptor -import okhttp3.OkHttpClient -import okhttp3.Response - -class OAuth( - client: OkHttpClient, - var tokenRequestBuilder: TokenRequestBuilder -) : Interceptor { - - interface AccessTokenListener { - fun notify(token: BasicOAuthToken) - } - - private var oauthClient: OAuthClient = OAuthClient(OAuthOkHttpClient(client)) - - @Volatile - private var accessToken: String? = null - var authenticationRequestBuilder: AuthenticationRequestBuilder? = null - private var accessTokenListener: AccessTokenListener? = null - - constructor( - requestBuilder: TokenRequestBuilder - ) : this( - OkHttpClient(), - requestBuilder - ) - - constructor( - flow: OAuthFlow, - authorizationUrl: String, - tokenUrl: String, - scopes: String - ) : this( - OAuthClientRequest.tokenLocation(tokenUrl).setScope(scopes) - ) { - setFlow(flow); - authenticationRequestBuilder = OAuthClientRequest.authorizationLocation(authorizationUrl); - } - - fun setFlow(flow: OAuthFlow) { - when (flow) { - OAuthFlow.accessCode, OAuthFlow.implicit -> - tokenRequestBuilder.setGrantType(GrantType.AUTHORIZATION_CODE) - OAuthFlow.password -> - tokenRequestBuilder.setGrantType(GrantType.PASSWORD) - OAuthFlow.application -> - tokenRequestBuilder.setGrantType(GrantType.CLIENT_CREDENTIALS) - } - } - - @Throws(IOException::class) - override fun intercept(chain: Interceptor.Chain): Response { - return retryingIntercept(chain, true) - } - - @Throws(IOException::class) - private fun retryingIntercept(chain: Interceptor.Chain, updateTokenAndRetryOnAuthorizationFailure: Boolean): Response { - var request = chain.request() - - // If the request already have an authorization (eg. Basic auth), do nothing - if (request.header("Authorization") != null) { - return chain.proceed(request) - } - - // If first time, get the token - val oAuthRequest: OAuthClientRequest - if (accessToken == null) { - updateAccessToken(null) - } - - if (accessToken != null) { - // Build the request - val rb = request.newBuilder() - - val requestAccessToken = accessToken - try { - oAuthRequest = OAuthBearerClientRequest(request.url.toString()) - .setAccessToken(requestAccessToken) - .buildHeaderMessage() - } catch (e: OAuthSystemException) { - throw IOException(e) - } - - oAuthRequest.headers.entries.forEach { header -> - rb.addHeader(header.key, header.value) - } - rb.url(oAuthRequest.locationUri) - - //Execute the request - val response = chain.proceed(rb.build()) - - // 401/403 most likely indicates that access token has expired. Unless it happens two times in a row. - if ((response.code == HTTP_UNAUTHORIZED || response.code == HTTP_FORBIDDEN) && updateTokenAndRetryOnAuthorizationFailure) { - try { - if (updateAccessToken(requestAccessToken)) { - response.body?.close() - return retryingIntercept(chain, false) - } - } catch (e: Exception) { - response.body?.close() - throw e - } - } - return response - } else { - return chain.proceed(chain.request()) - } - } - - /** - * Returns true if the access token has been updated - */ - @Throws(IOException::class) - @Synchronized - fun updateAccessToken(requestAccessToken: String?): Boolean { - if (accessToken == null || accessToken.equals(requestAccessToken)) { - return try { - val accessTokenResponse = oauthClient.accessToken(this.tokenRequestBuilder.buildBodyMessage()) - if (accessTokenResponse != null && accessTokenResponse.accessToken != null) { - accessToken = accessTokenResponse.accessToken - accessTokenListener?.notify(accessTokenResponse.oAuthToken as BasicOAuthToken) - !accessToken.equals(requestAccessToken) - } else { - false - } - } catch (e: OAuthSystemException) { - throw IOException(e) - } catch (e: OAuthProblemException) { - throw IOException(e) - } - } - return true; - } -} diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/auth/OAuthFlow.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/auth/OAuthFlow.kt deleted file mode 100644 index bcada9b7a6a..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/auth/OAuthFlow.kt +++ /dev/null @@ -1,5 +0,0 @@ -package org.openapitools.client.auth - -enum class OAuthFlow { - accessCode, implicit, password, application -} diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/auth/OAuthOkHttpClient.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/auth/OAuthOkHttpClient.kt deleted file mode 100644 index 93adbda3fc9..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/auth/OAuthOkHttpClient.kt +++ /dev/null @@ -1,61 +0,0 @@ -package org.openapitools.client.auth - -import java.io.IOException - -import org.apache.oltu.oauth2.client.HttpClient -import org.apache.oltu.oauth2.client.request.OAuthClientRequest -import org.apache.oltu.oauth2.client.response.OAuthClientResponse -import org.apache.oltu.oauth2.client.response.OAuthClientResponseFactory -import org.apache.oltu.oauth2.common.exception.OAuthProblemException -import org.apache.oltu.oauth2.common.exception.OAuthSystemException - -import okhttp3.OkHttpClient -import okhttp3.Request -import okhttp3.MediaType.Companion.toMediaTypeOrNull -import okhttp3.RequestBody - - -class OAuthOkHttpClient( - private var client: OkHttpClient -) : HttpClient { - - constructor() : this(OkHttpClient()) - - @Throws(OAuthSystemException::class, OAuthProblemException::class) - override fun execute( - request: OAuthClientRequest, - headers: Map?, - requestMethod: String, - responseClass: Class?): T { - - var mediaType = "application/json".toMediaTypeOrNull() - val requestBuilder = Request.Builder().url(request.locationUri) - - headers?.forEach { entry -> - if (entry.key.equals("Content-Type", true)) { - mediaType = entry.value.toMediaTypeOrNull() - } else { - requestBuilder.addHeader(entry.key, entry.value) - } - } - - val body: RequestBody? = if (request.body != null) RequestBody.create(mediaType, request.body) else null - requestBuilder.method(requestMethod, body) - - try { - val response = client.newCall(requestBuilder.build()).execute() - return OAuthClientResponseFactory.createCustomResponse( - response.body?.string(), - response.body?.contentType()?.toString(), - response.code, - responseClass) - } catch (e: IOException) { - throw OAuthSystemException(e) - } - } - - override fun shutdown() { - // Nothing to do here - } - -} diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/infrastructure/ApiClient.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/infrastructure/ApiClient.kt deleted file mode 100644 index 656b5e261e8..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/infrastructure/ApiClient.kt +++ /dev/null @@ -1,255 +0,0 @@ -package org.openapitools.client.infrastructure - -import org.apache.oltu.oauth2.client.request.OAuthClientRequest.AuthenticationRequestBuilder -import org.apache.oltu.oauth2.client.request.OAuthClientRequest.TokenRequestBuilder -import org.openapitools.client.auth.ApiKeyAuth -import org.openapitools.client.auth.OAuth -import org.openapitools.client.auth.OAuth.AccessTokenListener -import org.openapitools.client.auth.OAuthFlow -import org.openapitools.client.auth.HttpBearerAuth -import org.openapitools.client.auth.HttpBasicAuth - -import okhttp3.Interceptor -import okhttp3.OkHttpClient -import retrofit2.Retrofit -import okhttp3.logging.HttpLoggingInterceptor -import retrofit2.converter.scalars.ScalarsConverterFactory -import retrofit2.adapter.rxjava.RxJavaCallAdapterFactory -import com.google.gson.Gson -import com.google.gson.GsonBuilder -import retrofit2.converter.gson.GsonConverterFactory - -class ApiClient( - private var baseUrl: String = defaultBasePath, - private val okHttpClientBuilder: OkHttpClient.Builder? = null, - private val serializerBuilder: GsonBuilder = Serializer.gsonBuilder, - private val okHttpClient : OkHttpClient? = null -) { - private val apiAuthorizations = mutableMapOf() - var logger: ((String) -> Unit)? = null - - private val retrofitBuilder: Retrofit.Builder by lazy { - Retrofit.Builder() - .baseUrl(baseUrl) - .addConverterFactory(ScalarsConverterFactory.create()) - .addConverterFactory(GsonConverterFactory.create(serializerBuilder.create())) - .addCallAdapterFactory(RxJavaCallAdapterFactory.create()) - } - - private val clientBuilder: OkHttpClient.Builder by lazy { - okHttpClientBuilder ?: defaultClientBuilder - } - - private val defaultClientBuilder: OkHttpClient.Builder by lazy { - OkHttpClient() - .newBuilder() - .addInterceptor(HttpLoggingInterceptor(object : HttpLoggingInterceptor.Logger { - override fun log(message: String) { - logger?.invoke(message) - } - }).apply { - level = HttpLoggingInterceptor.Level.BODY - }) - } - - init { - normalizeBaseUrl() - } - - constructor( - baseUrl: String = defaultBasePath, - okHttpClientBuilder: OkHttpClient.Builder? = null, - serializerBuilder: GsonBuilder = Serializer.gsonBuilder, - authNames: Array - ) : this(baseUrl, okHttpClientBuilder, serializerBuilder) { - authNames.forEach { authName -> - val auth = when (authName) { - "api_key" -> ApiKeyAuth("header", "api_key")"api_key_query" -> ApiKeyAuth("query", "api_key_query")"bearer_test" -> HttpBearerAuth("bearer")"http_basic_test" -> HttpBasicAuth()"http_signature_test" -> "petstore_auth" -> OAuth(OAuthFlow.implicit, "http://petstore.swagger.io/api/oauth/dialog", "", "write:pets, read:pets") - else -> throw RuntimeException("auth name $authName not found in available auth names") - } - addAuthorization(authName, auth); - } - } - - constructor( - baseUrl: String = defaultBasePath, - okHttpClientBuilder: OkHttpClient.Builder? = null, - serializerBuilder: GsonBuilder = Serializer.gsonBuilder, - authName: String, - bearerToken: String - ) : this(baseUrl, okHttpClientBuilder, serializerBuilder, arrayOf(authName)) { - setBearerToken(bearerToken) - } - - constructor( - baseUrl: String = defaultBasePath, - okHttpClientBuilder: OkHttpClient.Builder? = null, - serializerBuilder: GsonBuilder = Serializer.gsonBuilder, - authName: String, - username: String, - password: String - ) : this(baseUrl, okHttpClientBuilder, serializerBuilder, arrayOf(authName)) { - setCredentials(username, password) - } - - constructor( - baseUrl: String = defaultBasePath, - okHttpClientBuilder: OkHttpClient.Builder? = null, - serializerBuilder: GsonBuilder = Serializer.gsonBuilder, - authName: String, - clientId: String, - secret: String, - username: String, - password: String - ) : this(baseUrl, okHttpClientBuilder, serializerBuilder, arrayOf(authName)) { - getTokenEndPoint() - ?.setClientId(clientId) - ?.setClientSecret(secret) - ?.setUsername(username) - ?.setPassword(password) - } - - fun setCredentials(username: String, password: String): ApiClient { - apiAuthorizations.values.runOnFirst { - tokenRequestBuilder.setUsername(username).setPassword(password) - } - return this - } - fun setBearerToken(bearerToken: String): ApiClient { - apiAuthorizations.values.runOnFirst { - this.bearerToken = bearerToken - } - return this - } - - fun setCredentials(username: String, password: String): ApiClient { - apiAuthorizations.values.runOnFirst { - setCredentials(username, password); - } - apiAuthorizations.values.runOnFirst { - tokenRequestBuilder.setUsername(username).setPassword(password) - } - return this - } - - fun setCredentials(username: String, password: String): ApiClient { - apiAuthorizations.values.runOnFirst { - tokenRequestBuilder.setUsername(username).setPassword(password) - } - return this - } - /** - * Helper method to configure the token endpoint of the first oauth found in the apiAuthorizations (there should be only one) - * @return Token request builder - */ - fun getTokenEndPoint(): TokenRequestBuilder? { - var result: TokenRequestBuilder? = null - apiAuthorizations.values.runOnFirst { - result = tokenRequestBuilder - } - return result - } - - /** - * Helper method to configure authorization endpoint of the first oauth found in the apiAuthorizations (there should be only one) - * @return Authentication request builder - */ - fun getAuthorizationEndPoint(): AuthenticationRequestBuilder? { - var result: AuthenticationRequestBuilder? = null - apiAuthorizations.values.runOnFirst { - result = authenticationRequestBuilder - } - return result - } - - /** - * Helper method to pre-set the oauth access token of the first oauth found in the apiAuthorizations (there should be only one) - * @param accessToken Access token - * @return ApiClient - */ - fun setAccessToken(accessToken: String): ApiClient { - apiAuthorizations.values.runOnFirst { - setAccessToken(accessToken) - } - return this - } - - /** - * Helper method to configure the oauth accessCode/implicit flow parameters - * @param clientId Client ID - * @param clientSecret Client secret - * @param redirectURI Redirect URI - * @return ApiClient - */ - fun configureAuthorizationFlow(clientId: String, clientSecret: String, redirectURI: String): ApiClient { - apiAuthorizations.values.runOnFirst { - tokenRequestBuilder - .setClientId(clientId) - .setClientSecret(clientSecret) - .setRedirectURI(redirectURI) - authenticationRequestBuilder - ?.setClientId(clientId) - ?.setRedirectURI(redirectURI) - } - return this; - } - - /** - * Configures a listener which is notified when a new access token is received. - * @param accessTokenListener Access token listener - * @return ApiClient - */ - fun registerAccessTokenListener(accessTokenListener: AccessTokenListener): ApiClient { - apiAuthorizations.values.runOnFirst { - registerAccessTokenListener(accessTokenListener) - } - return this; - } - - /** - * Adds an authorization to be used by the client - * @param authName Authentication name - * @param authorization Authorization interceptor - * @return ApiClient - */ - fun addAuthorization(authName: String, authorization: Interceptor): ApiClient { - if (apiAuthorizations.containsKey(authName)) { - throw RuntimeException("auth name $authName already in api authorizations") - } - apiAuthorizations[authName] = authorization - clientBuilder.addInterceptor(authorization) - return this - } - - fun setLogger(logger: (String) -> Unit): ApiClient { - this.logger = logger - return this - } - - fun createService(serviceClass: Class): S { - val usedClient = this.okHttpClient ?: clientBuilder.build() - return retrofitBuilder.client(usedClient).build().create(serviceClass) - } - - private fun normalizeBaseUrl() { - if (!baseUrl.endsWith("/")) { - baseUrl += "/" - } - } - - private inline fun Iterable.runOnFirst(callback: U.() -> Unit) { - for (element in this) { - if (element is U) { - callback.invoke(element) - break - } - } - } - - companion object { - @JvmStatic - val defaultBasePath: String by lazy { - System.getProperties().getProperty("org.openapitools.client.baseUrl", "http://petstore.swagger.io:80/v2") - } - } -} diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/infrastructure/ByteArrayAdapter.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/infrastructure/ByteArrayAdapter.kt deleted file mode 100644 index 6120b081929..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/infrastructure/ByteArrayAdapter.kt +++ /dev/null @@ -1,33 +0,0 @@ -package org.openapitools.client.infrastructure - -import com.google.gson.TypeAdapter -import com.google.gson.stream.JsonReader -import com.google.gson.stream.JsonWriter -import com.google.gson.stream.JsonToken.NULL -import java.io.IOException - -class ByteArrayAdapter : TypeAdapter() { - @Throws(IOException::class) - override fun write(out: JsonWriter?, value: ByteArray?) { - if (value == null) { - out?.nullValue() - } else { - out?.value(String(value)) - } - } - - @Throws(IOException::class) - override fun read(out: JsonReader?): ByteArray? { - out ?: return null - - when (out.peek()) { - NULL -> { - out.nextNull() - return null - } - else -> { - return out.nextString().toByteArray() - } - } - } -} diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/infrastructure/CollectionFormats.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/infrastructure/CollectionFormats.kt deleted file mode 100644 index 001e99325d2..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/infrastructure/CollectionFormats.kt +++ /dev/null @@ -1,56 +0,0 @@ -package org.openapitools.client.infrastructure - -class CollectionFormats { - - open class CSVParams { - - var params: List - - constructor(params: List) { - this.params = params - } - - constructor(vararg params: String) { - this.params = listOf(*params) - } - - override fun toString(): String { - return params.joinToString(",") - } - } - - open class SSVParams : CSVParams { - - constructor(params: List) : super(params) - - constructor(vararg params: String) : super(*params) - - override fun toString(): String { - return params.joinToString(" ") - } - } - - class TSVParams : CSVParams { - - constructor(params: List) : super(params) - - constructor(vararg params: String) : super(*params) - - override fun toString(): String { - return params.joinToString("\t") - } - } - - class PIPESParams : CSVParams { - - constructor(params: List) : super(params) - - constructor(vararg params: String) : super(*params) - - override fun toString(): String { - return params.joinToString("|") - } - } - - class SPACEParams : SSVParams() -} \ No newline at end of file diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/infrastructure/DateAdapter.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/infrastructure/DateAdapter.kt deleted file mode 100644 index c5d330ac075..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/infrastructure/DateAdapter.kt +++ /dev/null @@ -1,37 +0,0 @@ -package org.openapitools.client.infrastructure - -import com.google.gson.TypeAdapter -import com.google.gson.stream.JsonReader -import com.google.gson.stream.JsonWriter -import com.google.gson.stream.JsonToken.NULL -import java.io.IOException -import java.text.DateFormat -import java.text.SimpleDateFormat -import java.util.Date -import java.util.Locale - -class DateAdapter(val formatter: DateFormat = SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ", Locale.getDefault())) : TypeAdapter() { - @Throws(IOException::class) - override fun write(out: JsonWriter?, value: Date?) { - if (value == null) { - out?.nullValue() - } else { - out?.value(formatter.format(value)) - } - } - - @Throws(IOException::class) - override fun read(out: JsonReader?): Date? { - out ?: return null - - when (out.peek()) { - NULL -> { - out.nextNull() - return null - } - else -> { - return formatter.parse(out.nextString()) - } - } - } -} diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/infrastructure/LocalDateAdapter.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/infrastructure/LocalDateAdapter.kt deleted file mode 100644 index 30ef6697183..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/infrastructure/LocalDateAdapter.kt +++ /dev/null @@ -1,35 +0,0 @@ -package org.openapitools.client.infrastructure - -import com.google.gson.TypeAdapter -import com.google.gson.stream.JsonReader -import com.google.gson.stream.JsonWriter -import com.google.gson.stream.JsonToken.NULL -import java.io.IOException -import java.time.LocalDate -import java.time.format.DateTimeFormatter - -class LocalDateAdapter(private val formatter: DateTimeFormatter = DateTimeFormatter.ISO_LOCAL_DATE) : TypeAdapter() { - @Throws(IOException::class) - override fun write(out: JsonWriter?, value: LocalDate?) { - if (value == null) { - out?.nullValue() - } else { - out?.value(formatter.format(value)) - } - } - - @Throws(IOException::class) - override fun read(out: JsonReader?): LocalDate? { - out ?: return null - - when (out.peek()) { - NULL -> { - out.nextNull() - return null - } - else -> { - return LocalDate.parse(out.nextString(), formatter) - } - } - } -} diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/infrastructure/LocalDateTimeAdapter.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/infrastructure/LocalDateTimeAdapter.kt deleted file mode 100644 index 3ad781c66ca..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/infrastructure/LocalDateTimeAdapter.kt +++ /dev/null @@ -1,35 +0,0 @@ -package org.openapitools.client.infrastructure - -import com.google.gson.TypeAdapter -import com.google.gson.stream.JsonReader -import com.google.gson.stream.JsonWriter -import com.google.gson.stream.JsonToken.NULL -import java.io.IOException -import java.time.LocalDateTime -import java.time.format.DateTimeFormatter - -class LocalDateTimeAdapter(private val formatter: DateTimeFormatter = DateTimeFormatter.ISO_LOCAL_DATE_TIME) : TypeAdapter() { - @Throws(IOException::class) - override fun write(out: JsonWriter?, value: LocalDateTime?) { - if (value == null) { - out?.nullValue() - } else { - out?.value(formatter.format(value)) - } - } - - @Throws(IOException::class) - override fun read(out: JsonReader?): LocalDateTime? { - out ?: return null - - when (out.peek()) { - NULL -> { - out.nextNull() - return null - } - else -> { - return LocalDateTime.parse(out.nextString(), formatter) - } - } - } -} diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/infrastructure/OffsetDateTimeAdapter.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/infrastructure/OffsetDateTimeAdapter.kt deleted file mode 100644 index e615135c9cc..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/infrastructure/OffsetDateTimeAdapter.kt +++ /dev/null @@ -1,35 +0,0 @@ -package org.openapitools.client.infrastructure - -import com.google.gson.TypeAdapter -import com.google.gson.stream.JsonReader -import com.google.gson.stream.JsonWriter -import com.google.gson.stream.JsonToken.NULL -import java.io.IOException -import java.time.OffsetDateTime -import java.time.format.DateTimeFormatter - -class OffsetDateTimeAdapter(private val formatter: DateTimeFormatter = DateTimeFormatter.ISO_OFFSET_DATE_TIME) : TypeAdapter() { - @Throws(IOException::class) - override fun write(out: JsonWriter?, value: OffsetDateTime?) { - if (value == null) { - out?.nullValue() - } else { - out?.value(formatter.format(value)) - } - } - - @Throws(IOException::class) - override fun read(out: JsonReader?): OffsetDateTime? { - out ?: return null - - when (out.peek()) { - NULL -> { - out.nextNull() - return null - } - else -> { - return OffsetDateTime.parse(out.nextString(), formatter) - } - } - } -} diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/infrastructure/ResponseExt.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/infrastructure/ResponseExt.kt deleted file mode 100644 index 3369ea29aa9..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/infrastructure/ResponseExt.kt +++ /dev/null @@ -1,15 +0,0 @@ -package org.openapitools.client.infrastructure - -import com.google.gson.GsonBuilder -import com.google.gson.JsonParseException -import retrofit2.Response - -@Throws(JsonParseException::class) -inline fun Response<*>.getErrorResponse(serializerBuilder: GsonBuilder = Serializer.gsonBuilder): T? { - val serializer = serializerBuilder.create() - val reader = errorBody()?.charStream() - if(reader != null) { - return serializer.fromJson(reader, T::class.java) - } - return null -} diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/infrastructure/Serializer.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/infrastructure/Serializer.kt deleted file mode 100644 index b80e0390de2..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/infrastructure/Serializer.kt +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapitools.client.infrastructure - -import com.google.gson.Gson -import com.google.gson.GsonBuilder -import java.time.LocalDate -import java.time.LocalDateTime -import java.time.OffsetDateTime -import java.util.UUID -import java.util.Date - -object Serializer { - @JvmStatic - val gsonBuilder: GsonBuilder = GsonBuilder() - .registerTypeAdapter(OffsetDateTime::class.java, OffsetDateTimeAdapter()) - .registerTypeAdapter(LocalDateTime::class.java, LocalDateTimeAdapter()) - .registerTypeAdapter(LocalDate::class.java, LocalDateAdapter()) - .registerTypeAdapter(ByteArray::class.java, ByteArrayAdapter()) - - @JvmStatic - val gson: Gson by lazy { - gsonBuilder.create() - } -} diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/AdditionalPropertiesClass.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/AdditionalPropertiesClass.kt deleted file mode 100644 index 152cbc0cddf..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/AdditionalPropertiesClass.kt +++ /dev/null @@ -1,35 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param mapProperty - * @param mapOfMapProperty - */ - -data class AdditionalPropertiesClass ( - @SerializedName("map_property") - val mapProperty: kotlin.collections.Map? = null, - @SerializedName("map_of_map_property") - val mapOfMapProperty: kotlin.collections.Map>? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Animal.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Animal.kt deleted file mode 100644 index ab6e55151fc..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Animal.kt +++ /dev/null @@ -1,34 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param className - * @param color - */ - -interface Animal : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - - @get:SerializedName("className") - val className: kotlin.String - @get:SerializedName("color") - val color: kotlin.String? -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt deleted file mode 100644 index 60f2617cafb..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt +++ /dev/null @@ -1,38 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param code - * @param type - * @param message - */ - -data class ApiResponse ( - @SerializedName("code") - val code: kotlin.Int? = null, - @SerializedName("type") - val type: kotlin.String? = null, - @SerializedName("message") - val message: kotlin.String? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/ArrayOfArrayOfNumberOnly.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/ArrayOfArrayOfNumberOnly.kt deleted file mode 100644 index db44a13b437..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/ArrayOfArrayOfNumberOnly.kt +++ /dev/null @@ -1,32 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param arrayArrayNumber - */ - -data class ArrayOfArrayOfNumberOnly ( - @SerializedName("ArrayArrayNumber") - val arrayArrayNumber: kotlin.collections.List>? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/ArrayOfNumberOnly.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/ArrayOfNumberOnly.kt deleted file mode 100644 index 128acc12541..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/ArrayOfNumberOnly.kt +++ /dev/null @@ -1,32 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param arrayNumber - */ - -data class ArrayOfNumberOnly ( - @SerializedName("ArrayNumber") - val arrayNumber: kotlin.collections.List? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/ArrayTest.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/ArrayTest.kt deleted file mode 100644 index afb0414957b..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/ArrayTest.kt +++ /dev/null @@ -1,39 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - -import org.openapitools.client.models.ReadOnlyFirst - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param arrayOfString - * @param arrayArrayOfInteger - * @param arrayArrayOfModel - */ - -data class ArrayTest ( - @SerializedName("array_of_string") - val arrayOfString: kotlin.collections.List? = null, - @SerializedName("array_array_of_integer") - val arrayArrayOfInteger: kotlin.collections.List>? = null, - @SerializedName("array_array_of_model") - val arrayArrayOfModel: kotlin.collections.List>? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Capitalization.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Capitalization.kt deleted file mode 100644 index cf876c94035..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Capitalization.kt +++ /dev/null @@ -1,48 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param smallCamel - * @param capitalCamel - * @param smallSnake - * @param capitalSnake - * @param scAETHFlowPoints - * @param ATT_NAME Name of the pet - */ - -data class Capitalization ( - @SerializedName("smallCamel") - val smallCamel: kotlin.String? = null, - @SerializedName("CapitalCamel") - val capitalCamel: kotlin.String? = null, - @SerializedName("small_Snake") - val smallSnake: kotlin.String? = null, - @SerializedName("Capital_Snake") - val capitalSnake: kotlin.String? = null, - @SerializedName("SCA_ETH_Flow_Points") - val scAETHFlowPoints: kotlin.String? = null, - /* Name of the pet */ - @SerializedName("ATT_NAME") - val ATT_NAME: kotlin.String? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Cat.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Cat.kt deleted file mode 100644 index 647155c428f..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Cat.kt +++ /dev/null @@ -1,40 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - -import org.openapitools.client.models.Animal -import org.openapitools.client.models.CatAllOf - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param className - * @param color - * @param declawed - */ - -data class Cat ( - @SerializedName("className") - override val className: kotlin.String, - @SerializedName("color") - override val color: kotlin.String? = null, - @SerializedName("declawed") - val declawed: kotlin.Boolean? = null -) : Animal, Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/CatAllOf.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/CatAllOf.kt deleted file mode 100644 index b3888433c7b..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/CatAllOf.kt +++ /dev/null @@ -1,32 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param declawed - */ - -data class CatAllOf ( - @SerializedName("declawed") - val declawed: kotlin.Boolean? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Category.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Category.kt deleted file mode 100644 index befccbefa9a..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Category.kt +++ /dev/null @@ -1,35 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param name - * @param id - */ - -data class Category ( - @SerializedName("name") - val name: kotlin.String, - @SerializedName("id") - val id: kotlin.Long? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/ClassModel.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/ClassModel.kt deleted file mode 100644 index c5222d7169e..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/ClassModel.kt +++ /dev/null @@ -1,32 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * Model for testing model with \"_class\" property - * @param propertyClass - */ - -data class ClassModel ( - @SerializedName("_class") - val propertyClass: kotlin.String? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Client.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Client.kt deleted file mode 100644 index 3debe1d542f..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Client.kt +++ /dev/null @@ -1,32 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param client - */ - -data class Client ( - @SerializedName("client") - val client: kotlin.String? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Dog.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Dog.kt deleted file mode 100644 index 5be6d075450..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Dog.kt +++ /dev/null @@ -1,40 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - -import org.openapitools.client.models.Animal -import org.openapitools.client.models.DogAllOf - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param className - * @param color - * @param breed - */ - -data class Dog ( - @SerializedName("className") - override val className: kotlin.String, - @SerializedName("color") - override val color: kotlin.String? = null, - @SerializedName("breed") - val breed: kotlin.String? = null -) : Animal, Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/DogAllOf.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/DogAllOf.kt deleted file mode 100644 index be81eda5973..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/DogAllOf.kt +++ /dev/null @@ -1,32 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param breed - */ - -data class DogAllOf ( - @SerializedName("breed") - val breed: kotlin.String? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/EnumArrays.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/EnumArrays.kt deleted file mode 100644 index 2b97721e7f5..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/EnumArrays.kt +++ /dev/null @@ -1,53 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param justSymbol - * @param arrayEnum - */ - -data class EnumArrays ( - @SerializedName("just_symbol") - val justSymbol: EnumArrays.JustSymbol? = null, - @SerializedName("array_enum") - val arrayEnum: kotlin.collections.List? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - - /** - * - * Values: greaterThanEqual,dollar - */ - - enum class JustSymbol(val value: kotlin.String){ - @SerializedName(value = ">=") greaterThanEqual(">="), - @SerializedName(value = "$") dollar("$"); - } - /** - * - * Values: fish,crab - */ - - enum class ArrayEnum(val value: kotlin.String){ - @SerializedName(value = "fish") fish("fish"), - @SerializedName(value = "crab") crab("crab"); - } -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/EnumClass.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/EnumClass.kt deleted file mode 100644 index f5edeb3710f..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/EnumClass.kt +++ /dev/null @@ -1,47 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName - -/** -* -* Values: abc,minusEfg,leftParenthesisXyzRightParenthesis -*/ - -enum class EnumClass(val value: kotlin.String){ - - - @SerializedName(value = "_abc") - abc("_abc"), - - - @SerializedName(value = "-efg") - minusEfg("-efg"), - - - @SerializedName(value = "(xyz)") - leftParenthesisXyzRightParenthesis("(xyz)"); - - - - /** - This override toString avoids using the enum var name and uses the actual api value instead. - In cases the var name and value are different, the client would send incorrect enums to the server. - **/ - override fun toString(): String { - return value - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/EnumTest.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/EnumTest.kt deleted file mode 100644 index 3aceec7fe93..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/EnumTest.kt +++ /dev/null @@ -1,95 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - -import org.openapitools.client.models.OuterEnum -import org.openapitools.client.models.OuterEnumDefaultValue -import org.openapitools.client.models.OuterEnumInteger -import org.openapitools.client.models.OuterEnumIntegerDefaultValue - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param enumStringRequired - * @param enumString - * @param enumInteger - * @param enumNumber - * @param outerEnum - * @param outerEnumInteger - * @param outerEnumDefaultValue - * @param outerEnumIntegerDefaultValue - */ - -data class EnumTest ( - @SerializedName("enum_string_required") - val enumStringRequired: EnumTest.EnumStringRequired, - @SerializedName("enum_string") - val enumString: EnumTest.EnumString? = null, - @SerializedName("enum_integer") - val enumInteger: EnumTest.EnumInteger? = null, - @SerializedName("enum_number") - val enumNumber: EnumTest.EnumNumber? = null, - @SerializedName("outerEnum") - val outerEnum: OuterEnum? = null, - @SerializedName("outerEnumInteger") - val outerEnumInteger: OuterEnumInteger? = null, - @SerializedName("outerEnumDefaultValue") - val outerEnumDefaultValue: OuterEnumDefaultValue? = null, - @SerializedName("outerEnumIntegerDefaultValue") - val outerEnumIntegerDefaultValue: OuterEnumIntegerDefaultValue? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - - /** - * - * Values: uPPER,lower,eMPTY - */ - - enum class EnumStringRequired(val value: kotlin.String){ - @SerializedName(value = "UPPER") uPPER("UPPER"), - @SerializedName(value = "lower") lower("lower"), - @SerializedName(value = "") eMPTY(""); - } - /** - * - * Values: uPPER,lower,eMPTY - */ - - enum class EnumString(val value: kotlin.String){ - @SerializedName(value = "UPPER") uPPER("UPPER"), - @SerializedName(value = "lower") lower("lower"), - @SerializedName(value = "") eMPTY(""); - } - /** - * - * Values: _1,minus1 - */ - - enum class EnumInteger(val value: kotlin.Int){ - @SerializedName(value = "1") _1(1), - @SerializedName(value = "-1") minus1(-1); - } - /** - * - * Values: _1period1,minus1Period2 - */ - - enum class EnumNumber(val value: kotlin.Double){ - @SerializedName(value = "1.1") _1period1(1.1), - @SerializedName(value = "-1.2") minus1Period2(-1.2); - } -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/FileSchemaTestClass.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/FileSchemaTestClass.kt deleted file mode 100644 index b82eddd47cc..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/FileSchemaTestClass.kt +++ /dev/null @@ -1,35 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param file - * @param files - */ - -data class FileSchemaTestClass ( - @SerializedName("file") - val file: java.io.File? = null, - @SerializedName("files") - val files: kotlin.collections.List? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Foo.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Foo.kt deleted file mode 100644 index 33952e4b66f..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Foo.kt +++ /dev/null @@ -1,32 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param bar - */ - -data class Foo ( - @SerializedName("bar") - val bar: kotlin.String? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/FormatTest.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/FormatTest.kt deleted file mode 100644 index 54c88ca8e90..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/FormatTest.kt +++ /dev/null @@ -1,79 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param number - * @param byte - * @param date - * @param password - * @param integer - * @param int32 - * @param int64 - * @param float - * @param double - * @param decimal - * @param string - * @param binary - * @param dateTime - * @param uuid - * @param patternWithDigits A string that is a 10 digit number. Can have leading zeros. - * @param patternWithDigitsAndDelimiter A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. - */ - -data class FormatTest ( - @SerializedName("number") - val number: java.math.BigDecimal, - @SerializedName("byte") - val byte: kotlin.ByteArray, - @SerializedName("date") - val date: java.time.LocalDate, - @SerializedName("password") - val password: kotlin.String, - @SerializedName("integer") - val integer: kotlin.Int? = null, - @SerializedName("int32") - val int32: kotlin.Int? = null, - @SerializedName("int64") - val int64: kotlin.Long? = null, - @SerializedName("float") - val float: kotlin.Float? = null, - @SerializedName("double") - val double: kotlin.Double? = null, - @SerializedName("decimal") - val decimal: java.math.BigDecimal? = null, - @SerializedName("string") - val string: kotlin.String? = null, - @SerializedName("binary") - val binary: java.io.File? = null, - @SerializedName("dateTime") - val dateTime: java.time.OffsetDateTime? = null, - @SerializedName("uuid") - val uuid: java.util.UUID? = null, - /* A string that is a 10 digit number. Can have leading zeros. */ - @SerializedName("pattern_with_digits") - val patternWithDigits: kotlin.String? = null, - /* A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. */ - @SerializedName("pattern_with_digits_and_delimiter") - val patternWithDigitsAndDelimiter: kotlin.String? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/HasOnlyReadOnly.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/HasOnlyReadOnly.kt deleted file mode 100644 index 3d662d38a50..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/HasOnlyReadOnly.kt +++ /dev/null @@ -1,35 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param bar - * @param foo - */ - -data class HasOnlyReadOnly ( - @SerializedName("bar") - val bar: kotlin.String? = null, - @SerializedName("foo") - val foo: kotlin.String? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/HealthCheckResult.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/HealthCheckResult.kt deleted file mode 100644 index fe3b639cfc3..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/HealthCheckResult.kt +++ /dev/null @@ -1,32 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * Just a string to inform instance is up and running. Make it nullable in hope to get it as pointer in generated model. - * @param nullableMessage - */ - -data class HealthCheckResult ( - @SerializedName("NullableMessage") - val nullableMessage: kotlin.String? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/InlineObject.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/InlineObject.kt deleted file mode 100644 index 24f157d5d75..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/InlineObject.kt +++ /dev/null @@ -1,37 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param name Updated name of the pet - * @param status Updated status of the pet - */ - -data class InlineObject ( - /* Updated name of the pet */ - @SerializedName("name") - val name: kotlin.String? = null, - /* Updated status of the pet */ - @SerializedName("status") - val status: kotlin.String? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/InlineObject1.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/InlineObject1.kt deleted file mode 100644 index 2382fda34b0..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/InlineObject1.kt +++ /dev/null @@ -1,37 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param additionalMetadata Additional data to pass to server - * @param file file to upload - */ - -data class InlineObject1 ( - /* Additional data to pass to server */ - @SerializedName("additionalMetadata") - val additionalMetadata: kotlin.String? = null, - /* file to upload */ - @SerializedName("file") - val file: java.io.File? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/InlineObject2.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/InlineObject2.kt deleted file mode 100644 index 0c85be510de..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/InlineObject2.kt +++ /dev/null @@ -1,56 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param enumFormStringArray Form parameter enum test (string array) - * @param enumFormString Form parameter enum test (string) - */ - -data class InlineObject2 ( - /* Form parameter enum test (string array) */ - @SerializedName("enum_form_string_array") - val enumFormStringArray: kotlin.collections.List? = null, - /* Form parameter enum test (string) */ - @SerializedName("enum_form_string") - val enumFormString: InlineObject2.EnumFormString? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - - /** - * Form parameter enum test (string array) - * Values: greaterThan,dollar - */ - - enum class EnumFormStringArray(val value: kotlin.String){ - @SerializedName(value = ">") greaterThan(">"), - @SerializedName(value = "$") dollar("$"); - } - /** - * Form parameter enum test (string) - * Values: abc,minusEfg,leftParenthesisXyzRightParenthesis - */ - - enum class EnumFormString(val value: kotlin.String){ - @SerializedName(value = "_abc") abc("_abc"), - @SerializedName(value = "-efg") minusEfg("-efg"), - @SerializedName(value = "(xyz)") leftParenthesisXyzRightParenthesis("(xyz)"); - } -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/InlineObject3.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/InlineObject3.kt deleted file mode 100644 index 37a4dbaeb49..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/InlineObject3.kt +++ /dev/null @@ -1,85 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param number None - * @param double None - * @param patternWithoutDelimiter None - * @param byte None - * @param integer None - * @param int32 None - * @param int64 None - * @param float None - * @param string None - * @param binary None - * @param date None - * @param dateTime None - * @param password None - * @param callback None - */ - -data class InlineObject3 ( - /* None */ - @SerializedName("number") - val number: java.math.BigDecimal, - /* None */ - @SerializedName("double") - val double: kotlin.Double, - /* None */ - @SerializedName("pattern_without_delimiter") - val patternWithoutDelimiter: kotlin.String, - /* None */ - @SerializedName("byte") - val byte: kotlin.ByteArray, - /* None */ - @SerializedName("integer") - val integer: kotlin.Int? = null, - /* None */ - @SerializedName("int32") - val int32: kotlin.Int? = null, - /* None */ - @SerializedName("int64") - val int64: kotlin.Long? = null, - /* None */ - @SerializedName("float") - val float: kotlin.Float? = null, - /* None */ - @SerializedName("string") - val string: kotlin.String? = null, - /* None */ - @SerializedName("binary") - val binary: java.io.File? = null, - /* None */ - @SerializedName("date") - val date: java.time.LocalDate? = null, - /* None */ - @SerializedName("dateTime") - val dateTime: java.time.OffsetDateTime? = null, - /* None */ - @SerializedName("password") - val password: kotlin.String? = null, - /* None */ - @SerializedName("callback") - val callback: kotlin.String? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/InlineObject4.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/InlineObject4.kt deleted file mode 100644 index 06b2d303be8..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/InlineObject4.kt +++ /dev/null @@ -1,37 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param param field1 - * @param param2 field2 - */ - -data class InlineObject4 ( - /* field1 */ - @SerializedName("param") - val param: kotlin.String, - /* field2 */ - @SerializedName("param2") - val param2: kotlin.String -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/InlineObject5.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/InlineObject5.kt deleted file mode 100644 index 76a04940bbf..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/InlineObject5.kt +++ /dev/null @@ -1,37 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param requiredFile file to upload - * @param additionalMetadata Additional data to pass to server - */ - -data class InlineObject5 ( - /* file to upload */ - @SerializedName("requiredFile") - val requiredFile: java.io.File, - /* Additional data to pass to server */ - @SerializedName("additionalMetadata") - val additionalMetadata: kotlin.String? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/InlineResponseDefault.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/InlineResponseDefault.kt deleted file mode 100644 index aceb74085fe..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/InlineResponseDefault.kt +++ /dev/null @@ -1,33 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - -import org.openapitools.client.models.Foo - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param string - */ - -data class InlineResponseDefault ( - @SerializedName("string") - val string: Foo? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/List.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/List.kt deleted file mode 100644 index d614d69d93b..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/List.kt +++ /dev/null @@ -1,32 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param `123list` - */ - -data class List ( - @SerializedName("123-list") - val `123list`: kotlin.String? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/MapTest.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/MapTest.kt deleted file mode 100644 index 351506589b9..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/MapTest.kt +++ /dev/null @@ -1,50 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param mapMapOfString - * @param mapOfEnumString - * @param directMap - * @param indirectMap - */ - -data class MapTest ( - @SerializedName("map_map_of_string") - val mapMapOfString: kotlin.collections.Map>? = null, - @SerializedName("map_of_enum_string") - val mapOfEnumString: MapTest.MapOfEnumString? = null, - @SerializedName("direct_map") - val directMap: kotlin.collections.Map? = null, - @SerializedName("indirect_map") - val indirectMap: kotlin.collections.Map? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - - /** - * - * Values: uPPER,lower - */ - - enum class MapOfEnumString(val value: kotlin.String){ - @SerializedName(value = "UPPER") uPPER("UPPER"), - @SerializedName(value = "lower") lower("lower"); - } -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/MixedPropertiesAndAdditionalPropertiesClass.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/MixedPropertiesAndAdditionalPropertiesClass.kt deleted file mode 100644 index 39b0152a33f..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/MixedPropertiesAndAdditionalPropertiesClass.kt +++ /dev/null @@ -1,39 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - -import org.openapitools.client.models.Animal - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param uuid - * @param dateTime - * @param map - */ - -data class MixedPropertiesAndAdditionalPropertiesClass ( - @SerializedName("uuid") - val uuid: java.util.UUID? = null, - @SerializedName("dateTime") - val dateTime: java.time.OffsetDateTime? = null, - @SerializedName("map") - val map: kotlin.collections.Map? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Model200Response.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Model200Response.kt deleted file mode 100644 index 1360386ee2b..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Model200Response.kt +++ /dev/null @@ -1,35 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * Model for testing model name starting with number - * @param name - * @param propertyClass - */ - -data class Model200Response ( - @SerializedName("name") - val name: kotlin.Int? = null, - @SerializedName("class") - val propertyClass: kotlin.String? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Name.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Name.kt deleted file mode 100644 index e3113d603d4..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Name.kt +++ /dev/null @@ -1,41 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * Model for testing model name same as property name - * @param name - * @param snakeCase - * @param property - * @param `123number` - */ - -data class Name ( - @SerializedName("name") - val name: kotlin.Int, - @SerializedName("snake_case") - val snakeCase: kotlin.Int? = null, - @SerializedName("property") - val property: kotlin.String? = null, - @SerializedName("123Number") - val `123number`: kotlin.Int? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/NullableClass.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/NullableClass.kt deleted file mode 100644 index 81366b145ba..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/NullableClass.kt +++ /dev/null @@ -1,65 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param integerProp - * @param numberProp - * @param booleanProp - * @param stringProp - * @param dateProp - * @param datetimeProp - * @param arrayNullableProp - * @param arrayAndItemsNullableProp - * @param arrayItemsNullable - * @param objectNullableProp - * @param objectAndItemsNullableProp - * @param objectItemsNullable - */ - -data class NullableClass ( - @SerializedName("integer_prop") - val integerProp: kotlin.Int? = null, - @SerializedName("number_prop") - val numberProp: java.math.BigDecimal? = null, - @SerializedName("boolean_prop") - val booleanProp: kotlin.Boolean? = null, - @SerializedName("string_prop") - val stringProp: kotlin.String? = null, - @SerializedName("date_prop") - val dateProp: java.time.LocalDate? = null, - @SerializedName("datetime_prop") - val datetimeProp: java.time.OffsetDateTime? = null, - @SerializedName("array_nullable_prop") - val arrayNullableProp: kotlin.collections.List? = null, - @SerializedName("array_and_items_nullable_prop") - val arrayAndItemsNullableProp: kotlin.collections.List? = null, - @SerializedName("array_items_nullable") - val arrayItemsNullable: kotlin.collections.List? = null, - @SerializedName("object_nullable_prop") - val objectNullableProp: kotlin.collections.Map? = null, - @SerializedName("object_and_items_nullable_prop") - val objectAndItemsNullableProp: kotlin.collections.Map? = null, - @SerializedName("object_items_nullable") - val objectItemsNullable: kotlin.collections.Map? = null -) : kotlin.collections.HashMap(), Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/NumberOnly.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/NumberOnly.kt deleted file mode 100644 index 31f01f97b08..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/NumberOnly.kt +++ /dev/null @@ -1,32 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param justNumber - */ - -data class NumberOnly ( - @SerializedName("JustNumber") - val justNumber: java.math.BigDecimal? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Order.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Order.kt deleted file mode 100644 index 048659fa99f..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Order.kt +++ /dev/null @@ -1,58 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param id - * @param petId - * @param quantity - * @param shipDate - * @param status Order Status - * @param complete - */ - -data class Order ( - @SerializedName("id") - val id: kotlin.Long? = null, - @SerializedName("petId") - val petId: kotlin.Long? = null, - @SerializedName("quantity") - val quantity: kotlin.Int? = null, - @SerializedName("shipDate") - val shipDate: java.time.OffsetDateTime? = null, - /* Order Status */ - @SerializedName("status") - val status: Order.Status? = null, - @SerializedName("complete") - val complete: kotlin.Boolean? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - - /** - * Order Status - * Values: placed,approved,delivered - */ - - enum class Status(val value: kotlin.String){ - @SerializedName(value = "placed") placed("placed"), - @SerializedName(value = "approved") approved("approved"), - @SerializedName(value = "delivered") delivered("delivered"); - } -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/OuterComposite.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/OuterComposite.kt deleted file mode 100644 index dec8db2d9b8..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/OuterComposite.kt +++ /dev/null @@ -1,38 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param myNumber - * @param myString - * @param myBoolean - */ - -data class OuterComposite ( - @SerializedName("my_number") - val myNumber: java.math.BigDecimal? = null, - @SerializedName("my_string") - val myString: kotlin.String? = null, - @SerializedName("my_boolean") - val myBoolean: kotlin.Boolean? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/OuterEnum.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/OuterEnum.kt deleted file mode 100644 index 8d51cd4108b..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/OuterEnum.kt +++ /dev/null @@ -1,47 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName - -/** -* -* Values: placed,approved,delivered -*/ - -enum class OuterEnum(val value: kotlin.String){ - - - @SerializedName(value = "placed") - placed("placed"), - - - @SerializedName(value = "approved") - approved("approved"), - - - @SerializedName(value = "delivered") - delivered("delivered"); - - - - /** - This override toString avoids using the enum var name and uses the actual api value instead. - In cases the var name and value are different, the client would send incorrect enums to the server. - **/ - override fun toString(): String { - return value - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/OuterEnumDefaultValue.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/OuterEnumDefaultValue.kt deleted file mode 100644 index 980d368d032..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/OuterEnumDefaultValue.kt +++ /dev/null @@ -1,47 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName - -/** -* -* Values: placed,approved,delivered -*/ - -enum class OuterEnumDefaultValue(val value: kotlin.String){ - - - @SerializedName(value = "placed") - placed("placed"), - - - @SerializedName(value = "approved") - approved("approved"), - - - @SerializedName(value = "delivered") - delivered("delivered"); - - - - /** - This override toString avoids using the enum var name and uses the actual api value instead. - In cases the var name and value are different, the client would send incorrect enums to the server. - **/ - override fun toString(): String { - return value - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/OuterEnumInteger.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/OuterEnumInteger.kt deleted file mode 100644 index d5587936a8e..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/OuterEnumInteger.kt +++ /dev/null @@ -1,47 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName - -/** -* -* Values: _0,_1,_2 -*/ - -enum class OuterEnumInteger(val value: kotlin.Int){ - - - @SerializedName(value = "0") - _0(0), - - - @SerializedName(value = "1") - _1(1), - - - @SerializedName(value = "2") - _2(2); - - - - /** - This override toString avoids using the enum var name and uses the actual api value instead. - In cases the var name and value are different, the client would send incorrect enums to the server. - **/ - override fun toString(): String { - return value.toString() - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/OuterEnumIntegerDefaultValue.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/OuterEnumIntegerDefaultValue.kt deleted file mode 100644 index 25a816fc4a8..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/OuterEnumIntegerDefaultValue.kt +++ /dev/null @@ -1,47 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName - -/** -* -* Values: _0,_1,_2 -*/ - -enum class OuterEnumIntegerDefaultValue(val value: kotlin.Int){ - - - @SerializedName(value = "0") - _0(0), - - - @SerializedName(value = "1") - _1(1), - - - @SerializedName(value = "2") - _2(2); - - - - /** - This override toString avoids using the enum var name and uses the actual api value instead. - In cases the var name and value are different, the client would send incorrect enums to the server. - **/ - override fun toString(): String { - return value.toString() - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Pet.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Pet.kt deleted file mode 100644 index 0b389b22ba6..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Pet.kt +++ /dev/null @@ -1,60 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - -import org.openapitools.client.models.Category -import org.openapitools.client.models.Tag - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param name - * @param photoUrls - * @param id - * @param category - * @param tags - * @param status pet status in the store - */ - -data class Pet ( - @SerializedName("name") - val name: kotlin.String, - @SerializedName("photoUrls") - val photoUrls: kotlin.collections.List, - @SerializedName("id") - val id: kotlin.Long? = null, - @SerializedName("category") - val category: Category? = null, - @SerializedName("tags") - val tags: kotlin.collections.List? = null, - /* pet status in the store */ - @SerializedName("status") - val status: Pet.Status? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - - /** - * pet status in the store - * Values: available,pending,sold - */ - - enum class Status(val value: kotlin.String){ - @SerializedName(value = "available") available("available"), - @SerializedName(value = "pending") pending("pending"), - @SerializedName(value = "sold") sold("sold"); - } -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/ReadOnlyFirst.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/ReadOnlyFirst.kt deleted file mode 100644 index ef98374a695..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/ReadOnlyFirst.kt +++ /dev/null @@ -1,35 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param bar - * @param baz - */ - -data class ReadOnlyFirst ( - @SerializedName("bar") - val bar: kotlin.String? = null, - @SerializedName("baz") - val baz: kotlin.String? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Return.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Return.kt deleted file mode 100644 index 19f61d41673..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Return.kt +++ /dev/null @@ -1,32 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * Model for testing reserved words - * @param `return` - */ - -data class Return ( - @SerializedName("return") - val `return`: kotlin.Int? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/SpecialModelname.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/SpecialModelname.kt deleted file mode 100644 index 2dfb12b8b69..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/SpecialModelname.kt +++ /dev/null @@ -1,32 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param dollarSpecialPropertyName - */ - -data class SpecialModelname ( - @SerializedName("\$special[property.name]") - val dollarSpecialPropertyName: kotlin.Long? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Tag.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Tag.kt deleted file mode 100644 index 9e08a3d8ae0..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Tag.kt +++ /dev/null @@ -1,35 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param id - * @param name - */ - -data class Tag ( - @SerializedName("id") - val id: kotlin.Long? = null, - @SerializedName("name") - val name: kotlin.String? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/User.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/User.kt deleted file mode 100644 index ca2ce7188e5..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/User.kt +++ /dev/null @@ -1,54 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param id - * @param username - * @param firstName - * @param lastName - * @param email - * @param password - * @param phone - * @param userStatus User Status - */ - -data class User ( - @SerializedName("id") - val id: kotlin.Long? = null, - @SerializedName("username") - val username: kotlin.String? = null, - @SerializedName("firstName") - val firstName: kotlin.String? = null, - @SerializedName("lastName") - val lastName: kotlin.String? = null, - @SerializedName("email") - val email: kotlin.String? = null, - @SerializedName("password") - val password: kotlin.String? = null, - @SerializedName("phone") - val phone: kotlin.String? = null, - /* User Status */ - @SerializedName("userStatus") - val userStatus: kotlin.Int? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/.openapi-generator-ignore b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/.openapi-generator-ignore deleted file mode 100644 index 7484ee590a3..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/.openapi-generator-ignore +++ /dev/null @@ -1,23 +0,0 @@ -# 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/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/.openapi-generator/FILES b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/.openapi-generator/FILES deleted file mode 100644 index 2fcf69d6457..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/.openapi-generator/FILES +++ /dev/null @@ -1,116 +0,0 @@ -README.md -build.gradle -docs/200Response.md -docs/AdditionalPropertiesClass.md -docs/Animal.md -docs/AnotherFakeApi.md -docs/ApiResponse.md -docs/ArrayOfArrayOfNumberOnly.md -docs/ArrayOfNumberOnly.md -docs/ArrayTest.md -docs/Capitalization.md -docs/Cat.md -docs/CatAllOf.md -docs/Category.md -docs/ClassModel.md -docs/Client.md -docs/DefaultApi.md -docs/Dog.md -docs/DogAllOf.md -docs/EnumArrays.md -docs/EnumClass.md -docs/EnumTest.md -docs/FakeApi.md -docs/FakeClassnameTags123Api.md -docs/FileSchemaTestClass.md -docs/Foo.md -docs/FormatTest.md -docs/HasOnlyReadOnly.md -docs/HealthCheckResult.md -docs/InlineResponseDefault.md -docs/List.md -docs/MapTest.md -docs/MixedPropertiesAndAdditionalPropertiesClass.md -docs/Name.md -docs/NullableClass.md -docs/NumberOnly.md -docs/Order.md -docs/OuterComposite.md -docs/OuterEnum.md -docs/OuterEnumDefaultValue.md -docs/OuterEnumInteger.md -docs/OuterEnumIntegerDefaultValue.md -docs/Pet.md -docs/PetApi.md -docs/ReadOnlyFirst.md -docs/Return.md -docs/SpecialModelName.md -docs/StoreApi.md -docs/Tag.md -docs/User.md -docs/UserApi.md -settings.gradle -src/main/kotlin/org/openapitools/client/apis/AnotherFakeApi.kt -src/main/kotlin/org/openapitools/client/apis/DefaultApi.kt -src/main/kotlin/org/openapitools/client/apis/FakeApi.kt -src/main/kotlin/org/openapitools/client/apis/FakeClassnameTags123Api.kt -src/main/kotlin/org/openapitools/client/apis/PetApi.kt -src/main/kotlin/org/openapitools/client/apis/StoreApi.kt -src/main/kotlin/org/openapitools/client/apis/UserApi.kt -src/main/kotlin/org/openapitools/client/auth/ApiKeyAuth.kt -src/main/kotlin/org/openapitools/client/auth/HttpBasicAuth.kt -src/main/kotlin/org/openapitools/client/auth/HttpBearerAuth.kt -src/main/kotlin/org/openapitools/client/auth/OAuth.kt -src/main/kotlin/org/openapitools/client/auth/OAuthFlow.kt -src/main/kotlin/org/openapitools/client/auth/OAuthOkHttpClient.kt -src/main/kotlin/org/openapitools/client/infrastructure/ApiClient.kt -src/main/kotlin/org/openapitools/client/infrastructure/ByteArrayAdapter.kt -src/main/kotlin/org/openapitools/client/infrastructure/CollectionFormats.kt -src/main/kotlin/org/openapitools/client/infrastructure/DateAdapter.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/ResponseExt.kt -src/main/kotlin/org/openapitools/client/infrastructure/Serializer.kt -src/main/kotlin/org/openapitools/client/models/AdditionalPropertiesClass.kt -src/main/kotlin/org/openapitools/client/models/Animal.kt -src/main/kotlin/org/openapitools/client/models/ApiResponse.kt -src/main/kotlin/org/openapitools/client/models/ArrayOfArrayOfNumberOnly.kt -src/main/kotlin/org/openapitools/client/models/ArrayOfNumberOnly.kt -src/main/kotlin/org/openapitools/client/models/ArrayTest.kt -src/main/kotlin/org/openapitools/client/models/Capitalization.kt -src/main/kotlin/org/openapitools/client/models/Cat.kt -src/main/kotlin/org/openapitools/client/models/CatAllOf.kt -src/main/kotlin/org/openapitools/client/models/Category.kt -src/main/kotlin/org/openapitools/client/models/ClassModel.kt -src/main/kotlin/org/openapitools/client/models/Client.kt -src/main/kotlin/org/openapitools/client/models/Dog.kt -src/main/kotlin/org/openapitools/client/models/DogAllOf.kt -src/main/kotlin/org/openapitools/client/models/EnumArrays.kt -src/main/kotlin/org/openapitools/client/models/EnumClass.kt -src/main/kotlin/org/openapitools/client/models/EnumTest.kt -src/main/kotlin/org/openapitools/client/models/FileSchemaTestClass.kt -src/main/kotlin/org/openapitools/client/models/Foo.kt -src/main/kotlin/org/openapitools/client/models/FormatTest.kt -src/main/kotlin/org/openapitools/client/models/HasOnlyReadOnly.kt -src/main/kotlin/org/openapitools/client/models/HealthCheckResult.kt -src/main/kotlin/org/openapitools/client/models/InlineResponseDefault.kt -src/main/kotlin/org/openapitools/client/models/List.kt -src/main/kotlin/org/openapitools/client/models/MapTest.kt -src/main/kotlin/org/openapitools/client/models/MixedPropertiesAndAdditionalPropertiesClass.kt -src/main/kotlin/org/openapitools/client/models/Model200Response.kt -src/main/kotlin/org/openapitools/client/models/Name.kt -src/main/kotlin/org/openapitools/client/models/NullableClass.kt -src/main/kotlin/org/openapitools/client/models/NumberOnly.kt -src/main/kotlin/org/openapitools/client/models/Order.kt -src/main/kotlin/org/openapitools/client/models/OuterComposite.kt -src/main/kotlin/org/openapitools/client/models/OuterEnum.kt -src/main/kotlin/org/openapitools/client/models/OuterEnumDefaultValue.kt -src/main/kotlin/org/openapitools/client/models/OuterEnumInteger.kt -src/main/kotlin/org/openapitools/client/models/OuterEnumIntegerDefaultValue.kt -src/main/kotlin/org/openapitools/client/models/Pet.kt -src/main/kotlin/org/openapitools/client/models/ReadOnlyFirst.kt -src/main/kotlin/org/openapitools/client/models/Return.kt -src/main/kotlin/org/openapitools/client/models/SpecialModelname.kt -src/main/kotlin/org/openapitools/client/models/Tag.kt -src/main/kotlin/org/openapitools/client/models/User.kt diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/.openapi-generator/VERSION b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/.openapi-generator/VERSION deleted file mode 100644 index 3fa3b389a57..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -5.0.1-SNAPSHOT \ No newline at end of file diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/README.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/README.md deleted file mode 100644 index 1d23b6fdad2..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/README.md +++ /dev/null @@ -1,167 +0,0 @@ -# org.openapitools.client - Kotlin client library for OpenAPI Petstore - -## Requires - -* Kotlin 1.3.61 -* Gradle 4.9 - -## 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://petstore.swagger.io:80/v2* - -Class | Method | HTTP request | Description ------------- | ------------- | ------------- | ------------- -*AnotherFakeApi* | [**call123testSpecialTags**](docs/AnotherFakeApi.md#call123testspecialtags) | **PATCH** another-fake/dummy | To test special tags -*DefaultApi* | [**fooGet**](docs/DefaultApi.md#fooget) | **GET** foo | -*FakeApi* | [**fakeHealthGet**](docs/FakeApi.md#fakehealthget) | **GET** fake/health | Health check endpoint -*FakeApi* | [**fakeHttpSignatureTest**](docs/FakeApi.md#fakehttpsignaturetest) | **GET** fake/http-signature-test | test http signature authentication -*FakeApi* | [**fakeOuterBooleanSerialize**](docs/FakeApi.md#fakeouterbooleanserialize) | **POST** fake/outer/boolean | -*FakeApi* | [**fakeOuterCompositeSerialize**](docs/FakeApi.md#fakeoutercompositeserialize) | **POST** fake/outer/composite | -*FakeApi* | [**fakeOuterNumberSerialize**](docs/FakeApi.md#fakeouternumberserialize) | **POST** fake/outer/number | -*FakeApi* | [**fakeOuterStringSerialize**](docs/FakeApi.md#fakeouterstringserialize) | **POST** fake/outer/string | -*FakeApi* | [**testBodyWithFileSchema**](docs/FakeApi.md#testbodywithfileschema) | **PUT** fake/body-with-file-schema | -*FakeApi* | [**testBodyWithQueryParams**](docs/FakeApi.md#testbodywithqueryparams) | **PUT** fake/body-with-query-params | -*FakeApi* | [**testClientModel**](docs/FakeApi.md#testclientmodel) | **PATCH** fake | To test \"client\" model -*FakeApi* | [**testEndpointParameters**](docs/FakeApi.md#testendpointparameters) | **POST** fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 -*FakeApi* | [**testEnumParameters**](docs/FakeApi.md#testenumparameters) | **GET** fake | To test enum parameters -*FakeApi* | [**testGroupParameters**](docs/FakeApi.md#testgroupparameters) | **DELETE** fake | Fake endpoint to test group parameters (optional) -*FakeApi* | [**testInlineAdditionalProperties**](docs/FakeApi.md#testinlineadditionalproperties) | **POST** fake/inline-additionalProperties | test inline additionalProperties -*FakeApi* | [**testJsonFormData**](docs/FakeApi.md#testjsonformdata) | **GET** fake/jsonFormData | test json serialization of form data -*FakeApi* | [**testQueryParameterCollectionFormat**](docs/FakeApi.md#testqueryparametercollectionformat) | **PUT** fake/test-query-parameters | -*FakeClassnameTags123Api* | [**testClassname**](docs/FakeClassnameTags123Api.md#testclassname) | **PATCH** fake_classname_test | To test class name in snake case -*PetApi* | [**addPet**](docs/PetApi.md#addpet) | **POST** pet | Add a new pet to the store -*PetApi* | [**deletePet**](docs/PetApi.md#deletepet) | **DELETE** pet/{petId} | Deletes a pet -*PetApi* | [**findPetsByStatus**](docs/PetApi.md#findpetsbystatus) | **GET** pet/findByStatus | Finds Pets by status -*PetApi* | [**findPetsByTags**](docs/PetApi.md#findpetsbytags) | **GET** pet/findByTags | Finds Pets by tags -*PetApi* | [**getPetById**](docs/PetApi.md#getpetbyid) | **GET** pet/{petId} | Find pet by ID -*PetApi* | [**updatePet**](docs/PetApi.md#updatepet) | **PUT** pet | Update an existing pet -*PetApi* | [**updatePetWithForm**](docs/PetApi.md#updatepetwithform) | **POST** pet/{petId} | Updates a pet in the store with form data -*PetApi* | [**uploadFile**](docs/PetApi.md#uploadfile) | **POST** pet/{petId}/uploadImage | uploads an image -*PetApi* | [**uploadFileWithRequiredFile**](docs/PetApi.md#uploadfilewithrequiredfile) | **POST** fake/{petId}/uploadImageWithRequiredFile | uploads an image (required) -*StoreApi* | [**deleteOrder**](docs/StoreApi.md#deleteorder) | **DELETE** store/order/{order_id} | Delete purchase order by ID -*StoreApi* | [**getInventory**](docs/StoreApi.md#getinventory) | **GET** store/inventory | Returns pet inventories by status -*StoreApi* | [**getOrderById**](docs/StoreApi.md#getorderbyid) | **GET** store/order/{order_id} | Find purchase order by ID -*StoreApi* | [**placeOrder**](docs/StoreApi.md#placeorder) | **POST** store/order | Place an order for a pet -*UserApi* | [**createUser**](docs/UserApi.md#createuser) | **POST** user | Create user -*UserApi* | [**createUsersWithArrayInput**](docs/UserApi.md#createuserswitharrayinput) | **POST** user/createWithArray | Creates list of users with given input array -*UserApi* | [**createUsersWithListInput**](docs/UserApi.md#createuserswithlistinput) | **POST** user/createWithList | Creates list of users with given input array -*UserApi* | [**deleteUser**](docs/UserApi.md#deleteuser) | **DELETE** user/{username} | Delete user -*UserApi* | [**getUserByName**](docs/UserApi.md#getuserbyname) | **GET** user/{username} | Get user by user name -*UserApi* | [**loginUser**](docs/UserApi.md#loginuser) | **GET** user/login | Logs user into the system -*UserApi* | [**logoutUser**](docs/UserApi.md#logoutuser) | **GET** user/logout | Logs out current logged in user session -*UserApi* | [**updateUser**](docs/UserApi.md#updateuser) | **PUT** user/{username} | Updated user - - - -## Documentation for Models - - - [org.openapitools.client.models.AdditionalPropertiesClass](docs/AdditionalPropertiesClass.md) - - [org.openapitools.client.models.Animal](docs/Animal.md) - - [org.openapitools.client.models.ApiResponse](docs/ApiResponse.md) - - [org.openapitools.client.models.ArrayOfArrayOfNumberOnly](docs/ArrayOfArrayOfNumberOnly.md) - - [org.openapitools.client.models.ArrayOfNumberOnly](docs/ArrayOfNumberOnly.md) - - [org.openapitools.client.models.ArrayTest](docs/ArrayTest.md) - - [org.openapitools.client.models.Capitalization](docs/Capitalization.md) - - [org.openapitools.client.models.Cat](docs/Cat.md) - - [org.openapitools.client.models.CatAllOf](docs/CatAllOf.md) - - [org.openapitools.client.models.Category](docs/Category.md) - - [org.openapitools.client.models.ClassModel](docs/ClassModel.md) - - [org.openapitools.client.models.Client](docs/Client.md) - - [org.openapitools.client.models.Dog](docs/Dog.md) - - [org.openapitools.client.models.DogAllOf](docs/DogAllOf.md) - - [org.openapitools.client.models.EnumArrays](docs/EnumArrays.md) - - [org.openapitools.client.models.EnumClass](docs/EnumClass.md) - - [org.openapitools.client.models.EnumTest](docs/EnumTest.md) - - [org.openapitools.client.models.FileSchemaTestClass](docs/FileSchemaTestClass.md) - - [org.openapitools.client.models.Foo](docs/Foo.md) - - [org.openapitools.client.models.FormatTest](docs/FormatTest.md) - - [org.openapitools.client.models.HasOnlyReadOnly](docs/HasOnlyReadOnly.md) - - [org.openapitools.client.models.HealthCheckResult](docs/HealthCheckResult.md) - - [org.openapitools.client.models.InlineResponseDefault](docs/InlineResponseDefault.md) - - [org.openapitools.client.models.List](docs/List.md) - - [org.openapitools.client.models.MapTest](docs/MapTest.md) - - [org.openapitools.client.models.MixedPropertiesAndAdditionalPropertiesClass](docs/MixedPropertiesAndAdditionalPropertiesClass.md) - - [org.openapitools.client.models.Model200Response](docs/Model200Response.md) - - [org.openapitools.client.models.Name](docs/Name.md) - - [org.openapitools.client.models.NullableClass](docs/NullableClass.md) - - [org.openapitools.client.models.NumberOnly](docs/NumberOnly.md) - - [org.openapitools.client.models.Order](docs/Order.md) - - [org.openapitools.client.models.OuterComposite](docs/OuterComposite.md) - - [org.openapitools.client.models.OuterEnum](docs/OuterEnum.md) - - [org.openapitools.client.models.OuterEnumDefaultValue](docs/OuterEnumDefaultValue.md) - - [org.openapitools.client.models.OuterEnumInteger](docs/OuterEnumInteger.md) - - [org.openapitools.client.models.OuterEnumIntegerDefaultValue](docs/OuterEnumIntegerDefaultValue.md) - - [org.openapitools.client.models.Pet](docs/Pet.md) - - [org.openapitools.client.models.ReadOnlyFirst](docs/ReadOnlyFirst.md) - - [org.openapitools.client.models.Return](docs/Return.md) - - [org.openapitools.client.models.SpecialModelname](docs/SpecialModelname.md) - - [org.openapitools.client.models.Tag](docs/Tag.md) - - [org.openapitools.client.models.User](docs/User.md) - - - -## Documentation for Authorization - - -### api_key - -- **Type**: API key -- **API key parameter name**: api_key -- **Location**: HTTP header - - -### api_key_query - -- **Type**: API key -- **API key parameter name**: api_key_query -- **Location**: URL query string - - -### bearer_test - -- **Type**: HTTP basic authentication - - -### http_basic_test - -- **Type**: HTTP basic authentication - - -### http_signature_test - -- **Type**: HTTP basic authentication - - -### petstore_auth - -- **Type**: OAuth -- **Flow**: implicit -- **Authorization URL**: http://petstore.swagger.io/api/oauth/dialog -- **Scopes**: - - write:pets: modify pets in your account - - read:pets: read your pets - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/build.gradle b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/build.gradle deleted file mode 100644 index 745b5ece43d..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/build.gradle +++ /dev/null @@ -1,43 +0,0 @@ -group 'org.openapitools' -version '1.0.0' - -wrapper { - gradleVersion = '4.9' - distributionUrl = "https://services.gradle.org/distributions/gradle-$gradleVersion-all.zip" -} - -buildscript { - ext.kotlin_version = '1.3.61' - ext.retrofitVersion = '2.6.2' - ext.rxJava2Version = '2.2.17' - - repositories { - maven { url "https://repo1.maven.org/maven2" } - } - dependencies { - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" - } -} - -apply plugin: 'kotlin' - -repositories { - maven { url "https://repo1.maven.org/maven2" } -} - -test { - useJUnitPlatform() -} - -dependencies { - compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version" - compile "com.google.code.gson:gson:2.8.6" - compile "org.apache.oltu.oauth2:org.apache.oltu.oauth2.client:1.0.0" - compile "com.squareup.okhttp3:logging-interceptor:4.4.0" - compile "io.reactivex.rxjava2:rxjava:$rxJava2Version" - compile "com.squareup.retrofit2:adapter-rxjava2:$retrofitVersion" - compile "com.squareup.retrofit2:retrofit:$retrofitVersion" - compile "com.squareup.retrofit2:converter-gson:$retrofitVersion" - compile "com.squareup.retrofit2:converter-scalars:$retrofitVersion" - testCompile "io.kotlintest:kotlintest-runner-junit5:3.1.0" -} diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/200Response.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/200Response.md deleted file mode 100644 index 53c1edacfb8..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/200Response.md +++ /dev/null @@ -1,11 +0,0 @@ - -# Model200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **kotlin.Int** | | [optional] -**propertyClass** | **kotlin.String** | | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/AdditionalPropertiesClass.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/AdditionalPropertiesClass.md deleted file mode 100644 index 1025301ce94..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/AdditionalPropertiesClass.md +++ /dev/null @@ -1,11 +0,0 @@ - -# AdditionalPropertiesClass - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**mapProperty** | **kotlin.collections.Map<kotlin.String, kotlin.String>** | | [optional] -**mapOfMapProperty** | **kotlin.collections.Map<kotlin.String, kotlin.collections.Map<kotlin.String, kotlin.String>>** | | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/Animal.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/Animal.md deleted file mode 100644 index 5ce5a4972c8..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/Animal.md +++ /dev/null @@ -1,11 +0,0 @@ - -# Animal - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**className** | **kotlin.String** | | -**color** | **kotlin.String** | | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/AnotherFakeApi.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/AnotherFakeApi.md deleted file mode 100644 index 807d93ebe74..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/AnotherFakeApi.md +++ /dev/null @@ -1,47 +0,0 @@ -# AnotherFakeApi - -All URIs are relative to *http://petstore.swagger.io:80/v2* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**call123testSpecialTags**](AnotherFakeApi.md#call123testSpecialTags) | **PATCH** another-fake/dummy | To test special tags - - - -To test special tags - -To test special tags and operation ID starting with number - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(AnotherFakeApi::class.java) -val client : Client = // Client | client model - -val result : Client = webService.call123testSpecialTags(client) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | - -### Return type - -[**Client**](Client.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/ApiResponse.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/ApiResponse.md deleted file mode 100644 index 6b4c6bf2779..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/ApiResponse.md +++ /dev/null @@ -1,12 +0,0 @@ - -# ApiResponse - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **kotlin.Int** | | [optional] -**type** | **kotlin.String** | | [optional] -**message** | **kotlin.String** | | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/ArrayOfArrayOfNumberOnly.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/ArrayOfArrayOfNumberOnly.md deleted file mode 100644 index bcc306caeb6..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/ArrayOfArrayOfNumberOnly.md +++ /dev/null @@ -1,10 +0,0 @@ - -# ArrayOfArrayOfNumberOnly - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**arrayArrayNumber** | **kotlin.collections.List<kotlin.collections.List<java.math.BigDecimal>>** | | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/ArrayOfNumberOnly.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/ArrayOfNumberOnly.md deleted file mode 100644 index 00c57a7885e..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/ArrayOfNumberOnly.md +++ /dev/null @@ -1,10 +0,0 @@ - -# ArrayOfNumberOnly - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**arrayNumber** | [**kotlin.collections.List<java.math.BigDecimal>**](java.math.BigDecimal.md) | | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/ArrayTest.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/ArrayTest.md deleted file mode 100644 index 45e59c8fe77..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/ArrayTest.md +++ /dev/null @@ -1,12 +0,0 @@ - -# ArrayTest - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**arrayOfString** | **kotlin.collections.List<kotlin.String>** | | [optional] -**arrayArrayOfInteger** | **kotlin.collections.List<kotlin.collections.List<kotlin.Long>>** | | [optional] -**arrayArrayOfModel** | **kotlin.collections.List<kotlin.collections.List<ReadOnlyFirst>>** | | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/Capitalization.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/Capitalization.md deleted file mode 100644 index 9d44a82fb7f..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/Capitalization.md +++ /dev/null @@ -1,15 +0,0 @@ - -# Capitalization - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**smallCamel** | **kotlin.String** | | [optional] -**capitalCamel** | **kotlin.String** | | [optional] -**smallSnake** | **kotlin.String** | | [optional] -**capitalSnake** | **kotlin.String** | | [optional] -**scAETHFlowPoints** | **kotlin.String** | | [optional] -**ATT_NAME** | **kotlin.String** | Name of the pet | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/Cat.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/Cat.md deleted file mode 100644 index b6da7c47ced..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/Cat.md +++ /dev/null @@ -1,10 +0,0 @@ - -# Cat - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**declawed** | **kotlin.Boolean** | | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/CatAllOf.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/CatAllOf.md deleted file mode 100644 index fb8883197a1..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/CatAllOf.md +++ /dev/null @@ -1,10 +0,0 @@ - -# CatAllOf - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**declawed** | **kotlin.Boolean** | | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/Category.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/Category.md deleted file mode 100644 index 1f12c3eb158..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/Category.md +++ /dev/null @@ -1,11 +0,0 @@ - -# Category - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **kotlin.String** | | -**id** | **kotlin.Long** | | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/ClassModel.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/ClassModel.md deleted file mode 100644 index 50ad61b51a5..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/ClassModel.md +++ /dev/null @@ -1,10 +0,0 @@ - -# ClassModel - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**propertyClass** | **kotlin.String** | | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/Client.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/Client.md deleted file mode 100644 index 11afbcf0c9f..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/Client.md +++ /dev/null @@ -1,10 +0,0 @@ - -# Client - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**client** | **kotlin.String** | | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/DefaultApi.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/DefaultApi.md deleted file mode 100644 index 1b907e27cb6..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/DefaultApi.md +++ /dev/null @@ -1,41 +0,0 @@ -# DefaultApi - -All URIs are relative to *http://petstore.swagger.io:80/v2* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**fooGet**](DefaultApi.md#fooGet) | **GET** foo | - - - - - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(DefaultApi::class.java) - -val result : InlineResponseDefault = webService.fooGet() -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**InlineResponseDefault**](InlineResponseDefault.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/Dog.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/Dog.md deleted file mode 100644 index 41d9c6ba0d1..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/Dog.md +++ /dev/null @@ -1,10 +0,0 @@ - -# Dog - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**breed** | **kotlin.String** | | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/DogAllOf.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/DogAllOf.md deleted file mode 100644 index 6b14d5e9147..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/DogAllOf.md +++ /dev/null @@ -1,10 +0,0 @@ - -# DogAllOf - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**breed** | **kotlin.String** | | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/EnumArrays.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/EnumArrays.md deleted file mode 100644 index c3c5e235bfe..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/EnumArrays.md +++ /dev/null @@ -1,25 +0,0 @@ - -# EnumArrays - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**justSymbol** | [**inline**](#JustSymbolEnum) | | [optional] -**arrayEnum** | [**inline**](#kotlin.collections.List<ArrayEnumEnum>) | | [optional] - - - -## Enum: just_symbol -Name | Value ----- | ----- -justSymbol | >=, $ - - - -## Enum: array_enum -Name | Value ----- | ----- -arrayEnum | fish, crab - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/EnumClass.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/EnumClass.md deleted file mode 100644 index 5ddb262871f..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/EnumClass.md +++ /dev/null @@ -1,14 +0,0 @@ - -# EnumClass - -## Enum - - - * `abc` (value: `"_abc"`) - - * `minusEfg` (value: `"-efg"`) - - * `leftParenthesisXyzRightParenthesis` (value: `"(xyz)"`) - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/EnumTest.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/EnumTest.md deleted file mode 100644 index f0370049eb3..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/EnumTest.md +++ /dev/null @@ -1,45 +0,0 @@ - -# EnumTest - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**enumStringRequired** | [**inline**](#EnumStringRequiredEnum) | | -**enumString** | [**inline**](#EnumStringEnum) | | [optional] -**enumInteger** | [**inline**](#EnumIntegerEnum) | | [optional] -**enumNumber** | [**inline**](#EnumNumberEnum) | | [optional] -**outerEnum** | [**OuterEnum**](OuterEnum.md) | | [optional] -**outerEnumInteger** | [**OuterEnumInteger**](OuterEnumInteger.md) | | [optional] -**outerEnumDefaultValue** | [**OuterEnumDefaultValue**](OuterEnumDefaultValue.md) | | [optional] -**outerEnumIntegerDefaultValue** | [**OuterEnumIntegerDefaultValue**](OuterEnumIntegerDefaultValue.md) | | [optional] - - - -## Enum: enum_string_required -Name | Value ----- | ----- -enumStringRequired | UPPER, lower, - - - -## Enum: enum_string -Name | Value ----- | ----- -enumString | UPPER, lower, - - - -## Enum: enum_integer -Name | Value ----- | ----- -enumInteger | 1, -1 - - - -## Enum: enum_number -Name | Value ----- | ----- -enumNumber | 1.1, -1.2 - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/FakeApi.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/FakeApi.md deleted file mode 100644 index 29f5fd073c0..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/FakeApi.md +++ /dev/null @@ -1,651 +0,0 @@ -# FakeApi - -All URIs are relative to *http://petstore.swagger.io:80/v2* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**fakeHealthGet**](FakeApi.md#fakeHealthGet) | **GET** fake/health | Health check endpoint -[**fakeHttpSignatureTest**](FakeApi.md#fakeHttpSignatureTest) | **GET** fake/http-signature-test | test http signature authentication -[**fakeOuterBooleanSerialize**](FakeApi.md#fakeOuterBooleanSerialize) | **POST** fake/outer/boolean | -[**fakeOuterCompositeSerialize**](FakeApi.md#fakeOuterCompositeSerialize) | **POST** fake/outer/composite | -[**fakeOuterNumberSerialize**](FakeApi.md#fakeOuterNumberSerialize) | **POST** fake/outer/number | -[**fakeOuterStringSerialize**](FakeApi.md#fakeOuterStringSerialize) | **POST** fake/outer/string | -[**testBodyWithFileSchema**](FakeApi.md#testBodyWithFileSchema) | **PUT** fake/body-with-file-schema | -[**testBodyWithQueryParams**](FakeApi.md#testBodyWithQueryParams) | **PUT** fake/body-with-query-params | -[**testClientModel**](FakeApi.md#testClientModel) | **PATCH** fake | To test \"client\" model -[**testEndpointParameters**](FakeApi.md#testEndpointParameters) | **POST** fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 -[**testEnumParameters**](FakeApi.md#testEnumParameters) | **GET** fake | To test enum parameters -[**testGroupParameters**](FakeApi.md#testGroupParameters) | **DELETE** fake | Fake endpoint to test group parameters (optional) -[**testInlineAdditionalProperties**](FakeApi.md#testInlineAdditionalProperties) | **POST** fake/inline-additionalProperties | test inline additionalProperties -[**testJsonFormData**](FakeApi.md#testJsonFormData) | **GET** fake/jsonFormData | test json serialization of form data -[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** fake/test-query-parameters | - - - -Health check endpoint - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(FakeApi::class.java) - -val result : HealthCheckResult = webService.fakeHealthGet() -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**HealthCheckResult**](HealthCheckResult.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -test http signature authentication - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(FakeApi::class.java) -val pet : Pet = // Pet | Pet object that needs to be added to the store -val query1 : kotlin.String = query1_example // kotlin.String | query parameter -val header1 : kotlin.String = header1_example // kotlin.String | header parameter - -webService.fakeHttpSignatureTest(pet, query1, header1) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | - **query1** | **kotlin.String**| query parameter | [optional] - **header1** | **kotlin.String**| header parameter | [optional] - -### Return type - -null (empty response body) - -### Authorization - - - -### HTTP request headers - - - **Content-Type**: application/json, application/xml - - **Accept**: Not defined - - - - -Test serialization of outer boolean types - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(FakeApi::class.java) -val body : kotlin.Boolean = true // kotlin.Boolean | Input boolean as post body - -val result : kotlin.Boolean = webService.fakeOuterBooleanSerialize(body) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **kotlin.Boolean**| Input boolean as post body | [optional] - -### Return type - -**kotlin.Boolean** - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: */* - - - - -Test serialization of object with outer number type - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(FakeApi::class.java) -val outerComposite : OuterComposite = // OuterComposite | Input composite as post body - -val result : OuterComposite = webService.fakeOuterCompositeSerialize(outerComposite) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **outerComposite** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional] - -### Return type - -[**OuterComposite**](OuterComposite.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: */* - - - - -Test serialization of outer number types - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(FakeApi::class.java) -val body : java.math.BigDecimal = 8.14 // java.math.BigDecimal | Input number as post body - -val result : java.math.BigDecimal = webService.fakeOuterNumberSerialize(body) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **java.math.BigDecimal**| Input number as post body | [optional] - -### Return type - -[**java.math.BigDecimal**](java.math.BigDecimal.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: */* - - - - -Test serialization of outer string types - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(FakeApi::class.java) -val body : kotlin.String = body_example // kotlin.String | Input string as post body - -val result : kotlin.String = webService.fakeOuterStringSerialize(body) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **kotlin.String**| Input string as post body | [optional] - -### Return type - -**kotlin.String** - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: */* - - - - -For this test, the body for this request much reference a schema named `File`. - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(FakeApi::class.java) -val fileSchemaTestClass : FileSchemaTestClass = // FileSchemaTestClass | - -webService.testBodyWithFileSchema(fileSchemaTestClass) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: Not defined - - - - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(FakeApi::class.java) -val query : kotlin.String = query_example // kotlin.String | -val user : User = // User | - -webService.testBodyWithQueryParams(query, user) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **query** | **kotlin.String**| | - **user** | [**User**](User.md)| | - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: Not defined - - -To test \"client\" model - -To test \"client\" model - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(FakeApi::class.java) -val client : Client = // Client | client model - -val result : Client = webService.testClientModel(client) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | - -### Return type - -[**Client**](Client.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - -Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - -Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -apiClient.setCredentials("USERNAME", "PASSWORD") -val webService = apiClient.createWebservice(FakeApi::class.java) -val number : java.math.BigDecimal = 8.14 // java.math.BigDecimal | None -val double : kotlin.Double = 1.2 // kotlin.Double | None -val patternWithoutDelimiter : kotlin.String = patternWithoutDelimiter_example // kotlin.String | None -val byte : kotlin.ByteArray = BYTE_ARRAY_DATA_HERE // kotlin.ByteArray | None -val integer : kotlin.Int = 56 // kotlin.Int | None -val int32 : kotlin.Int = 56 // kotlin.Int | None -val int64 : kotlin.Long = 789 // kotlin.Long | None -val float : kotlin.Float = 3.4 // kotlin.Float | None -val string : kotlin.String = string_example // kotlin.String | None -val binary : java.io.File = BINARY_DATA_HERE // java.io.File | None -val date : java.time.LocalDate = 2013-10-20 // java.time.LocalDate | None -val dateTime : java.time.OffsetDateTime = 2013-10-20T19:20:30+01:00 // java.time.OffsetDateTime | None -val password : kotlin.String = password_example // kotlin.String | None -val paramCallback : kotlin.String = paramCallback_example // kotlin.String | None - -webService.testEndpointParameters(number, double, patternWithoutDelimiter, byte, integer, int32, int64, float, string, binary, date, dateTime, password, paramCallback) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **number** | **java.math.BigDecimal**| None | - **double** | **kotlin.Double**| None | - **patternWithoutDelimiter** | **kotlin.String**| None | - **byte** | **kotlin.ByteArray**| None | - **integer** | **kotlin.Int**| None | [optional] - **int32** | **kotlin.Int**| None | [optional] - **int64** | **kotlin.Long**| None | [optional] - **float** | **kotlin.Float**| None | [optional] - **string** | **kotlin.String**| None | [optional] - **binary** | **java.io.File**| None | [optional] - **date** | **java.time.LocalDate**| None | [optional] - **dateTime** | **java.time.OffsetDateTime**| None | [optional] - **password** | **kotlin.String**| None | [optional] - **paramCallback** | **kotlin.String**| None | [optional] - -### Return type - -null (empty response body) - -### Authorization - - -Configure http_basic_test: - ApiClient().setCredentials("USERNAME", "PASSWORD") - -### HTTP request headers - - - **Content-Type**: application/x-www-form-urlencoded - - **Accept**: Not defined - - -To test enum parameters - -To test enum parameters - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(FakeApi::class.java) -val enumHeaderStringArray : kotlin.collections.List = // kotlin.collections.List | Header parameter enum test (string array) -val enumHeaderString : kotlin.String = enumHeaderString_example // kotlin.String | Header parameter enum test (string) -val enumQueryStringArray : kotlin.collections.List = // kotlin.collections.List | Query parameter enum test (string array) -val enumQueryString : kotlin.String = enumQueryString_example // kotlin.String | Query parameter enum test (string) -val enumQueryInteger : kotlin.Int = 56 // kotlin.Int | Query parameter enum test (double) -val enumQueryDouble : kotlin.Double = 1.2 // kotlin.Double | Query parameter enum test (double) -val enumFormStringArray : kotlin.collections.List = enumFormStringArray_example // kotlin.collections.List | Form parameter enum test (string array) -val enumFormString : kotlin.String = enumFormString_example // kotlin.String | Form parameter enum test (string) - -webService.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **enumHeaderStringArray** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| Header parameter enum test (string array) | [optional] [enum: >, $] - **enumHeaderString** | **kotlin.String**| Header parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] - **enumQueryStringArray** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| Query parameter enum test (string array) | [optional] [enum: >, $] - **enumQueryString** | **kotlin.String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] - **enumQueryInteger** | **kotlin.Int**| Query parameter enum test (double) | [optional] [enum: 1, -2] - **enumQueryDouble** | **kotlin.Double**| Query parameter enum test (double) | [optional] [enum: 1.1, -1.2] - **enumFormStringArray** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| Form parameter enum test (string array) | [optional] [default to $] [enum: >, $] - **enumFormString** | **kotlin.String**| Form parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/x-www-form-urlencoded - - **Accept**: Not defined - - -Fake endpoint to test group parameters (optional) - -Fake endpoint to test group parameters (optional) - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -apiClient.setBearerToken("TOKEN") -val webService = apiClient.createWebservice(FakeApi::class.java) -val requiredStringGroup : kotlin.Int = 56 // kotlin.Int | Required String in group parameters -val requiredBooleanGroup : kotlin.Boolean = true // kotlin.Boolean | Required Boolean in group parameters -val requiredInt64Group : kotlin.Long = 789 // kotlin.Long | Required Integer in group parameters -val stringGroup : kotlin.Int = 56 // kotlin.Int | String in group parameters -val booleanGroup : kotlin.Boolean = true // kotlin.Boolean | Boolean in group parameters -val int64Group : kotlin.Long = 789 // kotlin.Long | Integer in group parameters - -webService.testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **requiredStringGroup** | **kotlin.Int**| Required String in group parameters | - **requiredBooleanGroup** | **kotlin.Boolean**| Required Boolean in group parameters | - **requiredInt64Group** | **kotlin.Long**| Required Integer in group parameters | - **stringGroup** | **kotlin.Int**| String in group parameters | [optional] - **booleanGroup** | **kotlin.Boolean**| Boolean in group parameters | [optional] - **int64Group** | **kotlin.Long**| Integer in group parameters | [optional] - -### Return type - -null (empty response body) - -### Authorization - - -Configure bearer_test: - ApiClient().setBearerToken("TOKEN") - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: Not defined - - -test inline additionalProperties - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(FakeApi::class.java) -val requestBody : kotlin.collections.Map = // kotlin.collections.Map | request body - -webService.testInlineAdditionalProperties(requestBody) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **requestBody** | [**kotlin.collections.Map<kotlin.String, kotlin.String>**](kotlin.String.md)| request body | - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: Not defined - - -test json serialization of form data - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(FakeApi::class.java) -val param : kotlin.String = param_example // kotlin.String | field1 -val param2 : kotlin.String = param2_example // kotlin.String | field2 - -webService.testJsonFormData(param, param2) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **param** | **kotlin.String**| field1 | - **param2** | **kotlin.String**| field2 | - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/x-www-form-urlencoded - - **Accept**: Not defined - - - - -To test the collection format in query parameters - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(FakeApi::class.java) -val pipe : kotlin.collections.List = // kotlin.collections.List | -val ioutil : kotlin.collections.List = // kotlin.collections.List | -val http : kotlin.collections.List = // kotlin.collections.List | -val url : kotlin.collections.List = // kotlin.collections.List | -val context : kotlin.collections.List = // kotlin.collections.List | - -webService.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pipe** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| | - **ioutil** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| | - **http** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| | - **url** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| | - **context** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| | - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: Not defined - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/FakeClassnameTags123Api.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/FakeClassnameTags123Api.md deleted file mode 100644 index 2f6a955e487..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/FakeClassnameTags123Api.md +++ /dev/null @@ -1,47 +0,0 @@ -# FakeClassnameTags123Api - -All URIs are relative to *http://petstore.swagger.io:80/v2* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**testClassname**](FakeClassnameTags123Api.md#testClassname) | **PATCH** fake_classname_test | To test class name in snake case - - - -To test class name in snake case - -To test class name in snake case - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(FakeClassnameTags123Api::class.java) -val client : Client = // Client | client model - -val result : Client = webService.testClassname(client) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | - -### Return type - -[**Client**](Client.md) - -### Authorization - - - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/FileSchemaTestClass.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/FileSchemaTestClass.md deleted file mode 100644 index e5512f82f6f..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/FileSchemaTestClass.md +++ /dev/null @@ -1,11 +0,0 @@ - -# FileSchemaTestClass - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**file** | [**java.io.File**](java.io.File.md) | | [optional] -**files** | [**kotlin.collections.List<java.io.File>**](java.io.File.md) | | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/Foo.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/Foo.md deleted file mode 100644 index e3e9918872b..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/Foo.md +++ /dev/null @@ -1,10 +0,0 @@ - -# Foo - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**bar** | **kotlin.String** | | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/FormatTest.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/FormatTest.md deleted file mode 100644 index 01b408499e7..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/FormatTest.md +++ /dev/null @@ -1,25 +0,0 @@ - -# FormatTest - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**number** | [**java.math.BigDecimal**](java.math.BigDecimal.md) | | -**byte** | **kotlin.ByteArray** | | -**date** | [**java.time.LocalDate**](java.time.LocalDate.md) | | -**password** | **kotlin.String** | | -**integer** | **kotlin.Int** | | [optional] -**int32** | **kotlin.Int** | | [optional] -**int64** | **kotlin.Long** | | [optional] -**float** | **kotlin.Float** | | [optional] -**double** | **kotlin.Double** | | [optional] -**decimal** | [**java.math.BigDecimal**](java.math.BigDecimal.md) | | [optional] -**string** | **kotlin.String** | | [optional] -**binary** | [**java.io.File**](java.io.File.md) | | [optional] -**dateTime** | [**java.time.OffsetDateTime**](java.time.OffsetDateTime.md) | | [optional] -**uuid** | [**java.util.UUID**](java.util.UUID.md) | | [optional] -**patternWithDigits** | **kotlin.String** | A string that is a 10 digit number. Can have leading zeros. | [optional] -**patternWithDigitsAndDelimiter** | **kotlin.String** | A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/HasOnlyReadOnly.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/HasOnlyReadOnly.md deleted file mode 100644 index ed3e4750f44..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/HasOnlyReadOnly.md +++ /dev/null @@ -1,11 +0,0 @@ - -# HasOnlyReadOnly - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**bar** | **kotlin.String** | | [optional] [readonly] -**foo** | **kotlin.String** | | [optional] [readonly] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/HealthCheckResult.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/HealthCheckResult.md deleted file mode 100644 index 472dc310457..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/HealthCheckResult.md +++ /dev/null @@ -1,10 +0,0 @@ - -# HealthCheckResult - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**nullableMessage** | **kotlin.String** | | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/InlineObject.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/InlineObject.md deleted file mode 100644 index 2156c70addf..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/InlineObject.md +++ /dev/null @@ -1,11 +0,0 @@ - -# InlineObject - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **kotlin.String** | Updated name of the pet | [optional] -**status** | **kotlin.String** | Updated status of the pet | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/InlineObject1.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/InlineObject1.md deleted file mode 100644 index 2a77eecba2b..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/InlineObject1.md +++ /dev/null @@ -1,11 +0,0 @@ - -# InlineObject1 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**additionalMetadata** | **kotlin.String** | Additional data to pass to server | [optional] -**file** | [**java.io.File**](java.io.File.md) | file to upload | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/InlineObject2.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/InlineObject2.md deleted file mode 100644 index a98ffe031b3..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/InlineObject2.md +++ /dev/null @@ -1,25 +0,0 @@ - -# InlineObject2 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**enumFormStringArray** | [**inline**](#kotlin.collections.List<EnumFormStringArrayEnum>) | Form parameter enum test (string array) | [optional] -**enumFormString** | [**inline**](#EnumFormStringEnum) | Form parameter enum test (string) | [optional] - - - -## Enum: enum_form_string_array -Name | Value ----- | ----- -enumFormStringArray | >, $ - - - -## Enum: enum_form_string -Name | Value ----- | ----- -enumFormString | _abc, -efg, (xyz) - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/InlineObject3.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/InlineObject3.md deleted file mode 100644 index 4ca6979b280..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/InlineObject3.md +++ /dev/null @@ -1,23 +0,0 @@ - -# InlineObject3 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**number** | [**java.math.BigDecimal**](java.math.BigDecimal.md) | None | -**double** | **kotlin.Double** | None | -**patternWithoutDelimiter** | **kotlin.String** | None | -**byte** | **kotlin.ByteArray** | None | -**integer** | **kotlin.Int** | None | [optional] -**int32** | **kotlin.Int** | None | [optional] -**int64** | **kotlin.Long** | None | [optional] -**float** | **kotlin.Float** | None | [optional] -**string** | **kotlin.String** | None | [optional] -**binary** | [**java.io.File**](java.io.File.md) | None | [optional] -**date** | [**java.time.LocalDate**](java.time.LocalDate.md) | None | [optional] -**dateTime** | [**java.time.OffsetDateTime**](java.time.OffsetDateTime.md) | None | [optional] -**password** | **kotlin.String** | None | [optional] -**callback** | **kotlin.String** | None | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/InlineObject4.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/InlineObject4.md deleted file mode 100644 index 03c4daa7631..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/InlineObject4.md +++ /dev/null @@ -1,11 +0,0 @@ - -# InlineObject4 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**param** | **kotlin.String** | field1 | -**param2** | **kotlin.String** | field2 | - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/InlineObject5.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/InlineObject5.md deleted file mode 100644 index c3c020b20f6..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/InlineObject5.md +++ /dev/null @@ -1,11 +0,0 @@ - -# InlineObject5 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**requiredFile** | [**java.io.File**](java.io.File.md) | file to upload | -**additionalMetadata** | **kotlin.String** | Additional data to pass to server | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/InlineResponseDefault.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/InlineResponseDefault.md deleted file mode 100644 index afdd81b1383..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/InlineResponseDefault.md +++ /dev/null @@ -1,10 +0,0 @@ - -# InlineResponseDefault - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**string** | [**Foo**](Foo.md) | | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/List.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/List.md deleted file mode 100644 index f426d541a40..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/List.md +++ /dev/null @@ -1,10 +0,0 @@ - -# List - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**`123list`** | **kotlin.String** | | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/MapTest.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/MapTest.md deleted file mode 100644 index 8cee39e3604..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/MapTest.md +++ /dev/null @@ -1,20 +0,0 @@ - -# MapTest - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**mapMapOfString** | **kotlin.collections.Map<kotlin.String, kotlin.collections.Map<kotlin.String, kotlin.String>>** | | [optional] -**mapOfEnumString** | [**inline**](#kotlin.collections.Map<kotlin.String, InnerEnum>) | | [optional] -**directMap** | **kotlin.collections.Map<kotlin.String, kotlin.Boolean>** | | [optional] -**indirectMap** | **kotlin.collections.Map<kotlin.String, kotlin.Boolean>** | | [optional] - - - -## Enum: map_of_enum_string -Name | Value ----- | ----- -mapOfEnumString | UPPER, lower - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/MixedPropertiesAndAdditionalPropertiesClass.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/MixedPropertiesAndAdditionalPropertiesClass.md deleted file mode 100644 index 74456741217..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/MixedPropertiesAndAdditionalPropertiesClass.md +++ /dev/null @@ -1,12 +0,0 @@ - -# MixedPropertiesAndAdditionalPropertiesClass - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**uuid** | [**java.util.UUID**](java.util.UUID.md) | | [optional] -**dateTime** | [**java.time.OffsetDateTime**](java.time.OffsetDateTime.md) | | [optional] -**map** | [**kotlin.collections.Map<kotlin.String, Animal>**](Animal.md) | | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/Name.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/Name.md deleted file mode 100644 index 343700533c7..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/Name.md +++ /dev/null @@ -1,13 +0,0 @@ - -# Name - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **kotlin.Int** | | -**snakeCase** | **kotlin.Int** | | [optional] [readonly] -**property** | **kotlin.String** | | [optional] -**`123number`** | **kotlin.Int** | | [optional] [readonly] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/NullableClass.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/NullableClass.md deleted file mode 100644 index 335943c01ea..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/NullableClass.md +++ /dev/null @@ -1,21 +0,0 @@ - -# NullableClass - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**integerProp** | **kotlin.Int** | | [optional] -**numberProp** | [**java.math.BigDecimal**](java.math.BigDecimal.md) | | [optional] -**booleanProp** | **kotlin.Boolean** | | [optional] -**stringProp** | **kotlin.String** | | [optional] -**dateProp** | [**java.time.LocalDate**](java.time.LocalDate.md) | | [optional] -**datetimeProp** | [**java.time.OffsetDateTime**](java.time.OffsetDateTime.md) | | [optional] -**arrayNullableProp** | [**kotlin.collections.List<kotlin.Any>**](kotlin.Any.md) | | [optional] -**arrayAndItemsNullableProp** | [**kotlin.collections.List<kotlin.Any>**](kotlin.Any.md) | | [optional] -**arrayItemsNullable** | [**kotlin.collections.List<kotlin.Any>**](kotlin.Any.md) | | [optional] -**objectNullableProp** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | [optional] -**objectAndItemsNullableProp** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | [optional] -**objectItemsNullable** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/NumberOnly.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/NumberOnly.md deleted file mode 100644 index 41e8b82470b..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/NumberOnly.md +++ /dev/null @@ -1,10 +0,0 @@ - -# NumberOnly - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**justNumber** | [**java.math.BigDecimal**](java.math.BigDecimal.md) | | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/Order.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/Order.md deleted file mode 100644 index 5112f08958d..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/Order.md +++ /dev/null @@ -1,22 +0,0 @@ - -# Order - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **kotlin.Long** | | [optional] -**petId** | **kotlin.Long** | | [optional] -**quantity** | **kotlin.Int** | | [optional] -**shipDate** | [**java.time.OffsetDateTime**](java.time.OffsetDateTime.md) | | [optional] -**status** | [**inline**](#StatusEnum) | Order Status | [optional] -**complete** | **kotlin.Boolean** | | [optional] - - - -## Enum: status -Name | Value ----- | ----- -status | placed, approved, delivered - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/OuterComposite.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/OuterComposite.md deleted file mode 100644 index 5296703674d..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/OuterComposite.md +++ /dev/null @@ -1,12 +0,0 @@ - -# OuterComposite - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**myNumber** | [**java.math.BigDecimal**](java.math.BigDecimal.md) | | [optional] -**myString** | **kotlin.String** | | [optional] -**myBoolean** | **kotlin.Boolean** | | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/OuterEnum.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/OuterEnum.md deleted file mode 100644 index 9e7ecb9499a..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/OuterEnum.md +++ /dev/null @@ -1,14 +0,0 @@ - -# OuterEnum - -## Enum - - - * `placed` (value: `"placed"`) - - * `approved` (value: `"approved"`) - - * `delivered` (value: `"delivered"`) - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/OuterEnumDefaultValue.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/OuterEnumDefaultValue.md deleted file mode 100644 index 821d297a001..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/OuterEnumDefaultValue.md +++ /dev/null @@ -1,14 +0,0 @@ - -# OuterEnumDefaultValue - -## Enum - - - * `placed` (value: `"placed"`) - - * `approved` (value: `"approved"`) - - * `delivered` (value: `"delivered"`) - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/OuterEnumInteger.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/OuterEnumInteger.md deleted file mode 100644 index b40f6e4b7ef..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/OuterEnumInteger.md +++ /dev/null @@ -1,14 +0,0 @@ - -# OuterEnumInteger - -## Enum - - - * `_0` (value: `0`) - - * `_1` (value: `1`) - - * `_2` (value: `2`) - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/OuterEnumIntegerDefaultValue.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/OuterEnumIntegerDefaultValue.md deleted file mode 100644 index c2fb3ee41d7..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/OuterEnumIntegerDefaultValue.md +++ /dev/null @@ -1,14 +0,0 @@ - -# OuterEnumIntegerDefaultValue - -## Enum - - - * `_0` (value: `0`) - - * `_1` (value: `1`) - - * `_2` (value: `2`) - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/Pet.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/Pet.md deleted file mode 100644 index c82844b5ee8..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/Pet.md +++ /dev/null @@ -1,22 +0,0 @@ - -# Pet - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **kotlin.String** | | -**photoUrls** | **kotlin.collections.List<kotlin.String>** | | -**id** | **kotlin.Long** | | [optional] -**category** | [**Category**](Category.md) | | [optional] -**tags** | [**kotlin.collections.List<Tag>**](Tag.md) | | [optional] -**status** | [**inline**](#StatusEnum) | pet status in the store | [optional] - - - -## Enum: status -Name | Value ----- | ----- -status | available, pending, sold - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/PetApi.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/PetApi.md deleted file mode 100644 index 32d031b57a9..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/PetApi.md +++ /dev/null @@ -1,361 +0,0 @@ -# PetApi - -All URIs are relative to *http://petstore.swagger.io:80/v2* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**addPet**](PetApi.md#addPet) | **POST** pet | Add a new pet to the store -[**deletePet**](PetApi.md#deletePet) | **DELETE** pet/{petId} | Deletes a pet -[**findPetsByStatus**](PetApi.md#findPetsByStatus) | **GET** pet/findByStatus | Finds Pets by status -[**findPetsByTags**](PetApi.md#findPetsByTags) | **GET** pet/findByTags | Finds Pets by tags -[**getPetById**](PetApi.md#getPetById) | **GET** pet/{petId} | Find pet by ID -[**updatePet**](PetApi.md#updatePet) | **PUT** pet | Update an existing pet -[**updatePetWithForm**](PetApi.md#updatePetWithForm) | **POST** pet/{petId} | Updates a pet in the store with form data -[**uploadFile**](PetApi.md#uploadFile) | **POST** pet/{petId}/uploadImage | uploads an image -[**uploadFileWithRequiredFile**](PetApi.md#uploadFileWithRequiredFile) | **POST** fake/{petId}/uploadImageWithRequiredFile | uploads an image (required) - - - -Add a new pet to the store - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(PetApi::class.java) -val pet : Pet = // Pet | Pet object that needs to be added to the store - -webService.addPet(pet) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | - -### Return type - -null (empty response body) - -### Authorization - - - -### HTTP request headers - - - **Content-Type**: application/json, application/xml - - **Accept**: Not defined - - -Deletes a pet - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(PetApi::class.java) -val petId : kotlin.Long = 789 // kotlin.Long | Pet id to delete -val apiKey : kotlin.String = apiKey_example // kotlin.String | - -webService.deletePet(petId, apiKey) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **petId** | **kotlin.Long**| Pet id to delete | - **apiKey** | **kotlin.String**| | [optional] - -### Return type - -null (empty response body) - -### Authorization - - - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: Not defined - - -Finds Pets by status - -Multiple status values can be provided with comma separated strings - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(PetApi::class.java) -val status : kotlin.collections.List = // kotlin.collections.List | Status values that need to be considered for filter - -val result : kotlin.collections.List = webService.findPetsByStatus(status) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **status** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| Status values that need to be considered for filter | [enum: available, pending, sold] - -### Return type - -[**kotlin.collections.List<Pet>**](Pet.md) - -### Authorization - - - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/xml, application/json - - -Finds Pets by tags - -Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(PetApi::class.java) -val tags : kotlin.collections.List = // kotlin.collections.List | Tags to filter by - -val result : kotlin.collections.List = webService.findPetsByTags(tags) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **tags** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| Tags to filter by | - -### Return type - -[**kotlin.collections.List<Pet>**](Pet.md) - -### Authorization - - - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/xml, application/json - - -Find pet by ID - -Returns a single pet - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(PetApi::class.java) -val petId : kotlin.Long = 789 // kotlin.Long | ID of pet to return - -val result : Pet = webService.getPetById(petId) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **petId** | **kotlin.Long**| ID of pet to return | - -### Return type - -[**Pet**](Pet.md) - -### Authorization - - - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/xml, application/json - - -Update an existing pet - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(PetApi::class.java) -val pet : Pet = // Pet | Pet object that needs to be added to the store - -webService.updatePet(pet) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | - -### Return type - -null (empty response body) - -### Authorization - - - -### HTTP request headers - - - **Content-Type**: application/json, application/xml - - **Accept**: Not defined - - -Updates a pet in the store with form data - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(PetApi::class.java) -val petId : kotlin.Long = 789 // kotlin.Long | ID of pet that needs to be updated -val name : kotlin.String = name_example // kotlin.String | Updated name of the pet -val status : kotlin.String = status_example // kotlin.String | Updated status of the pet - -webService.updatePetWithForm(petId, name, status) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **petId** | **kotlin.Long**| ID of pet that needs to be updated | - **name** | **kotlin.String**| Updated name of the pet | [optional] - **status** | **kotlin.String**| Updated status of the pet | [optional] - -### Return type - -null (empty response body) - -### Authorization - - - -### HTTP request headers - - - **Content-Type**: application/x-www-form-urlencoded - - **Accept**: Not defined - - -uploads an image - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(PetApi::class.java) -val petId : kotlin.Long = 789 // kotlin.Long | ID of pet to update -val additionalMetadata : kotlin.String = additionalMetadata_example // kotlin.String | Additional data to pass to server -val file : java.io.File = BINARY_DATA_HERE // java.io.File | file to upload - -val result : ApiResponse = webService.uploadFile(petId, additionalMetadata, file) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **petId** | **kotlin.Long**| ID of pet to update | - **additionalMetadata** | **kotlin.String**| Additional data to pass to server | [optional] - **file** | **java.io.File**| file to upload | [optional] - -### Return type - -[**ApiResponse**](ApiResponse.md) - -### Authorization - - - -### HTTP request headers - - - **Content-Type**: multipart/form-data - - **Accept**: application/json - - -uploads an image (required) - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(PetApi::class.java) -val petId : kotlin.Long = 789 // kotlin.Long | ID of pet to update -val requiredFile : java.io.File = BINARY_DATA_HERE // java.io.File | file to upload -val additionalMetadata : kotlin.String = additionalMetadata_example // kotlin.String | Additional data to pass to server - -val result : ApiResponse = webService.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **petId** | **kotlin.Long**| ID of pet to update | - **requiredFile** | **java.io.File**| file to upload | - **additionalMetadata** | **kotlin.String**| Additional data to pass to server | [optional] - -### Return type - -[**ApiResponse**](ApiResponse.md) - -### Authorization - - - -### HTTP request headers - - - **Content-Type**: multipart/form-data - - **Accept**: application/json - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/ReadOnlyFirst.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/ReadOnlyFirst.md deleted file mode 100644 index 825f613f090..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/ReadOnlyFirst.md +++ /dev/null @@ -1,11 +0,0 @@ - -# ReadOnlyFirst - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**bar** | **kotlin.String** | | [optional] [readonly] -**baz** | **kotlin.String** | | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/Return.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/Return.md deleted file mode 100644 index a5437240dc3..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/Return.md +++ /dev/null @@ -1,10 +0,0 @@ - -# Return - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**`return`** | **kotlin.Int** | | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/SpecialModelName.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/SpecialModelName.md deleted file mode 100644 index b179e705ab0..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/SpecialModelName.md +++ /dev/null @@ -1,10 +0,0 @@ - -# SpecialModelname - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**dollarSpecialPropertyName** | **kotlin.Long** | | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/StoreApi.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/StoreApi.md deleted file mode 100644 index 6679986a80d..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/StoreApi.md +++ /dev/null @@ -1,158 +0,0 @@ -# StoreApi - -All URIs are relative to *http://petstore.swagger.io:80/v2* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**deleteOrder**](StoreApi.md#deleteOrder) | **DELETE** store/order/{order_id} | Delete purchase order by ID -[**getInventory**](StoreApi.md#getInventory) | **GET** store/inventory | Returns pet inventories by status -[**getOrderById**](StoreApi.md#getOrderById) | **GET** store/order/{order_id} | Find purchase order by ID -[**placeOrder**](StoreApi.md#placeOrder) | **POST** store/order | Place an order for a pet - - - -Delete purchase order by ID - -For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(StoreApi::class.java) -val orderId : kotlin.String = orderId_example // kotlin.String | ID of the order that needs to be deleted - -webService.deleteOrder(orderId) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **orderId** | **kotlin.String**| ID of the order that needs to be deleted | - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: Not defined - - -Returns pet inventories by status - -Returns a map of status codes to quantities - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(StoreApi::class.java) - -val result : kotlin.collections.Map = webService.getInventory() -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -**kotlin.collections.Map<kotlin.String, kotlin.Int>** - -### Authorization - - - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -Find purchase order by ID - -For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(StoreApi::class.java) -val orderId : kotlin.Long = 789 // kotlin.Long | ID of pet that needs to be fetched - -val result : Order = webService.getOrderById(orderId) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **orderId** | **kotlin.Long**| ID of pet that needs to be fetched | - -### Return type - -[**Order**](Order.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/xml, application/json - - -Place an order for a pet - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(StoreApi::class.java) -val order : Order = // Order | order placed for purchasing the pet - -val result : Order = webService.placeOrder(order) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **order** | [**Order**](Order.md)| order placed for purchasing the pet | - -### Return type - -[**Order**](Order.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/xml, application/json - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/Tag.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/Tag.md deleted file mode 100644 index 60ce1bcdbad..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/Tag.md +++ /dev/null @@ -1,11 +0,0 @@ - -# Tag - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **kotlin.Long** | | [optional] -**name** | **kotlin.String** | | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/User.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/User.md deleted file mode 100644 index e801729b5ed..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/User.md +++ /dev/null @@ -1,17 +0,0 @@ - -# User - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **kotlin.Long** | | [optional] -**username** | **kotlin.String** | | [optional] -**firstName** | **kotlin.String** | | [optional] -**lastName** | **kotlin.String** | | [optional] -**email** | **kotlin.String** | | [optional] -**password** | **kotlin.String** | | [optional] -**phone** | **kotlin.String** | | [optional] -**userStatus** | **kotlin.Int** | User Status | [optional] - - - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/UserApi.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/UserApi.md deleted file mode 100644 index bb904d243cf..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/UserApi.md +++ /dev/null @@ -1,310 +0,0 @@ -# UserApi - -All URIs are relative to *http://petstore.swagger.io:80/v2* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createUser**](UserApi.md#createUser) | **POST** user | Create user -[**createUsersWithArrayInput**](UserApi.md#createUsersWithArrayInput) | **POST** user/createWithArray | Creates list of users with given input array -[**createUsersWithListInput**](UserApi.md#createUsersWithListInput) | **POST** user/createWithList | Creates list of users with given input array -[**deleteUser**](UserApi.md#deleteUser) | **DELETE** user/{username} | Delete user -[**getUserByName**](UserApi.md#getUserByName) | **GET** user/{username} | Get user by user name -[**loginUser**](UserApi.md#loginUser) | **GET** user/login | Logs user into the system -[**logoutUser**](UserApi.md#logoutUser) | **GET** user/logout | Logs out current logged in user session -[**updateUser**](UserApi.md#updateUser) | **PUT** user/{username} | Updated user - - - -Create user - -This can only be done by the logged in user. - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(UserApi::class.java) -val user : User = // User | Created user object - -webService.createUser(user) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **user** | [**User**](User.md)| Created user object | - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: Not defined - - -Creates list of users with given input array - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(UserApi::class.java) -val user : kotlin.collections.List = // kotlin.collections.List | List of user object - -webService.createUsersWithArrayInput(user) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **user** | [**kotlin.collections.List<User>**](User.md)| List of user object | - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: Not defined - - -Creates list of users with given input array - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(UserApi::class.java) -val user : kotlin.collections.List = // kotlin.collections.List | List of user object - -webService.createUsersWithListInput(user) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **user** | [**kotlin.collections.List<User>**](User.md)| List of user object | - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: Not defined - - -Delete user - -This can only be done by the logged in user. - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(UserApi::class.java) -val username : kotlin.String = username_example // kotlin.String | The name that needs to be deleted - -webService.deleteUser(username) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **username** | **kotlin.String**| The name that needs to be deleted | - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: Not defined - - -Get user by user name - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(UserApi::class.java) -val username : kotlin.String = username_example // kotlin.String | The name that needs to be fetched. Use user1 for testing. - -val result : User = webService.getUserByName(username) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **username** | **kotlin.String**| The name that needs to be fetched. Use user1 for testing. | - -### Return type - -[**User**](User.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/xml, application/json - - -Logs user into the system - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(UserApi::class.java) -val username : kotlin.String = username_example // kotlin.String | The user name for login -val password : kotlin.String = password_example // kotlin.String | The password for login in clear text - -val result : kotlin.String = webService.loginUser(username, password) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **username** | **kotlin.String**| The user name for login | - **password** | **kotlin.String**| The password for login in clear text | - -### Return type - -**kotlin.String** - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/xml, application/json - - -Logs out current logged in user session - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(UserApi::class.java) - -webService.logoutUser() -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: Not defined - - -Updated user - -This can only be done by the logged in user. - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(UserApi::class.java) -val username : kotlin.String = username_example // kotlin.String | name that need to be deleted -val user : User = // User | Updated user object - -webService.updateUser(username, user) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **username** | **kotlin.String**| name that need to be deleted | - **user** | [**User**](User.md)| Updated user object | - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: Not defined - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/settings.gradle b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/settings.gradle deleted file mode 100644 index b3f1b1a7bbe..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/settings.gradle +++ /dev/null @@ -1,2 +0,0 @@ - -rootProject.name = 'kotlin-petstore-rx2-client' \ No newline at end of file diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/apis/AnotherFakeApi.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/apis/AnotherFakeApi.kt deleted file mode 100644 index 269f69f3fee..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/apis/AnotherFakeApi.kt +++ /dev/null @@ -1,24 +0,0 @@ -package org.openapitools.client.apis - -import org.openapitools.client.infrastructure.CollectionFormats.* -import retrofit2.http.* -import okhttp3.RequestBody -import io.reactivex.Single -import io.reactivex.Completable - -import org.openapitools.client.models.Client - -interface AnotherFakeApi { - /** - * To test special tags - * To test special tags and operation ID starting with number - * Responses: - * - 200: successful operation - * - * @param client client model - * @return [Call]<[Client]> - */ - @PATCH("another-fake/dummy") - fun call123testSpecialTags(@Body client: Client): Single - -} diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/apis/DefaultApi.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/apis/DefaultApi.kt deleted file mode 100644 index 9247827ae17..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/apis/DefaultApi.kt +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapitools.client.apis - -import org.openapitools.client.infrastructure.CollectionFormats.* -import retrofit2.http.* -import okhttp3.RequestBody -import io.reactivex.Single -import io.reactivex.Completable - -import org.openapitools.client.models.InlineResponseDefault - -interface DefaultApi { - /** - * - * - * Responses: - * - 0: response - * - * @return [Call]<[InlineResponseDefault]> - */ - @GET("foo") - fun fooGet(): Single - -} diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/apis/FakeApi.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/apis/FakeApi.kt deleted file mode 100644 index d994c8fd6b4..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/apis/FakeApi.kt +++ /dev/null @@ -1,236 +0,0 @@ -package org.openapitools.client.apis - -import org.openapitools.client.infrastructure.CollectionFormats.* -import retrofit2.http.* -import okhttp3.RequestBody -import io.reactivex.Single -import io.reactivex.Completable - -import org.openapitools.client.models.Client -import org.openapitools.client.models.FileSchemaTestClass -import org.openapitools.client.models.HealthCheckResult -import org.openapitools.client.models.OuterComposite -import org.openapitools.client.models.Pet -import org.openapitools.client.models.User - -import okhttp3.MultipartBody - -interface FakeApi { - /** - * Health check endpoint - * - * Responses: - * - 200: The instance started successfully - * - * @return [Call]<[HealthCheckResult]> - */ - @GET("fake/health") - fun fakeHealthGet(): Single - - /** - * test http signature authentication - * - * Responses: - * - 200: The instance started successfully - * - * @param pet Pet object that needs to be added to the store - * @param query1 query parameter (optional) - * @param header1 header parameter (optional) - * @return [Call]<[Unit]> - */ - @GET("fake/http-signature-test") - fun fakeHttpSignatureTest(@Body pet: Pet, @Query("query_1") query1: kotlin.String? = null, @Header("header_1") header1: kotlin.String): Completable - - /** - * - * Test serialization of outer boolean types - * Responses: - * - 200: Output boolean - * - * @param body Input boolean as post body (optional) - * @return [Call]<[kotlin.Boolean]> - */ - @POST("fake/outer/boolean") - fun fakeOuterBooleanSerialize(@Body body: kotlin.Boolean? = null): Single - - /** - * - * Test serialization of object with outer number type - * Responses: - * - 200: Output composite - * - * @param outerComposite Input composite as post body (optional) - * @return [Call]<[OuterComposite]> - */ - @POST("fake/outer/composite") - fun fakeOuterCompositeSerialize(@Body outerComposite: OuterComposite? = null): Single - - /** - * - * Test serialization of outer number types - * Responses: - * - 200: Output number - * - * @param body Input number as post body (optional) - * @return [Call]<[java.math.BigDecimal]> - */ - @POST("fake/outer/number") - fun fakeOuterNumberSerialize(@Body body: java.math.BigDecimal? = null): Single - - /** - * - * Test serialization of outer string types - * Responses: - * - 200: Output string - * - * @param body Input string as post body (optional) - * @return [Call]<[kotlin.String]> - */ - @POST("fake/outer/string") - fun fakeOuterStringSerialize(@Body body: kotlin.String? = null): Single - - /** - * - * For this test, the body for this request much reference a schema named `File`. - * Responses: - * - 200: Success - * - * @param fileSchemaTestClass - * @return [Call]<[Unit]> - */ - @PUT("fake/body-with-file-schema") - fun testBodyWithFileSchema(@Body fileSchemaTestClass: FileSchemaTestClass): Completable - - /** - * - * - * Responses: - * - 200: Success - * - * @param query - * @param user - * @return [Call]<[Unit]> - */ - @PUT("fake/body-with-query-params") - fun testBodyWithQueryParams(@Query("query") query: kotlin.String, @Body user: User): Completable - - /** - * To test \"client\" model - * To test \"client\" model - * Responses: - * - 200: successful operation - * - * @param client client model - * @return [Call]<[Client]> - */ - @PATCH("fake") - fun testClientModel(@Body client: Client): Single - - /** - * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - * Responses: - * - 400: Invalid username supplied - * - 404: User not found - * - * @param number None - * @param double None - * @param patternWithoutDelimiter None - * @param byte None - * @param integer None (optional) - * @param int32 None (optional) - * @param int64 None (optional) - * @param float None (optional) - * @param string None (optional) - * @param binary None (optional) - * @param date None (optional) - * @param dateTime None (optional) - * @param password None (optional) - * @param paramCallback None (optional) - * @return [Call]<[Unit]> - */ - @FormUrlEncoded - @POST("fake") - fun testEndpointParameters(@Field("number") number: java.math.BigDecimal, @Field("double") double: kotlin.Double, @Field("pattern_without_delimiter") patternWithoutDelimiter: kotlin.String, @Field("byte") byte: kotlin.ByteArray, @Field("integer") integer: kotlin.Int, @Field("int32") int32: kotlin.Int, @Field("int64") int64: kotlin.Long, @Field("float") float: kotlin.Float, @Field("string") string: kotlin.String, @Field("binary") binary: MultipartBody.Part, @Field("date") date: java.time.LocalDate, @Field("dateTime") dateTime: java.time.OffsetDateTime, @Field("password") password: kotlin.String, @Field("callback") paramCallback: kotlin.String): Completable - - /** - * To test enum parameters - * To test enum parameters - * Responses: - * - 400: Invalid request - * - 404: Not found - * - * @param enumHeaderStringArray Header parameter enum test (string array) (optional) - * @param enumHeaderString Header parameter enum test (string) (optional, default to -efg) - * @param enumQueryStringArray Query parameter enum test (string array) (optional) - * @param enumQueryString Query parameter enum test (string) (optional, default to -efg) - * @param enumQueryInteger Query parameter enum test (double) (optional) - * @param enumQueryDouble Query parameter enum test (double) (optional) - * @param enumFormStringArray Form parameter enum test (string array) (optional, default to $) - * @param enumFormString Form parameter enum test (string) (optional, default to -efg) - * @return [Call]<[Unit]> - */ - @FormUrlEncoded - @GET("fake") - fun testEnumParameters(@Header("enum_header_string_array") enumHeaderStringArray: kotlin.collections.List, @Header("enum_header_string") enumHeaderString: kotlin.String, @Query("enum_query_string_array") enumQueryStringArray: kotlin.collections.List? = null, @Query("enum_query_string") enumQueryString: kotlin.String? = null, @Query("enum_query_integer") enumQueryInteger: kotlin.Int? = null, @Query("enum_query_double") enumQueryDouble: kotlin.Double? = null, @Field("enum_form_string_array") enumFormStringArray: kotlin.collections.List, @Field("enum_form_string") enumFormString: kotlin.String): Completable - - /** - * Fake endpoint to test group parameters (optional) - * Fake endpoint to test group parameters (optional) - * Responses: - * - 400: Something wrong - * - * @param requiredStringGroup Required String in group parameters - * @param requiredBooleanGroup Required Boolean in group parameters - * @param requiredInt64Group Required Integer in group parameters - * @param stringGroup String in group parameters (optional) - * @param booleanGroup Boolean in group parameters (optional) - * @param int64Group Integer in group parameters (optional) - * @return [Call]<[Unit]> - */ - @DELETE("fake") - fun testGroupParameters(@Query("required_string_group") requiredStringGroup: kotlin.Int, @Header("required_boolean_group") requiredBooleanGroup: kotlin.Boolean, @Query("required_int64_group") requiredInt64Group: kotlin.Long, @Query("string_group") stringGroup: kotlin.Int? = null, @Header("boolean_group") booleanGroup: kotlin.Boolean, @Query("int64_group") int64Group: kotlin.Long? = null): Completable - - /** - * test inline additionalProperties - * - * Responses: - * - 200: successful operation - * - * @param requestBody request body - * @return [Call]<[Unit]> - */ - @POST("fake/inline-additionalProperties") - fun testInlineAdditionalProperties(@Body requestBody: kotlin.collections.Map): Completable - - /** - * test json serialization of form data - * - * Responses: - * - 200: successful operation - * - * @param param field1 - * @param param2 field2 - * @return [Call]<[Unit]> - */ - @FormUrlEncoded - @GET("fake/jsonFormData") - fun testJsonFormData(@Field("param") param: kotlin.String, @Field("param2") param2: kotlin.String): Completable - - /** - * - * To test the collection format in query parameters - * Responses: - * - 200: Success - * - * @param pipe - * @param ioutil - * @param http - * @param url - * @param context - * @return [Call]<[Unit]> - */ - @PUT("fake/test-query-parameters") - fun testQueryParameterCollectionFormat(@Query("pipe") pipe: kotlin.collections.List, @Query("ioutil") ioutil: CSVParams, @Query("http") http: SSVParams, @Query("url") url: CSVParams, @Query("context") context: kotlin.collections.List): Completable - -} diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/apis/FakeClassnameTags123Api.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/apis/FakeClassnameTags123Api.kt deleted file mode 100644 index 518a75780ff..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/apis/FakeClassnameTags123Api.kt +++ /dev/null @@ -1,24 +0,0 @@ -package org.openapitools.client.apis - -import org.openapitools.client.infrastructure.CollectionFormats.* -import retrofit2.http.* -import okhttp3.RequestBody -import io.reactivex.Single -import io.reactivex.Completable - -import org.openapitools.client.models.Client - -interface FakeClassnameTags123Api { - /** - * To test class name in snake case - * To test class name in snake case - * Responses: - * - 200: successful operation - * - * @param client client model - * @return [Call]<[Client]> - */ - @PATCH("fake_classname_test") - fun testClassname(@Body client: Client): Single - -} diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/apis/PetApi.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/apis/PetApi.kt deleted file mode 100644 index 82c0bc4b59f..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/apis/PetApi.kt +++ /dev/null @@ -1,144 +0,0 @@ -package org.openapitools.client.apis - -import org.openapitools.client.infrastructure.CollectionFormats.* -import retrofit2.http.* -import okhttp3.RequestBody -import io.reactivex.Single -import io.reactivex.Completable - -import org.openapitools.client.models.ApiResponse -import org.openapitools.client.models.Pet - -import okhttp3.MultipartBody - -interface PetApi { - /** - * Add a new pet to the store - * - * Responses: - * - 200: Successful operation - * - 405: Invalid input - * - * @param pet Pet object that needs to be added to the store - * @return [Call]<[Unit]> - */ - @POST("pet") - fun addPet(@Body pet: Pet): Completable - - /** - * Deletes a pet - * - * Responses: - * - 200: Successful operation - * - 400: Invalid pet value - * - * @param petId Pet id to delete - * @param apiKey (optional) - * @return [Call]<[Unit]> - */ - @DELETE("pet/{petId}") - fun deletePet(@Path("petId") petId: kotlin.Long, @Header("api_key") apiKey: kotlin.String): Completable - - /** - * Finds Pets by status - * Multiple status values can be provided with comma separated strings - * Responses: - * - 200: successful operation - * - 400: Invalid status value - * - * @param status Status values that need to be considered for filter - * @return [Call]<[kotlin.collections.List]> - */ - @GET("pet/findByStatus") - fun findPetsByStatus(@Query("status") status: CSVParams): Single> - - /** - * Finds Pets by tags - * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. - * Responses: - * - 200: successful operation - * - 400: Invalid tag value - * - * @param tags Tags to filter by - * @return [Call]<[kotlin.collections.List]> - */ - @Deprecated("This api was deprecated") - @GET("pet/findByTags") - fun findPetsByTags(@Query("tags") tags: CSVParams): Single> - - /** - * Find pet by ID - * Returns a single pet - * Responses: - * - 200: successful operation - * - 400: Invalid ID supplied - * - 404: Pet not found - * - * @param petId ID of pet to return - * @return [Call]<[Pet]> - */ - @GET("pet/{petId}") - fun getPetById(@Path("petId") petId: kotlin.Long): Single - - /** - * Update an existing pet - * - * Responses: - * - 200: Successful operation - * - 400: Invalid ID supplied - * - 404: Pet not found - * - 405: Validation exception - * - * @param pet Pet object that needs to be added to the store - * @return [Call]<[Unit]> - */ - @PUT("pet") - fun updatePet(@Body pet: Pet): Completable - - /** - * Updates a pet in the store with form data - * - * Responses: - * - 200: Successful operation - * - 405: Invalid input - * - * @param petId ID of pet that needs to be updated - * @param name Updated name of the pet (optional) - * @param status Updated status of the pet (optional) - * @return [Call]<[Unit]> - */ - @FormUrlEncoded - @POST("pet/{petId}") - fun updatePetWithForm(@Path("petId") petId: kotlin.Long, @Field("name") name: kotlin.String, @Field("status") status: kotlin.String): Completable - - /** - * uploads an image - * - * Responses: - * - 200: successful operation - * - * @param petId ID of pet to update - * @param additionalMetadata Additional data to pass to server (optional) - * @param file file to upload (optional) - * @return [Call]<[ApiResponse]> - */ - @Multipart - @POST("pet/{petId}/uploadImage") - fun uploadFile(@Path("petId") petId: kotlin.Long, @Part("additionalMetadata") additionalMetadata: kotlin.String, @Part file: MultipartBody.Part): Single - - /** - * uploads an image (required) - * - * Responses: - * - 200: successful operation - * - * @param petId ID of pet to update - * @param requiredFile file to upload - * @param additionalMetadata Additional data to pass to server (optional) - * @return [Call]<[ApiResponse]> - */ - @Multipart - @POST("fake/{petId}/uploadImageWithRequiredFile") - fun uploadFileWithRequiredFile(@Path("petId") petId: kotlin.Long, @Part requiredFile: MultipartBody.Part, @Part("additionalMetadata") additionalMetadata: kotlin.String): Single - -} diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt deleted file mode 100644 index f95035971b7..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt +++ /dev/null @@ -1,63 +0,0 @@ -package org.openapitools.client.apis - -import org.openapitools.client.infrastructure.CollectionFormats.* -import retrofit2.http.* -import okhttp3.RequestBody -import io.reactivex.Single -import io.reactivex.Completable - -import org.openapitools.client.models.Order - -interface StoreApi { - /** - * Delete purchase order by ID - * For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors - * Responses: - * - 400: Invalid ID supplied - * - 404: Order not found - * - * @param orderId ID of the order that needs to be deleted - * @return [Call]<[Unit]> - */ - @DELETE("store/order/{order_id}") - fun deleteOrder(@Path("order_id") orderId: kotlin.String): Completable - - /** - * Returns pet inventories by status - * Returns a map of status codes to quantities - * Responses: - * - 200: successful operation - * - * @return [Call]<[kotlin.collections.Map]> - */ - @GET("store/inventory") - fun getInventory(): Single> - - /** - * Find purchase order by ID - * For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions - * Responses: - * - 200: successful operation - * - 400: Invalid ID supplied - * - 404: Order not found - * - * @param orderId ID of pet that needs to be fetched - * @return [Call]<[Order]> - */ - @GET("store/order/{order_id}") - fun getOrderById(@Path("order_id") orderId: kotlin.Long): Single - - /** - * Place an order for a pet - * - * Responses: - * - 200: successful operation - * - 400: Invalid Order - * - * @param order order placed for purchasing the pet - * @return [Call]<[Order]> - */ - @POST("store/order") - fun placeOrder(@Body order: Order): Single - -} diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/apis/UserApi.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/apis/UserApi.kt deleted file mode 100644 index eceeeb29d9c..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/apis/UserApi.kt +++ /dev/null @@ -1,114 +0,0 @@ -package org.openapitools.client.apis - -import org.openapitools.client.infrastructure.CollectionFormats.* -import retrofit2.http.* -import okhttp3.RequestBody -import io.reactivex.Single -import io.reactivex.Completable - -import org.openapitools.client.models.User - -interface UserApi { - /** - * Create user - * This can only be done by the logged in user. - * Responses: - * - 0: successful operation - * - * @param user Created user object - * @return [Call]<[Unit]> - */ - @POST("user") - fun createUser(@Body user: User): Completable - - /** - * Creates list of users with given input array - * - * Responses: - * - 0: successful operation - * - * @param user List of user object - * @return [Call]<[Unit]> - */ - @POST("user/createWithArray") - fun createUsersWithArrayInput(@Body user: kotlin.collections.List): Completable - - /** - * Creates list of users with given input array - * - * Responses: - * - 0: successful operation - * - * @param user List of user object - * @return [Call]<[Unit]> - */ - @POST("user/createWithList") - fun createUsersWithListInput(@Body user: kotlin.collections.List): Completable - - /** - * Delete user - * This can only be done by the logged in user. - * Responses: - * - 400: Invalid username supplied - * - 404: User not found - * - * @param username The name that needs to be deleted - * @return [Call]<[Unit]> - */ - @DELETE("user/{username}") - fun deleteUser(@Path("username") username: kotlin.String): Completable - - /** - * Get user by user name - * - * Responses: - * - 200: successful operation - * - 400: Invalid username supplied - * - 404: User not found - * - * @param username The name that needs to be fetched. Use user1 for testing. - * @return [Call]<[User]> - */ - @GET("user/{username}") - fun getUserByName(@Path("username") username: kotlin.String): Single - - /** - * Logs user into the system - * - * Responses: - * - 200: successful operation - * - 400: Invalid username/password supplied - * - * @param username The user name for login - * @param password The password for login in clear text - * @return [Call]<[kotlin.String]> - */ - @GET("user/login") - fun loginUser(@Query("username") username: kotlin.String, @Query("password") password: kotlin.String): Single - - /** - * Logs out current logged in user session - * - * Responses: - * - 0: successful operation - * - * @return [Call]<[Unit]> - */ - @GET("user/logout") - fun logoutUser(): Completable - - /** - * Updated user - * This can only be done by the logged in user. - * Responses: - * - 400: Invalid user supplied - * - 404: User not found - * - * @param username name that need to be deleted - * @param user Updated user object - * @return [Call]<[Unit]> - */ - @PUT("user/{username}") - fun updateUser(@Path("username") username: kotlin.String, @Body user: User): Completable - -} diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/auth/ApiKeyAuth.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/auth/ApiKeyAuth.kt deleted file mode 100644 index 524d5190ef8..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/auth/ApiKeyAuth.kt +++ /dev/null @@ -1,50 +0,0 @@ -package org.openapitools.client.auth - -import java.io.IOException -import java.net.URI -import java.net.URISyntaxException - -import okhttp3.Interceptor -import okhttp3.Response - -class ApiKeyAuth( - private val location: String = "", - private val paramName: String = "", - private var apiKey: String = "" -) : Interceptor { - - @Throws(IOException::class) - override fun intercept(chain: Interceptor.Chain): Response { - var request = chain.request() - - if ("query" == location) { - var newQuery = request.url.toUri().query - val paramValue = "$paramName=$apiKey" - if (newQuery == null) { - newQuery = paramValue - } else { - newQuery += "&$paramValue" - } - - val newUri: URI - try { - val oldUri = request.url.toUri() - newUri = URI(oldUri.scheme, oldUri.authority, - oldUri.path, newQuery, oldUri.fragment) - } catch (e: URISyntaxException) { - throw IOException(e) - } - - request = request.newBuilder().url(newUri.toURL()).build() - } else if ("header" == location) { - request = request.newBuilder() - .addHeader(paramName, apiKey) - .build() - } else if ("cookie" == location) { - request = request.newBuilder() - .addHeader("Cookie", "$paramName=$apiKey") - .build() - } - return chain.proceed(request) - } -} diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/auth/HttpBasicAuth.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/auth/HttpBasicAuth.kt deleted file mode 100644 index 575bea19540..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/auth/HttpBasicAuth.kt +++ /dev/null @@ -1,33 +0,0 @@ -package org.openapitools.client.auth - -import java.io.IOException - -import kotlin.jvm.Throws -import okhttp3.Interceptor -import okhttp3.Interceptor.Chain -import okhttp3.Response -import okhttp3.Credentials - -class HttpBasicAuth( - private var username: String = "", - private var password: String = "" -) : Interceptor { - - fun setCredentials(username: String, password: String) { - this.username = username - this.password = password - } - - @Throws(IOException::class) - override fun intercept(chain: Chain): Response { - var request = chain.request() - - // If the request already have an authorization (eg. Basic auth), do nothing - if (request.header("Authorization") == null && username.isNotBlank() && password.isNotBlank()) { - request = request.newBuilder() - .addHeader("Authorization", Credentials.basic(username, password)) - .build() - } - return chain.proceed(request) - } -} diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/auth/HttpBearerAuth.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/auth/HttpBearerAuth.kt deleted file mode 100644 index 775ad903c43..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/auth/HttpBearerAuth.kt +++ /dev/null @@ -1,39 +0,0 @@ -package org.openapitools.client.auth - -import java.io.IOException - -import okhttp3.Interceptor -import okhttp3.Interceptor.Chain -import okhttp3.Response - -class HttpBearerAuth( - private var schema: String = "", - var bearerToken: String = "" -) : Interceptor { - - @Throws(IOException::class) - override fun intercept(chain: Chain): Response { - var request = chain.request() - - // If the request already have an authorization (eg. Basic auth), do nothing - if (request.header("Authorization") == null && bearerToken.isNotBlank()) { - request = request.newBuilder() - .addHeader("Authorization", headerValue()) - .build() - } - return chain.proceed(request) - } - - private fun headerValue(): String { - return if (schema.isNotBlank()) { - "${upperCaseBearer()} $bearerToken" - } else { - bearerToken - } - } - - private fun upperCaseBearer(): String { - return if (schema.toLowerCase().equals("bearer")) "Bearer" else schema - } - -} diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/auth/OAuth.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/auth/OAuth.kt deleted file mode 100644 index 311a8f43979..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/auth/OAuth.kt +++ /dev/null @@ -1,151 +0,0 @@ -package org.openapitools.client.auth - -import java.net.HttpURLConnection.HTTP_UNAUTHORIZED -import java.net.HttpURLConnection.HTTP_FORBIDDEN - -import java.io.IOException - -import org.apache.oltu.oauth2.client.OAuthClient -import org.apache.oltu.oauth2.client.request.OAuthBearerClientRequest -import org.apache.oltu.oauth2.client.request.OAuthClientRequest -import org.apache.oltu.oauth2.client.request.OAuthClientRequest.AuthenticationRequestBuilder -import org.apache.oltu.oauth2.client.request.OAuthClientRequest.TokenRequestBuilder -import org.apache.oltu.oauth2.common.exception.OAuthProblemException -import org.apache.oltu.oauth2.common.exception.OAuthSystemException -import org.apache.oltu.oauth2.common.message.types.GrantType -import org.apache.oltu.oauth2.common.token.BasicOAuthToken - -import okhttp3.Interceptor -import okhttp3.OkHttpClient -import okhttp3.Response - -class OAuth( - client: OkHttpClient, - var tokenRequestBuilder: TokenRequestBuilder -) : Interceptor { - - interface AccessTokenListener { - fun notify(token: BasicOAuthToken) - } - - private var oauthClient: OAuthClient = OAuthClient(OAuthOkHttpClient(client)) - - @Volatile - private var accessToken: String? = null - var authenticationRequestBuilder: AuthenticationRequestBuilder? = null - private var accessTokenListener: AccessTokenListener? = null - - constructor( - requestBuilder: TokenRequestBuilder - ) : this( - OkHttpClient(), - requestBuilder - ) - - constructor( - flow: OAuthFlow, - authorizationUrl: String, - tokenUrl: String, - scopes: String - ) : this( - OAuthClientRequest.tokenLocation(tokenUrl).setScope(scopes) - ) { - setFlow(flow); - authenticationRequestBuilder = OAuthClientRequest.authorizationLocation(authorizationUrl); - } - - fun setFlow(flow: OAuthFlow) { - when (flow) { - OAuthFlow.accessCode, OAuthFlow.implicit -> - tokenRequestBuilder.setGrantType(GrantType.AUTHORIZATION_CODE) - OAuthFlow.password -> - tokenRequestBuilder.setGrantType(GrantType.PASSWORD) - OAuthFlow.application -> - tokenRequestBuilder.setGrantType(GrantType.CLIENT_CREDENTIALS) - } - } - - @Throws(IOException::class) - override fun intercept(chain: Interceptor.Chain): Response { - return retryingIntercept(chain, true) - } - - @Throws(IOException::class) - private fun retryingIntercept(chain: Interceptor.Chain, updateTokenAndRetryOnAuthorizationFailure: Boolean): Response { - var request = chain.request() - - // If the request already have an authorization (eg. Basic auth), do nothing - if (request.header("Authorization") != null) { - return chain.proceed(request) - } - - // If first time, get the token - val oAuthRequest: OAuthClientRequest - if (accessToken == null) { - updateAccessToken(null) - } - - if (accessToken != null) { - // Build the request - val rb = request.newBuilder() - - val requestAccessToken = accessToken - try { - oAuthRequest = OAuthBearerClientRequest(request.url.toString()) - .setAccessToken(requestAccessToken) - .buildHeaderMessage() - } catch (e: OAuthSystemException) { - throw IOException(e) - } - - oAuthRequest.headers.entries.forEach { header -> - rb.addHeader(header.key, header.value) - } - rb.url(oAuthRequest.locationUri) - - //Execute the request - val response = chain.proceed(rb.build()) - - // 401/403 most likely indicates that access token has expired. Unless it happens two times in a row. - if ((response.code == HTTP_UNAUTHORIZED || response.code == HTTP_FORBIDDEN) && updateTokenAndRetryOnAuthorizationFailure) { - try { - if (updateAccessToken(requestAccessToken)) { - response.body?.close() - return retryingIntercept(chain, false) - } - } catch (e: Exception) { - response.body?.close() - throw e - } - } - return response - } else { - return chain.proceed(chain.request()) - } - } - - /** - * Returns true if the access token has been updated - */ - @Throws(IOException::class) - @Synchronized - fun updateAccessToken(requestAccessToken: String?): Boolean { - if (accessToken == null || accessToken.equals(requestAccessToken)) { - return try { - val accessTokenResponse = oauthClient.accessToken(this.tokenRequestBuilder.buildBodyMessage()) - if (accessTokenResponse != null && accessTokenResponse.accessToken != null) { - accessToken = accessTokenResponse.accessToken - accessTokenListener?.notify(accessTokenResponse.oAuthToken as BasicOAuthToken) - !accessToken.equals(requestAccessToken) - } else { - false - } - } catch (e: OAuthSystemException) { - throw IOException(e) - } catch (e: OAuthProblemException) { - throw IOException(e) - } - } - return true; - } -} diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/auth/OAuthFlow.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/auth/OAuthFlow.kt deleted file mode 100644 index bcada9b7a6a..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/auth/OAuthFlow.kt +++ /dev/null @@ -1,5 +0,0 @@ -package org.openapitools.client.auth - -enum class OAuthFlow { - accessCode, implicit, password, application -} diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/auth/OAuthOkHttpClient.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/auth/OAuthOkHttpClient.kt deleted file mode 100644 index 93adbda3fc9..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/auth/OAuthOkHttpClient.kt +++ /dev/null @@ -1,61 +0,0 @@ -package org.openapitools.client.auth - -import java.io.IOException - -import org.apache.oltu.oauth2.client.HttpClient -import org.apache.oltu.oauth2.client.request.OAuthClientRequest -import org.apache.oltu.oauth2.client.response.OAuthClientResponse -import org.apache.oltu.oauth2.client.response.OAuthClientResponseFactory -import org.apache.oltu.oauth2.common.exception.OAuthProblemException -import org.apache.oltu.oauth2.common.exception.OAuthSystemException - -import okhttp3.OkHttpClient -import okhttp3.Request -import okhttp3.MediaType.Companion.toMediaTypeOrNull -import okhttp3.RequestBody - - -class OAuthOkHttpClient( - private var client: OkHttpClient -) : HttpClient { - - constructor() : this(OkHttpClient()) - - @Throws(OAuthSystemException::class, OAuthProblemException::class) - override fun execute( - request: OAuthClientRequest, - headers: Map?, - requestMethod: String, - responseClass: Class?): T { - - var mediaType = "application/json".toMediaTypeOrNull() - val requestBuilder = Request.Builder().url(request.locationUri) - - headers?.forEach { entry -> - if (entry.key.equals("Content-Type", true)) { - mediaType = entry.value.toMediaTypeOrNull() - } else { - requestBuilder.addHeader(entry.key, entry.value) - } - } - - val body: RequestBody? = if (request.body != null) RequestBody.create(mediaType, request.body) else null - requestBuilder.method(requestMethod, body) - - try { - val response = client.newCall(requestBuilder.build()).execute() - return OAuthClientResponseFactory.createCustomResponse( - response.body?.string(), - response.body?.contentType()?.toString(), - response.code, - responseClass) - } catch (e: IOException) { - throw OAuthSystemException(e) - } - } - - override fun shutdown() { - // Nothing to do here - } - -} diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/infrastructure/ApiClient.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/infrastructure/ApiClient.kt deleted file mode 100644 index 1691620ea5e..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/infrastructure/ApiClient.kt +++ /dev/null @@ -1,255 +0,0 @@ -package org.openapitools.client.infrastructure - -import org.apache.oltu.oauth2.client.request.OAuthClientRequest.AuthenticationRequestBuilder -import org.apache.oltu.oauth2.client.request.OAuthClientRequest.TokenRequestBuilder -import org.openapitools.client.auth.ApiKeyAuth -import org.openapitools.client.auth.OAuth -import org.openapitools.client.auth.OAuth.AccessTokenListener -import org.openapitools.client.auth.OAuthFlow -import org.openapitools.client.auth.HttpBearerAuth -import org.openapitools.client.auth.HttpBasicAuth - -import okhttp3.Interceptor -import okhttp3.OkHttpClient -import retrofit2.Retrofit -import okhttp3.logging.HttpLoggingInterceptor -import retrofit2.converter.scalars.ScalarsConverterFactory -import retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory -import com.google.gson.Gson -import com.google.gson.GsonBuilder -import retrofit2.converter.gson.GsonConverterFactory - -class ApiClient( - private var baseUrl: String = defaultBasePath, - private val okHttpClientBuilder: OkHttpClient.Builder? = null, - private val serializerBuilder: GsonBuilder = Serializer.gsonBuilder, - private val okHttpClient : OkHttpClient? = null -) { - private val apiAuthorizations = mutableMapOf() - var logger: ((String) -> Unit)? = null - - private val retrofitBuilder: Retrofit.Builder by lazy { - Retrofit.Builder() - .baseUrl(baseUrl) - .addConverterFactory(ScalarsConverterFactory.create()) - .addConverterFactory(GsonConverterFactory.create(serializerBuilder.create())) - .addCallAdapterFactory(RxJava2CallAdapterFactory.create()) - } - - private val clientBuilder: OkHttpClient.Builder by lazy { - okHttpClientBuilder ?: defaultClientBuilder - } - - private val defaultClientBuilder: OkHttpClient.Builder by lazy { - OkHttpClient() - .newBuilder() - .addInterceptor(HttpLoggingInterceptor(object : HttpLoggingInterceptor.Logger { - override fun log(message: String) { - logger?.invoke(message) - } - }).apply { - level = HttpLoggingInterceptor.Level.BODY - }) - } - - init { - normalizeBaseUrl() - } - - constructor( - baseUrl: String = defaultBasePath, - okHttpClientBuilder: OkHttpClient.Builder? = null, - serializerBuilder: GsonBuilder = Serializer.gsonBuilder, - authNames: Array - ) : this(baseUrl, okHttpClientBuilder, serializerBuilder) { - authNames.forEach { authName -> - val auth = when (authName) { - "api_key" -> ApiKeyAuth("header", "api_key")"api_key_query" -> ApiKeyAuth("query", "api_key_query")"bearer_test" -> HttpBearerAuth("bearer")"http_basic_test" -> HttpBasicAuth()"http_signature_test" -> "petstore_auth" -> OAuth(OAuthFlow.implicit, "http://petstore.swagger.io/api/oauth/dialog", "", "write:pets, read:pets") - else -> throw RuntimeException("auth name $authName not found in available auth names") - } - addAuthorization(authName, auth); - } - } - - constructor( - baseUrl: String = defaultBasePath, - okHttpClientBuilder: OkHttpClient.Builder? = null, - serializerBuilder: GsonBuilder = Serializer.gsonBuilder, - authName: String, - bearerToken: String - ) : this(baseUrl, okHttpClientBuilder, serializerBuilder, arrayOf(authName)) { - setBearerToken(bearerToken) - } - - constructor( - baseUrl: String = defaultBasePath, - okHttpClientBuilder: OkHttpClient.Builder? = null, - serializerBuilder: GsonBuilder = Serializer.gsonBuilder, - authName: String, - username: String, - password: String - ) : this(baseUrl, okHttpClientBuilder, serializerBuilder, arrayOf(authName)) { - setCredentials(username, password) - } - - constructor( - baseUrl: String = defaultBasePath, - okHttpClientBuilder: OkHttpClient.Builder? = null, - serializerBuilder: GsonBuilder = Serializer.gsonBuilder, - authName: String, - clientId: String, - secret: String, - username: String, - password: String - ) : this(baseUrl, okHttpClientBuilder, serializerBuilder, arrayOf(authName)) { - getTokenEndPoint() - ?.setClientId(clientId) - ?.setClientSecret(secret) - ?.setUsername(username) - ?.setPassword(password) - } - - fun setCredentials(username: String, password: String): ApiClient { - apiAuthorizations.values.runOnFirst { - tokenRequestBuilder.setUsername(username).setPassword(password) - } - return this - } - fun setBearerToken(bearerToken: String): ApiClient { - apiAuthorizations.values.runOnFirst { - this.bearerToken = bearerToken - } - return this - } - - fun setCredentials(username: String, password: String): ApiClient { - apiAuthorizations.values.runOnFirst { - setCredentials(username, password); - } - apiAuthorizations.values.runOnFirst { - tokenRequestBuilder.setUsername(username).setPassword(password) - } - return this - } - - fun setCredentials(username: String, password: String): ApiClient { - apiAuthorizations.values.runOnFirst { - tokenRequestBuilder.setUsername(username).setPassword(password) - } - return this - } - /** - * Helper method to configure the token endpoint of the first oauth found in the apiAuthorizations (there should be only one) - * @return Token request builder - */ - fun getTokenEndPoint(): TokenRequestBuilder? { - var result: TokenRequestBuilder? = null - apiAuthorizations.values.runOnFirst { - result = tokenRequestBuilder - } - return result - } - - /** - * Helper method to configure authorization endpoint of the first oauth found in the apiAuthorizations (there should be only one) - * @return Authentication request builder - */ - fun getAuthorizationEndPoint(): AuthenticationRequestBuilder? { - var result: AuthenticationRequestBuilder? = null - apiAuthorizations.values.runOnFirst { - result = authenticationRequestBuilder - } - return result - } - - /** - * Helper method to pre-set the oauth access token of the first oauth found in the apiAuthorizations (there should be only one) - * @param accessToken Access token - * @return ApiClient - */ - fun setAccessToken(accessToken: String): ApiClient { - apiAuthorizations.values.runOnFirst { - setAccessToken(accessToken) - } - return this - } - - /** - * Helper method to configure the oauth accessCode/implicit flow parameters - * @param clientId Client ID - * @param clientSecret Client secret - * @param redirectURI Redirect URI - * @return ApiClient - */ - fun configureAuthorizationFlow(clientId: String, clientSecret: String, redirectURI: String): ApiClient { - apiAuthorizations.values.runOnFirst { - tokenRequestBuilder - .setClientId(clientId) - .setClientSecret(clientSecret) - .setRedirectURI(redirectURI) - authenticationRequestBuilder - ?.setClientId(clientId) - ?.setRedirectURI(redirectURI) - } - return this; - } - - /** - * Configures a listener which is notified when a new access token is received. - * @param accessTokenListener Access token listener - * @return ApiClient - */ - fun registerAccessTokenListener(accessTokenListener: AccessTokenListener): ApiClient { - apiAuthorizations.values.runOnFirst { - registerAccessTokenListener(accessTokenListener) - } - return this; - } - - /** - * Adds an authorization to be used by the client - * @param authName Authentication name - * @param authorization Authorization interceptor - * @return ApiClient - */ - fun addAuthorization(authName: String, authorization: Interceptor): ApiClient { - if (apiAuthorizations.containsKey(authName)) { - throw RuntimeException("auth name $authName already in api authorizations") - } - apiAuthorizations[authName] = authorization - clientBuilder.addInterceptor(authorization) - return this - } - - fun setLogger(logger: (String) -> Unit): ApiClient { - this.logger = logger - return this - } - - fun createService(serviceClass: Class): S { - val usedClient = this.okHttpClient ?: clientBuilder.build() - return retrofitBuilder.client(usedClient).build().create(serviceClass) - } - - private fun normalizeBaseUrl() { - if (!baseUrl.endsWith("/")) { - baseUrl += "/" - } - } - - private inline fun Iterable.runOnFirst(callback: U.() -> Unit) { - for (element in this) { - if (element is U) { - callback.invoke(element) - break - } - } - } - - companion object { - @JvmStatic - val defaultBasePath: String by lazy { - System.getProperties().getProperty("org.openapitools.client.baseUrl", "http://petstore.swagger.io:80/v2") - } - } -} diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/infrastructure/ByteArrayAdapter.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/infrastructure/ByteArrayAdapter.kt deleted file mode 100644 index 6120b081929..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/infrastructure/ByteArrayAdapter.kt +++ /dev/null @@ -1,33 +0,0 @@ -package org.openapitools.client.infrastructure - -import com.google.gson.TypeAdapter -import com.google.gson.stream.JsonReader -import com.google.gson.stream.JsonWriter -import com.google.gson.stream.JsonToken.NULL -import java.io.IOException - -class ByteArrayAdapter : TypeAdapter() { - @Throws(IOException::class) - override fun write(out: JsonWriter?, value: ByteArray?) { - if (value == null) { - out?.nullValue() - } else { - out?.value(String(value)) - } - } - - @Throws(IOException::class) - override fun read(out: JsonReader?): ByteArray? { - out ?: return null - - when (out.peek()) { - NULL -> { - out.nextNull() - return null - } - else -> { - return out.nextString().toByteArray() - } - } - } -} diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/infrastructure/CollectionFormats.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/infrastructure/CollectionFormats.kt deleted file mode 100644 index 001e99325d2..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/infrastructure/CollectionFormats.kt +++ /dev/null @@ -1,56 +0,0 @@ -package org.openapitools.client.infrastructure - -class CollectionFormats { - - open class CSVParams { - - var params: List - - constructor(params: List) { - this.params = params - } - - constructor(vararg params: String) { - this.params = listOf(*params) - } - - override fun toString(): String { - return params.joinToString(",") - } - } - - open class SSVParams : CSVParams { - - constructor(params: List) : super(params) - - constructor(vararg params: String) : super(*params) - - override fun toString(): String { - return params.joinToString(" ") - } - } - - class TSVParams : CSVParams { - - constructor(params: List) : super(params) - - constructor(vararg params: String) : super(*params) - - override fun toString(): String { - return params.joinToString("\t") - } - } - - class PIPESParams : CSVParams { - - constructor(params: List) : super(params) - - constructor(vararg params: String) : super(*params) - - override fun toString(): String { - return params.joinToString("|") - } - } - - class SPACEParams : SSVParams() -} \ No newline at end of file diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/infrastructure/DateAdapter.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/infrastructure/DateAdapter.kt deleted file mode 100644 index c5d330ac075..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/infrastructure/DateAdapter.kt +++ /dev/null @@ -1,37 +0,0 @@ -package org.openapitools.client.infrastructure - -import com.google.gson.TypeAdapter -import com.google.gson.stream.JsonReader -import com.google.gson.stream.JsonWriter -import com.google.gson.stream.JsonToken.NULL -import java.io.IOException -import java.text.DateFormat -import java.text.SimpleDateFormat -import java.util.Date -import java.util.Locale - -class DateAdapter(val formatter: DateFormat = SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ", Locale.getDefault())) : TypeAdapter() { - @Throws(IOException::class) - override fun write(out: JsonWriter?, value: Date?) { - if (value == null) { - out?.nullValue() - } else { - out?.value(formatter.format(value)) - } - } - - @Throws(IOException::class) - override fun read(out: JsonReader?): Date? { - out ?: return null - - when (out.peek()) { - NULL -> { - out.nextNull() - return null - } - else -> { - return formatter.parse(out.nextString()) - } - } - } -} diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/infrastructure/LocalDateAdapter.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/infrastructure/LocalDateAdapter.kt deleted file mode 100644 index 30ef6697183..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/infrastructure/LocalDateAdapter.kt +++ /dev/null @@ -1,35 +0,0 @@ -package org.openapitools.client.infrastructure - -import com.google.gson.TypeAdapter -import com.google.gson.stream.JsonReader -import com.google.gson.stream.JsonWriter -import com.google.gson.stream.JsonToken.NULL -import java.io.IOException -import java.time.LocalDate -import java.time.format.DateTimeFormatter - -class LocalDateAdapter(private val formatter: DateTimeFormatter = DateTimeFormatter.ISO_LOCAL_DATE) : TypeAdapter() { - @Throws(IOException::class) - override fun write(out: JsonWriter?, value: LocalDate?) { - if (value == null) { - out?.nullValue() - } else { - out?.value(formatter.format(value)) - } - } - - @Throws(IOException::class) - override fun read(out: JsonReader?): LocalDate? { - out ?: return null - - when (out.peek()) { - NULL -> { - out.nextNull() - return null - } - else -> { - return LocalDate.parse(out.nextString(), formatter) - } - } - } -} diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/infrastructure/LocalDateTimeAdapter.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/infrastructure/LocalDateTimeAdapter.kt deleted file mode 100644 index 3ad781c66ca..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/infrastructure/LocalDateTimeAdapter.kt +++ /dev/null @@ -1,35 +0,0 @@ -package org.openapitools.client.infrastructure - -import com.google.gson.TypeAdapter -import com.google.gson.stream.JsonReader -import com.google.gson.stream.JsonWriter -import com.google.gson.stream.JsonToken.NULL -import java.io.IOException -import java.time.LocalDateTime -import java.time.format.DateTimeFormatter - -class LocalDateTimeAdapter(private val formatter: DateTimeFormatter = DateTimeFormatter.ISO_LOCAL_DATE_TIME) : TypeAdapter() { - @Throws(IOException::class) - override fun write(out: JsonWriter?, value: LocalDateTime?) { - if (value == null) { - out?.nullValue() - } else { - out?.value(formatter.format(value)) - } - } - - @Throws(IOException::class) - override fun read(out: JsonReader?): LocalDateTime? { - out ?: return null - - when (out.peek()) { - NULL -> { - out.nextNull() - return null - } - else -> { - return LocalDateTime.parse(out.nextString(), formatter) - } - } - } -} diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/infrastructure/OffsetDateTimeAdapter.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/infrastructure/OffsetDateTimeAdapter.kt deleted file mode 100644 index e615135c9cc..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/infrastructure/OffsetDateTimeAdapter.kt +++ /dev/null @@ -1,35 +0,0 @@ -package org.openapitools.client.infrastructure - -import com.google.gson.TypeAdapter -import com.google.gson.stream.JsonReader -import com.google.gson.stream.JsonWriter -import com.google.gson.stream.JsonToken.NULL -import java.io.IOException -import java.time.OffsetDateTime -import java.time.format.DateTimeFormatter - -class OffsetDateTimeAdapter(private val formatter: DateTimeFormatter = DateTimeFormatter.ISO_OFFSET_DATE_TIME) : TypeAdapter() { - @Throws(IOException::class) - override fun write(out: JsonWriter?, value: OffsetDateTime?) { - if (value == null) { - out?.nullValue() - } else { - out?.value(formatter.format(value)) - } - } - - @Throws(IOException::class) - override fun read(out: JsonReader?): OffsetDateTime? { - out ?: return null - - when (out.peek()) { - NULL -> { - out.nextNull() - return null - } - else -> { - return OffsetDateTime.parse(out.nextString(), formatter) - } - } - } -} diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/infrastructure/ResponseExt.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/infrastructure/ResponseExt.kt deleted file mode 100644 index 3369ea29aa9..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/infrastructure/ResponseExt.kt +++ /dev/null @@ -1,15 +0,0 @@ -package org.openapitools.client.infrastructure - -import com.google.gson.GsonBuilder -import com.google.gson.JsonParseException -import retrofit2.Response - -@Throws(JsonParseException::class) -inline fun Response<*>.getErrorResponse(serializerBuilder: GsonBuilder = Serializer.gsonBuilder): T? { - val serializer = serializerBuilder.create() - val reader = errorBody()?.charStream() - if(reader != null) { - return serializer.fromJson(reader, T::class.java) - } - return null -} diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/infrastructure/Serializer.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/infrastructure/Serializer.kt deleted file mode 100644 index b80e0390de2..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/infrastructure/Serializer.kt +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapitools.client.infrastructure - -import com.google.gson.Gson -import com.google.gson.GsonBuilder -import java.time.LocalDate -import java.time.LocalDateTime -import java.time.OffsetDateTime -import java.util.UUID -import java.util.Date - -object Serializer { - @JvmStatic - val gsonBuilder: GsonBuilder = GsonBuilder() - .registerTypeAdapter(OffsetDateTime::class.java, OffsetDateTimeAdapter()) - .registerTypeAdapter(LocalDateTime::class.java, LocalDateTimeAdapter()) - .registerTypeAdapter(LocalDate::class.java, LocalDateAdapter()) - .registerTypeAdapter(ByteArray::class.java, ByteArrayAdapter()) - - @JvmStatic - val gson: Gson by lazy { - gsonBuilder.create() - } -} diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/AdditionalPropertiesClass.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/AdditionalPropertiesClass.kt deleted file mode 100644 index 152cbc0cddf..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/AdditionalPropertiesClass.kt +++ /dev/null @@ -1,35 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param mapProperty - * @param mapOfMapProperty - */ - -data class AdditionalPropertiesClass ( - @SerializedName("map_property") - val mapProperty: kotlin.collections.Map? = null, - @SerializedName("map_of_map_property") - val mapOfMapProperty: kotlin.collections.Map>? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Animal.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Animal.kt deleted file mode 100644 index ab6e55151fc..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Animal.kt +++ /dev/null @@ -1,34 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param className - * @param color - */ - -interface Animal : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - - @get:SerializedName("className") - val className: kotlin.String - @get:SerializedName("color") - val color: kotlin.String? -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt deleted file mode 100644 index 60f2617cafb..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt +++ /dev/null @@ -1,38 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param code - * @param type - * @param message - */ - -data class ApiResponse ( - @SerializedName("code") - val code: kotlin.Int? = null, - @SerializedName("type") - val type: kotlin.String? = null, - @SerializedName("message") - val message: kotlin.String? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/ArrayOfArrayOfNumberOnly.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/ArrayOfArrayOfNumberOnly.kt deleted file mode 100644 index db44a13b437..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/ArrayOfArrayOfNumberOnly.kt +++ /dev/null @@ -1,32 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param arrayArrayNumber - */ - -data class ArrayOfArrayOfNumberOnly ( - @SerializedName("ArrayArrayNumber") - val arrayArrayNumber: kotlin.collections.List>? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/ArrayOfNumberOnly.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/ArrayOfNumberOnly.kt deleted file mode 100644 index 128acc12541..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/ArrayOfNumberOnly.kt +++ /dev/null @@ -1,32 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param arrayNumber - */ - -data class ArrayOfNumberOnly ( - @SerializedName("ArrayNumber") - val arrayNumber: kotlin.collections.List? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/ArrayTest.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/ArrayTest.kt deleted file mode 100644 index afb0414957b..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/ArrayTest.kt +++ /dev/null @@ -1,39 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - -import org.openapitools.client.models.ReadOnlyFirst - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param arrayOfString - * @param arrayArrayOfInteger - * @param arrayArrayOfModel - */ - -data class ArrayTest ( - @SerializedName("array_of_string") - val arrayOfString: kotlin.collections.List? = null, - @SerializedName("array_array_of_integer") - val arrayArrayOfInteger: kotlin.collections.List>? = null, - @SerializedName("array_array_of_model") - val arrayArrayOfModel: kotlin.collections.List>? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Capitalization.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Capitalization.kt deleted file mode 100644 index cf876c94035..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Capitalization.kt +++ /dev/null @@ -1,48 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param smallCamel - * @param capitalCamel - * @param smallSnake - * @param capitalSnake - * @param scAETHFlowPoints - * @param ATT_NAME Name of the pet - */ - -data class Capitalization ( - @SerializedName("smallCamel") - val smallCamel: kotlin.String? = null, - @SerializedName("CapitalCamel") - val capitalCamel: kotlin.String? = null, - @SerializedName("small_Snake") - val smallSnake: kotlin.String? = null, - @SerializedName("Capital_Snake") - val capitalSnake: kotlin.String? = null, - @SerializedName("SCA_ETH_Flow_Points") - val scAETHFlowPoints: kotlin.String? = null, - /* Name of the pet */ - @SerializedName("ATT_NAME") - val ATT_NAME: kotlin.String? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Cat.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Cat.kt deleted file mode 100644 index 647155c428f..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Cat.kt +++ /dev/null @@ -1,40 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - -import org.openapitools.client.models.Animal -import org.openapitools.client.models.CatAllOf - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param className - * @param color - * @param declawed - */ - -data class Cat ( - @SerializedName("className") - override val className: kotlin.String, - @SerializedName("color") - override val color: kotlin.String? = null, - @SerializedName("declawed") - val declawed: kotlin.Boolean? = null -) : Animal, Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/CatAllOf.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/CatAllOf.kt deleted file mode 100644 index b3888433c7b..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/CatAllOf.kt +++ /dev/null @@ -1,32 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param declawed - */ - -data class CatAllOf ( - @SerializedName("declawed") - val declawed: kotlin.Boolean? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Category.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Category.kt deleted file mode 100644 index befccbefa9a..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Category.kt +++ /dev/null @@ -1,35 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param name - * @param id - */ - -data class Category ( - @SerializedName("name") - val name: kotlin.String, - @SerializedName("id") - val id: kotlin.Long? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/ClassModel.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/ClassModel.kt deleted file mode 100644 index c5222d7169e..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/ClassModel.kt +++ /dev/null @@ -1,32 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * Model for testing model with \"_class\" property - * @param propertyClass - */ - -data class ClassModel ( - @SerializedName("_class") - val propertyClass: kotlin.String? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Client.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Client.kt deleted file mode 100644 index 3debe1d542f..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Client.kt +++ /dev/null @@ -1,32 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param client - */ - -data class Client ( - @SerializedName("client") - val client: kotlin.String? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Dog.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Dog.kt deleted file mode 100644 index 5be6d075450..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Dog.kt +++ /dev/null @@ -1,40 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - -import org.openapitools.client.models.Animal -import org.openapitools.client.models.DogAllOf - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param className - * @param color - * @param breed - */ - -data class Dog ( - @SerializedName("className") - override val className: kotlin.String, - @SerializedName("color") - override val color: kotlin.String? = null, - @SerializedName("breed") - val breed: kotlin.String? = null -) : Animal, Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/DogAllOf.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/DogAllOf.kt deleted file mode 100644 index be81eda5973..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/DogAllOf.kt +++ /dev/null @@ -1,32 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param breed - */ - -data class DogAllOf ( - @SerializedName("breed") - val breed: kotlin.String? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/EnumArrays.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/EnumArrays.kt deleted file mode 100644 index 2b97721e7f5..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/EnumArrays.kt +++ /dev/null @@ -1,53 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param justSymbol - * @param arrayEnum - */ - -data class EnumArrays ( - @SerializedName("just_symbol") - val justSymbol: EnumArrays.JustSymbol? = null, - @SerializedName("array_enum") - val arrayEnum: kotlin.collections.List? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - - /** - * - * Values: greaterThanEqual,dollar - */ - - enum class JustSymbol(val value: kotlin.String){ - @SerializedName(value = ">=") greaterThanEqual(">="), - @SerializedName(value = "$") dollar("$"); - } - /** - * - * Values: fish,crab - */ - - enum class ArrayEnum(val value: kotlin.String){ - @SerializedName(value = "fish") fish("fish"), - @SerializedName(value = "crab") crab("crab"); - } -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/EnumClass.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/EnumClass.kt deleted file mode 100644 index f5edeb3710f..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/EnumClass.kt +++ /dev/null @@ -1,47 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName - -/** -* -* Values: abc,minusEfg,leftParenthesisXyzRightParenthesis -*/ - -enum class EnumClass(val value: kotlin.String){ - - - @SerializedName(value = "_abc") - abc("_abc"), - - - @SerializedName(value = "-efg") - minusEfg("-efg"), - - - @SerializedName(value = "(xyz)") - leftParenthesisXyzRightParenthesis("(xyz)"); - - - - /** - This override toString avoids using the enum var name and uses the actual api value instead. - In cases the var name and value are different, the client would send incorrect enums to the server. - **/ - override fun toString(): String { - return value - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/EnumTest.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/EnumTest.kt deleted file mode 100644 index 3aceec7fe93..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/EnumTest.kt +++ /dev/null @@ -1,95 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - -import org.openapitools.client.models.OuterEnum -import org.openapitools.client.models.OuterEnumDefaultValue -import org.openapitools.client.models.OuterEnumInteger -import org.openapitools.client.models.OuterEnumIntegerDefaultValue - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param enumStringRequired - * @param enumString - * @param enumInteger - * @param enumNumber - * @param outerEnum - * @param outerEnumInteger - * @param outerEnumDefaultValue - * @param outerEnumIntegerDefaultValue - */ - -data class EnumTest ( - @SerializedName("enum_string_required") - val enumStringRequired: EnumTest.EnumStringRequired, - @SerializedName("enum_string") - val enumString: EnumTest.EnumString? = null, - @SerializedName("enum_integer") - val enumInteger: EnumTest.EnumInteger? = null, - @SerializedName("enum_number") - val enumNumber: EnumTest.EnumNumber? = null, - @SerializedName("outerEnum") - val outerEnum: OuterEnum? = null, - @SerializedName("outerEnumInteger") - val outerEnumInteger: OuterEnumInteger? = null, - @SerializedName("outerEnumDefaultValue") - val outerEnumDefaultValue: OuterEnumDefaultValue? = null, - @SerializedName("outerEnumIntegerDefaultValue") - val outerEnumIntegerDefaultValue: OuterEnumIntegerDefaultValue? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - - /** - * - * Values: uPPER,lower,eMPTY - */ - - enum class EnumStringRequired(val value: kotlin.String){ - @SerializedName(value = "UPPER") uPPER("UPPER"), - @SerializedName(value = "lower") lower("lower"), - @SerializedName(value = "") eMPTY(""); - } - /** - * - * Values: uPPER,lower,eMPTY - */ - - enum class EnumString(val value: kotlin.String){ - @SerializedName(value = "UPPER") uPPER("UPPER"), - @SerializedName(value = "lower") lower("lower"), - @SerializedName(value = "") eMPTY(""); - } - /** - * - * Values: _1,minus1 - */ - - enum class EnumInteger(val value: kotlin.Int){ - @SerializedName(value = "1") _1(1), - @SerializedName(value = "-1") minus1(-1); - } - /** - * - * Values: _1period1,minus1Period2 - */ - - enum class EnumNumber(val value: kotlin.Double){ - @SerializedName(value = "1.1") _1period1(1.1), - @SerializedName(value = "-1.2") minus1Period2(-1.2); - } -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/FileSchemaTestClass.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/FileSchemaTestClass.kt deleted file mode 100644 index b82eddd47cc..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/FileSchemaTestClass.kt +++ /dev/null @@ -1,35 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param file - * @param files - */ - -data class FileSchemaTestClass ( - @SerializedName("file") - val file: java.io.File? = null, - @SerializedName("files") - val files: kotlin.collections.List? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Foo.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Foo.kt deleted file mode 100644 index 33952e4b66f..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Foo.kt +++ /dev/null @@ -1,32 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param bar - */ - -data class Foo ( - @SerializedName("bar") - val bar: kotlin.String? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/FormatTest.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/FormatTest.kt deleted file mode 100644 index 54c88ca8e90..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/FormatTest.kt +++ /dev/null @@ -1,79 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param number - * @param byte - * @param date - * @param password - * @param integer - * @param int32 - * @param int64 - * @param float - * @param double - * @param decimal - * @param string - * @param binary - * @param dateTime - * @param uuid - * @param patternWithDigits A string that is a 10 digit number. Can have leading zeros. - * @param patternWithDigitsAndDelimiter A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. - */ - -data class FormatTest ( - @SerializedName("number") - val number: java.math.BigDecimal, - @SerializedName("byte") - val byte: kotlin.ByteArray, - @SerializedName("date") - val date: java.time.LocalDate, - @SerializedName("password") - val password: kotlin.String, - @SerializedName("integer") - val integer: kotlin.Int? = null, - @SerializedName("int32") - val int32: kotlin.Int? = null, - @SerializedName("int64") - val int64: kotlin.Long? = null, - @SerializedName("float") - val float: kotlin.Float? = null, - @SerializedName("double") - val double: kotlin.Double? = null, - @SerializedName("decimal") - val decimal: java.math.BigDecimal? = null, - @SerializedName("string") - val string: kotlin.String? = null, - @SerializedName("binary") - val binary: java.io.File? = null, - @SerializedName("dateTime") - val dateTime: java.time.OffsetDateTime? = null, - @SerializedName("uuid") - val uuid: java.util.UUID? = null, - /* A string that is a 10 digit number. Can have leading zeros. */ - @SerializedName("pattern_with_digits") - val patternWithDigits: kotlin.String? = null, - /* A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. */ - @SerializedName("pattern_with_digits_and_delimiter") - val patternWithDigitsAndDelimiter: kotlin.String? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/HasOnlyReadOnly.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/HasOnlyReadOnly.kt deleted file mode 100644 index 3d662d38a50..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/HasOnlyReadOnly.kt +++ /dev/null @@ -1,35 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param bar - * @param foo - */ - -data class HasOnlyReadOnly ( - @SerializedName("bar") - val bar: kotlin.String? = null, - @SerializedName("foo") - val foo: kotlin.String? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/HealthCheckResult.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/HealthCheckResult.kt deleted file mode 100644 index fe3b639cfc3..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/HealthCheckResult.kt +++ /dev/null @@ -1,32 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * Just a string to inform instance is up and running. Make it nullable in hope to get it as pointer in generated model. - * @param nullableMessage - */ - -data class HealthCheckResult ( - @SerializedName("NullableMessage") - val nullableMessage: kotlin.String? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/InlineObject.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/InlineObject.kt deleted file mode 100644 index 24f157d5d75..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/InlineObject.kt +++ /dev/null @@ -1,37 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param name Updated name of the pet - * @param status Updated status of the pet - */ - -data class InlineObject ( - /* Updated name of the pet */ - @SerializedName("name") - val name: kotlin.String? = null, - /* Updated status of the pet */ - @SerializedName("status") - val status: kotlin.String? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/InlineObject1.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/InlineObject1.kt deleted file mode 100644 index 2382fda34b0..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/InlineObject1.kt +++ /dev/null @@ -1,37 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param additionalMetadata Additional data to pass to server - * @param file file to upload - */ - -data class InlineObject1 ( - /* Additional data to pass to server */ - @SerializedName("additionalMetadata") - val additionalMetadata: kotlin.String? = null, - /* file to upload */ - @SerializedName("file") - val file: java.io.File? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/InlineObject2.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/InlineObject2.kt deleted file mode 100644 index 0c85be510de..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/InlineObject2.kt +++ /dev/null @@ -1,56 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param enumFormStringArray Form parameter enum test (string array) - * @param enumFormString Form parameter enum test (string) - */ - -data class InlineObject2 ( - /* Form parameter enum test (string array) */ - @SerializedName("enum_form_string_array") - val enumFormStringArray: kotlin.collections.List? = null, - /* Form parameter enum test (string) */ - @SerializedName("enum_form_string") - val enumFormString: InlineObject2.EnumFormString? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - - /** - * Form parameter enum test (string array) - * Values: greaterThan,dollar - */ - - enum class EnumFormStringArray(val value: kotlin.String){ - @SerializedName(value = ">") greaterThan(">"), - @SerializedName(value = "$") dollar("$"); - } - /** - * Form parameter enum test (string) - * Values: abc,minusEfg,leftParenthesisXyzRightParenthesis - */ - - enum class EnumFormString(val value: kotlin.String){ - @SerializedName(value = "_abc") abc("_abc"), - @SerializedName(value = "-efg") minusEfg("-efg"), - @SerializedName(value = "(xyz)") leftParenthesisXyzRightParenthesis("(xyz)"); - } -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/InlineObject3.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/InlineObject3.kt deleted file mode 100644 index 37a4dbaeb49..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/InlineObject3.kt +++ /dev/null @@ -1,85 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param number None - * @param double None - * @param patternWithoutDelimiter None - * @param byte None - * @param integer None - * @param int32 None - * @param int64 None - * @param float None - * @param string None - * @param binary None - * @param date None - * @param dateTime None - * @param password None - * @param callback None - */ - -data class InlineObject3 ( - /* None */ - @SerializedName("number") - val number: java.math.BigDecimal, - /* None */ - @SerializedName("double") - val double: kotlin.Double, - /* None */ - @SerializedName("pattern_without_delimiter") - val patternWithoutDelimiter: kotlin.String, - /* None */ - @SerializedName("byte") - val byte: kotlin.ByteArray, - /* None */ - @SerializedName("integer") - val integer: kotlin.Int? = null, - /* None */ - @SerializedName("int32") - val int32: kotlin.Int? = null, - /* None */ - @SerializedName("int64") - val int64: kotlin.Long? = null, - /* None */ - @SerializedName("float") - val float: kotlin.Float? = null, - /* None */ - @SerializedName("string") - val string: kotlin.String? = null, - /* None */ - @SerializedName("binary") - val binary: java.io.File? = null, - /* None */ - @SerializedName("date") - val date: java.time.LocalDate? = null, - /* None */ - @SerializedName("dateTime") - val dateTime: java.time.OffsetDateTime? = null, - /* None */ - @SerializedName("password") - val password: kotlin.String? = null, - /* None */ - @SerializedName("callback") - val callback: kotlin.String? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/InlineObject4.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/InlineObject4.kt deleted file mode 100644 index 06b2d303be8..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/InlineObject4.kt +++ /dev/null @@ -1,37 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param param field1 - * @param param2 field2 - */ - -data class InlineObject4 ( - /* field1 */ - @SerializedName("param") - val param: kotlin.String, - /* field2 */ - @SerializedName("param2") - val param2: kotlin.String -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/InlineObject5.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/InlineObject5.kt deleted file mode 100644 index 76a04940bbf..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/InlineObject5.kt +++ /dev/null @@ -1,37 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param requiredFile file to upload - * @param additionalMetadata Additional data to pass to server - */ - -data class InlineObject5 ( - /* file to upload */ - @SerializedName("requiredFile") - val requiredFile: java.io.File, - /* Additional data to pass to server */ - @SerializedName("additionalMetadata") - val additionalMetadata: kotlin.String? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/InlineResponseDefault.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/InlineResponseDefault.kt deleted file mode 100644 index aceb74085fe..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/InlineResponseDefault.kt +++ /dev/null @@ -1,33 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - -import org.openapitools.client.models.Foo - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param string - */ - -data class InlineResponseDefault ( - @SerializedName("string") - val string: Foo? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/List.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/List.kt deleted file mode 100644 index d614d69d93b..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/List.kt +++ /dev/null @@ -1,32 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param `123list` - */ - -data class List ( - @SerializedName("123-list") - val `123list`: kotlin.String? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/MapTest.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/MapTest.kt deleted file mode 100644 index 351506589b9..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/MapTest.kt +++ /dev/null @@ -1,50 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param mapMapOfString - * @param mapOfEnumString - * @param directMap - * @param indirectMap - */ - -data class MapTest ( - @SerializedName("map_map_of_string") - val mapMapOfString: kotlin.collections.Map>? = null, - @SerializedName("map_of_enum_string") - val mapOfEnumString: MapTest.MapOfEnumString? = null, - @SerializedName("direct_map") - val directMap: kotlin.collections.Map? = null, - @SerializedName("indirect_map") - val indirectMap: kotlin.collections.Map? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - - /** - * - * Values: uPPER,lower - */ - - enum class MapOfEnumString(val value: kotlin.String){ - @SerializedName(value = "UPPER") uPPER("UPPER"), - @SerializedName(value = "lower") lower("lower"); - } -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/MixedPropertiesAndAdditionalPropertiesClass.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/MixedPropertiesAndAdditionalPropertiesClass.kt deleted file mode 100644 index 39b0152a33f..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/MixedPropertiesAndAdditionalPropertiesClass.kt +++ /dev/null @@ -1,39 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - -import org.openapitools.client.models.Animal - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param uuid - * @param dateTime - * @param map - */ - -data class MixedPropertiesAndAdditionalPropertiesClass ( - @SerializedName("uuid") - val uuid: java.util.UUID? = null, - @SerializedName("dateTime") - val dateTime: java.time.OffsetDateTime? = null, - @SerializedName("map") - val map: kotlin.collections.Map? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Model200Response.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Model200Response.kt deleted file mode 100644 index 1360386ee2b..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Model200Response.kt +++ /dev/null @@ -1,35 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * Model for testing model name starting with number - * @param name - * @param propertyClass - */ - -data class Model200Response ( - @SerializedName("name") - val name: kotlin.Int? = null, - @SerializedName("class") - val propertyClass: kotlin.String? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Name.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Name.kt deleted file mode 100644 index e3113d603d4..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Name.kt +++ /dev/null @@ -1,41 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * Model for testing model name same as property name - * @param name - * @param snakeCase - * @param property - * @param `123number` - */ - -data class Name ( - @SerializedName("name") - val name: kotlin.Int, - @SerializedName("snake_case") - val snakeCase: kotlin.Int? = null, - @SerializedName("property") - val property: kotlin.String? = null, - @SerializedName("123Number") - val `123number`: kotlin.Int? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/NullableClass.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/NullableClass.kt deleted file mode 100644 index 81366b145ba..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/NullableClass.kt +++ /dev/null @@ -1,65 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param integerProp - * @param numberProp - * @param booleanProp - * @param stringProp - * @param dateProp - * @param datetimeProp - * @param arrayNullableProp - * @param arrayAndItemsNullableProp - * @param arrayItemsNullable - * @param objectNullableProp - * @param objectAndItemsNullableProp - * @param objectItemsNullable - */ - -data class NullableClass ( - @SerializedName("integer_prop") - val integerProp: kotlin.Int? = null, - @SerializedName("number_prop") - val numberProp: java.math.BigDecimal? = null, - @SerializedName("boolean_prop") - val booleanProp: kotlin.Boolean? = null, - @SerializedName("string_prop") - val stringProp: kotlin.String? = null, - @SerializedName("date_prop") - val dateProp: java.time.LocalDate? = null, - @SerializedName("datetime_prop") - val datetimeProp: java.time.OffsetDateTime? = null, - @SerializedName("array_nullable_prop") - val arrayNullableProp: kotlin.collections.List? = null, - @SerializedName("array_and_items_nullable_prop") - val arrayAndItemsNullableProp: kotlin.collections.List? = null, - @SerializedName("array_items_nullable") - val arrayItemsNullable: kotlin.collections.List? = null, - @SerializedName("object_nullable_prop") - val objectNullableProp: kotlin.collections.Map? = null, - @SerializedName("object_and_items_nullable_prop") - val objectAndItemsNullableProp: kotlin.collections.Map? = null, - @SerializedName("object_items_nullable") - val objectItemsNullable: kotlin.collections.Map? = null -) : kotlin.collections.HashMap(), Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/NumberOnly.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/NumberOnly.kt deleted file mode 100644 index 31f01f97b08..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/NumberOnly.kt +++ /dev/null @@ -1,32 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param justNumber - */ - -data class NumberOnly ( - @SerializedName("JustNumber") - val justNumber: java.math.BigDecimal? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Order.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Order.kt deleted file mode 100644 index 048659fa99f..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Order.kt +++ /dev/null @@ -1,58 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param id - * @param petId - * @param quantity - * @param shipDate - * @param status Order Status - * @param complete - */ - -data class Order ( - @SerializedName("id") - val id: kotlin.Long? = null, - @SerializedName("petId") - val petId: kotlin.Long? = null, - @SerializedName("quantity") - val quantity: kotlin.Int? = null, - @SerializedName("shipDate") - val shipDate: java.time.OffsetDateTime? = null, - /* Order Status */ - @SerializedName("status") - val status: Order.Status? = null, - @SerializedName("complete") - val complete: kotlin.Boolean? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - - /** - * Order Status - * Values: placed,approved,delivered - */ - - enum class Status(val value: kotlin.String){ - @SerializedName(value = "placed") placed("placed"), - @SerializedName(value = "approved") approved("approved"), - @SerializedName(value = "delivered") delivered("delivered"); - } -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/OuterComposite.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/OuterComposite.kt deleted file mode 100644 index dec8db2d9b8..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/OuterComposite.kt +++ /dev/null @@ -1,38 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param myNumber - * @param myString - * @param myBoolean - */ - -data class OuterComposite ( - @SerializedName("my_number") - val myNumber: java.math.BigDecimal? = null, - @SerializedName("my_string") - val myString: kotlin.String? = null, - @SerializedName("my_boolean") - val myBoolean: kotlin.Boolean? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/OuterEnum.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/OuterEnum.kt deleted file mode 100644 index 8d51cd4108b..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/OuterEnum.kt +++ /dev/null @@ -1,47 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName - -/** -* -* Values: placed,approved,delivered -*/ - -enum class OuterEnum(val value: kotlin.String){ - - - @SerializedName(value = "placed") - placed("placed"), - - - @SerializedName(value = "approved") - approved("approved"), - - - @SerializedName(value = "delivered") - delivered("delivered"); - - - - /** - This override toString avoids using the enum var name and uses the actual api value instead. - In cases the var name and value are different, the client would send incorrect enums to the server. - **/ - override fun toString(): String { - return value - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/OuterEnumDefaultValue.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/OuterEnumDefaultValue.kt deleted file mode 100644 index 980d368d032..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/OuterEnumDefaultValue.kt +++ /dev/null @@ -1,47 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName - -/** -* -* Values: placed,approved,delivered -*/ - -enum class OuterEnumDefaultValue(val value: kotlin.String){ - - - @SerializedName(value = "placed") - placed("placed"), - - - @SerializedName(value = "approved") - approved("approved"), - - - @SerializedName(value = "delivered") - delivered("delivered"); - - - - /** - This override toString avoids using the enum var name and uses the actual api value instead. - In cases the var name and value are different, the client would send incorrect enums to the server. - **/ - override fun toString(): String { - return value - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/OuterEnumInteger.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/OuterEnumInteger.kt deleted file mode 100644 index d5587936a8e..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/OuterEnumInteger.kt +++ /dev/null @@ -1,47 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName - -/** -* -* Values: _0,_1,_2 -*/ - -enum class OuterEnumInteger(val value: kotlin.Int){ - - - @SerializedName(value = "0") - _0(0), - - - @SerializedName(value = "1") - _1(1), - - - @SerializedName(value = "2") - _2(2); - - - - /** - This override toString avoids using the enum var name and uses the actual api value instead. - In cases the var name and value are different, the client would send incorrect enums to the server. - **/ - override fun toString(): String { - return value.toString() - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/OuterEnumIntegerDefaultValue.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/OuterEnumIntegerDefaultValue.kt deleted file mode 100644 index 25a816fc4a8..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/OuterEnumIntegerDefaultValue.kt +++ /dev/null @@ -1,47 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName - -/** -* -* Values: _0,_1,_2 -*/ - -enum class OuterEnumIntegerDefaultValue(val value: kotlin.Int){ - - - @SerializedName(value = "0") - _0(0), - - - @SerializedName(value = "1") - _1(1), - - - @SerializedName(value = "2") - _2(2); - - - - /** - This override toString avoids using the enum var name and uses the actual api value instead. - In cases the var name and value are different, the client would send incorrect enums to the server. - **/ - override fun toString(): String { - return value.toString() - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Pet.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Pet.kt deleted file mode 100644 index 0b389b22ba6..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Pet.kt +++ /dev/null @@ -1,60 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - -import org.openapitools.client.models.Category -import org.openapitools.client.models.Tag - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param name - * @param photoUrls - * @param id - * @param category - * @param tags - * @param status pet status in the store - */ - -data class Pet ( - @SerializedName("name") - val name: kotlin.String, - @SerializedName("photoUrls") - val photoUrls: kotlin.collections.List, - @SerializedName("id") - val id: kotlin.Long? = null, - @SerializedName("category") - val category: Category? = null, - @SerializedName("tags") - val tags: kotlin.collections.List? = null, - /* pet status in the store */ - @SerializedName("status") - val status: Pet.Status? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - - /** - * pet status in the store - * Values: available,pending,sold - */ - - enum class Status(val value: kotlin.String){ - @SerializedName(value = "available") available("available"), - @SerializedName(value = "pending") pending("pending"), - @SerializedName(value = "sold") sold("sold"); - } -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/ReadOnlyFirst.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/ReadOnlyFirst.kt deleted file mode 100644 index ef98374a695..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/ReadOnlyFirst.kt +++ /dev/null @@ -1,35 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param bar - * @param baz - */ - -data class ReadOnlyFirst ( - @SerializedName("bar") - val bar: kotlin.String? = null, - @SerializedName("baz") - val baz: kotlin.String? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Return.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Return.kt deleted file mode 100644 index 19f61d41673..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Return.kt +++ /dev/null @@ -1,32 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * Model for testing reserved words - * @param `return` - */ - -data class Return ( - @SerializedName("return") - val `return`: kotlin.Int? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/SpecialModelname.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/SpecialModelname.kt deleted file mode 100644 index 2dfb12b8b69..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/SpecialModelname.kt +++ /dev/null @@ -1,32 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param dollarSpecialPropertyName - */ - -data class SpecialModelname ( - @SerializedName("\$special[property.name]") - val dollarSpecialPropertyName: kotlin.Long? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Tag.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Tag.kt deleted file mode 100644 index 9e08a3d8ae0..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Tag.kt +++ /dev/null @@ -1,35 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param id - * @param name - */ - -data class Tag ( - @SerializedName("id") - val id: kotlin.Long? = null, - @SerializedName("name") - val name: kotlin.String? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} - diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/User.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/User.kt deleted file mode 100644 index ca2ce7188e5..00000000000 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/User.kt +++ /dev/null @@ -1,54 +0,0 @@ -/** -* OpenAPI Petstore -* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -* -* The version of the OpenAPI document: 1.0.0 -* -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ -package org.openapitools.client.models - - -import com.google.gson.annotations.SerializedName -import java.io.Serializable - -/** - * - * @param id - * @param username - * @param firstName - * @param lastName - * @param email - * @param password - * @param phone - * @param userStatus User Status - */ - -data class User ( - @SerializedName("id") - val id: kotlin.Long? = null, - @SerializedName("username") - val username: kotlin.String? = null, - @SerializedName("firstName") - val firstName: kotlin.String? = null, - @SerializedName("lastName") - val lastName: kotlin.String? = null, - @SerializedName("email") - val email: kotlin.String? = null, - @SerializedName("password") - val password: kotlin.String? = null, - @SerializedName("phone") - val phone: kotlin.String? = null, - /* User Status */ - @SerializedName("userStatus") - val userStatus: kotlin.Int? = null -) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } - -} -