enumValues) {
- this.description = description;
- this.defaultValue = defaultValue;
- this.enumValues = enumValues;
- }
-}
diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/StringUtil.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/StringUtil.java
deleted file mode 100644
index 4dc60597910a..000000000000
--- a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/StringUtil.java
+++ /dev/null
@@ -1,83 +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;
-
-import java.util.Collection;
-import java.util.Iterator;
-
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
-public class StringUtil {
- /**
- * Check if the given array contains the given value (with case-insensitive comparison).
- *
- * @param array The array
- * @param value The value to search
- * @return true if the array contains the value
- */
- public static boolean containsIgnoreCase(String[] array, String value) {
- for (String str : array) {
- if (value == null && str == null) {
- return true;
- }
- if (value != null && value.equalsIgnoreCase(str)) {
- return true;
- }
- }
- return false;
- }
-
- /**
- * Join an array of strings with the given separator.
- *
- * Note: This might be replaced by utility method from commons-lang or guava someday
- * if one of those libraries is added as dependency.
- *
- *
- * @param array The array of strings
- * @param separator The separator
- * @return the resulting string
- */
- public static String join(String[] array, String separator) {
- int len = array.length;
- if (len == 0) {
- return "";
- }
-
- StringBuilder out = new StringBuilder();
- out.append(array[0]);
- for (int i = 1; i < len; i++) {
- out.append(separator).append(array[i]);
- }
- return out.toString();
- }
-
- /**
- * Join a list of strings with the given separator.
- *
- * @param list The list of strings
- * @param separator The separator
- * @return the resulting string
- */
- public static String join(Collection list, String separator) {
- Iterator iterator = list.iterator();
- StringBuilder out = new StringBuilder();
- if (iterator.hasNext()) {
- out.append(iterator.next());
- }
- while (iterator.hasNext()) {
- out.append(separator).append(iterator.next());
- }
- return out.toString();
- }
-}
diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
deleted file mode 100644
index 5af56d72d0d0..000000000000
--- a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
+++ /dev/null
@@ -1,39 +0,0 @@
-package org.openapitools.client.api;
-
-import org.openapitools.client.CollectionFormats.*;
-
-
-
-import retrofit2.Call;
-import retrofit2.http.*;
-
-import okhttp3.RequestBody;
-import okhttp3.ResponseBody;
-import okhttp3.MultipartBody;
-
-import org.openapitools.client.model.Client;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-import play.libs.F;
-import retrofit2.Response;
-
-public interface AnotherFakeApi {
- /**
- * To test special tags
- * To test special tags and operation ID starting with number
- * @param body client model (required)
- * @return Call<Client>
- */
- @Headers({
- "Content-Type:application/json"
- })
- @PATCH("another-fake/dummy")
- F.Promise> call123testSpecialTags(
- @retrofit2.http.Body Client body
- );
-
-}
diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/api/FakeApi.java
deleted file mode 100644
index b1a773c63d71..000000000000
--- a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/api/FakeApi.java
+++ /dev/null
@@ -1,236 +0,0 @@
-package org.openapitools.client.api;
-
-import org.openapitools.client.CollectionFormats.*;
-
-
-
-import retrofit2.Call;
-import retrofit2.http.*;
-
-import okhttp3.RequestBody;
-import okhttp3.ResponseBody;
-import okhttp3.MultipartBody;
-
-import java.math.BigDecimal;
-import org.openapitools.client.model.Client;
-import java.io.File;
-import org.openapitools.client.model.FileSchemaTestClass;
-import java.time.LocalDate;
-import java.time.OffsetDateTime;
-import org.openapitools.client.model.OuterComposite;
-import org.openapitools.client.model.User;
-import org.openapitools.client.model.XmlItem;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-import play.libs.F;
-import retrofit2.Response;
-
-public interface FakeApi {
- /**
- * creates an XmlItem
- * this route creates an XmlItem
- * @param xmlItem XmlItem Body (required)
- * @return Call<Void>
- */
- @Headers({
- "Content-Type:application/xml"
- })
- @POST("fake/create_xml_item")
- F.Promise> createXmlItem(
- @retrofit2.http.Body XmlItem xmlItem
- );
-
- /**
- *
- * Test serialization of outer boolean types
- * @param body Input boolean as post body (optional)
- * @return Call<Boolean>
- */
- @POST("fake/outer/boolean")
- F.Promise> fakeOuterBooleanSerialize(
- @retrofit2.http.Body Boolean body
- );
-
- /**
- *
- * Test serialization of object with outer number type
- * @param body Input composite as post body (optional)
- * @return Call<OuterComposite>
- */
- @POST("fake/outer/composite")
- F.Promise> fakeOuterCompositeSerialize(
- @retrofit2.http.Body OuterComposite body
- );
-
- /**
- *
- * Test serialization of outer number types
- * @param body Input number as post body (optional)
- * @return Call<BigDecimal>
- */
- @POST("fake/outer/number")
- F.Promise> fakeOuterNumberSerialize(
- @retrofit2.http.Body BigDecimal body
- );
-
- /**
- *
- * Test serialization of outer string types
- * @param body Input string as post body (optional)
- * @return Call<String>
- */
- @POST("fake/outer/string")
- F.Promise> fakeOuterStringSerialize(
- @retrofit2.http.Body String body
- );
-
- /**
- *
- * For this test, the body for this request much reference a schema named `File`.
- * @param body (required)
- * @return Call<Void>
- */
- @Headers({
- "Content-Type:application/json"
- })
- @PUT("fake/body-with-file-schema")
- F.Promise> testBodyWithFileSchema(
- @retrofit2.http.Body FileSchemaTestClass body
- );
-
- /**
- *
- *
- * @param query (required)
- * @param body (required)
- * @return Call<Void>
- */
- @Headers({
- "Content-Type:application/json"
- })
- @PUT("fake/body-with-query-params")
- F.Promise> testBodyWithQueryParams(
- @retrofit2.http.Query("query") String query, @retrofit2.http.Body User body
- );
-
- /**
- * To test \"client\" model
- * To test \"client\" model
- * @param body client model (required)
- * @return Call<Client>
- */
- @Headers({
- "Content-Type:application/json"
- })
- @PATCH("fake")
- F.Promise> testClientModel(
- @retrofit2.http.Body Client body
- );
-
- /**
- * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
- * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
- * @param number None (required)
- * @param _double None (required)
- * @param patternWithoutDelimiter None (required)
- * @param _byte None (required)
- * @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<Void>
- */
- @retrofit2.http.FormUrlEncoded
- @POST("fake")
- F.Promise> testEndpointParameters(
- @retrofit2.http.Field("number") BigDecimal number, @retrofit2.http.Field("double") Double _double, @retrofit2.http.Field("pattern_without_delimiter") String patternWithoutDelimiter, @retrofit2.http.Field("byte") byte[] _byte, @retrofit2.http.Field("integer") Integer integer, @retrofit2.http.Field("int32") Integer int32, @retrofit2.http.Field("int64") Long int64, @retrofit2.http.Field("float") Float _float, @retrofit2.http.Field("string") String string, @retrofit2.http.Field("binary") MultipartBody.Part binary, @retrofit2.http.Field("date") LocalDate date, @retrofit2.http.Field("dateTime") OffsetDateTime dateTime, @retrofit2.http.Field("password") String password, @retrofit2.http.Field("callback") String paramCallback
- );
-
- /**
- * To test enum parameters
- * To test enum parameters
- * @param enumHeaderStringArray Header parameter enum test (string array) (optional, default to new ArrayList<>())
- * @param enumHeaderString Header parameter enum test (string) (optional, default to -efg)
- * @param enumQueryStringArray Query parameter enum test (string array) (optional, default to new ArrayList<>())
- * @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<Void>
- */
- @retrofit2.http.FormUrlEncoded
- @GET("fake")
- F.Promise> testEnumParameters(
- @retrofit2.http.Header("enum_header_string_array") List enumHeaderStringArray, @retrofit2.http.Header("enum_header_string") String enumHeaderString, @retrofit2.http.Query("enum_query_string_array") CSVParams enumQueryStringArray, @retrofit2.http.Query("enum_query_string") String enumQueryString, @retrofit2.http.Query("enum_query_integer") Integer enumQueryInteger, @retrofit2.http.Query("enum_query_double") Double enumQueryDouble, @retrofit2.http.Field("enum_form_string_array") List enumFormStringArray, @retrofit2.http.Field("enum_form_string") String enumFormString
- );
-
- /**
- * Fake endpoint to test group parameters (optional)
- * Fake endpoint to test group parameters (optional)
- * @param requiredStringGroup Required String in group parameters (required)
- * @param requiredBooleanGroup Required Boolean in group parameters (required)
- * @param requiredInt64Group Required Integer in group parameters (required)
- * @param stringGroup String in group parameters (optional)
- * @param booleanGroup Boolean in group parameters (optional)
- * @param int64Group Integer in group parameters (optional)
- * @return Call<Void>
- */
- @DELETE("fake")
- F.Promise> testGroupParameters(
- @retrofit2.http.Query("required_string_group") Integer requiredStringGroup, @retrofit2.http.Header("required_boolean_group") Boolean requiredBooleanGroup, @retrofit2.http.Query("required_int64_group") Long requiredInt64Group, @retrofit2.http.Query("string_group") Integer stringGroup, @retrofit2.http.Header("boolean_group") Boolean booleanGroup, @retrofit2.http.Query("int64_group") Long int64Group
- );
-
- /**
- * test inline additionalProperties
- *
- * @param param request body (required)
- * @return Call<Void>
- */
- @Headers({
- "Content-Type:application/json"
- })
- @POST("fake/inline-additionalProperties")
- F.Promise> testInlineAdditionalProperties(
- @retrofit2.http.Body Map param
- );
-
- /**
- * test json serialization of form data
- *
- * @param param field1 (required)
- * @param param2 field2 (required)
- * @return Call<Void>
- */
- @retrofit2.http.FormUrlEncoded
- @GET("fake/jsonFormData")
- F.Promise> testJsonFormData(
- @retrofit2.http.Field("param") String param, @retrofit2.http.Field("param2") String param2
- );
-
- /**
- *
- * To test the collection format in query parameters
- * @param pipe (required)
- * @param ioutil (required)
- * @param http (required)
- * @param url (required)
- * @param context (required)
- * @return Call<Void>
- */
- @PUT("fake/test-query-paramters")
- F.Promise> testQueryParameterCollectionFormat(
- @retrofit2.http.Query("pipe") CSVParams pipe, @retrofit2.http.Query("ioutil") CSVParams ioutil, @retrofit2.http.Query("http") SSVParams http, @retrofit2.http.Query("url") CSVParams url, @retrofit2.http.Query("context") List context
- );
-
-}
diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java
deleted file mode 100644
index 111f24e7b96e..000000000000
--- a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java
+++ /dev/null
@@ -1,39 +0,0 @@
-package org.openapitools.client.api;
-
-import org.openapitools.client.CollectionFormats.*;
-
-
-
-import retrofit2.Call;
-import retrofit2.http.*;
-
-import okhttp3.RequestBody;
-import okhttp3.ResponseBody;
-import okhttp3.MultipartBody;
-
-import org.openapitools.client.model.Client;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-import play.libs.F;
-import retrofit2.Response;
-
-public interface FakeClassnameTags123Api {
- /**
- * To test class name in snake case
- * To test class name in snake case
- * @param body client model (required)
- * @return Call<Client>
- */
- @Headers({
- "Content-Type:application/json"
- })
- @PATCH("fake_classname_test")
- F.Promise> testClassname(
- @retrofit2.http.Body Client body
- );
-
-}
diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/api/PetApi.java
deleted file mode 100644
index 09fcc52ba254..000000000000
--- a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/api/PetApi.java
+++ /dev/null
@@ -1,143 +0,0 @@
-package org.openapitools.client.api;
-
-import org.openapitools.client.CollectionFormats.*;
-
-
-
-import retrofit2.Call;
-import retrofit2.http.*;
-
-import okhttp3.RequestBody;
-import okhttp3.ResponseBody;
-import okhttp3.MultipartBody;
-
-import java.io.File;
-import org.openapitools.client.model.ModelApiResponse;
-import org.openapitools.client.model.Pet;
-import java.util.Set;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-import play.libs.F;
-import retrofit2.Response;
-
-public interface PetApi {
- /**
- * Add a new pet to the store
- *
- * @param body Pet object that needs to be added to the store (required)
- * @return Call<Void>
- */
- @Headers({
- "Content-Type:application/json"
- })
- @POST("pet")
- F.Promise> addPet(
- @retrofit2.http.Body Pet body
- );
-
- /**
- * Deletes a pet
- *
- * @param petId Pet id to delete (required)
- * @param apiKey (optional)
- * @return Call<Void>
- */
- @DELETE("pet/{petId}")
- F.Promise> deletePet(
- @retrofit2.http.Path("petId") Long petId, @retrofit2.http.Header("api_key") String apiKey
- );
-
- /**
- * Finds Pets by status
- * Multiple status values can be provided with comma separated strings
- * @param status Status values that need to be considered for filter (required)
- * @return Call<List<Pet>>
- */
- @GET("pet/findByStatus")
- F.Promise>> findPetsByStatus(
- @retrofit2.http.Query("status") CSVParams status
- );
-
- /**
- * Finds Pets by tags
- * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
- * @param tags Tags to filter by (required)
- * @return Call<Set<Pet>>
- */
- @GET("pet/findByTags")
- F.Promise>> findPetsByTags(
- @retrofit2.http.Query("tags") CSVParams tags
- );
-
- /**
- * Find pet by ID
- * Returns a single pet
- * @param petId ID of pet to return (required)
- * @return Call<Pet>
- */
- @GET("pet/{petId}")
- F.Promise> getPetById(
- @retrofit2.http.Path("petId") Long petId
- );
-
- /**
- * Update an existing pet
- *
- * @param body Pet object that needs to be added to the store (required)
- * @return Call<Void>
- */
- @Headers({
- "Content-Type:application/json"
- })
- @PUT("pet")
- F.Promise> updatePet(
- @retrofit2.http.Body Pet body
- );
-
- /**
- * Updates a pet in the store with form data
- *
- * @param petId ID of pet that needs to be updated (required)
- * @param name Updated name of the pet (optional)
- * @param status Updated status of the pet (optional)
- * @return Call<Void>
- */
- @retrofit2.http.FormUrlEncoded
- @POST("pet/{petId}")
- F.Promise> updatePetWithForm(
- @retrofit2.http.Path("petId") Long petId, @retrofit2.http.Field("name") String name, @retrofit2.http.Field("status") String status
- );
-
- /**
- * uploads an image
- *
- * @param petId ID of pet to update (required)
- * @param additionalMetadata Additional data to pass to server (optional)
- * @param file file to upload (optional)
- * @return Call<ModelApiResponse>
- */
- @retrofit2.http.Multipart
- @POST("pet/{petId}/uploadImage")
- F.Promise> uploadFile(
- @retrofit2.http.Path("petId") Long petId, @retrofit2.http.Part("additionalMetadata") String additionalMetadata, @retrofit2.http.Part MultipartBody.Part file
- );
-
- /**
- * uploads an image (required)
- *
- * @param petId ID of pet to update (required)
- * @param requiredFile file to upload (required)
- * @param additionalMetadata Additional data to pass to server (optional)
- * @return Call<ModelApiResponse>
- */
- @retrofit2.http.Multipart
- @POST("fake/{petId}/uploadImageWithRequiredFile")
- F.Promise> uploadFileWithRequiredFile(
- @retrofit2.http.Path("petId") Long petId, @retrofit2.http.Part MultipartBody.Part requiredFile, @retrofit2.http.Part("additionalMetadata") String additionalMetadata
- );
-
-}
diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/api/StoreApi.java
deleted file mode 100644
index 92eab00b6eb6..000000000000
--- a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/api/StoreApi.java
+++ /dev/null
@@ -1,67 +0,0 @@
-package org.openapitools.client.api;
-
-import org.openapitools.client.CollectionFormats.*;
-
-
-
-import retrofit2.Call;
-import retrofit2.http.*;
-
-import okhttp3.RequestBody;
-import okhttp3.ResponseBody;
-import okhttp3.MultipartBody;
-
-import org.openapitools.client.model.Order;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-import play.libs.F;
-import retrofit2.Response;
-
-public 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
- * @param orderId ID of the order that needs to be deleted (required)
- * @return Call<Void>
- */
- @DELETE("store/order/{order_id}")
- F.Promise> deleteOrder(
- @retrofit2.http.Path("order_id") String orderId
- );
-
- /**
- * Returns pet inventories by status
- * Returns a map of status codes to quantities
- * @return Call<Map<String, Integer>>
- */
- @GET("store/inventory")
- F.Promise>> getInventory();
-
-
- /**
- * Find purchase order by ID
- * For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
- * @param orderId ID of pet that needs to be fetched (required)
- * @return Call<Order>
- */
- @GET("store/order/{order_id}")
- F.Promise> getOrderById(
- @retrofit2.http.Path("order_id") Long orderId
- );
-
- /**
- * Place an order for a pet
- *
- * @param body order placed for purchasing the pet (required)
- * @return Call<Order>
- */
- @POST("store/order")
- F.Promise> placeOrder(
- @retrofit2.http.Body Order body
- );
-
-}
diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/api/UserApi.java
deleted file mode 100644
index 3a3d0b974a7d..000000000000
--- a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/api/UserApi.java
+++ /dev/null
@@ -1,113 +0,0 @@
-package org.openapitools.client.api;
-
-import org.openapitools.client.CollectionFormats.*;
-
-
-
-import retrofit2.Call;
-import retrofit2.http.*;
-
-import okhttp3.RequestBody;
-import okhttp3.ResponseBody;
-import okhttp3.MultipartBody;
-
-import org.openapitools.client.model.User;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-import play.libs.F;
-import retrofit2.Response;
-
-public interface UserApi {
- /**
- * Create user
- * This can only be done by the logged in user.
- * @param body Created user object (required)
- * @return Call<Void>
- */
- @POST("user")
- F.Promise> createUser(
- @retrofit2.http.Body User body
- );
-
- /**
- * Creates list of users with given input array
- *
- * @param body List of user object (required)
- * @return Call<Void>
- */
- @POST("user/createWithArray")
- F.Promise> createUsersWithArrayInput(
- @retrofit2.http.Body List body
- );
-
- /**
- * Creates list of users with given input array
- *
- * @param body List of user object (required)
- * @return Call<Void>
- */
- @POST("user/createWithList")
- F.Promise> createUsersWithListInput(
- @retrofit2.http.Body List body
- );
-
- /**
- * Delete user
- * This can only be done by the logged in user.
- * @param username The name that needs to be deleted (required)
- * @return Call<Void>
- */
- @DELETE("user/{username}")
- F.Promise> deleteUser(
- @retrofit2.http.Path("username") String username
- );
-
- /**
- * Get user by user name
- *
- * @param username The name that needs to be fetched. Use user1 for testing. (required)
- * @return Call<User>
- */
- @GET("user/{username}")
- F.Promise> getUserByName(
- @retrofit2.http.Path("username") String username
- );
-
- /**
- * Logs user into the system
- *
- * @param username The user name for login (required)
- * @param password The password for login in clear text (required)
- * @return Call<String>
- */
- @GET("user/login")
- F.Promise> loginUser(
- @retrofit2.http.Query("username") String username, @retrofit2.http.Query("password") String password
- );
-
- /**
- * Logs out current logged in user session
- *
- * @return Call<Void>
- */
- @GET("user/logout")
- F.Promise> logoutUser();
-
-
- /**
- * Updated user
- * This can only be done by the logged in user.
- * @param username name that need to be deleted (required)
- * @param body Updated user object (required)
- * @return Call<Void>
- */
- @PUT("user/{username}")
- F.Promise> updateUser(
- @retrofit2.http.Path("username") String username, @retrofit2.http.Body User body
- );
-
-}
diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java
deleted file mode 100644
index 79a732ce8bb3..000000000000
--- a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java
+++ /dev/null
@@ -1,80 +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.auth;
-
-import org.openapitools.client.Pair;
-
-import java.util.Map;
-import java.util.List;
-
-/**
- * Holds ApiKey auth info
- */
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
-public class ApiKeyAuth implements Authentication {
- private final String location;
- private final String paramName;
-
- private String apiKey;
- private String apiKeyPrefix;
-
- public ApiKeyAuth(String location, String paramName) {
- this.location = location;
- this.paramName = paramName;
- }
-
- public String getLocation() {
- return location;
- }
-
- public String getParamName() {
- return paramName;
- }
-
- public String getApiKey() {
- return apiKey;
- }
-
- public void setApiKey(String apiKey) {
- this.apiKey = apiKey;
- }
-
- public String getApiKeyPrefix() {
- return apiKeyPrefix;
- }
-
- public void setApiKeyPrefix(String apiKeyPrefix) {
- this.apiKeyPrefix = apiKeyPrefix;
- }
-
- @Override
- public void applyToParams(List queryParams, Map headerParams, Map cookieParams) {
- if (apiKey == null) {
- return;
- }
- String value;
- if (apiKeyPrefix != null) {
- value = apiKeyPrefix + " " + apiKey;
- } else {
- value = apiKey;
- }
- if ("query".equals(location)) {
- queryParams.add(new Pair(paramName, value));
- } else if ("header".equals(location)) {
- headerParams.put(paramName, value);
- } else if ("cookie".equals(location)) {
- cookieParams.put(paramName, value);
- }
- }
-}
diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/auth/Authentication.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/auth/Authentication.java
deleted file mode 100644
index 5c558b1d5abd..000000000000
--- a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/auth/Authentication.java
+++ /dev/null
@@ -1,30 +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.auth;
-
-import org.openapitools.client.Pair;
-
-import java.util.Map;
-import java.util.List;
-
-public interface Authentication {
- /**
- * Apply authentication settings to header and query params.
- *
- * @param queryParams List of query parameters
- * @param headerParams Map of header parameters
- * @param cookieParams Map of cookie parameters
- */
- void applyToParams(List queryParams, Map headerParams, Map cookieParams);
-}
diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java
deleted file mode 100644
index 87958d5c7408..000000000000
--- a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java
+++ /dev/null
@@ -1,108 +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.model;
-
-import java.util.Objects;
-import java.util.Arrays;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonValue;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import java.util.HashMap;
-import java.util.Map;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import javax.validation.constraints.*;
-import javax.validation.Valid;
-
-/**
- * AdditionalPropertiesAnyType
- */
-@JsonPropertyOrder({
- AdditionalPropertiesAnyType.JSON_PROPERTY_NAME
-})
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
-public class AdditionalPropertiesAnyType extends HashMap {
- public static final String JSON_PROPERTY_NAME = "name";
- private String name;
-
-
- public AdditionalPropertiesAnyType name(String name) {
-
- this.name = name;
- return this;
- }
-
- /**
- * Get name
- * @return name
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_NAME)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public String getName() {
- return name;
- }
-
-
- public void setName(String name) {
- this.name = name;
- }
-
-
- @Override
- public boolean equals(java.lang.Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- AdditionalPropertiesAnyType additionalPropertiesAnyType = (AdditionalPropertiesAnyType) o;
- return Objects.equals(this.name, additionalPropertiesAnyType.name) &&
- super.equals(o);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(name, super.hashCode());
- }
-
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class AdditionalPropertiesAnyType {\n");
- sb.append(" ").append(toIndentedString(super.toString())).append("\n");
- sb.append(" name: ").append(toIndentedString(name)).append("\n");
- sb.append("}");
- return sb.toString();
- }
-
- /**
- * Convert the given object to string with each line indented by 4 spaces
- * (except the first line).
- */
- private String toIndentedString(java.lang.Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
-}
-
diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java
deleted file mode 100644
index 6e61778611f2..000000000000
--- a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java
+++ /dev/null
@@ -1,109 +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.model;
-
-import java.util.Objects;
-import java.util.Arrays;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonValue;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import javax.validation.constraints.*;
-import javax.validation.Valid;
-
-/**
- * AdditionalPropertiesArray
- */
-@JsonPropertyOrder({
- AdditionalPropertiesArray.JSON_PROPERTY_NAME
-})
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
-public class AdditionalPropertiesArray extends HashMap {
- public static final String JSON_PROPERTY_NAME = "name";
- private String name;
-
-
- public AdditionalPropertiesArray name(String name) {
-
- this.name = name;
- return this;
- }
-
- /**
- * Get name
- * @return name
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_NAME)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public String getName() {
- return name;
- }
-
-
- public void setName(String name) {
- this.name = name;
- }
-
-
- @Override
- public boolean equals(java.lang.Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- AdditionalPropertiesArray additionalPropertiesArray = (AdditionalPropertiesArray) o;
- return Objects.equals(this.name, additionalPropertiesArray.name) &&
- super.equals(o);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(name, super.hashCode());
- }
-
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class AdditionalPropertiesArray {\n");
- sb.append(" ").append(toIndentedString(super.toString())).append("\n");
- sb.append(" name: ").append(toIndentedString(name)).append("\n");
- sb.append("}");
- return sb.toString();
- }
-
- /**
- * Convert the given object to string with each line indented by 4 spaces
- * (except the first line).
- */
- private String toIndentedString(java.lang.Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
-}
-
diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java
deleted file mode 100644
index 9841ffc5b2bf..000000000000
--- a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java
+++ /dev/null
@@ -1,108 +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.model;
-
-import java.util.Objects;
-import java.util.Arrays;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonValue;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import java.util.HashMap;
-import java.util.Map;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import javax.validation.constraints.*;
-import javax.validation.Valid;
-
-/**
- * AdditionalPropertiesBoolean
- */
-@JsonPropertyOrder({
- AdditionalPropertiesBoolean.JSON_PROPERTY_NAME
-})
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
-public class AdditionalPropertiesBoolean extends HashMap {
- public static final String JSON_PROPERTY_NAME = "name";
- private String name;
-
-
- public AdditionalPropertiesBoolean name(String name) {
-
- this.name = name;
- return this;
- }
-
- /**
- * Get name
- * @return name
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_NAME)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public String getName() {
- return name;
- }
-
-
- public void setName(String name) {
- this.name = name;
- }
-
-
- @Override
- public boolean equals(java.lang.Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- AdditionalPropertiesBoolean additionalPropertiesBoolean = (AdditionalPropertiesBoolean) o;
- return Objects.equals(this.name, additionalPropertiesBoolean.name) &&
- super.equals(o);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(name, super.hashCode());
- }
-
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class AdditionalPropertiesBoolean {\n");
- sb.append(" ").append(toIndentedString(super.toString())).append("\n");
- sb.append(" name: ").append(toIndentedString(name)).append("\n");
- sb.append("}");
- return sb.toString();
- }
-
- /**
- * Convert the given object to string with each line indented by 4 spaces
- * (except the first line).
- */
- private String toIndentedString(java.lang.Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
-}
-
diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java
deleted file mode 100644
index cc669ca9bcd9..000000000000
--- a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java
+++ /dev/null
@@ -1,487 +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.model;
-
-import java.util.Objects;
-import java.util.Arrays;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonValue;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import java.math.BigDecimal;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import javax.validation.constraints.*;
-import javax.validation.Valid;
-
-/**
- * AdditionalPropertiesClass
- */
-@JsonPropertyOrder({
- AdditionalPropertiesClass.JSON_PROPERTY_MAP_STRING,
- AdditionalPropertiesClass.JSON_PROPERTY_MAP_NUMBER,
- AdditionalPropertiesClass.JSON_PROPERTY_MAP_INTEGER,
- AdditionalPropertiesClass.JSON_PROPERTY_MAP_BOOLEAN,
- AdditionalPropertiesClass.JSON_PROPERTY_MAP_ARRAY_INTEGER,
- AdditionalPropertiesClass.JSON_PROPERTY_MAP_ARRAY_ANYTYPE,
- AdditionalPropertiesClass.JSON_PROPERTY_MAP_MAP_STRING,
- AdditionalPropertiesClass.JSON_PROPERTY_MAP_MAP_ANYTYPE,
- AdditionalPropertiesClass.JSON_PROPERTY_ANYTYPE1,
- AdditionalPropertiesClass.JSON_PROPERTY_ANYTYPE2,
- AdditionalPropertiesClass.JSON_PROPERTY_ANYTYPE3
-})
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
-public class AdditionalPropertiesClass {
- public static final String JSON_PROPERTY_MAP_STRING = "map_string";
- private Map mapString = null;
-
- public static final String JSON_PROPERTY_MAP_NUMBER = "map_number";
- private Map mapNumber = null;
-
- public static final String JSON_PROPERTY_MAP_INTEGER = "map_integer";
- private Map mapInteger = null;
-
- public static final String JSON_PROPERTY_MAP_BOOLEAN = "map_boolean";
- private Map mapBoolean = null;
-
- public static final String JSON_PROPERTY_MAP_ARRAY_INTEGER = "map_array_integer";
- private Map> mapArrayInteger = null;
-
- public static final String JSON_PROPERTY_MAP_ARRAY_ANYTYPE = "map_array_anytype";
- private Map> mapArrayAnytype = null;
-
- public static final String JSON_PROPERTY_MAP_MAP_STRING = "map_map_string";
- private Map> mapMapString = null;
-
- public static final String JSON_PROPERTY_MAP_MAP_ANYTYPE = "map_map_anytype";
- private Map> mapMapAnytype = null;
-
- public static final String JSON_PROPERTY_ANYTYPE1 = "anytype_1";
- private Object anytype1;
-
- public static final String JSON_PROPERTY_ANYTYPE2 = "anytype_2";
- private Object anytype2;
-
- public static final String JSON_PROPERTY_ANYTYPE3 = "anytype_3";
- private Object anytype3;
-
-
- public AdditionalPropertiesClass mapString(Map mapString) {
-
- this.mapString = mapString;
- return this;
- }
-
- public AdditionalPropertiesClass putMapStringItem(String key, String mapStringItem) {
- if (this.mapString == null) {
- this.mapString = new HashMap<>();
- }
- this.mapString.put(key, mapStringItem);
- return this;
- }
-
- /**
- * Get mapString
- * @return mapString
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_MAP_STRING)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public Map getMapString() {
- return mapString;
- }
-
-
- public void setMapString(Map mapString) {
- this.mapString = mapString;
- }
-
-
- public AdditionalPropertiesClass mapNumber(Map mapNumber) {
-
- this.mapNumber = mapNumber;
- return this;
- }
-
- public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumberItem) {
- if (this.mapNumber == null) {
- this.mapNumber = new HashMap<>();
- }
- this.mapNumber.put(key, mapNumberItem);
- return this;
- }
-
- /**
- * Get mapNumber
- * @return mapNumber
- **/
- @javax.annotation.Nullable
- @Valid
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_MAP_NUMBER)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public Map getMapNumber() {
- return mapNumber;
- }
-
-
- public void setMapNumber(Map mapNumber) {
- this.mapNumber = mapNumber;
- }
-
-
- public AdditionalPropertiesClass mapInteger(Map mapInteger) {
-
- this.mapInteger = mapInteger;
- return this;
- }
-
- public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntegerItem) {
- if (this.mapInteger == null) {
- this.mapInteger = new HashMap<>();
- }
- this.mapInteger.put(key, mapIntegerItem);
- return this;
- }
-
- /**
- * Get mapInteger
- * @return mapInteger
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_MAP_INTEGER)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public Map getMapInteger() {
- return mapInteger;
- }
-
-
- public void setMapInteger(Map mapInteger) {
- this.mapInteger = mapInteger;
- }
-
-
- public AdditionalPropertiesClass mapBoolean(Map mapBoolean) {
-
- this.mapBoolean = mapBoolean;
- return this;
- }
-
- public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBooleanItem) {
- if (this.mapBoolean == null) {
- this.mapBoolean = new HashMap<>();
- }
- this.mapBoolean.put(key, mapBooleanItem);
- return this;
- }
-
- /**
- * Get mapBoolean
- * @return mapBoolean
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public Map getMapBoolean() {
- return mapBoolean;
- }
-
-
- public void setMapBoolean(Map mapBoolean) {
- this.mapBoolean = mapBoolean;
- }
-
-
- public AdditionalPropertiesClass mapArrayInteger(Map> mapArrayInteger) {
-
- this.mapArrayInteger = mapArrayInteger;
- return this;
- }
-
- public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List mapArrayIntegerItem) {
- if (this.mapArrayInteger == null) {
- this.mapArrayInteger = new HashMap<>();
- }
- this.mapArrayInteger.put(key, mapArrayIntegerItem);
- return this;
- }
-
- /**
- * Get mapArrayInteger
- * @return mapArrayInteger
- **/
- @javax.annotation.Nullable
- @Valid
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public Map> getMapArrayInteger() {
- return mapArrayInteger;
- }
-
-
- public void setMapArrayInteger(Map> mapArrayInteger) {
- this.mapArrayInteger = mapArrayInteger;
- }
-
-
- public AdditionalPropertiesClass mapArrayAnytype(Map> mapArrayAnytype) {
-
- this.mapArrayAnytype = mapArrayAnytype;
- return this;
- }
-
- public AdditionalPropertiesClass putMapArrayAnytypeItem(String key, List