(this, dtf);
- }
-
- @Override
- public T deserialize(JsonParser parser, DeserializationContext context) throws IOException {
- //NOTE: Timestamps contain no timezone info, and are always in configured TZ. Only
- //string values have to be adjusted to the configured TZ.
- switch (parser.getCurrentTokenId()) {
- case JsonTokenId.ID_NUMBER_FLOAT: {
- BigDecimal value = parser.getDecimalValue();
- long seconds = value.longValue();
- int nanoseconds = DecimalUtils.extractNanosecondDecimal(value, seconds);
- return fromNanoseconds.apply(new FromDecimalArguments(
- seconds, nanoseconds, getZone(context)));
- }
-
- case JsonTokenId.ID_NUMBER_INT: {
- long timestamp = parser.getLongValue();
- if (context.isEnabled(DeserializationFeature.READ_DATE_TIMESTAMPS_AS_NANOSECONDS)) {
- return this.fromNanoseconds.apply(new FromDecimalArguments(
- timestamp, 0, this.getZone(context)
- ));
- }
- return this.fromMilliseconds.apply(new FromIntegerArguments(
- timestamp, this.getZone(context)
- ));
- }
-
- case JsonTokenId.ID_STRING: {
- String string = parser.getText().trim();
- if (string.length() == 0) {
- return null;
- }
- if (string.endsWith("+0000")) {
- string = string.substring(0, string.length() - 5) + "Z";
- }
- T value;
- try {
- TemporalAccessor acc = _formatter.parse(string);
- value = parsedToValue.apply(acc);
- if (context.isEnabled(DeserializationFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE)) {
- return adjust.apply(value, this.getZone(context));
- }
- } catch (DateTimeException e) {
- throw _peelDTE(e);
- }
- return value;
- }
- }
- throw context.mappingException("Expected type float, integer, or string.");
- }
-
- private ZoneId getZone(DeserializationContext context) {
- // Instants are always in UTC, so don't waste compute cycles
- return (_valueClass == Instant.class) ? null : DateTimeUtils.toZoneId(context.getTimeZone());
- }
-
- private static class FromIntegerArguments {
- public final long value;
- public final ZoneId zoneId;
-
- private FromIntegerArguments(long value, ZoneId zoneId) {
- this.value = value;
- this.zoneId = zoneId;
- }
- }
-
- private static class FromDecimalArguments {
- public final long integer;
- public final int fraction;
- public final ZoneId zoneId;
-
- private FromDecimalArguments(long integer, int fraction, ZoneId zoneId) {
- this.integer = integer;
- this.fraction = fraction;
- this.zoneId = zoneId;
- }
- }
-}
diff --git a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/EncodingUtils.java b/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/EncodingUtils.java
deleted file mode 100644
index c5a76a97857..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/EncodingUtils.java
+++ /dev/null
@@ -1,86 +0,0 @@
-package org.openapitools.client;
-
-import java.io.UnsupportedEncodingException;
-import java.net.URLEncoder;
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.List;
-
-/**
-* Utilities to support Swagger encoding formats in Feign.
-*/
-public final class EncodingUtils {
-
- /**
- * Private constructor. Do not construct this class.
- */
- private EncodingUtils() {}
-
- /**
- * Encodes a collection of query parameters according to the Swagger
- * collection format.
- *
- * Of the various collection formats defined by Swagger ("csv", "tsv",
- * etc), Feign only natively supports "multi". This utility generates the
- * other format types so it will be properly processed by Feign.
- *
- * Note, as part of reformatting, it URL encodes the parameters as
- * well.
- * @param parameters The collection object to be formatted. This object will
- * not be changed.
- * @param collectionFormat The Swagger collection format (eg, "csv", "tsv",
- * "pipes"). See the
- *
- * OpenAPI Spec for more details.
- * @return An object that will be correctly formatted by Feign.
- */
- public static Object encodeCollection(Collection> parameters,
- String collectionFormat) {
- if (parameters == null) {
- return parameters;
- }
- List stringValues = new ArrayList<>(parameters.size());
- for (Object parameter : parameters) {
- // ignore null values (same behavior as Feign)
- if (parameter != null) {
- stringValues.add(encode(parameter));
- }
- }
- // Feign natively handles single-element lists and the "multi" format.
- if (stringValues.size() < 2 || "multi".equals(collectionFormat)) {
- return stringValues;
- }
- // Otherwise return a formatted String
- String[] stringArray = stringValues.toArray(new String[0]);
- switch (collectionFormat) {
- case "csv":
- default:
- return StringUtil.join(stringArray, ",");
- case "ssv":
- return StringUtil.join(stringArray, " ");
- case "tsv":
- return StringUtil.join(stringArray, "\t");
- case "pipes":
- return StringUtil.join(stringArray, "|");
- }
- }
-
- /**
- * URL encode a single query parameter.
- * @param parameter The query parameter to encode. This object will not be
- * changed.
- * @return The URL encoded string representation of the parameter. If the
- * parameter is null, returns null.
- */
- public static String encode(Object parameter) {
- if (parameter == null) {
- return null;
- }
- try {
- return URLEncoder.encode(parameter.toString(), "UTF-8").replaceAll("\\+", "%20");
- } catch (UnsupportedEncodingException e) {
- // Should never happen, UTF-8 is always supported
- throw new RuntimeException(e);
- }
- }
-}
diff --git a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/ParamExpander.java b/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/ParamExpander.java
deleted file mode 100644
index 2331d87fdbd..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/ParamExpander.java
+++ /dev/null
@@ -1,22 +0,0 @@
-package org.openapitools.client;
-
-import feign.Param;
-
-import java.text.DateFormat;
-import java.util.Date;
-
-/**
- * Param Expander to convert {@link Date} to RFC3339
- */
-public class ParamExpander implements Param.Expander {
-
- private static final DateFormat dateformat = new RFC3339DateFormat();
-
- @Override
- public String expand(Object value) {
- if (value instanceof Date) {
- return dateformat.format(value);
- }
- return value.toString();
- }
-}
diff --git a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/RFC3339DateFormat.java b/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/RFC3339DateFormat.java
deleted file mode 100644
index 07d7e782b0d..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/RFC3339DateFormat.java
+++ /dev/null
@@ -1,55 +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 com.fasterxml.jackson.databind.util.StdDateFormat;
-
-import java.text.DateFormat;
-import java.text.FieldPosition;
-import java.text.ParsePosition;
-import java.util.Date;
-import java.util.GregorianCalendar;
-import java.util.TimeZone;
-
-public class RFC3339DateFormat extends DateFormat {
- private static final long serialVersionUID = 1L;
- private static final TimeZone TIMEZONE_Z = TimeZone.getTimeZone("UTC");
-
- private final StdDateFormat fmt = new StdDateFormat()
- .withTimeZone(TIMEZONE_Z)
- .withColonInTimeZone(true);
-
- public RFC3339DateFormat() {
- this.calendar = new GregorianCalendar();
- }
-
- @Override
- public Date parse(String source) {
- return parse(source, new ParsePosition(0));
- }
-
- @Override
- public Date parse(String source, ParsePosition pos) {
- return fmt.parse(source, pos);
- }
-
- @Override
- public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition) {
- return fmt.format(date, toAppendTo, fieldPosition);
- }
-
- @Override
- public Object clone() {
- return this;
- }
-}
\ No newline at end of file
diff --git a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/ServerConfiguration.java b/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/ServerConfiguration.java
deleted file mode 100644
index a1107a8690e..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/ServerConfiguration.java
+++ /dev/null
@@ -1,58 +0,0 @@
-package org.openapitools.client;
-
-import java.util.Map;
-
-/**
- * Representing a Server configuration.
- */
-public class ServerConfiguration {
- public String URL;
- public String description;
- public Map variables;
-
- /**
- * @param URL A URL to the target host.
- * @param description A describtion of the host designated by the URL.
- * @param variables A map between a variable name and its value. The value is used for substitution in the server's URL template.
- */
- public ServerConfiguration(String URL, String description, Map variables) {
- this.URL = URL;
- this.description = description;
- this.variables = variables;
- }
-
- /**
- * Format URL template using given variables.
- *
- * @param variables A map between a variable name and its value.
- * @return Formatted URL.
- */
- public String URL(Map variables) {
- String url = this.URL;
-
- // go through variables and replace placeholders
- for (Map.Entry variable: this.variables.entrySet()) {
- String name = variable.getKey();
- ServerVariable serverVariable = variable.getValue();
- String value = serverVariable.defaultValue;
-
- if (variables != null && variables.containsKey(name)) {
- value = variables.get(name);
- if (serverVariable.enumValues.size() > 0 && !serverVariable.enumValues.contains(value)) {
- throw new RuntimeException("The variable " + name + " in the server URL has invalid value " + value + ".");
- }
- }
- url = url.replaceAll("\\{" + name + "\\}", value);
- }
- return url;
- }
-
- /**
- * Format URL template using default server variables.
- *
- * @return Formatted URL.
- */
- public String URL() {
- return URL(null);
- }
-}
diff --git a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/ServerVariable.java b/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/ServerVariable.java
deleted file mode 100644
index c2f13e21666..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/ServerVariable.java
+++ /dev/null
@@ -1,23 +0,0 @@
-package org.openapitools.client;
-
-import java.util.HashSet;
-
-/**
- * Representing a Server Variable for server URL template substitution.
- */
-public class ServerVariable {
- public String description;
- public String defaultValue;
- public HashSet enumValues = null;
-
- /**
- * @param description A description for the server variable.
- * @param defaultValue The default value to use for substitution.
- * @param enumValues An enumeration of string values to be used if the substitution options are from a limited set.
- */
- public ServerVariable(String description, String defaultValue, HashSet enumValues) {
- this.description = description;
- this.defaultValue = defaultValue;
- this.enumValues = enumValues;
- }
-}
diff --git a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/StringUtil.java b/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/StringUtil.java
deleted file mode 100644
index 4dc60597910..00000000000
--- a/samples/client/petstore/java/feign-openapi3/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/feign-openapi3/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
deleted file mode 100644
index a7d60c2b64f..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
+++ /dev/null
@@ -1,30 +0,0 @@
-package org.openapitools.client.api;
-
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.EncodingUtils;
-
-import org.openapitools.client.model.Client;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import feign.*;
-
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
-public interface AnotherFakeApi extends ApiClient.Api {
-
-
- /**
- * To test special tags
- * To test special tags and operation ID starting with number
- * @param client client model (required)
- * @return Client
- */
- @RequestLine("PATCH /another-fake/dummy")
- @Headers({
- "Content-Type: application/json",
- "Accept: application/json",
- })
- Client call123testSpecialTags(Client client);
-}
diff --git a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/api/FakeApi.java
deleted file mode 100644
index c70e1a6b159..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/api/FakeApi.java
+++ /dev/null
@@ -1,498 +0,0 @@
-package org.openapitools.client.api;
-
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.EncodingUtils;
-
-import java.math.BigDecimal;
-import org.openapitools.client.model.Client;
-import java.io.File;
-import org.openapitools.client.model.FileSchemaTestClass;
-import org.openapitools.client.model.HealthCheckResult;
-import org.threeten.bp.LocalDate;
-import org.threeten.bp.OffsetDateTime;
-import org.openapitools.client.model.OuterComposite;
-import org.openapitools.client.model.OuterObjectWithEnumProperty;
-import org.openapitools.client.model.Pet;
-import org.openapitools.client.model.User;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import feign.*;
-
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
-public interface FakeApi extends ApiClient.Api {
-
-
- /**
- * Health check endpoint
- *
- * @return HealthCheckResult
- */
- @RequestLine("GET /fake/health")
- @Headers({
- "Accept: application/json",
- })
- HealthCheckResult fakeHealthGet();
-
- /**
- * test http signature authentication
- *
- * @param pet Pet object that needs to be added to the store (required)
- * @param query1 query parameter (optional)
- * @param header1 header parameter (optional)
- */
- @RequestLine("GET /fake/http-signature-test?query_1={query1}")
- @Headers({
- "Content-Type: application/json",
- "Accept: application/json",
- "header_1: {header1}"
- })
- void fakeHttpSignatureTest(Pet pet, @Param("query1") String query1, @Param("header1") String header1);
-
- /**
- * test http signature authentication
- *
- * Note, this is equivalent to the other fakeHttpSignatureTest
method,
- * but with the query parameters collected into a single Map parameter. This
- * is convenient for services with optional query parameters, especially when
- * used with the {@link FakeHttpSignatureTestQueryParams} class that allows for
- * building up this map in a fluent style.
- * @param pet Pet object that needs to be added to the store (required)
- * @param header1 header parameter (optional)
- * @param queryParams Map of query parameters as name-value pairs
- * The following elements may be specified in the query map:
- *
- * - query1 - query parameter (optional)
- *
- */
- @RequestLine("GET /fake/http-signature-test?query_1={query1}")
- @Headers({
- "Content-Type: application/json",
- "Accept: application/json",
- "header_1: {header1}"
- })
- void fakeHttpSignatureTest(Pet pet, @Param("header1") String header1, @QueryMap(encoded=true) Map queryParams);
-
- /**
- * A convenience class for generating query parameters for the
- * fakeHttpSignatureTest
method in a fluent style.
- */
- public static class FakeHttpSignatureTestQueryParams extends HashMap {
- public FakeHttpSignatureTestQueryParams query1(final String value) {
- put("query_1", EncodingUtils.encode(value));
- return this;
- }
- }
-
- /**
- *
- * Test serialization of outer boolean types
- * @param body Input boolean as post body (optional)
- * @return Boolean
- */
- @RequestLine("POST /fake/outer/boolean")
- @Headers({
- "Content-Type: application/json",
- "Accept: */*",
- })
- Boolean fakeOuterBooleanSerialize(Boolean body);
-
- /**
- *
- * Test serialization of object with outer number type
- * @param outerComposite Input composite as post body (optional)
- * @return OuterComposite
- */
- @RequestLine("POST /fake/outer/composite")
- @Headers({
- "Content-Type: application/json",
- "Accept: */*",
- })
- OuterComposite fakeOuterCompositeSerialize(OuterComposite outerComposite);
-
- /**
- *
- * Test serialization of outer number types
- * @param body Input number as post body (optional)
- * @return BigDecimal
- */
- @RequestLine("POST /fake/outer/number")
- @Headers({
- "Content-Type: application/json",
- "Accept: */*",
- })
- BigDecimal fakeOuterNumberSerialize(BigDecimal body);
-
- /**
- *
- * Test serialization of outer string types
- * @param body Input string as post body (optional)
- * @return String
- */
- @RequestLine("POST /fake/outer/string")
- @Headers({
- "Content-Type: application/json",
- "Accept: */*",
- })
- String fakeOuterStringSerialize(String body);
-
- /**
- *
- * Test serialization of enum (int) properties with examples
- * @param outerObjectWithEnumProperty Input enum (int) as post body (required)
- * @return OuterObjectWithEnumProperty
- */
- @RequestLine("POST /fake/property/enum-int")
- @Headers({
- "Content-Type: application/json",
- "Accept: */*",
- })
- OuterObjectWithEnumProperty fakePropertyEnumIntegerSerialize(OuterObjectWithEnumProperty outerObjectWithEnumProperty);
-
- /**
- *
- * For this test, the body has to be a binary file.
- * @param body image to upload (required)
- */
- @RequestLine("PUT /fake/body-with-binary")
- @Headers({
- "Content-Type: image/png",
- "Accept: application/json",
- })
- void testBodyWithBinary(File body);
-
- /**
- *
- * For this test, the body for this request must reference a schema named `File`.
- * @param fileSchemaTestClass (required)
- */
- @RequestLine("PUT /fake/body-with-file-schema")
- @Headers({
- "Content-Type: application/json",
- "Accept: application/json",
- })
- void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass);
-
- /**
- *
- *
- * @param query (required)
- * @param user (required)
- */
- @RequestLine("PUT /fake/body-with-query-params?query={query}")
- @Headers({
- "Content-Type: application/json",
- "Accept: application/json",
- })
- void testBodyWithQueryParams(@Param("query") String query, User user);
-
- /**
- *
- *
- * Note, this is equivalent to the other testBodyWithQueryParams
method,
- * but with the query parameters collected into a single Map parameter. This
- * is convenient for services with optional query parameters, especially when
- * used with the {@link TestBodyWithQueryParamsQueryParams} class that allows for
- * building up this map in a fluent style.
- * @param user (required)
- * @param queryParams Map of query parameters as name-value pairs
- * The following elements may be specified in the query map:
- *
- * - query - (required)
- *
- */
- @RequestLine("PUT /fake/body-with-query-params?query={query}")
- @Headers({
- "Content-Type: application/json",
- "Accept: application/json",
- })
- void testBodyWithQueryParams(User user, @QueryMap(encoded=true) Map queryParams);
-
- /**
- * A convenience class for generating query parameters for the
- * testBodyWithQueryParams
method in a fluent style.
- */
- public static class TestBodyWithQueryParamsQueryParams extends HashMap {
- public TestBodyWithQueryParamsQueryParams query(final String value) {
- put("query", EncodingUtils.encode(value));
- return this;
- }
- }
-
- /**
- * To test \"client\" model
- * To test \"client\" model
- * @param client client model (required)
- * @return Client
- */
- @RequestLine("PATCH /fake")
- @Headers({
- "Content-Type: application/json",
- "Accept: application/json",
- })
- Client testClientModel(Client client);
-
- /**
- * 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)
- */
- @RequestLine("POST /fake")
- @Headers({
- "Content-Type: application/x-www-form-urlencoded",
- "Accept: application/json",
- })
- void testEndpointParameters(@Param("number") BigDecimal number, @Param("_double") Double _double, @Param("patternWithoutDelimiter") String patternWithoutDelimiter, @Param("_byte") byte[] _byte, @Param("integer") Integer integer, @Param("int32") Integer int32, @Param("int64") Long int64, @Param("_float") Float _float, @Param("string") String string, @Param("binary") File binary, @Param("date") LocalDate date, @Param("dateTime") OffsetDateTime dateTime, @Param("password") String password, @Param("paramCallback") String paramCallback);
-
- /**
- * To test enum parameters
- * To test enum parameters
- * @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)
- * @param enumFormString Form parameter enum test (string) (optional, default to -efg)
- */
- @RequestLine("GET /fake?enum_query_string_array={enumQueryStringArray}&enum_query_string={enumQueryString}&enum_query_integer={enumQueryInteger}&enum_query_double={enumQueryDouble}")
- @Headers({
- "Content-Type: application/x-www-form-urlencoded",
- "Accept: application/json",
- "enum_header_string_array: {enumHeaderStringArray}",
-
- "enum_header_string: {enumHeaderString}"
- })
- void testEnumParameters(@Param("enumHeaderStringArray") List enumHeaderStringArray, @Param("enumHeaderString") String enumHeaderString, @Param("enumQueryStringArray") List enumQueryStringArray, @Param("enumQueryString") String enumQueryString, @Param("enumQueryInteger") Integer enumQueryInteger, @Param("enumQueryDouble") Double enumQueryDouble, @Param("enumFormStringArray") List enumFormStringArray, @Param("enumFormString") String enumFormString);
-
- /**
- * To test enum parameters
- * To test enum parameters
- * Note, this is equivalent to the other testEnumParameters
method,
- * but with the query parameters collected into a single Map parameter. This
- * is convenient for services with optional query parameters, especially when
- * used with the {@link TestEnumParametersQueryParams} class that allows for
- * building up this map in a fluent style.
- * @param enumHeaderStringArray Header parameter enum test (string array) (optional)
- * @param enumHeaderString Header parameter enum test (string) (optional, default to -efg)
- * @param enumFormStringArray Form parameter enum test (string array) (optional)
- * @param enumFormString Form parameter enum test (string) (optional, default to -efg)
- * @param queryParams Map of query parameters as name-value pairs
- * The following elements may be specified in the query map:
- *
- * - enumQueryStringArray - Query parameter enum test (string array) (optional)
- * - enumQueryString - Query parameter enum test (string) (optional, default to -efg)
- * - enumQueryInteger - Query parameter enum test (double) (optional)
- * - enumQueryDouble - Query parameter enum test (double) (optional)
- *
- */
- @RequestLine("GET /fake?enum_query_string_array={enumQueryStringArray}&enum_query_string={enumQueryString}&enum_query_integer={enumQueryInteger}&enum_query_double={enumQueryDouble}")
- @Headers({
- "Content-Type: application/x-www-form-urlencoded",
- "Accept: application/json",
- "enum_header_string_array: {enumHeaderStringArray}",
-
- "enum_header_string: {enumHeaderString}"
- })
- void testEnumParameters(@Param("enumHeaderStringArray") List enumHeaderStringArray, @Param("enumHeaderString") String enumHeaderString, @Param("enumFormStringArray") List enumFormStringArray, @Param("enumFormString") String enumFormString, @QueryMap(encoded=true) Map queryParams);
-
- /**
- * A convenience class for generating query parameters for the
- * testEnumParameters
method in a fluent style.
- */
- public static class TestEnumParametersQueryParams extends HashMap {
- public TestEnumParametersQueryParams enumQueryStringArray(final List value) {
- put("enum_query_string_array", EncodingUtils.encodeCollection(value, "multi"));
- return this;
- }
- public TestEnumParametersQueryParams enumQueryString(final String value) {
- put("enum_query_string", EncodingUtils.encode(value));
- return this;
- }
- public TestEnumParametersQueryParams enumQueryInteger(final Integer value) {
- put("enum_query_integer", EncodingUtils.encode(value));
- return this;
- }
- public TestEnumParametersQueryParams enumQueryDouble(final Double value) {
- put("enum_query_double", EncodingUtils.encode(value));
- return this;
- }
- }
-
- /**
- * 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)
- */
- @RequestLine("DELETE /fake?required_string_group={requiredStringGroup}&required_int64_group={requiredInt64Group}&string_group={stringGroup}&int64_group={int64Group}")
- @Headers({
- "Accept: application/json",
- "required_boolean_group: {requiredBooleanGroup}",
-
- "boolean_group: {booleanGroup}"
- })
- void testGroupParameters(@Param("requiredStringGroup") Integer requiredStringGroup, @Param("requiredBooleanGroup") Boolean requiredBooleanGroup, @Param("requiredInt64Group") Long requiredInt64Group, @Param("stringGroup") Integer stringGroup, @Param("booleanGroup") Boolean booleanGroup, @Param("int64Group") Long int64Group);
-
- /**
- * Fake endpoint to test group parameters (optional)
- * Fake endpoint to test group parameters (optional)
- * Note, this is equivalent to the other testGroupParameters
method,
- * but with the query parameters collected into a single Map parameter. This
- * is convenient for services with optional query parameters, especially when
- * used with the {@link TestGroupParametersQueryParams} class that allows for
- * building up this map in a fluent style.
- * @param requiredBooleanGroup Required Boolean in group parameters (required)
- * @param booleanGroup Boolean in group parameters (optional)
- * @param queryParams Map of query parameters as name-value pairs
- * The following elements may be specified in the query map:
- *
- * - requiredStringGroup - Required String in group parameters (required)
- * - requiredInt64Group - Required Integer in group parameters (required)
- * - stringGroup - String in group parameters (optional)
- * - int64Group - Integer in group parameters (optional)
- *
- */
- @RequestLine("DELETE /fake?required_string_group={requiredStringGroup}&required_int64_group={requiredInt64Group}&string_group={stringGroup}&int64_group={int64Group}")
- @Headers({
- "Accept: application/json",
- "required_boolean_group: {requiredBooleanGroup}",
-
- "boolean_group: {booleanGroup}"
- })
- void testGroupParameters(@Param("requiredBooleanGroup") Boolean requiredBooleanGroup, @Param("booleanGroup") Boolean booleanGroup, @QueryMap(encoded=true) Map queryParams);
-
- /**
- * A convenience class for generating query parameters for the
- * testGroupParameters
method in a fluent style.
- */
- public static class TestGroupParametersQueryParams extends HashMap {
- public TestGroupParametersQueryParams requiredStringGroup(final Integer value) {
- put("required_string_group", EncodingUtils.encode(value));
- return this;
- }
- public TestGroupParametersQueryParams requiredInt64Group(final Long value) {
- put("required_int64_group", EncodingUtils.encode(value));
- return this;
- }
- public TestGroupParametersQueryParams stringGroup(final Integer value) {
- put("string_group", EncodingUtils.encode(value));
- return this;
- }
- public TestGroupParametersQueryParams int64Group(final Long value) {
- put("int64_group", EncodingUtils.encode(value));
- return this;
- }
- }
-
- /**
- * test inline additionalProperties
- *
- * @param requestBody request body (required)
- */
- @RequestLine("POST /fake/inline-additionalProperties")
- @Headers({
- "Content-Type: application/json",
- "Accept: application/json",
- })
- void testInlineAdditionalProperties(Map requestBody);
-
- /**
- * test json serialization of form data
- *
- * @param param field1 (required)
- * @param param2 field2 (required)
- */
- @RequestLine("GET /fake/jsonFormData")
- @Headers({
- "Content-Type: application/x-www-form-urlencoded",
- "Accept: application/json",
- })
- void testJsonFormData(@Param("param") String param, @Param("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)
- */
- @RequestLine("PUT /fake/test-query-paramters?pipe={pipe}&ioutil={ioutil}&http={http}&url={url}&context={context}")
- @Headers({
- "Accept: application/json",
- })
- void testQueryParameterCollectionFormat(@Param("pipe") List pipe, @Param("ioutil") List ioutil, @Param("http") List http, @Param("url") List url, @Param("context") List context);
-
- /**
- *
- * To test the collection format in query parameters
- * Note, this is equivalent to the other testQueryParameterCollectionFormat
method,
- * but with the query parameters collected into a single Map parameter. This
- * is convenient for services with optional query parameters, especially when
- * used with the {@link TestQueryParameterCollectionFormatQueryParams} class that allows for
- * building up this map in a fluent style.
- * @param queryParams Map of query parameters as name-value pairs
- * The following elements may be specified in the query map:
- *
- * - pipe - (required)
- * - ioutil - (required)
- * - http - (required)
- * - url - (required)
- * - context - (required)
- *
- */
- @RequestLine("PUT /fake/test-query-paramters?pipe={pipe}&ioutil={ioutil}&http={http}&url={url}&context={context}")
- @Headers({
- "Accept: application/json",
- })
- void testQueryParameterCollectionFormat(@QueryMap(encoded=true) Map queryParams);
-
- /**
- * A convenience class for generating query parameters for the
- * testQueryParameterCollectionFormat
method in a fluent style.
- */
- public static class TestQueryParameterCollectionFormatQueryParams extends HashMap {
- public TestQueryParameterCollectionFormatQueryParams pipe(final List value) {
- put("pipe", EncodingUtils.encodeCollection(value, "pipes"));
- return this;
- }
- public TestQueryParameterCollectionFormatQueryParams ioutil(final List value) {
- put("ioutil", EncodingUtils.encodeCollection(value, "csv"));
- return this;
- }
- public TestQueryParameterCollectionFormatQueryParams http(final List value) {
- put("http", EncodingUtils.encodeCollection(value, "ssv"));
- return this;
- }
- public TestQueryParameterCollectionFormatQueryParams url(final List value) {
- put("url", EncodingUtils.encodeCollection(value, "csv"));
- return this;
- }
- public TestQueryParameterCollectionFormatQueryParams context(final List value) {
- put("context", EncodingUtils.encodeCollection(value, "multi"));
- return this;
- }
- }
-}
diff --git a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java
deleted file mode 100644
index 17c6bfa6695..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java
+++ /dev/null
@@ -1,30 +0,0 @@
-package org.openapitools.client.api;
-
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.EncodingUtils;
-
-import org.openapitools.client.model.Client;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import feign.*;
-
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
-public interface FakeClassnameTags123Api extends ApiClient.Api {
-
-
- /**
- * To test class name in snake case
- * To test class name in snake case
- * @param client client model (required)
- * @return Client
- */
- @RequestLine("PATCH /fake_classname_test")
- @Headers({
- "Content-Type: application/json",
- "Accept: application/json",
- })
- Client testClassname(Client client);
-}
diff --git a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/api/PetApi.java
deleted file mode 100644
index 10cb8950f63..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/api/PetApi.java
+++ /dev/null
@@ -1,205 +0,0 @@
-package org.openapitools.client.api;
-
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.EncodingUtils;
-
-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 feign.*;
-
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
-public interface PetApi extends ApiClient.Api {
-
-
- /**
- * Add a new pet to the store
- *
- * @param pet Pet object that needs to be added to the store (required)
- */
- @RequestLine("POST /pet")
- @Headers({
- "Content-Type: application/json",
- "Accept: application/json",
- })
- void addPet(Pet pet);
-
- /**
- * Deletes a pet
- *
- * @param petId Pet id to delete (required)
- * @param apiKey (optional)
- */
- @RequestLine("DELETE /pet/{petId}")
- @Headers({
- "Accept: application/json",
- "api_key: {apiKey}"
- })
- void deletePet(@Param("petId") Long petId, @Param("apiKey") 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 List<Pet>
- */
- @RequestLine("GET /pet/findByStatus?status={status}")
- @Headers({
- "Accept: application/json",
- })
- List findPetsByStatus(@Param("status") List status);
-
- /**
- * Finds Pets by status
- * Multiple status values can be provided with comma separated strings
- * Note, this is equivalent to the other findPetsByStatus
method,
- * but with the query parameters collected into a single Map parameter. This
- * is convenient for services with optional query parameters, especially when
- * used with the {@link FindPetsByStatusQueryParams} class that allows for
- * building up this map in a fluent style.
- * @param queryParams Map of query parameters as name-value pairs
- * The following elements may be specified in the query map:
- *
- * - status - Status values that need to be considered for filter (required)
- *
- * @return List<Pet>
- */
- @RequestLine("GET /pet/findByStatus?status={status}")
- @Headers({
- "Accept: application/json",
- })
- List findPetsByStatus(@QueryMap(encoded=true) Map queryParams);
-
- /**
- * A convenience class for generating query parameters for the
- * findPetsByStatus
method in a fluent style.
- */
- public static class FindPetsByStatusQueryParams extends HashMap {
- public FindPetsByStatusQueryParams status(final List value) {
- put("status", EncodingUtils.encodeCollection(value, "csv"));
- return this;
- }
- }
-
- /**
- * 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 Set<Pet>
- * @deprecated
- */
- @Deprecated
- @RequestLine("GET /pet/findByTags?tags={tags}")
- @Headers({
- "Accept: application/json",
- })
- Set findPetsByTags(@Param("tags") Set tags);
-
- /**
- * Finds Pets by tags
- * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
- * Note, this is equivalent to the other findPetsByTags
method,
- * but with the query parameters collected into a single Map parameter. This
- * is convenient for services with optional query parameters, especially when
- * used with the {@link FindPetsByTagsQueryParams} class that allows for
- * building up this map in a fluent style.
- * @param queryParams Map of query parameters as name-value pairs
- * The following elements may be specified in the query map:
- *
- * - tags - Tags to filter by (required)
- *
- * @return Set<Pet>
- * @deprecated
- */
- @Deprecated
- @RequestLine("GET /pet/findByTags?tags={tags}")
- @Headers({
- "Accept: application/json",
- })
- Set findPetsByTags(@QueryMap(encoded=true) Map queryParams);
-
- /**
- * A convenience class for generating query parameters for the
- * findPetsByTags
method in a fluent style.
- */
- public static class FindPetsByTagsQueryParams extends HashMap {
- public FindPetsByTagsQueryParams tags(final Set value) {
- put("tags", EncodingUtils.encodeCollection(value, "csv"));
- return this;
- }
- }
-
- /**
- * Find pet by ID
- * Returns a single pet
- * @param petId ID of pet to return (required)
- * @return Pet
- */
- @RequestLine("GET /pet/{petId}")
- @Headers({
- "Accept: application/json",
- })
- Pet getPetById(@Param("petId") Long petId);
-
- /**
- * Update an existing pet
- *
- * @param pet Pet object that needs to be added to the store (required)
- */
- @RequestLine("PUT /pet")
- @Headers({
- "Content-Type: application/json",
- "Accept: application/json",
- })
- void updatePet(Pet pet);
-
- /**
- * 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)
- */
- @RequestLine("POST /pet/{petId}")
- @Headers({
- "Content-Type: application/x-www-form-urlencoded",
- "Accept: application/json",
- })
- void updatePetWithForm(@Param("petId") Long petId, @Param("name") String name, @Param("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 ModelApiResponse
- */
- @RequestLine("POST /pet/{petId}/uploadImage")
- @Headers({
- "Content-Type: multipart/form-data",
- "Accept: application/json",
- })
- ModelApiResponse uploadFile(@Param("petId") Long petId, @Param("additionalMetadata") String additionalMetadata, @Param("file") File 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 ModelApiResponse
- */
- @RequestLine("POST /fake/{petId}/uploadImageWithRequiredFile")
- @Headers({
- "Content-Type: multipart/form-data",
- "Accept: application/json",
- })
- ModelApiResponse uploadFileWithRequiredFile(@Param("petId") Long petId, @Param("requiredFile") File requiredFile, @Param("additionalMetadata") String additionalMetadata);
-}
diff --git a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/api/StoreApi.java
deleted file mode 100644
index 21611cabe79..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/api/StoreApi.java
+++ /dev/null
@@ -1,64 +0,0 @@
-package org.openapitools.client.api;
-
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.EncodingUtils;
-
-import org.openapitools.client.model.Order;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import feign.*;
-
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
-public interface StoreApi extends ApiClient.Api {
-
-
- /**
- * 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)
- */
- @RequestLine("DELETE /store/order/{orderId}")
- @Headers({
- "Accept: application/json",
- })
- void deleteOrder(@Param("orderId") String orderId);
-
- /**
- * Returns pet inventories by status
- * Returns a map of status codes to quantities
- * @return Map<String, Integer>
- */
- @RequestLine("GET /store/inventory")
- @Headers({
- "Accept: application/json",
- })
- Map 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 Order
- */
- @RequestLine("GET /store/order/{orderId}")
- @Headers({
- "Accept: application/json",
- })
- Order getOrderById(@Param("orderId") Long orderId);
-
- /**
- * Place an order for a pet
- *
- * @param order order placed for purchasing the pet (required)
- * @return Order
- */
- @RequestLine("POST /store/order")
- @Headers({
- "Content-Type: application/json",
- "Accept: application/json",
- })
- Order placeOrder(Order order);
-}
diff --git a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/api/UserApi.java
deleted file mode 100644
index f7f9fcb3194..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/api/UserApi.java
+++ /dev/null
@@ -1,149 +0,0 @@
-package org.openapitools.client.api;
-
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.EncodingUtils;
-
-import org.openapitools.client.model.User;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import feign.*;
-
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
-public interface UserApi extends ApiClient.Api {
-
-
- /**
- * Create user
- * This can only be done by the logged in user.
- * @param user Created user object (required)
- */
- @RequestLine("POST /user")
- @Headers({
- "Content-Type: application/json",
- "Accept: application/json",
- })
- void createUser(User user);
-
- /**
- * Creates list of users with given input array
- *
- * @param user List of user object (required)
- */
- @RequestLine("POST /user/createWithArray")
- @Headers({
- "Content-Type: application/json",
- "Accept: application/json",
- })
- void createUsersWithArrayInput(List user);
-
- /**
- * Creates list of users with given input array
- *
- * @param user List of user object (required)
- */
- @RequestLine("POST /user/createWithList")
- @Headers({
- "Content-Type: application/json",
- "Accept: application/json",
- })
- void createUsersWithListInput(List user);
-
- /**
- * Delete user
- * This can only be done by the logged in user.
- * @param username The name that needs to be deleted (required)
- */
- @RequestLine("DELETE /user/{username}")
- @Headers({
- "Accept: application/json",
- })
- void deleteUser(@Param("username") String username);
-
- /**
- * Get user by user name
- *
- * @param username The name that needs to be fetched. Use user1 for testing. (required)
- * @return User
- */
- @RequestLine("GET /user/{username}")
- @Headers({
- "Accept: application/json",
- })
- User getUserByName(@Param("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 String
- */
- @RequestLine("GET /user/login?username={username}&password={password}")
- @Headers({
- "Accept: application/json",
- })
- String loginUser(@Param("username") String username, @Param("password") String password);
-
- /**
- * Logs user into the system
- *
- * Note, this is equivalent to the other loginUser
method,
- * but with the query parameters collected into a single Map parameter. This
- * is convenient for services with optional query parameters, especially when
- * used with the {@link LoginUserQueryParams} class that allows for
- * building up this map in a fluent style.
- * @param queryParams Map of query parameters as name-value pairs
- * The following elements may be specified in the query map:
- *
- * - username - The user name for login (required)
- * - password - The password for login in clear text (required)
- *
- * @return String
- */
- @RequestLine("GET /user/login?username={username}&password={password}")
- @Headers({
- "Accept: application/json",
- })
- String loginUser(@QueryMap(encoded=true) Map queryParams);
-
- /**
- * A convenience class for generating query parameters for the
- * loginUser
method in a fluent style.
- */
- public static class LoginUserQueryParams extends HashMap {
- public LoginUserQueryParams username(final String value) {
- put("username", EncodingUtils.encode(value));
- return this;
- }
- public LoginUserQueryParams password(final String value) {
- put("password", EncodingUtils.encode(value));
- return this;
- }
- }
-
- /**
- * Logs out current logged in user session
- *
- */
- @RequestLine("GET /user/logout")
- @Headers({
- "Accept: application/json",
- })
- void logoutUser();
-
- /**
- * Updated user
- * This can only be done by the logged in user.
- * @param username name that need to be deleted (required)
- * @param user Updated user object (required)
- */
- @RequestLine("PUT /user/{username}")
- @Headers({
- "Content-Type: application/json",
- "Accept: application/json",
- })
- void updateUser(@Param("username") String username, User user);
-}
diff --git a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java b/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java
deleted file mode 100644
index 44511e4641c..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java
+++ /dev/null
@@ -1,43 +0,0 @@
-package org.openapitools.client.auth;
-
-import feign.RequestInterceptor;
-import feign.RequestTemplate;
-
-public class ApiKeyAuth implements RequestInterceptor {
- private final String location;
- private final String paramName;
-
- private String apiKey;
-
- 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;
- }
-
- @Override
- public void apply(RequestTemplate template) {
- if ("query".equals(location)) {
- template.query(paramName, apiKey);
- } else if ("header".equals(location)) {
- template.header(paramName, apiKey);
- } else if ("cookie".equals(location)) {
- template.header("Cookie", String.format("%s=%s", paramName, apiKey));
- }
- }
-}
diff --git a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/auth/DefaultApi20Impl.java b/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/auth/DefaultApi20Impl.java
deleted file mode 100644
index 80db21111f9..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/auth/DefaultApi20Impl.java
+++ /dev/null
@@ -1,47 +0,0 @@
-package org.openapitools.client.auth;
-
-import com.github.scribejava.core.builder.api.DefaultApi20;
-import com.github.scribejava.core.extractors.OAuth2AccessTokenJsonExtractor;
-import com.github.scribejava.core.extractors.TokenExtractor;
-import com.github.scribejava.core.model.OAuth2AccessToken;
-import com.github.scribejava.core.oauth2.bearersignature.BearerSignature;
-import com.github.scribejava.core.oauth2.bearersignature.BearerSignatureURIQueryParameter;
-import com.github.scribejava.core.oauth2.clientauthentication.ClientAuthentication;
-import com.github.scribejava.core.oauth2.clientauthentication.RequestBodyAuthenticationScheme;
-
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
-public class DefaultApi20Impl extends DefaultApi20 {
-
- private final String accessTokenEndpoint;
- private final String authorizationBaseUrl;
-
- protected DefaultApi20Impl(String authorizationBaseUrl, String accessTokenEndpoint) {
- this.authorizationBaseUrl = authorizationBaseUrl;
- this.accessTokenEndpoint = accessTokenEndpoint;
- }
-
- @Override
- public String getAccessTokenEndpoint() {
- return accessTokenEndpoint;
- }
-
- @Override
- protected String getAuthorizationBaseUrl() {
- return authorizationBaseUrl;
- }
-
- @Override
- public BearerSignature getBearerSignature() {
- return BearerSignatureURIQueryParameter.instance();
- }
-
- @Override
- public ClientAuthentication getClientAuthentication() {
- return RequestBodyAuthenticationScheme.instance();
- }
-
- @Override
- public TokenExtractor getAccessTokenExtractor() {
- return OAuth2AccessTokenJsonExtractor.instance();
- }
-}
\ No newline at end of file
diff --git a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/auth/HttpBasicAuth.java b/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/auth/HttpBasicAuth.java
deleted file mode 100644
index b275826472a..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/auth/HttpBasicAuth.java
+++ /dev/null
@@ -1,41 +0,0 @@
-package org.openapitools.client.auth;
-
-import feign.RequestInterceptor;
-import feign.RequestTemplate;
-import feign.auth.BasicAuthRequestInterceptor;
-
-/**
- * An interceptor that adds the request header needed to use HTTP basic authentication.
- */
-public class HttpBasicAuth implements RequestInterceptor {
-
- private String username;
- private String password;
-
- public String getUsername() {
- return username;
- }
-
- public void setUsername(String username) {
- this.username = username;
- }
-
- public String getPassword() {
- return password;
- }
-
- public void setPassword(String password) {
- this.password = password;
- }
-
- public void setCredentials(String username, String password) {
- this.username = username;
- this.password = password;
- }
-
- @Override
- public void apply(RequestTemplate template) {
- RequestInterceptor requestInterceptor = new BasicAuthRequestInterceptor(username, password);
- requestInterceptor.apply(template);
- }
-}
diff --git a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java b/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java
deleted file mode 100644
index d4c9cbe6361..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java
+++ /dev/null
@@ -1,43 +0,0 @@
-package org.openapitools.client.auth;
-
-import feign.RequestInterceptor;
-import feign.RequestTemplate;
-
-/**
- * An interceptor that adds the request header needed to use HTTP bearer authentication.
- */
-public class HttpBearerAuth implements RequestInterceptor {
- private final String scheme;
- private String bearerToken;
-
- public HttpBearerAuth(String scheme) {
- this.scheme = scheme;
- }
-
- /**
- * Gets the token, which together with the scheme, will be sent as the value of the Authorization header.
- */
- public String getBearerToken() {
- return bearerToken;
- }
-
- /**
- * Sets the token, which together with the scheme, will be sent as the value of the Authorization header.
- */
- public void setBearerToken(String bearerToken) {
- this.bearerToken = bearerToken;
- }
-
- @Override
- public void apply(RequestTemplate template) {
- if(bearerToken == null) {
- return;
- }
-
- template.header("Authorization", (scheme != null ? upperCaseBearer(scheme) + " " : "") + bearerToken);
- }
-
- private static String upperCaseBearer(String scheme) {
- return ("bearer".equalsIgnoreCase(scheme)) ? "Bearer" : scheme;
- }
-}
diff --git a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/auth/OAuth.java b/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/auth/OAuth.java
deleted file mode 100644
index d41eca7a0a5..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/auth/OAuth.java
+++ /dev/null
@@ -1,81 +0,0 @@
-package org.openapitools.client.auth;
-
-import com.github.scribejava.core.model.OAuth2AccessToken;
-import com.github.scribejava.core.oauth.OAuth20Service;
-import feign.Request.HttpMethod;
-import feign.RequestInterceptor;
-import feign.RequestTemplate;
-import feign.RetryableException;
-
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
-public abstract class OAuth implements RequestInterceptor {
-
- static final int MILLIS_PER_SECOND = 1000;
-
- public interface AccessTokenListener {
- void notify(OAuth2AccessToken token);
- }
-
- private volatile String accessToken;
- private Long expirationTimeMillis;
- private AccessTokenListener accessTokenListener;
-
- protected OAuth20Service service;
- protected String scopes;
- protected String authorizationUrl;
- protected String tokenUrl;
-
- public OAuth(String authorizationUrl, String tokenUrl, String scopes) {
- this.scopes = scopes;
- this.authorizationUrl = authorizationUrl;
- this.tokenUrl = tokenUrl;
- }
-
- @Override
- public void apply(RequestTemplate template) {
- // If the request already have an authorization (eg. Basic auth), do nothing
- if (template.headers().containsKey("Authorization")) {
- return;
- }
- // If first time, get the token
- if (expirationTimeMillis == null || System.currentTimeMillis() >= expirationTimeMillis) {
- updateAccessToken(template);
- }
- if (getAccessToken() != null) {
- template.header("Authorization", "Bearer " + getAccessToken());
- }
- }
-
- private synchronized void updateAccessToken(RequestTemplate template) {
- OAuth2AccessToken accessTokenResponse;
- try {
- accessTokenResponse = getOAuth2AccessToken();
- } catch (Exception e) {
- throw new RetryableException(0, e.getMessage(), HttpMethod.POST, e, null, template.request());
- }
- if (accessTokenResponse != null && accessTokenResponse.getAccessToken() != null) {
- setAccessToken(accessTokenResponse.getAccessToken(), accessTokenResponse.getExpiresIn());
- if (accessTokenListener != null) {
- accessTokenListener.notify(accessTokenResponse);
- }
- }
- }
-
- abstract OAuth2AccessToken getOAuth2AccessToken();
-
- abstract OAuthFlow getFlow();
-
- public synchronized void registerAccessTokenListener(AccessTokenListener accessTokenListener) {
- this.accessTokenListener = accessTokenListener;
- }
-
- public synchronized String getAccessToken() {
- return accessToken;
- }
-
- public synchronized void setAccessToken(String accessToken, Integer expiresIn) {
- this.accessToken = accessToken;
- this.expirationTimeMillis = expiresIn == null ? null : System.currentTimeMillis() + expiresIn * MILLIS_PER_SECOND;
- }
-
-}
\ No newline at end of file
diff --git a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/auth/OAuthFlow.java b/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/auth/OAuthFlow.java
deleted file mode 100644
index 75c2a0c9740..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/auth/OAuthFlow.java
+++ /dev/null
@@ -1,22 +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;
-
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
-public enum OAuthFlow {
- accessCode, //called authorizationCode in OpenAPI 3.0
- implicit,
- password,
- application //called clientCredentials in OpenAPI 3.0
-}
diff --git a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/auth/OauthClientCredentialsGrant.java b/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/auth/OauthClientCredentialsGrant.java
deleted file mode 100644
index a21c5a15ba2..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/auth/OauthClientCredentialsGrant.java
+++ /dev/null
@@ -1,39 +0,0 @@
-package org.openapitools.client.auth;
-
-import com.github.scribejava.core.builder.ServiceBuilder;
-import com.github.scribejava.core.model.OAuth2AccessToken;
-
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
-public class OauthClientCredentialsGrant extends OAuth {
-
- public OauthClientCredentialsGrant(String authorizationUrl, String tokenUrl, String scopes) {
- super(authorizationUrl, tokenUrl, scopes);
- }
-
- @Override
- protected OAuth2AccessToken getOAuth2AccessToken() {
- try {
- return service.getAccessTokenClientCredentialsGrant(scopes);
- } catch (Exception e) {
- throw new RuntimeException("Failed to get oauth token", e);
- }
- }
-
- @Override
- protected OAuthFlow getFlow() {
- return OAuthFlow.application;
- }
-
- /**
- * Configures the client credentials flow
- *
- * @param clientId
- * @param clientSecret
- */
- public void configure(String clientId, String clientSecret) {
- service = new ServiceBuilder(clientId)
- .apiSecret(clientSecret)
- .defaultScope(scopes)
- .build(new DefaultApi20Impl(authorizationUrl, tokenUrl));
- }
-}
diff --git a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/auth/OauthPasswordGrant.java b/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/auth/OauthPasswordGrant.java
deleted file mode 100644
index dba4fb3a076..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/auth/OauthPasswordGrant.java
+++ /dev/null
@@ -1,48 +0,0 @@
-package org.openapitools.client.auth;
-
-import com.github.scribejava.core.builder.ServiceBuilder;
-import com.github.scribejava.core.model.OAuth2AccessToken;
-
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
-public class OauthPasswordGrant extends OAuth {
-
- private String username;
- private String password;
-
- public OauthPasswordGrant(String tokenUrl, String scopes) {
- super(null, tokenUrl, scopes);
- }
-
- @Override
- protected OAuth2AccessToken getOAuth2AccessToken() {
- try {
- return service.getAccessTokenPasswordGrant(username, password);
- } catch (Exception e) {
- throw new RuntimeException("Failed to get oauth token", e);
- }
- }
-
- @Override
- protected OAuthFlow getFlow() {
- return OAuthFlow.password;
- }
-
- /**
- * Configures Oauth password grant flow
- * Note: this flow is deprecated.
- *
- * @param username
- * @param password
- * @param clientId
- * @param clientSecret
- */
- public void configure(String username, String password, String clientId, String clientSecret) {
- this.username = username;
- this.password = password;
- //TODO the clientId and secret are optional according with the RFC
- service = new ServiceBuilder(clientId)
- .apiSecret(clientSecret)
- .defaultScope(scopes)
- .build(new DefaultApi20Impl(authorizationUrl, tokenUrl));
- }
-}
\ No newline at end of file
diff --git a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java
deleted file mode 100644
index ae545659226..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java
+++ /dev/null
@@ -1,157 +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.JsonTypeName;
-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;
-
-/**
- * AdditionalPropertiesClass
- */
-@JsonPropertyOrder({
- AdditionalPropertiesClass.JSON_PROPERTY_MAP_PROPERTY,
- AdditionalPropertiesClass.JSON_PROPERTY_MAP_OF_MAP_PROPERTY
-})
-@JsonTypeName("AdditionalPropertiesClass")
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
-public class AdditionalPropertiesClass {
- public static final String JSON_PROPERTY_MAP_PROPERTY = "map_property";
- private Map mapProperty = null;
-
- public static final String JSON_PROPERTY_MAP_OF_MAP_PROPERTY = "map_of_map_property";
- private Map> mapOfMapProperty = null;
-
-
- public AdditionalPropertiesClass mapProperty(Map mapProperty) {
-
- this.mapProperty = mapProperty;
- return this;
- }
-
- public AdditionalPropertiesClass putMapPropertyItem(String key, String mapPropertyItem) {
- if (this.mapProperty == null) {
- this.mapProperty = new HashMap();
- }
- this.mapProperty.put(key, mapPropertyItem);
- return this;
- }
-
- /**
- * Get mapProperty
- * @return mapProperty
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_MAP_PROPERTY)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public Map getMapProperty() {
- return mapProperty;
- }
-
-
- @JsonProperty(JSON_PROPERTY_MAP_PROPERTY)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setMapProperty(Map mapProperty) {
- this.mapProperty = mapProperty;
- }
-
-
- public AdditionalPropertiesClass mapOfMapProperty(Map> mapOfMapProperty) {
-
- this.mapOfMapProperty = mapOfMapProperty;
- return this;
- }
-
- public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map mapOfMapPropertyItem) {
- if (this.mapOfMapProperty == null) {
- this.mapOfMapProperty = new HashMap>();
- }
- this.mapOfMapProperty.put(key, mapOfMapPropertyItem);
- return this;
- }
-
- /**
- * Get mapOfMapProperty
- * @return mapOfMapProperty
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_MAP_OF_MAP_PROPERTY)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public Map> getMapOfMapProperty() {
- return mapOfMapProperty;
- }
-
-
- @JsonProperty(JSON_PROPERTY_MAP_OF_MAP_PROPERTY)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setMapOfMapProperty(Map> mapOfMapProperty) {
- this.mapOfMapProperty = mapOfMapProperty;
- }
-
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- AdditionalPropertiesClass additionalPropertiesClass = (AdditionalPropertiesClass) o;
- return Objects.equals(this.mapProperty, additionalPropertiesClass.mapProperty) &&
- Objects.equals(this.mapOfMapProperty, additionalPropertiesClass.mapOfMapProperty);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(mapProperty, mapOfMapProperty);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class AdditionalPropertiesClass {\n");
- sb.append(" mapProperty: ").append(toIndentedString(mapProperty)).append("\n");
- sb.append(" mapOfMapProperty: ").append(toIndentedString(mapOfMapProperty)).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(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
-}
-
diff --git a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/Animal.java
deleted file mode 100644
index 89964b059c5..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/Animal.java
+++ /dev/null
@@ -1,147 +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.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonValue;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import org.openapitools.client.model.Cat;
-import org.openapitools.client.model.Dog;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-
-/**
- * Animal
- */
-@JsonPropertyOrder({
- Animal.JSON_PROPERTY_CLASS_NAME,
- Animal.JSON_PROPERTY_COLOR
-})
-@JsonTypeName("Animal")
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true)
-@JsonSubTypes({
- @JsonSubTypes.Type(value = Cat.class, name = "Cat"),
- @JsonSubTypes.Type(value = Dog.class, name = "Dog"),
-})
-
-public class Animal {
- public static final String JSON_PROPERTY_CLASS_NAME = "className";
- protected String className;
-
- public static final String JSON_PROPERTY_COLOR = "color";
- private String color = "red";
-
-
- public Animal className(String className) {
-
- this.className = className;
- return this;
- }
-
- /**
- * Get className
- * @return className
- **/
- @ApiModelProperty(required = true, value = "")
- @JsonProperty(JSON_PROPERTY_CLASS_NAME)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
-
- public String getClassName() {
- return className;
- }
-
-
- @JsonProperty(JSON_PROPERTY_CLASS_NAME)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public void setClassName(String className) {
- this.className = className;
- }
-
-
- public Animal color(String color) {
-
- this.color = color;
- return this;
- }
-
- /**
- * Get color
- * @return color
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_COLOR)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public String getColor() {
- return color;
- }
-
-
- @JsonProperty(JSON_PROPERTY_COLOR)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setColor(String color) {
- this.color = color;
- }
-
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- Animal animal = (Animal) o;
- return Objects.equals(this.className, animal.className) &&
- Objects.equals(this.color, animal.color);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(className, color);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class Animal {\n");
- sb.append(" className: ").append(toIndentedString(className)).append("\n");
- sb.append(" color: ").append(toIndentedString(color)).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(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
-}
-
diff --git a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java
deleted file mode 100644
index e558e02ebe5..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java
+++ /dev/null
@@ -1,116 +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.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonValue;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import java.math.BigDecimal;
-import java.util.ArrayList;
-import java.util.List;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-
-/**
- * ArrayOfArrayOfNumberOnly
- */
-@JsonPropertyOrder({
- ArrayOfArrayOfNumberOnly.JSON_PROPERTY_ARRAY_ARRAY_NUMBER
-})
-@JsonTypeName("ArrayOfArrayOfNumberOnly")
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
-public class ArrayOfArrayOfNumberOnly {
- public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber";
- private List> arrayArrayNumber = null;
-
-
- public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) {
-
- this.arrayArrayNumber = arrayArrayNumber;
- return this;
- }
-
- public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayArrayNumberItem) {
- if (this.arrayArrayNumber == null) {
- this.arrayArrayNumber = new ArrayList>();
- }
- this.arrayArrayNumber.add(arrayArrayNumberItem);
- return this;
- }
-
- /**
- * Get arrayArrayNumber
- * @return arrayArrayNumber
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public List> getArrayArrayNumber() {
- return arrayArrayNumber;
- }
-
-
- @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setArrayArrayNumber(List> arrayArrayNumber) {
- this.arrayArrayNumber = arrayArrayNumber;
- }
-
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- ArrayOfArrayOfNumberOnly arrayOfArrayOfNumberOnly = (ArrayOfArrayOfNumberOnly) o;
- return Objects.equals(this.arrayArrayNumber, arrayOfArrayOfNumberOnly.arrayArrayNumber);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(arrayArrayNumber);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class ArrayOfArrayOfNumberOnly {\n");
- sb.append(" arrayArrayNumber: ").append(toIndentedString(arrayArrayNumber)).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(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
-}
-
diff --git a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java
deleted file mode 100644
index fd5f507f169..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java
+++ /dev/null
@@ -1,116 +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.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonValue;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import java.math.BigDecimal;
-import java.util.ArrayList;
-import java.util.List;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-
-/**
- * ArrayOfNumberOnly
- */
-@JsonPropertyOrder({
- ArrayOfNumberOnly.JSON_PROPERTY_ARRAY_NUMBER
-})
-@JsonTypeName("ArrayOfNumberOnly")
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
-public class ArrayOfNumberOnly {
- public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber";
- private List arrayNumber = null;
-
-
- public ArrayOfNumberOnly arrayNumber(List arrayNumber) {
-
- this.arrayNumber = arrayNumber;
- return this;
- }
-
- public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) {
- if (this.arrayNumber == null) {
- this.arrayNumber = new ArrayList();
- }
- this.arrayNumber.add(arrayNumberItem);
- return this;
- }
-
- /**
- * Get arrayNumber
- * @return arrayNumber
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public List getArrayNumber() {
- return arrayNumber;
- }
-
-
- @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setArrayNumber(List arrayNumber) {
- this.arrayNumber = arrayNumber;
- }
-
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- ArrayOfNumberOnly arrayOfNumberOnly = (ArrayOfNumberOnly) o;
- return Objects.equals(this.arrayNumber, arrayOfNumberOnly.arrayNumber);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(arrayNumber);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class ArrayOfNumberOnly {\n");
- sb.append(" arrayNumber: ").append(toIndentedString(arrayNumber)).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(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
-}
-
diff --git a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/ArrayTest.java
deleted file mode 100644
index 281f50c3fb3..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/ArrayTest.java
+++ /dev/null
@@ -1,198 +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.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonValue;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import java.util.ArrayList;
-import java.util.List;
-import org.openapitools.client.model.ReadOnlyFirst;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-
-/**
- * ArrayTest
- */
-@JsonPropertyOrder({
- ArrayTest.JSON_PROPERTY_ARRAY_OF_STRING,
- ArrayTest.JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER,
- ArrayTest.JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL
-})
-@JsonTypeName("ArrayTest")
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
-public class ArrayTest {
- public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string";
- private List arrayOfString = null;
-
- public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer";
- private List> arrayArrayOfInteger = null;
-
- public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model";
- private List> arrayArrayOfModel = null;
-
-
- public ArrayTest arrayOfString(List arrayOfString) {
-
- this.arrayOfString = arrayOfString;
- return this;
- }
-
- public ArrayTest addArrayOfStringItem(String arrayOfStringItem) {
- if (this.arrayOfString == null) {
- this.arrayOfString = new ArrayList();
- }
- this.arrayOfString.add(arrayOfStringItem);
- return this;
- }
-
- /**
- * Get arrayOfString
- * @return arrayOfString
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public List getArrayOfString() {
- return arrayOfString;
- }
-
-
- @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setArrayOfString(List arrayOfString) {
- this.arrayOfString = arrayOfString;
- }
-
-
- public ArrayTest arrayArrayOfInteger(List> arrayArrayOfInteger) {
-
- this.arrayArrayOfInteger = arrayArrayOfInteger;
- return this;
- }
-
- public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) {
- if (this.arrayArrayOfInteger == null) {
- this.arrayArrayOfInteger = new ArrayList>();
- }
- this.arrayArrayOfInteger.add(arrayArrayOfIntegerItem);
- return this;
- }
-
- /**
- * Get arrayArrayOfInteger
- * @return arrayArrayOfInteger
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public List> getArrayArrayOfInteger() {
- return arrayArrayOfInteger;
- }
-
-
- @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setArrayArrayOfInteger(List> arrayArrayOfInteger) {
- this.arrayArrayOfInteger = arrayArrayOfInteger;
- }
-
-
- public ArrayTest arrayArrayOfModel(List> arrayArrayOfModel) {
-
- this.arrayArrayOfModel = arrayArrayOfModel;
- return this;
- }
-
- public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelItem) {
- if (this.arrayArrayOfModel == null) {
- this.arrayArrayOfModel = new ArrayList>();
- }
- this.arrayArrayOfModel.add(arrayArrayOfModelItem);
- return this;
- }
-
- /**
- * Get arrayArrayOfModel
- * @return arrayArrayOfModel
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public List> getArrayArrayOfModel() {
- return arrayArrayOfModel;
- }
-
-
- @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setArrayArrayOfModel(List> arrayArrayOfModel) {
- this.arrayArrayOfModel = arrayArrayOfModel;
- }
-
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- ArrayTest arrayTest = (ArrayTest) o;
- return Objects.equals(this.arrayOfString, arrayTest.arrayOfString) &&
- Objects.equals(this.arrayArrayOfInteger, arrayTest.arrayArrayOfInteger) &&
- Objects.equals(this.arrayArrayOfModel, arrayTest.arrayArrayOfModel);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(arrayOfString, arrayArrayOfInteger, arrayArrayOfModel);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class ArrayTest {\n");
- sb.append(" arrayOfString: ").append(toIndentedString(arrayOfString)).append("\n");
- sb.append(" arrayArrayOfInteger: ").append(toIndentedString(arrayArrayOfInteger)).append("\n");
- sb.append(" arrayArrayOfModel: ").append(toIndentedString(arrayArrayOfModel)).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(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
-}
-
diff --git a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/Capitalization.java
deleted file mode 100644
index db68e647294..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/Capitalization.java
+++ /dev/null
@@ -1,270 +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.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonValue;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-
-/**
- * Capitalization
- */
-@JsonPropertyOrder({
- Capitalization.JSON_PROPERTY_SMALL_CAMEL,
- Capitalization.JSON_PROPERTY_CAPITAL_CAMEL,
- Capitalization.JSON_PROPERTY_SMALL_SNAKE,
- Capitalization.JSON_PROPERTY_CAPITAL_SNAKE,
- Capitalization.JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS,
- Capitalization.JSON_PROPERTY_A_T_T_N_A_M_E
-})
-@JsonTypeName("Capitalization")
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
-public class Capitalization {
- public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel";
- private String smallCamel;
-
- public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel";
- private String capitalCamel;
-
- public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake";
- private String smallSnake;
-
- public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake";
- private String capitalSnake;
-
- public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points";
- private String scAETHFlowPoints;
-
- public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME";
- private String ATT_NAME;
-
-
- public Capitalization smallCamel(String smallCamel) {
-
- this.smallCamel = smallCamel;
- return this;
- }
-
- /**
- * Get smallCamel
- * @return smallCamel
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_SMALL_CAMEL)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public String getSmallCamel() {
- return smallCamel;
- }
-
-
- @JsonProperty(JSON_PROPERTY_SMALL_CAMEL)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setSmallCamel(String smallCamel) {
- this.smallCamel = smallCamel;
- }
-
-
- public Capitalization capitalCamel(String capitalCamel) {
-
- this.capitalCamel = capitalCamel;
- return this;
- }
-
- /**
- * Get capitalCamel
- * @return capitalCamel
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public String getCapitalCamel() {
- return capitalCamel;
- }
-
-
- @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setCapitalCamel(String capitalCamel) {
- this.capitalCamel = capitalCamel;
- }
-
-
- public Capitalization smallSnake(String smallSnake) {
-
- this.smallSnake = smallSnake;
- return this;
- }
-
- /**
- * Get smallSnake
- * @return smallSnake
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_SMALL_SNAKE)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public String getSmallSnake() {
- return smallSnake;
- }
-
-
- @JsonProperty(JSON_PROPERTY_SMALL_SNAKE)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setSmallSnake(String smallSnake) {
- this.smallSnake = smallSnake;
- }
-
-
- public Capitalization capitalSnake(String capitalSnake) {
-
- this.capitalSnake = capitalSnake;
- return this;
- }
-
- /**
- * Get capitalSnake
- * @return capitalSnake
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public String getCapitalSnake() {
- return capitalSnake;
- }
-
-
- @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setCapitalSnake(String capitalSnake) {
- this.capitalSnake = capitalSnake;
- }
-
-
- public Capitalization scAETHFlowPoints(String scAETHFlowPoints) {
-
- this.scAETHFlowPoints = scAETHFlowPoints;
- return this;
- }
-
- /**
- * Get scAETHFlowPoints
- * @return scAETHFlowPoints
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public String getScAETHFlowPoints() {
- return scAETHFlowPoints;
- }
-
-
- @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setScAETHFlowPoints(String scAETHFlowPoints) {
- this.scAETHFlowPoints = scAETHFlowPoints;
- }
-
-
- public Capitalization ATT_NAME(String ATT_NAME) {
-
- this.ATT_NAME = ATT_NAME;
- return this;
- }
-
- /**
- * Name of the pet
- * @return ATT_NAME
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "Name of the pet ")
- @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public String getATTNAME() {
- return ATT_NAME;
- }
-
-
- @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setATTNAME(String ATT_NAME) {
- this.ATT_NAME = ATT_NAME;
- }
-
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- Capitalization capitalization = (Capitalization) o;
- return Objects.equals(this.smallCamel, capitalization.smallCamel) &&
- Objects.equals(this.capitalCamel, capitalization.capitalCamel) &&
- Objects.equals(this.smallSnake, capitalization.smallSnake) &&
- Objects.equals(this.capitalSnake, capitalization.capitalSnake) &&
- Objects.equals(this.scAETHFlowPoints, capitalization.scAETHFlowPoints) &&
- Objects.equals(this.ATT_NAME, capitalization.ATT_NAME);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(smallCamel, capitalCamel, smallSnake, capitalSnake, scAETHFlowPoints, ATT_NAME);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class Capitalization {\n");
- sb.append(" smallCamel: ").append(toIndentedString(smallCamel)).append("\n");
- sb.append(" capitalCamel: ").append(toIndentedString(capitalCamel)).append("\n");
- sb.append(" smallSnake: ").append(toIndentedString(smallSnake)).append("\n");
- sb.append(" capitalSnake: ").append(toIndentedString(capitalSnake)).append("\n");
- sb.append(" scAETHFlowPoints: ").append(toIndentedString(scAETHFlowPoints)).append("\n");
- sb.append(" ATT_NAME: ").append(toIndentedString(ATT_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(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
-}
-
diff --git a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/Cat.java
deleted file mode 100644
index fe6e7ae4050..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/Cat.java
+++ /dev/null
@@ -1,113 +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.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonValue;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import org.openapitools.client.model.Animal;
-import org.openapitools.client.model.CatAllOf;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-
-/**
- * Cat
- */
-@JsonPropertyOrder({
- Cat.JSON_PROPERTY_DECLAWED
-})
-@JsonTypeName("Cat")
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true)
-
-public class Cat extends Animal {
- public static final String JSON_PROPERTY_DECLAWED = "declawed";
- private Boolean declawed;
-
-
- public Cat declawed(Boolean declawed) {
-
- this.declawed = declawed;
- return this;
- }
-
- /**
- * Get declawed
- * @return declawed
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_DECLAWED)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public Boolean isDeclawed() {
- return declawed;
- }
-
-
- @JsonProperty(JSON_PROPERTY_DECLAWED)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setDeclawed(Boolean declawed) {
- this.declawed = declawed;
- }
-
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- Cat cat = (Cat) o;
- return Objects.equals(this.declawed, cat.declawed) &&
- super.equals(o);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(declawed, super.hashCode());
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class Cat {\n");
- sb.append(" ").append(toIndentedString(super.toString())).append("\n");
- sb.append(" declawed: ").append(toIndentedString(declawed)).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(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
-}
-
diff --git a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/CatAllOf.java b/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/CatAllOf.java
deleted file mode 100644
index 997f76d215b..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/CatAllOf.java
+++ /dev/null
@@ -1,105 +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.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonValue;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-
-/**
- * CatAllOf
- */
-@JsonPropertyOrder({
- CatAllOf.JSON_PROPERTY_DECLAWED
-})
-@JsonTypeName("Cat_allOf")
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
-public class CatAllOf {
- public static final String JSON_PROPERTY_DECLAWED = "declawed";
- private Boolean declawed;
-
-
- public CatAllOf declawed(Boolean declawed) {
-
- this.declawed = declawed;
- return this;
- }
-
- /**
- * Get declawed
- * @return declawed
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_DECLAWED)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public Boolean isDeclawed() {
- return declawed;
- }
-
-
- @JsonProperty(JSON_PROPERTY_DECLAWED)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setDeclawed(Boolean declawed) {
- this.declawed = declawed;
- }
-
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- CatAllOf catAllOf = (CatAllOf) o;
- return Objects.equals(this.declawed, catAllOf.declawed);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(declawed);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class CatAllOf {\n");
- sb.append(" declawed: ").append(toIndentedString(declawed)).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(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
-}
-
diff --git a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/Category.java
deleted file mode 100644
index 32f72e70f3d..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/Category.java
+++ /dev/null
@@ -1,137 +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.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonValue;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-
-/**
- * Category
- */
-@JsonPropertyOrder({
- Category.JSON_PROPERTY_ID,
- Category.JSON_PROPERTY_NAME
-})
-@JsonTypeName("Category")
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
-public class Category {
- public static final String JSON_PROPERTY_ID = "id";
- private Long id;
-
- public static final String JSON_PROPERTY_NAME = "name";
- private String name = "default-name";
-
-
- public Category id(Long id) {
-
- this.id = id;
- return this;
- }
-
- /**
- * Get id
- * @return id
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_ID)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public Long getId() {
- return id;
- }
-
-
- @JsonProperty(JSON_PROPERTY_ID)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setId(Long id) {
- this.id = id;
- }
-
-
- public Category name(String name) {
-
- this.name = name;
- return this;
- }
-
- /**
- * Get name
- * @return name
- **/
- @ApiModelProperty(required = true, value = "")
- @JsonProperty(JSON_PROPERTY_NAME)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
-
- public String getName() {
- return name;
- }
-
-
- @JsonProperty(JSON_PROPERTY_NAME)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public void setName(String name) {
- this.name = name;
- }
-
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- Category category = (Category) o;
- return Objects.equals(this.id, category.id) &&
- Objects.equals(this.name, category.name);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(id, name);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class Category {\n");
- sb.append(" id: ").append(toIndentedString(id)).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(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
-}
-
diff --git a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/ClassModel.java
deleted file mode 100644
index 1872b8ad887..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/ClassModel.java
+++ /dev/null
@@ -1,106 +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.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonValue;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-
-/**
- * Model for testing model with \"_class\" property
- */
-@ApiModel(description = "Model for testing model with \"_class\" property")
-@JsonPropertyOrder({
- ClassModel.JSON_PROPERTY_PROPERTY_CLASS
-})
-@JsonTypeName("ClassModel")
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
-public class ClassModel {
- public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class";
- private String propertyClass;
-
-
- public ClassModel propertyClass(String propertyClass) {
-
- this.propertyClass = propertyClass;
- return this;
- }
-
- /**
- * Get propertyClass
- * @return propertyClass
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public String getPropertyClass() {
- return propertyClass;
- }
-
-
- @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setPropertyClass(String propertyClass) {
- this.propertyClass = propertyClass;
- }
-
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- ClassModel classModel = (ClassModel) o;
- return Objects.equals(this.propertyClass, classModel.propertyClass);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(propertyClass);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class ClassModel {\n");
- sb.append(" propertyClass: ").append(toIndentedString(propertyClass)).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(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
-}
-
diff --git a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/Client.java
deleted file mode 100644
index 13c8982196c..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/Client.java
+++ /dev/null
@@ -1,105 +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.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonValue;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-
-/**
- * Client
- */
-@JsonPropertyOrder({
- Client.JSON_PROPERTY_CLIENT
-})
-@JsonTypeName("Client")
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
-public class Client {
- public static final String JSON_PROPERTY_CLIENT = "client";
- private String client;
-
-
- public Client client(String client) {
-
- this.client = client;
- return this;
- }
-
- /**
- * Get client
- * @return client
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_CLIENT)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public String getClient() {
- return client;
- }
-
-
- @JsonProperty(JSON_PROPERTY_CLIENT)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setClient(String client) {
- this.client = client;
- }
-
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- Client client = (Client) o;
- return Objects.equals(this.client, client.client);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(client);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class Client {\n");
- sb.append(" client: ").append(toIndentedString(client)).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(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
-}
-
diff --git a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/Dog.java
deleted file mode 100644
index 5820cea9ab4..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/Dog.java
+++ /dev/null
@@ -1,113 +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.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonValue;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import org.openapitools.client.model.Animal;
-import org.openapitools.client.model.DogAllOf;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-
-/**
- * Dog
- */
-@JsonPropertyOrder({
- Dog.JSON_PROPERTY_BREED
-})
-@JsonTypeName("Dog")
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true)
-
-public class Dog extends Animal {
- public static final String JSON_PROPERTY_BREED = "breed";
- private String breed;
-
-
- public Dog breed(String breed) {
-
- this.breed = breed;
- return this;
- }
-
- /**
- * Get breed
- * @return breed
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_BREED)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public String getBreed() {
- return breed;
- }
-
-
- @JsonProperty(JSON_PROPERTY_BREED)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setBreed(String breed) {
- this.breed = breed;
- }
-
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- Dog dog = (Dog) o;
- return Objects.equals(this.breed, dog.breed) &&
- super.equals(o);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(breed, super.hashCode());
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class Dog {\n");
- sb.append(" ").append(toIndentedString(super.toString())).append("\n");
- sb.append(" breed: ").append(toIndentedString(breed)).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(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
-}
-
diff --git a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/DogAllOf.java b/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/DogAllOf.java
deleted file mode 100644
index 26cd9000e38..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/DogAllOf.java
+++ /dev/null
@@ -1,105 +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.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonValue;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-
-/**
- * DogAllOf
- */
-@JsonPropertyOrder({
- DogAllOf.JSON_PROPERTY_BREED
-})
-@JsonTypeName("Dog_allOf")
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
-public class DogAllOf {
- public static final String JSON_PROPERTY_BREED = "breed";
- private String breed;
-
-
- public DogAllOf breed(String breed) {
-
- this.breed = breed;
- return this;
- }
-
- /**
- * Get breed
- * @return breed
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_BREED)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public String getBreed() {
- return breed;
- }
-
-
- @JsonProperty(JSON_PROPERTY_BREED)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setBreed(String breed) {
- this.breed = breed;
- }
-
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- DogAllOf dogAllOf = (DogAllOf) o;
- return Objects.equals(this.breed, dogAllOf.breed);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(breed);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class DogAllOf {\n");
- sb.append(" breed: ").append(toIndentedString(breed)).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(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
-}
-
diff --git a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/EnumArrays.java
deleted file mode 100644
index 6f8c2056318..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/EnumArrays.java
+++ /dev/null
@@ -1,218 +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.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonValue;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import java.util.ArrayList;
-import java.util.List;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-
-/**
- * EnumArrays
- */
-@JsonPropertyOrder({
- EnumArrays.JSON_PROPERTY_JUST_SYMBOL,
- EnumArrays.JSON_PROPERTY_ARRAY_ENUM
-})
-@JsonTypeName("EnumArrays")
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
-public class EnumArrays {
- /**
- * Gets or Sets justSymbol
- */
- public enum JustSymbolEnum {
- GREATER_THAN_OR_EQUAL_TO(">="),
-
- DOLLAR("$");
-
- private String value;
-
- JustSymbolEnum(String value) {
- this.value = value;
- }
-
- @JsonValue
- public String getValue() {
- return value;
- }
-
- @Override
- public String toString() {
- return String.valueOf(value);
- }
-
- @JsonCreator
- public static JustSymbolEnum fromValue(String value) {
- for (JustSymbolEnum b : JustSymbolEnum.values()) {
- if (b.value.equals(value)) {
- return b;
- }
- }
- throw new IllegalArgumentException("Unexpected value '" + value + "'");
- }
- }
-
- public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol";
- private JustSymbolEnum justSymbol;
-
- /**
- * Gets or Sets arrayEnum
- */
- public enum ArrayEnumEnum {
- FISH("fish"),
-
- CRAB("crab");
-
- private String value;
-
- ArrayEnumEnum(String value) {
- this.value = value;
- }
-
- @JsonValue
- public String getValue() {
- return value;
- }
-
- @Override
- public String toString() {
- return String.valueOf(value);
- }
-
- @JsonCreator
- public static ArrayEnumEnum fromValue(String value) {
- for (ArrayEnumEnum b : ArrayEnumEnum.values()) {
- if (b.value.equals(value)) {
- return b;
- }
- }
- throw new IllegalArgumentException("Unexpected value '" + value + "'");
- }
- }
-
- public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum";
- private List arrayEnum = null;
-
-
- public EnumArrays justSymbol(JustSymbolEnum justSymbol) {
-
- this.justSymbol = justSymbol;
- return this;
- }
-
- /**
- * Get justSymbol
- * @return justSymbol
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_JUST_SYMBOL)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public JustSymbolEnum getJustSymbol() {
- return justSymbol;
- }
-
-
- @JsonProperty(JSON_PROPERTY_JUST_SYMBOL)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setJustSymbol(JustSymbolEnum justSymbol) {
- this.justSymbol = justSymbol;
- }
-
-
- public EnumArrays arrayEnum(List arrayEnum) {
-
- this.arrayEnum = arrayEnum;
- return this;
- }
-
- public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) {
- if (this.arrayEnum == null) {
- this.arrayEnum = new ArrayList();
- }
- this.arrayEnum.add(arrayEnumItem);
- return this;
- }
-
- /**
- * Get arrayEnum
- * @return arrayEnum
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_ARRAY_ENUM)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public List getArrayEnum() {
- return arrayEnum;
- }
-
-
- @JsonProperty(JSON_PROPERTY_ARRAY_ENUM)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setArrayEnum(List arrayEnum) {
- this.arrayEnum = arrayEnum;
- }
-
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- EnumArrays enumArrays = (EnumArrays) o;
- return Objects.equals(this.justSymbol, enumArrays.justSymbol) &&
- Objects.equals(this.arrayEnum, enumArrays.arrayEnum);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(justSymbol, arrayEnum);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class EnumArrays {\n");
- sb.append(" justSymbol: ").append(toIndentedString(justSymbol)).append("\n");
- sb.append(" arrayEnum: ").append(toIndentedString(arrayEnum)).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(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
-}
-
diff --git a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/EnumClass.java b/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/EnumClass.java
deleted file mode 100644
index e9102d97427..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/EnumClass.java
+++ /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.model;
-
-import java.util.Objects;
-import java.util.Arrays;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonValue;
-
-/**
- * Gets or Sets EnumClass
- */
-public enum EnumClass {
-
- _ABC("_abc"),
-
- _EFG("-efg"),
-
- _XYZ_("(xyz)");
-
- private String value;
-
- EnumClass(String value) {
- this.value = value;
- }
-
- @JsonValue
- public String getValue() {
- return value;
- }
-
- @Override
- public String toString() {
- return String.valueOf(value);
- }
-
- @JsonCreator
- public static EnumClass fromValue(String value) {
- for (EnumClass b : EnumClass.values()) {
- if (b.value.equals(value)) {
- return b;
- }
- }
- throw new IllegalArgumentException("Unexpected value '" + value + "'");
- }
-}
-
diff --git a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/EnumTest.java
deleted file mode 100644
index cbb00130d67..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/EnumTest.java
+++ /dev/null
@@ -1,494 +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.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonValue;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import org.openapitools.client.model.OuterEnum;
-import org.openapitools.client.model.OuterEnumDefaultValue;
-import org.openapitools.client.model.OuterEnumInteger;
-import org.openapitools.client.model.OuterEnumIntegerDefaultValue;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import org.openapitools.jackson.nullable.JsonNullable;
-import java.util.NoSuchElementException;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-
-/**
- * EnumTest
- */
-@JsonPropertyOrder({
- EnumTest.JSON_PROPERTY_ENUM_STRING,
- EnumTest.JSON_PROPERTY_ENUM_STRING_REQUIRED,
- EnumTest.JSON_PROPERTY_ENUM_INTEGER,
- EnumTest.JSON_PROPERTY_ENUM_NUMBER,
- EnumTest.JSON_PROPERTY_OUTER_ENUM,
- EnumTest.JSON_PROPERTY_OUTER_ENUM_INTEGER,
- EnumTest.JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE,
- EnumTest.JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE
-})
-@JsonTypeName("Enum_Test")
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
-public class EnumTest {
- /**
- * Gets or Sets enumString
- */
- public enum EnumStringEnum {
- UPPER("UPPER"),
-
- LOWER("lower"),
-
- EMPTY("");
-
- private String value;
-
- EnumStringEnum(String value) {
- this.value = value;
- }
-
- @JsonValue
- public String getValue() {
- return value;
- }
-
- @Override
- public String toString() {
- return String.valueOf(value);
- }
-
- @JsonCreator
- public static EnumStringEnum fromValue(String value) {
- for (EnumStringEnum b : EnumStringEnum.values()) {
- if (b.value.equals(value)) {
- return b;
- }
- }
- throw new IllegalArgumentException("Unexpected value '" + value + "'");
- }
- }
-
- public static final String JSON_PROPERTY_ENUM_STRING = "enum_string";
- private EnumStringEnum enumString;
-
- /**
- * Gets or Sets enumStringRequired
- */
- public enum EnumStringRequiredEnum {
- UPPER("UPPER"),
-
- LOWER("lower"),
-
- EMPTY("");
-
- private String value;
-
- EnumStringRequiredEnum(String value) {
- this.value = value;
- }
-
- @JsonValue
- public String getValue() {
- return value;
- }
-
- @Override
- public String toString() {
- return String.valueOf(value);
- }
-
- @JsonCreator
- public static EnumStringRequiredEnum fromValue(String value) {
- for (EnumStringRequiredEnum b : EnumStringRequiredEnum.values()) {
- if (b.value.equals(value)) {
- return b;
- }
- }
- throw new IllegalArgumentException("Unexpected value '" + value + "'");
- }
- }
-
- public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required";
- private EnumStringRequiredEnum enumStringRequired;
-
- /**
- * Gets or Sets enumInteger
- */
- public enum EnumIntegerEnum {
- NUMBER_1(1),
-
- NUMBER_MINUS_1(-1);
-
- private Integer value;
-
- EnumIntegerEnum(Integer value) {
- this.value = value;
- }
-
- @JsonValue
- public Integer getValue() {
- return value;
- }
-
- @Override
- public String toString() {
- return String.valueOf(value);
- }
-
- @JsonCreator
- public static EnumIntegerEnum fromValue(Integer value) {
- for (EnumIntegerEnum b : EnumIntegerEnum.values()) {
- if (b.value.equals(value)) {
- return b;
- }
- }
- throw new IllegalArgumentException("Unexpected value '" + value + "'");
- }
- }
-
- public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer";
- private EnumIntegerEnum enumInteger;
-
- /**
- * Gets or Sets enumNumber
- */
- public enum EnumNumberEnum {
- NUMBER_1_DOT_1(1.1),
-
- NUMBER_MINUS_1_DOT_2(-1.2);
-
- private Double value;
-
- EnumNumberEnum(Double value) {
- this.value = value;
- }
-
- @JsonValue
- public Double getValue() {
- return value;
- }
-
- @Override
- public String toString() {
- return String.valueOf(value);
- }
-
- @JsonCreator
- public static EnumNumberEnum fromValue(Double value) {
- for (EnumNumberEnum b : EnumNumberEnum.values()) {
- if (b.value.equals(value)) {
- return b;
- }
- }
- throw new IllegalArgumentException("Unexpected value '" + value + "'");
- }
- }
-
- public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number";
- private EnumNumberEnum enumNumber;
-
- public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum";
- private JsonNullable outerEnum = JsonNullable.undefined();
-
- public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER = "outerEnumInteger";
- private OuterEnumInteger outerEnumInteger;
-
- public static final String JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE = "outerEnumDefaultValue";
- private OuterEnumDefaultValue outerEnumDefaultValue = OuterEnumDefaultValue.PLACED;
-
- public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE = "outerEnumIntegerDefaultValue";
- private OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue = OuterEnumIntegerDefaultValue.NUMBER_0;
-
-
- public EnumTest enumString(EnumStringEnum enumString) {
-
- this.enumString = enumString;
- return this;
- }
-
- /**
- * Get enumString
- * @return enumString
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_ENUM_STRING)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public EnumStringEnum getEnumString() {
- return enumString;
- }
-
-
- @JsonProperty(JSON_PROPERTY_ENUM_STRING)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setEnumString(EnumStringEnum enumString) {
- this.enumString = enumString;
- }
-
-
- public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) {
-
- this.enumStringRequired = enumStringRequired;
- return this;
- }
-
- /**
- * Get enumStringRequired
- * @return enumStringRequired
- **/
- @ApiModelProperty(required = true, value = "")
- @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
-
- public EnumStringRequiredEnum getEnumStringRequired() {
- return enumStringRequired;
- }
-
-
- @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) {
- this.enumStringRequired = enumStringRequired;
- }
-
-
- public EnumTest enumInteger(EnumIntegerEnum enumInteger) {
-
- this.enumInteger = enumInteger;
- return this;
- }
-
- /**
- * Get enumInteger
- * @return enumInteger
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_ENUM_INTEGER)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public EnumIntegerEnum getEnumInteger() {
- return enumInteger;
- }
-
-
- @JsonProperty(JSON_PROPERTY_ENUM_INTEGER)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setEnumInteger(EnumIntegerEnum enumInteger) {
- this.enumInteger = enumInteger;
- }
-
-
- public EnumTest enumNumber(EnumNumberEnum enumNumber) {
-
- this.enumNumber = enumNumber;
- return this;
- }
-
- /**
- * Get enumNumber
- * @return enumNumber
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_ENUM_NUMBER)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public EnumNumberEnum getEnumNumber() {
- return enumNumber;
- }
-
-
- @JsonProperty(JSON_PROPERTY_ENUM_NUMBER)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setEnumNumber(EnumNumberEnum enumNumber) {
- this.enumNumber = enumNumber;
- }
-
-
- public EnumTest outerEnum(OuterEnum outerEnum) {
- this.outerEnum = JsonNullable.of(outerEnum);
-
- return this;
- }
-
- /**
- * Get outerEnum
- * @return outerEnum
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonIgnore
-
- public OuterEnum getOuterEnum() {
- return outerEnum.orElse(null);
- }
-
- @JsonProperty(JSON_PROPERTY_OUTER_ENUM)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public JsonNullable getOuterEnum_JsonNullable() {
- return outerEnum;
- }
-
- @JsonProperty(JSON_PROPERTY_OUTER_ENUM)
- public void setOuterEnum_JsonNullable(JsonNullable outerEnum) {
- this.outerEnum = outerEnum;
- }
-
- public void setOuterEnum(OuterEnum outerEnum) {
- this.outerEnum = JsonNullable.of(outerEnum);
- }
-
-
- public EnumTest outerEnumInteger(OuterEnumInteger outerEnumInteger) {
-
- this.outerEnumInteger = outerEnumInteger;
- return this;
- }
-
- /**
- * Get outerEnumInteger
- * @return outerEnumInteger
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public OuterEnumInteger getOuterEnumInteger() {
- return outerEnumInteger;
- }
-
-
- @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setOuterEnumInteger(OuterEnumInteger outerEnumInteger) {
- this.outerEnumInteger = outerEnumInteger;
- }
-
-
- public EnumTest outerEnumDefaultValue(OuterEnumDefaultValue outerEnumDefaultValue) {
-
- this.outerEnumDefaultValue = outerEnumDefaultValue;
- return this;
- }
-
- /**
- * Get outerEnumDefaultValue
- * @return outerEnumDefaultValue
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public OuterEnumDefaultValue getOuterEnumDefaultValue() {
- return outerEnumDefaultValue;
- }
-
-
- @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setOuterEnumDefaultValue(OuterEnumDefaultValue outerEnumDefaultValue) {
- this.outerEnumDefaultValue = outerEnumDefaultValue;
- }
-
-
- public EnumTest outerEnumIntegerDefaultValue(OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) {
-
- this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue;
- return this;
- }
-
- /**
- * Get outerEnumIntegerDefaultValue
- * @return outerEnumIntegerDefaultValue
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() {
- return outerEnumIntegerDefaultValue;
- }
-
-
- @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setOuterEnumIntegerDefaultValue(OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) {
- this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue;
- }
-
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- EnumTest enumTest = (EnumTest) o;
- return Objects.equals(this.enumString, enumTest.enumString) &&
- Objects.equals(this.enumStringRequired, enumTest.enumStringRequired) &&
- Objects.equals(this.enumInteger, enumTest.enumInteger) &&
- Objects.equals(this.enumNumber, enumTest.enumNumber) &&
- Objects.equals(this.outerEnum, enumTest.outerEnum) &&
- Objects.equals(this.outerEnumInteger, enumTest.outerEnumInteger) &&
- Objects.equals(this.outerEnumDefaultValue, enumTest.outerEnumDefaultValue) &&
- Objects.equals(this.outerEnumIntegerDefaultValue, enumTest.outerEnumIntegerDefaultValue);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(enumString, enumStringRequired, enumInteger, enumNumber, outerEnum, outerEnumInteger, outerEnumDefaultValue, outerEnumIntegerDefaultValue);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class EnumTest {\n");
- sb.append(" enumString: ").append(toIndentedString(enumString)).append("\n");
- sb.append(" enumStringRequired: ").append(toIndentedString(enumStringRequired)).append("\n");
- sb.append(" enumInteger: ").append(toIndentedString(enumInteger)).append("\n");
- sb.append(" enumNumber: ").append(toIndentedString(enumNumber)).append("\n");
- sb.append(" outerEnum: ").append(toIndentedString(outerEnum)).append("\n");
- sb.append(" outerEnumInteger: ").append(toIndentedString(outerEnumInteger)).append("\n");
- sb.append(" outerEnumDefaultValue: ").append(toIndentedString(outerEnumDefaultValue)).append("\n");
- sb.append(" outerEnumIntegerDefaultValue: ").append(toIndentedString(outerEnumIntegerDefaultValue)).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(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
-}
-
diff --git a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java
deleted file mode 100644
index fdc4c5a0920..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java
+++ /dev/null
@@ -1,148 +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.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonValue;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import java.util.ArrayList;
-import java.util.List;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-
-/**
- * FileSchemaTestClass
- */
-@JsonPropertyOrder({
- FileSchemaTestClass.JSON_PROPERTY_FILE,
- FileSchemaTestClass.JSON_PROPERTY_FILES
-})
-@JsonTypeName("FileSchemaTestClass")
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
-public class FileSchemaTestClass {
- public static final String JSON_PROPERTY_FILE = "file";
- private java.io.File file;
-
- public static final String JSON_PROPERTY_FILES = "files";
- private List files = null;
-
-
- public FileSchemaTestClass file(java.io.File file) {
-
- this.file = file;
- return this;
- }
-
- /**
- * Get file
- * @return file
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_FILE)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public java.io.File getFile() {
- return file;
- }
-
-
- @JsonProperty(JSON_PROPERTY_FILE)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setFile(java.io.File file) {
- this.file = file;
- }
-
-
- public FileSchemaTestClass files(List files) {
-
- this.files = files;
- return this;
- }
-
- public FileSchemaTestClass addFilesItem(java.io.File filesItem) {
- if (this.files == null) {
- this.files = new ArrayList();
- }
- this.files.add(filesItem);
- return this;
- }
-
- /**
- * Get files
- * @return files
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_FILES)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public List getFiles() {
- return files;
- }
-
-
- @JsonProperty(JSON_PROPERTY_FILES)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setFiles(List files) {
- this.files = files;
- }
-
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- FileSchemaTestClass fileSchemaTestClass = (FileSchemaTestClass) o;
- return Objects.equals(this.file, fileSchemaTestClass.file) &&
- Objects.equals(this.files, fileSchemaTestClass.files);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(file, files);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class FileSchemaTestClass {\n");
- sb.append(" file: ").append(toIndentedString(file)).append("\n");
- sb.append(" files: ").append(toIndentedString(files)).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(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
-}
-
diff --git a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/FormatTest.java
deleted file mode 100644
index 5f206852e0c..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/FormatTest.java
+++ /dev/null
@@ -1,611 +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.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonValue;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import java.io.File;
-import java.math.BigDecimal;
-import java.util.UUID;
-import org.threeten.bp.LocalDate;
-import org.threeten.bp.OffsetDateTime;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-
-/**
- * FormatTest
- */
-@JsonPropertyOrder({
- FormatTest.JSON_PROPERTY_INTEGER,
- FormatTest.JSON_PROPERTY_INT32,
- FormatTest.JSON_PROPERTY_INT64,
- FormatTest.JSON_PROPERTY_NUMBER,
- FormatTest.JSON_PROPERTY_FLOAT,
- FormatTest.JSON_PROPERTY_DOUBLE,
- FormatTest.JSON_PROPERTY_DECIMAL,
- FormatTest.JSON_PROPERTY_STRING,
- FormatTest.JSON_PROPERTY_BYTE,
- FormatTest.JSON_PROPERTY_BINARY,
- FormatTest.JSON_PROPERTY_DATE,
- FormatTest.JSON_PROPERTY_DATE_TIME,
- FormatTest.JSON_PROPERTY_UUID,
- FormatTest.JSON_PROPERTY_PASSWORD,
- FormatTest.JSON_PROPERTY_PATTERN_WITH_DIGITS,
- FormatTest.JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER
-})
-@JsonTypeName("format_test")
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
-public class FormatTest {
- public static final String JSON_PROPERTY_INTEGER = "integer";
- private Integer integer;
-
- public static final String JSON_PROPERTY_INT32 = "int32";
- private Integer int32;
-
- public static final String JSON_PROPERTY_INT64 = "int64";
- private Long int64;
-
- public static final String JSON_PROPERTY_NUMBER = "number";
- private BigDecimal number;
-
- public static final String JSON_PROPERTY_FLOAT = "float";
- private Float _float;
-
- public static final String JSON_PROPERTY_DOUBLE = "double";
- private Double _double;
-
- public static final String JSON_PROPERTY_DECIMAL = "decimal";
- private BigDecimal decimal;
-
- public static final String JSON_PROPERTY_STRING = "string";
- private String string;
-
- public static final String JSON_PROPERTY_BYTE = "byte";
- private byte[] _byte;
-
- public static final String JSON_PROPERTY_BINARY = "binary";
- private File binary;
-
- public static final String JSON_PROPERTY_DATE = "date";
- private LocalDate date;
-
- public static final String JSON_PROPERTY_DATE_TIME = "dateTime";
- private OffsetDateTime dateTime;
-
- public static final String JSON_PROPERTY_UUID = "uuid";
- private UUID uuid;
-
- public static final String JSON_PROPERTY_PASSWORD = "password";
- private String password;
-
- public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS = "pattern_with_digits";
- private String patternWithDigits;
-
- public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER = "pattern_with_digits_and_delimiter";
- private String patternWithDigitsAndDelimiter;
-
-
- public FormatTest integer(Integer integer) {
-
- this.integer = integer;
- return this;
- }
-
- /**
- * Get integer
- * minimum: 10
- * maximum: 100
- * @return integer
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_INTEGER)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public Integer getInteger() {
- return integer;
- }
-
-
- @JsonProperty(JSON_PROPERTY_INTEGER)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setInteger(Integer integer) {
- this.integer = integer;
- }
-
-
- public FormatTest int32(Integer int32) {
-
- this.int32 = int32;
- return this;
- }
-
- /**
- * Get int32
- * minimum: 20
- * maximum: 200
- * @return int32
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_INT32)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public Integer getInt32() {
- return int32;
- }
-
-
- @JsonProperty(JSON_PROPERTY_INT32)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setInt32(Integer int32) {
- this.int32 = int32;
- }
-
-
- public FormatTest int64(Long int64) {
-
- this.int64 = int64;
- return this;
- }
-
- /**
- * Get int64
- * @return int64
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_INT64)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public Long getInt64() {
- return int64;
- }
-
-
- @JsonProperty(JSON_PROPERTY_INT64)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setInt64(Long int64) {
- this.int64 = int64;
- }
-
-
- public FormatTest number(BigDecimal number) {
-
- this.number = number;
- return this;
- }
-
- /**
- * Get number
- * minimum: 32.1
- * maximum: 543.2
- * @return number
- **/
- @ApiModelProperty(required = true, value = "")
- @JsonProperty(JSON_PROPERTY_NUMBER)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
-
- public BigDecimal getNumber() {
- return number;
- }
-
-
- @JsonProperty(JSON_PROPERTY_NUMBER)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public void setNumber(BigDecimal number) {
- this.number = number;
- }
-
-
- public FormatTest _float(Float _float) {
-
- this._float = _float;
- return this;
- }
-
- /**
- * Get _float
- * minimum: 54.3
- * maximum: 987.6
- * @return _float
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_FLOAT)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public Float getFloat() {
- return _float;
- }
-
-
- @JsonProperty(JSON_PROPERTY_FLOAT)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setFloat(Float _float) {
- this._float = _float;
- }
-
-
- public FormatTest _double(Double _double) {
-
- this._double = _double;
- return this;
- }
-
- /**
- * Get _double
- * minimum: 67.8
- * maximum: 123.4
- * @return _double
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_DOUBLE)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public Double getDouble() {
- return _double;
- }
-
-
- @JsonProperty(JSON_PROPERTY_DOUBLE)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setDouble(Double _double) {
- this._double = _double;
- }
-
-
- public FormatTest decimal(BigDecimal decimal) {
-
- this.decimal = decimal;
- return this;
- }
-
- /**
- * Get decimal
- * @return decimal
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_DECIMAL)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public BigDecimal getDecimal() {
- return decimal;
- }
-
-
- @JsonProperty(JSON_PROPERTY_DECIMAL)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setDecimal(BigDecimal decimal) {
- this.decimal = decimal;
- }
-
-
- public FormatTest string(String string) {
-
- this.string = string;
- return this;
- }
-
- /**
- * Get string
- * @return string
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_STRING)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public String getString() {
- return string;
- }
-
-
- @JsonProperty(JSON_PROPERTY_STRING)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setString(String string) {
- this.string = string;
- }
-
-
- public FormatTest _byte(byte[] _byte) {
-
- this._byte = _byte;
- return this;
- }
-
- /**
- * Get _byte
- * @return _byte
- **/
- @ApiModelProperty(required = true, value = "")
- @JsonProperty(JSON_PROPERTY_BYTE)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
-
- public byte[] getByte() {
- return _byte;
- }
-
-
- @JsonProperty(JSON_PROPERTY_BYTE)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public void setByte(byte[] _byte) {
- this._byte = _byte;
- }
-
-
- public FormatTest binary(File binary) {
-
- this.binary = binary;
- return this;
- }
-
- /**
- * Get binary
- * @return binary
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_BINARY)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public File getBinary() {
- return binary;
- }
-
-
- @JsonProperty(JSON_PROPERTY_BINARY)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setBinary(File binary) {
- this.binary = binary;
- }
-
-
- public FormatTest date(LocalDate date) {
-
- this.date = date;
- return this;
- }
-
- /**
- * Get date
- * @return date
- **/
- @ApiModelProperty(required = true, value = "")
- @JsonProperty(JSON_PROPERTY_DATE)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
-
- public LocalDate getDate() {
- return date;
- }
-
-
- @JsonProperty(JSON_PROPERTY_DATE)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public void setDate(LocalDate date) {
- this.date = date;
- }
-
-
- public FormatTest dateTime(OffsetDateTime dateTime) {
-
- this.dateTime = dateTime;
- return this;
- }
-
- /**
- * Get dateTime
- * @return dateTime
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_DATE_TIME)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public OffsetDateTime getDateTime() {
- return dateTime;
- }
-
-
- @JsonProperty(JSON_PROPERTY_DATE_TIME)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setDateTime(OffsetDateTime dateTime) {
- this.dateTime = dateTime;
- }
-
-
- public FormatTest uuid(UUID uuid) {
-
- this.uuid = uuid;
- return this;
- }
-
- /**
- * Get uuid
- * @return uuid
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "")
- @JsonProperty(JSON_PROPERTY_UUID)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public UUID getUuid() {
- return uuid;
- }
-
-
- @JsonProperty(JSON_PROPERTY_UUID)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setUuid(UUID uuid) {
- this.uuid = uuid;
- }
-
-
- public FormatTest password(String password) {
-
- this.password = password;
- return this;
- }
-
- /**
- * Get password
- * @return password
- **/
- @ApiModelProperty(required = true, value = "")
- @JsonProperty(JSON_PROPERTY_PASSWORD)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
-
- public String getPassword() {
- return password;
- }
-
-
- @JsonProperty(JSON_PROPERTY_PASSWORD)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public void setPassword(String password) {
- this.password = password;
- }
-
-
- public FormatTest patternWithDigits(String patternWithDigits) {
-
- this.patternWithDigits = patternWithDigits;
- return this;
- }
-
- /**
- * A string that is a 10 digit number. Can have leading zeros.
- * @return patternWithDigits
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "A string that is a 10 digit number. Can have leading zeros.")
- @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public String getPatternWithDigits() {
- return patternWithDigits;
- }
-
-
- @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setPatternWithDigits(String patternWithDigits) {
- this.patternWithDigits = patternWithDigits;
- }
-
-
- public FormatTest patternWithDigitsAndDelimiter(String patternWithDigitsAndDelimiter) {
-
- this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter;
- return this;
- }
-
- /**
- * A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.
- * @return patternWithDigitsAndDelimiter
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.")
- @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public String getPatternWithDigitsAndDelimiter() {
- return patternWithDigitsAndDelimiter;
- }
-
-
- @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setPatternWithDigitsAndDelimiter(String patternWithDigitsAndDelimiter) {
- this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter;
- }
-
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- FormatTest formatTest = (FormatTest) o;
- return Objects.equals(this.integer, formatTest.integer) &&
- Objects.equals(this.int32, formatTest.int32) &&
- Objects.equals(this.int64, formatTest.int64) &&
- Objects.equals(this.number, formatTest.number) &&
- Objects.equals(this._float, formatTest._float) &&
- Objects.equals(this._double, formatTest._double) &&
- Objects.equals(this.decimal, formatTest.decimal) &&
- Objects.equals(this.string, formatTest.string) &&
- Arrays.equals(this._byte, formatTest._byte) &&
- Objects.equals(this.binary, formatTest.binary) &&
- Objects.equals(this.date, formatTest.date) &&
- Objects.equals(this.dateTime, formatTest.dateTime) &&
- Objects.equals(this.uuid, formatTest.uuid) &&
- Objects.equals(this.password, formatTest.password) &&
- Objects.equals(this.patternWithDigits, formatTest.patternWithDigits) &&
- Objects.equals(this.patternWithDigitsAndDelimiter, formatTest.patternWithDigitsAndDelimiter);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(integer, int32, int64, number, _float, _double, decimal, string, Arrays.hashCode(_byte), binary, date, dateTime, uuid, password, patternWithDigits, patternWithDigitsAndDelimiter);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class FormatTest {\n");
- sb.append(" integer: ").append(toIndentedString(integer)).append("\n");
- sb.append(" int32: ").append(toIndentedString(int32)).append("\n");
- sb.append(" int64: ").append(toIndentedString(int64)).append("\n");
- sb.append(" number: ").append(toIndentedString(number)).append("\n");
- sb.append(" _float: ").append(toIndentedString(_float)).append("\n");
- sb.append(" _double: ").append(toIndentedString(_double)).append("\n");
- sb.append(" decimal: ").append(toIndentedString(decimal)).append("\n");
- sb.append(" string: ").append(toIndentedString(string)).append("\n");
- sb.append(" _byte: ").append(toIndentedString(_byte)).append("\n");
- sb.append(" binary: ").append(toIndentedString(binary)).append("\n");
- sb.append(" date: ").append(toIndentedString(date)).append("\n");
- sb.append(" dateTime: ").append(toIndentedString(dateTime)).append("\n");
- sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n");
- sb.append(" password: ").append(toIndentedString(password)).append("\n");
- sb.append(" patternWithDigits: ").append(toIndentedString(patternWithDigits)).append("\n");
- sb.append(" patternWithDigitsAndDelimiter: ").append(toIndentedString(patternWithDigitsAndDelimiter)).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(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
-}
-
diff --git a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java
deleted file mode 100644
index 4f7e8a75ca2..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java
+++ /dev/null
@@ -1,116 +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.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonValue;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-
-/**
- * HasOnlyReadOnly
- */
-@JsonPropertyOrder({
- HasOnlyReadOnly.JSON_PROPERTY_BAR,
- HasOnlyReadOnly.JSON_PROPERTY_FOO
-})
-@JsonTypeName("hasOnlyReadOnly")
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
-public class HasOnlyReadOnly {
- public static final String JSON_PROPERTY_BAR = "bar";
- private String bar;
-
- public static final String JSON_PROPERTY_FOO = "foo";
- private String foo;
-
-
- /**
- * Get bar
- * @return bar
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_BAR)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public String getBar() {
- return bar;
- }
-
-
-
-
- /**
- * Get foo
- * @return foo
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_FOO)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public String getFoo() {
- return foo;
- }
-
-
-
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- HasOnlyReadOnly hasOnlyReadOnly = (HasOnlyReadOnly) o;
- return Objects.equals(this.bar, hasOnlyReadOnly.bar) &&
- Objects.equals(this.foo, hasOnlyReadOnly.foo);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(bar, foo);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class HasOnlyReadOnly {\n");
- sb.append(" bar: ").append(toIndentedString(bar)).append("\n");
- sb.append(" foo: ").append(toIndentedString(foo)).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(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
-}
-
diff --git a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/MapTest.java
deleted file mode 100644
index 3561bb9ac0c..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/MapTest.java
+++ /dev/null
@@ -1,274 +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.JsonTypeName;
-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;
-
-/**
- * MapTest
- */
-@JsonPropertyOrder({
- MapTest.JSON_PROPERTY_MAP_MAP_OF_STRING,
- MapTest.JSON_PROPERTY_MAP_OF_ENUM_STRING,
- MapTest.JSON_PROPERTY_DIRECT_MAP,
- MapTest.JSON_PROPERTY_INDIRECT_MAP
-})
-@JsonTypeName("MapTest")
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
-public class MapTest {
- public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string";
- private Map> mapMapOfString = null;
-
- /**
- * Gets or Sets inner
- */
- public enum InnerEnum {
- UPPER("UPPER"),
-
- LOWER("lower");
-
- private String value;
-
- InnerEnum(String value) {
- this.value = value;
- }
-
- @JsonValue
- public String getValue() {
- return value;
- }
-
- @Override
- public String toString() {
- return String.valueOf(value);
- }
-
- @JsonCreator
- public static InnerEnum fromValue(String value) {
- for (InnerEnum b : InnerEnum.values()) {
- if (b.value.equals(value)) {
- return b;
- }
- }
- throw new IllegalArgumentException("Unexpected value '" + value + "'");
- }
- }
-
- public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string";
- private Map mapOfEnumString = null;
-
- public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map";
- private Map directMap = null;
-
- public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map";
- private Map indirectMap = null;
-
-
- public MapTest mapMapOfString(Map> mapMapOfString) {
-
- this.mapMapOfString = mapMapOfString;
- return this;
- }
-
- public MapTest putMapMapOfStringItem(String key, Map mapMapOfStringItem) {
- if (this.mapMapOfString == null) {
- this.mapMapOfString = new HashMap>();
- }
- this.mapMapOfString.put(key, mapMapOfStringItem);
- return this;
- }
-
- /**
- * Get mapMapOfString
- * @return mapMapOfString
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public Map> getMapMapOfString() {
- return mapMapOfString;
- }
-
-
- @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setMapMapOfString(Map> mapMapOfString) {
- this.mapMapOfString = mapMapOfString;
- }
-
-
- public MapTest mapOfEnumString(Map mapOfEnumString) {
-
- this.mapOfEnumString = mapOfEnumString;
- return this;
- }
-
- public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) {
- if (this.mapOfEnumString == null) {
- this.mapOfEnumString = new HashMap();
- }
- this.mapOfEnumString.put(key, mapOfEnumStringItem);
- return this;
- }
-
- /**
- * Get mapOfEnumString
- * @return mapOfEnumString
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public Map getMapOfEnumString() {
- return mapOfEnumString;
- }
-
-
- @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setMapOfEnumString(Map mapOfEnumString) {
- this.mapOfEnumString = mapOfEnumString;
- }
-
-
- public MapTest directMap(Map directMap) {
-
- this.directMap = directMap;
- return this;
- }
-
- public MapTest putDirectMapItem(String key, Boolean directMapItem) {
- if (this.directMap == null) {
- this.directMap = new HashMap();
- }
- this.directMap.put(key, directMapItem);
- return this;
- }
-
- /**
- * Get directMap
- * @return directMap
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_DIRECT_MAP)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public Map getDirectMap() {
- return directMap;
- }
-
-
- @JsonProperty(JSON_PROPERTY_DIRECT_MAP)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setDirectMap(Map directMap) {
- this.directMap = directMap;
- }
-
-
- public MapTest indirectMap(Map indirectMap) {
-
- this.indirectMap = indirectMap;
- return this;
- }
-
- public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) {
- if (this.indirectMap == null) {
- this.indirectMap = new HashMap();
- }
- this.indirectMap.put(key, indirectMapItem);
- return this;
- }
-
- /**
- * Get indirectMap
- * @return indirectMap
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_INDIRECT_MAP)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public Map getIndirectMap() {
- return indirectMap;
- }
-
-
- @JsonProperty(JSON_PROPERTY_INDIRECT_MAP)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setIndirectMap(Map indirectMap) {
- this.indirectMap = indirectMap;
- }
-
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- MapTest mapTest = (MapTest) o;
- return Objects.equals(this.mapMapOfString, mapTest.mapMapOfString) &&
- Objects.equals(this.mapOfEnumString, mapTest.mapOfEnumString) &&
- Objects.equals(this.directMap, mapTest.directMap) &&
- Objects.equals(this.indirectMap, mapTest.indirectMap);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(mapMapOfString, mapOfEnumString, directMap, indirectMap);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class MapTest {\n");
- sb.append(" mapMapOfString: ").append(toIndentedString(mapMapOfString)).append("\n");
- sb.append(" mapOfEnumString: ").append(toIndentedString(mapOfEnumString)).append("\n");
- sb.append(" directMap: ").append(toIndentedString(directMap)).append("\n");
- sb.append(" indirectMap: ").append(toIndentedString(indirectMap)).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(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
-}
-
diff --git a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java
deleted file mode 100644
index f8973bf9835..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java
+++ /dev/null
@@ -1,185 +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.JsonTypeName;
-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 java.util.UUID;
-import org.openapitools.client.model.Animal;
-import org.threeten.bp.OffsetDateTime;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-
-/**
- * MixedPropertiesAndAdditionalPropertiesClass
- */
-@JsonPropertyOrder({
- MixedPropertiesAndAdditionalPropertiesClass.JSON_PROPERTY_UUID,
- MixedPropertiesAndAdditionalPropertiesClass.JSON_PROPERTY_DATE_TIME,
- MixedPropertiesAndAdditionalPropertiesClass.JSON_PROPERTY_MAP
-})
-@JsonTypeName("MixedPropertiesAndAdditionalPropertiesClass")
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
-public class MixedPropertiesAndAdditionalPropertiesClass {
- public static final String JSON_PROPERTY_UUID = "uuid";
- private UUID uuid;
-
- public static final String JSON_PROPERTY_DATE_TIME = "dateTime";
- private OffsetDateTime dateTime;
-
- public static final String JSON_PROPERTY_MAP = "map";
- private Map map = null;
-
-
- public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) {
-
- this.uuid = uuid;
- return this;
- }
-
- /**
- * Get uuid
- * @return uuid
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_UUID)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public UUID getUuid() {
- return uuid;
- }
-
-
- @JsonProperty(JSON_PROPERTY_UUID)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setUuid(UUID uuid) {
- this.uuid = uuid;
- }
-
-
- public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) {
-
- this.dateTime = dateTime;
- return this;
- }
-
- /**
- * Get dateTime
- * @return dateTime
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_DATE_TIME)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public OffsetDateTime getDateTime() {
- return dateTime;
- }
-
-
- @JsonProperty(JSON_PROPERTY_DATE_TIME)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setDateTime(OffsetDateTime dateTime) {
- this.dateTime = dateTime;
- }
-
-
- public MixedPropertiesAndAdditionalPropertiesClass map(Map map) {
-
- this.map = map;
- return this;
- }
-
- public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal mapItem) {
- if (this.map == null) {
- this.map = new HashMap();
- }
- this.map.put(key, mapItem);
- return this;
- }
-
- /**
- * Get map
- * @return map
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_MAP)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public Map getMap() {
- return map;
- }
-
-
- @JsonProperty(JSON_PROPERTY_MAP)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setMap(Map map) {
- this.map = map;
- }
-
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- MixedPropertiesAndAdditionalPropertiesClass mixedPropertiesAndAdditionalPropertiesClass = (MixedPropertiesAndAdditionalPropertiesClass) o;
- return Objects.equals(this.uuid, mixedPropertiesAndAdditionalPropertiesClass.uuid) &&
- Objects.equals(this.dateTime, mixedPropertiesAndAdditionalPropertiesClass.dateTime) &&
- Objects.equals(this.map, mixedPropertiesAndAdditionalPropertiesClass.map);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(uuid, dateTime, map);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class MixedPropertiesAndAdditionalPropertiesClass {\n");
- sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n");
- sb.append(" dateTime: ").append(toIndentedString(dateTime)).append("\n");
- sb.append(" map: ").append(toIndentedString(map)).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(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
-}
-
diff --git a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/Model200Response.java
deleted file mode 100644
index 21c275adfb5..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/Model200Response.java
+++ /dev/null
@@ -1,139 +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.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonValue;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-
-/**
- * Model for testing model name starting with number
- */
-@ApiModel(description = "Model for testing model name starting with number")
-@JsonPropertyOrder({
- Model200Response.JSON_PROPERTY_NAME,
- Model200Response.JSON_PROPERTY_PROPERTY_CLASS
-})
-@JsonTypeName("200_response")
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
-public class Model200Response {
- public static final String JSON_PROPERTY_NAME = "name";
- private Integer name;
-
- public static final String JSON_PROPERTY_PROPERTY_CLASS = "class";
- private String propertyClass;
-
-
- public Model200Response name(Integer 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 Integer getName() {
- return name;
- }
-
-
- @JsonProperty(JSON_PROPERTY_NAME)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setName(Integer name) {
- this.name = name;
- }
-
-
- public Model200Response propertyClass(String propertyClass) {
-
- this.propertyClass = propertyClass;
- return this;
- }
-
- /**
- * Get propertyClass
- * @return propertyClass
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public String getPropertyClass() {
- return propertyClass;
- }
-
-
- @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setPropertyClass(String propertyClass) {
- this.propertyClass = propertyClass;
- }
-
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- Model200Response _200response = (Model200Response) o;
- return Objects.equals(this.name, _200response.name) &&
- Objects.equals(this.propertyClass, _200response.propertyClass);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(name, propertyClass);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class Model200Response {\n");
- sb.append(" name: ").append(toIndentedString(name)).append("\n");
- sb.append(" propertyClass: ").append(toIndentedString(propertyClass)).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(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
-}
-
diff --git a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/ModelApiResponse.java
deleted file mode 100644
index 38002222241..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/ModelApiResponse.java
+++ /dev/null
@@ -1,171 +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.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonValue;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-
-/**
- * ModelApiResponse
- */
-@JsonPropertyOrder({
- ModelApiResponse.JSON_PROPERTY_CODE,
- ModelApiResponse.JSON_PROPERTY_TYPE,
- ModelApiResponse.JSON_PROPERTY_MESSAGE
-})
-@JsonTypeName("ApiResponse")
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
-public class ModelApiResponse {
- public static final String JSON_PROPERTY_CODE = "code";
- private Integer code;
-
- public static final String JSON_PROPERTY_TYPE = "type";
- private String type;
-
- public static final String JSON_PROPERTY_MESSAGE = "message";
- private String message;
-
-
- public ModelApiResponse code(Integer code) {
-
- this.code = code;
- return this;
- }
-
- /**
- * Get code
- * @return code
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_CODE)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public Integer getCode() {
- return code;
- }
-
-
- @JsonProperty(JSON_PROPERTY_CODE)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setCode(Integer code) {
- this.code = code;
- }
-
-
- public ModelApiResponse type(String type) {
-
- this.type = type;
- return this;
- }
-
- /**
- * Get type
- * @return type
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_TYPE)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public String getType() {
- return type;
- }
-
-
- @JsonProperty(JSON_PROPERTY_TYPE)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setType(String type) {
- this.type = type;
- }
-
-
- public ModelApiResponse message(String message) {
-
- this.message = message;
- return this;
- }
-
- /**
- * Get message
- * @return message
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_MESSAGE)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public String getMessage() {
- return message;
- }
-
-
- @JsonProperty(JSON_PROPERTY_MESSAGE)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setMessage(String message) {
- this.message = message;
- }
-
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- ModelApiResponse _apiResponse = (ModelApiResponse) o;
- return Objects.equals(this.code, _apiResponse.code) &&
- Objects.equals(this.type, _apiResponse.type) &&
- Objects.equals(this.message, _apiResponse.message);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(code, type, message);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class ModelApiResponse {\n");
- sb.append(" code: ").append(toIndentedString(code)).append("\n");
- sb.append(" type: ").append(toIndentedString(type)).append("\n");
- sb.append(" message: ").append(toIndentedString(message)).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(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
-}
-
diff --git a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/ModelReturn.java
deleted file mode 100644
index 42f2d7dbdd5..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/ModelReturn.java
+++ /dev/null
@@ -1,106 +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.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonValue;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-
-/**
- * Model for testing reserved words
- */
-@ApiModel(description = "Model for testing reserved words")
-@JsonPropertyOrder({
- ModelReturn.JSON_PROPERTY_RETURN
-})
-@JsonTypeName("Return")
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
-public class ModelReturn {
- public static final String JSON_PROPERTY_RETURN = "return";
- private Integer _return;
-
-
- public ModelReturn _return(Integer _return) {
-
- this._return = _return;
- return this;
- }
-
- /**
- * Get _return
- * @return _return
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_RETURN)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public Integer getReturn() {
- return _return;
- }
-
-
- @JsonProperty(JSON_PROPERTY_RETURN)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setReturn(Integer _return) {
- this._return = _return;
- }
-
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- ModelReturn _return = (ModelReturn) o;
- return Objects.equals(this._return, _return._return);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(_return);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class ModelReturn {\n");
- sb.append(" _return: ").append(toIndentedString(_return)).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(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
-}
-
diff --git a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/Name.java
deleted file mode 100644
index 9cbe59380fc..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/Name.java
+++ /dev/null
@@ -1,182 +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.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonValue;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-
-/**
- * Model for testing model name same as property name
- */
-@ApiModel(description = "Model for testing model name same as property name")
-@JsonPropertyOrder({
- Name.JSON_PROPERTY_NAME,
- Name.JSON_PROPERTY_SNAKE_CASE,
- Name.JSON_PROPERTY_PROPERTY,
- Name.JSON_PROPERTY_123NUMBER
-})
-@JsonTypeName("Name")
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
-public class Name {
- public static final String JSON_PROPERTY_NAME = "name";
- private Integer name;
-
- public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case";
- private Integer snakeCase;
-
- public static final String JSON_PROPERTY_PROPERTY = "property";
- private String property;
-
- public static final String JSON_PROPERTY_123NUMBER = "123Number";
- private Integer _123number;
-
-
- public Name name(Integer name) {
-
- this.name = name;
- return this;
- }
-
- /**
- * Get name
- * @return name
- **/
- @ApiModelProperty(required = true, value = "")
- @JsonProperty(JSON_PROPERTY_NAME)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
-
- public Integer getName() {
- return name;
- }
-
-
- @JsonProperty(JSON_PROPERTY_NAME)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public void setName(Integer name) {
- this.name = name;
- }
-
-
- /**
- * Get snakeCase
- * @return snakeCase
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_SNAKE_CASE)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public Integer getSnakeCase() {
- return snakeCase;
- }
-
-
-
-
- public Name property(String property) {
-
- this.property = property;
- return this;
- }
-
- /**
- * Get property
- * @return property
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_PROPERTY)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public String getProperty() {
- return property;
- }
-
-
- @JsonProperty(JSON_PROPERTY_PROPERTY)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setProperty(String property) {
- this.property = property;
- }
-
-
- /**
- * Get _123number
- * @return _123number
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_123NUMBER)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public Integer get123number() {
- return _123number;
- }
-
-
-
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- Name name = (Name) o;
- return Objects.equals(this.name, name.name) &&
- Objects.equals(this.snakeCase, name.snakeCase) &&
- Objects.equals(this.property, name.property) &&
- Objects.equals(this._123number, name._123number);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(name, snakeCase, property, _123number);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class Name {\n");
- sb.append(" name: ").append(toIndentedString(name)).append("\n");
- sb.append(" snakeCase: ").append(toIndentedString(snakeCase)).append("\n");
- sb.append(" property: ").append(toIndentedString(property)).append("\n");
- sb.append(" _123number: ").append(toIndentedString(_123number)).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(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
-}
-
diff --git a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/NumberOnly.java
deleted file mode 100644
index 872c450ee84..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/NumberOnly.java
+++ /dev/null
@@ -1,106 +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.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonValue;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import java.math.BigDecimal;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-
-/**
- * NumberOnly
- */
-@JsonPropertyOrder({
- NumberOnly.JSON_PROPERTY_JUST_NUMBER
-})
-@JsonTypeName("NumberOnly")
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
-public class NumberOnly {
- public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber";
- private BigDecimal justNumber;
-
-
- public NumberOnly justNumber(BigDecimal justNumber) {
-
- this.justNumber = justNumber;
- return this;
- }
-
- /**
- * Get justNumber
- * @return justNumber
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_JUST_NUMBER)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public BigDecimal getJustNumber() {
- return justNumber;
- }
-
-
- @JsonProperty(JSON_PROPERTY_JUST_NUMBER)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setJustNumber(BigDecimal justNumber) {
- this.justNumber = justNumber;
- }
-
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- NumberOnly numberOnly = (NumberOnly) o;
- return Objects.equals(this.justNumber, numberOnly.justNumber);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(justNumber);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class NumberOnly {\n");
- sb.append(" justNumber: ").append(toIndentedString(justNumber)).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(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
-}
-
diff --git a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/Order.java
deleted file mode 100644
index 8fdfff301c9..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/Order.java
+++ /dev/null
@@ -1,308 +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.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonValue;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import org.threeten.bp.OffsetDateTime;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-
-/**
- * Order
- */
-@JsonPropertyOrder({
- Order.JSON_PROPERTY_ID,
- Order.JSON_PROPERTY_PET_ID,
- Order.JSON_PROPERTY_QUANTITY,
- Order.JSON_PROPERTY_SHIP_DATE,
- Order.JSON_PROPERTY_STATUS,
- Order.JSON_PROPERTY_COMPLETE
-})
-@JsonTypeName("Order")
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
-public class Order {
- public static final String JSON_PROPERTY_ID = "id";
- private Long id;
-
- public static final String JSON_PROPERTY_PET_ID = "petId";
- private Long petId;
-
- public static final String JSON_PROPERTY_QUANTITY = "quantity";
- private Integer quantity;
-
- public static final String JSON_PROPERTY_SHIP_DATE = "shipDate";
- private OffsetDateTime shipDate;
-
- /**
- * Order Status
- */
- public enum StatusEnum {
- PLACED("placed"),
-
- APPROVED("approved"),
-
- DELIVERED("delivered");
-
- private String value;
-
- StatusEnum(String value) {
- this.value = value;
- }
-
- @JsonValue
- public String getValue() {
- return value;
- }
-
- @Override
- public String toString() {
- return String.valueOf(value);
- }
-
- @JsonCreator
- public static StatusEnum fromValue(String value) {
- for (StatusEnum b : StatusEnum.values()) {
- if (b.value.equals(value)) {
- return b;
- }
- }
- throw new IllegalArgumentException("Unexpected value '" + value + "'");
- }
- }
-
- public static final String JSON_PROPERTY_STATUS = "status";
- private StatusEnum status;
-
- public static final String JSON_PROPERTY_COMPLETE = "complete";
- private Boolean complete = false;
-
-
- public Order id(Long id) {
-
- this.id = id;
- return this;
- }
-
- /**
- * Get id
- * @return id
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_ID)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public Long getId() {
- return id;
- }
-
-
- @JsonProperty(JSON_PROPERTY_ID)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setId(Long id) {
- this.id = id;
- }
-
-
- public Order petId(Long petId) {
-
- this.petId = petId;
- return this;
- }
-
- /**
- * Get petId
- * @return petId
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_PET_ID)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public Long getPetId() {
- return petId;
- }
-
-
- @JsonProperty(JSON_PROPERTY_PET_ID)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setPetId(Long petId) {
- this.petId = petId;
- }
-
-
- public Order quantity(Integer quantity) {
-
- this.quantity = quantity;
- return this;
- }
-
- /**
- * Get quantity
- * @return quantity
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_QUANTITY)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public Integer getQuantity() {
- return quantity;
- }
-
-
- @JsonProperty(JSON_PROPERTY_QUANTITY)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setQuantity(Integer quantity) {
- this.quantity = quantity;
- }
-
-
- public Order shipDate(OffsetDateTime shipDate) {
-
- this.shipDate = shipDate;
- return this;
- }
-
- /**
- * Get shipDate
- * @return shipDate
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_SHIP_DATE)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public OffsetDateTime getShipDate() {
- return shipDate;
- }
-
-
- @JsonProperty(JSON_PROPERTY_SHIP_DATE)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setShipDate(OffsetDateTime shipDate) {
- this.shipDate = shipDate;
- }
-
-
- public Order status(StatusEnum status) {
-
- this.status = status;
- return this;
- }
-
- /**
- * Order Status
- * @return status
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "Order Status")
- @JsonProperty(JSON_PROPERTY_STATUS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public StatusEnum getStatus() {
- return status;
- }
-
-
- @JsonProperty(JSON_PROPERTY_STATUS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setStatus(StatusEnum status) {
- this.status = status;
- }
-
-
- public Order complete(Boolean complete) {
-
- this.complete = complete;
- return this;
- }
-
- /**
- * Get complete
- * @return complete
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_COMPLETE)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public Boolean isComplete() {
- return complete;
- }
-
-
- @JsonProperty(JSON_PROPERTY_COMPLETE)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setComplete(Boolean complete) {
- this.complete = complete;
- }
-
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- Order order = (Order) o;
- return Objects.equals(this.id, order.id) &&
- Objects.equals(this.petId, order.petId) &&
- Objects.equals(this.quantity, order.quantity) &&
- Objects.equals(this.shipDate, order.shipDate) &&
- Objects.equals(this.status, order.status) &&
- Objects.equals(this.complete, order.complete);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(id, petId, quantity, shipDate, status, complete);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class Order {\n");
- sb.append(" id: ").append(toIndentedString(id)).append("\n");
- sb.append(" petId: ").append(toIndentedString(petId)).append("\n");
- sb.append(" quantity: ").append(toIndentedString(quantity)).append("\n");
- sb.append(" shipDate: ").append(toIndentedString(shipDate)).append("\n");
- sb.append(" status: ").append(toIndentedString(status)).append("\n");
- sb.append(" complete: ").append(toIndentedString(complete)).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(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
-}
-
diff --git a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/OuterComposite.java
deleted file mode 100644
index a3990c26ebe..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/OuterComposite.java
+++ /dev/null
@@ -1,172 +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.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonValue;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import java.math.BigDecimal;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-
-/**
- * OuterComposite
- */
-@JsonPropertyOrder({
- OuterComposite.JSON_PROPERTY_MY_NUMBER,
- OuterComposite.JSON_PROPERTY_MY_STRING,
- OuterComposite.JSON_PROPERTY_MY_BOOLEAN
-})
-@JsonTypeName("OuterComposite")
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
-public class OuterComposite {
- public static final String JSON_PROPERTY_MY_NUMBER = "my_number";
- private BigDecimal myNumber;
-
- public static final String JSON_PROPERTY_MY_STRING = "my_string";
- private String myString;
-
- public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean";
- private Boolean myBoolean;
-
-
- public OuterComposite myNumber(BigDecimal myNumber) {
-
- this.myNumber = myNumber;
- return this;
- }
-
- /**
- * Get myNumber
- * @return myNumber
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_MY_NUMBER)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public BigDecimal getMyNumber() {
- return myNumber;
- }
-
-
- @JsonProperty(JSON_PROPERTY_MY_NUMBER)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setMyNumber(BigDecimal myNumber) {
- this.myNumber = myNumber;
- }
-
-
- public OuterComposite myString(String myString) {
-
- this.myString = myString;
- return this;
- }
-
- /**
- * Get myString
- * @return myString
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_MY_STRING)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public String getMyString() {
- return myString;
- }
-
-
- @JsonProperty(JSON_PROPERTY_MY_STRING)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setMyString(String myString) {
- this.myString = myString;
- }
-
-
- public OuterComposite myBoolean(Boolean myBoolean) {
-
- this.myBoolean = myBoolean;
- return this;
- }
-
- /**
- * Get myBoolean
- * @return myBoolean
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_MY_BOOLEAN)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public Boolean isMyBoolean() {
- return myBoolean;
- }
-
-
- @JsonProperty(JSON_PROPERTY_MY_BOOLEAN)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setMyBoolean(Boolean myBoolean) {
- this.myBoolean = myBoolean;
- }
-
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- OuterComposite outerComposite = (OuterComposite) o;
- return Objects.equals(this.myNumber, outerComposite.myNumber) &&
- Objects.equals(this.myString, outerComposite.myString) &&
- Objects.equals(this.myBoolean, outerComposite.myBoolean);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(myNumber, myString, myBoolean);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class OuterComposite {\n");
- sb.append(" myNumber: ").append(toIndentedString(myNumber)).append("\n");
- sb.append(" myString: ").append(toIndentedString(myString)).append("\n");
- sb.append(" myBoolean: ").append(toIndentedString(myBoolean)).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(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
-}
-
diff --git a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/OuterEnum.java b/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/OuterEnum.java
deleted file mode 100644
index d0c0bc3c9d2..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/OuterEnum.java
+++ /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.model;
-
-import java.util.Objects;
-import java.util.Arrays;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonValue;
-
-/**
- * Gets or Sets OuterEnum
- */
-public enum OuterEnum {
-
- PLACED("placed"),
-
- APPROVED("approved"),
-
- DELIVERED("delivered");
-
- private String value;
-
- OuterEnum(String value) {
- this.value = value;
- }
-
- @JsonValue
- public String getValue() {
- return value;
- }
-
- @Override
- public String toString() {
- return String.valueOf(value);
- }
-
- @JsonCreator
- public static OuterEnum fromValue(String value) {
- for (OuterEnum b : OuterEnum.values()) {
- if (b.value.equals(value)) {
- return b;
- }
- }
- return null;
- }
-}
-
diff --git a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/Pet.java
deleted file mode 100644
index 3b5363bdd40..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/Pet.java
+++ /dev/null
@@ -1,324 +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.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonValue;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import java.util.ArrayList;
-import java.util.LinkedHashSet;
-import java.util.List;
-import java.util.Set;
-import org.openapitools.client.model.Category;
-import org.openapitools.client.model.Tag;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-
-/**
- * Pet
- */
-@JsonPropertyOrder({
- Pet.JSON_PROPERTY_ID,
- Pet.JSON_PROPERTY_CATEGORY,
- Pet.JSON_PROPERTY_NAME,
- Pet.JSON_PROPERTY_PHOTO_URLS,
- Pet.JSON_PROPERTY_TAGS,
- Pet.JSON_PROPERTY_STATUS
-})
-@JsonTypeName("Pet")
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
-public class Pet {
- public static final String JSON_PROPERTY_ID = "id";
- private Long id;
-
- public static final String JSON_PROPERTY_CATEGORY = "category";
- private Category category;
-
- public static final String JSON_PROPERTY_NAME = "name";
- private String name;
-
- public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls";
- private Set photoUrls = new LinkedHashSet();
-
- public static final String JSON_PROPERTY_TAGS = "tags";
- private List tags = null;
-
- /**
- * pet status in the store
- */
- public enum StatusEnum {
- AVAILABLE("available"),
-
- PENDING("pending"),
-
- SOLD("sold");
-
- private String value;
-
- StatusEnum(String value) {
- this.value = value;
- }
-
- @JsonValue
- public String getValue() {
- return value;
- }
-
- @Override
- public String toString() {
- return String.valueOf(value);
- }
-
- @JsonCreator
- public static StatusEnum fromValue(String value) {
- for (StatusEnum b : StatusEnum.values()) {
- if (b.value.equals(value)) {
- return b;
- }
- }
- throw new IllegalArgumentException("Unexpected value '" + value + "'");
- }
- }
-
- public static final String JSON_PROPERTY_STATUS = "status";
- private StatusEnum status;
-
-
- public Pet id(Long id) {
-
- this.id = id;
- return this;
- }
-
- /**
- * Get id
- * @return id
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_ID)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public Long getId() {
- return id;
- }
-
-
- @JsonProperty(JSON_PROPERTY_ID)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setId(Long id) {
- this.id = id;
- }
-
-
- public Pet category(Category category) {
-
- this.category = category;
- return this;
- }
-
- /**
- * Get category
- * @return category
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_CATEGORY)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public Category getCategory() {
- return category;
- }
-
-
- @JsonProperty(JSON_PROPERTY_CATEGORY)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setCategory(Category category) {
- this.category = category;
- }
-
-
- public Pet name(String name) {
-
- this.name = name;
- return this;
- }
-
- /**
- * Get name
- * @return name
- **/
- @ApiModelProperty(example = "doggie", required = true, value = "")
- @JsonProperty(JSON_PROPERTY_NAME)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
-
- public String getName() {
- return name;
- }
-
-
- @JsonProperty(JSON_PROPERTY_NAME)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public void setName(String name) {
- this.name = name;
- }
-
-
- public Pet photoUrls(Set photoUrls) {
-
- this.photoUrls = photoUrls;
- return this;
- }
-
- public Pet addPhotoUrlsItem(String photoUrlsItem) {
- this.photoUrls.add(photoUrlsItem);
- return this;
- }
-
- /**
- * Get photoUrls
- * @return photoUrls
- **/
- @ApiModelProperty(required = true, value = "")
- @JsonProperty(JSON_PROPERTY_PHOTO_URLS)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
-
- public Set getPhotoUrls() {
- return photoUrls;
- }
-
-
- @JsonProperty(JSON_PROPERTY_PHOTO_URLS)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public void setPhotoUrls(Set photoUrls) {
- this.photoUrls = photoUrls;
- }
-
-
- public Pet tags(List tags) {
-
- this.tags = tags;
- return this;
- }
-
- public Pet addTagsItem(Tag tagsItem) {
- if (this.tags == null) {
- this.tags = new ArrayList();
- }
- this.tags.add(tagsItem);
- return this;
- }
-
- /**
- * Get tags
- * @return tags
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_TAGS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public List getTags() {
- return tags;
- }
-
-
- @JsonProperty(JSON_PROPERTY_TAGS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setTags(List tags) {
- this.tags = tags;
- }
-
-
- public Pet status(StatusEnum status) {
-
- this.status = status;
- return this;
- }
-
- /**
- * pet status in the store
- * @return status
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "pet status in the store")
- @JsonProperty(JSON_PROPERTY_STATUS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public StatusEnum getStatus() {
- return status;
- }
-
-
- @JsonProperty(JSON_PROPERTY_STATUS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setStatus(StatusEnum status) {
- this.status = status;
- }
-
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- Pet pet = (Pet) o;
- return Objects.equals(this.id, pet.id) &&
- Objects.equals(this.category, pet.category) &&
- Objects.equals(this.name, pet.name) &&
- Objects.equals(this.photoUrls, pet.photoUrls) &&
- Objects.equals(this.tags, pet.tags) &&
- Objects.equals(this.status, pet.status);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(id, category, name, photoUrls, tags, status);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class Pet {\n");
- sb.append(" id: ").append(toIndentedString(id)).append("\n");
- sb.append(" category: ").append(toIndentedString(category)).append("\n");
- sb.append(" name: ").append(toIndentedString(name)).append("\n");
- sb.append(" photoUrls: ").append(toIndentedString(photoUrls)).append("\n");
- sb.append(" tags: ").append(toIndentedString(tags)).append("\n");
- sb.append(" status: ").append(toIndentedString(status)).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(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
-}
-
diff --git a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java
deleted file mode 100644
index 64586deb1b2..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java
+++ /dev/null
@@ -1,127 +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.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonValue;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-
-/**
- * ReadOnlyFirst
- */
-@JsonPropertyOrder({
- ReadOnlyFirst.JSON_PROPERTY_BAR,
- ReadOnlyFirst.JSON_PROPERTY_BAZ
-})
-@JsonTypeName("ReadOnlyFirst")
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
-public class ReadOnlyFirst {
- public static final String JSON_PROPERTY_BAR = "bar";
- private String bar;
-
- public static final String JSON_PROPERTY_BAZ = "baz";
- private String baz;
-
-
- /**
- * Get bar
- * @return bar
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_BAR)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public String getBar() {
- return bar;
- }
-
-
-
-
- public ReadOnlyFirst baz(String baz) {
-
- this.baz = baz;
- return this;
- }
-
- /**
- * Get baz
- * @return baz
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_BAZ)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public String getBaz() {
- return baz;
- }
-
-
- @JsonProperty(JSON_PROPERTY_BAZ)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setBaz(String baz) {
- this.baz = baz;
- }
-
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- ReadOnlyFirst readOnlyFirst = (ReadOnlyFirst) o;
- return Objects.equals(this.bar, readOnlyFirst.bar) &&
- Objects.equals(this.baz, readOnlyFirst.baz);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(bar, baz);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class ReadOnlyFirst {\n");
- sb.append(" bar: ").append(toIndentedString(bar)).append("\n");
- sb.append(" baz: ").append(toIndentedString(baz)).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(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
-}
-
diff --git a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/SpecialModelName.java
deleted file mode 100644
index 6af38304715..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/SpecialModelName.java
+++ /dev/null
@@ -1,105 +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.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonValue;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-
-/**
- * SpecialModelName
- */
-@JsonPropertyOrder({
- SpecialModelName.JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME
-})
-@JsonTypeName("_special_model.name_")
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
-public class SpecialModelName {
- public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]";
- private Long $specialPropertyName;
-
-
- public SpecialModelName $specialPropertyName(Long $specialPropertyName) {
-
- this.$specialPropertyName = $specialPropertyName;
- return this;
- }
-
- /**
- * Get $specialPropertyName
- * @return $specialPropertyName
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public Long get$SpecialPropertyName() {
- return $specialPropertyName;
- }
-
-
- @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void set$SpecialPropertyName(Long $specialPropertyName) {
- this.$specialPropertyName = $specialPropertyName;
- }
-
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- SpecialModelName specialModelName = (SpecialModelName) o;
- return Objects.equals(this.$specialPropertyName, specialModelName.$specialPropertyName);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash($specialPropertyName);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class SpecialModelName {\n");
- sb.append(" $specialPropertyName: ").append(toIndentedString($specialPropertyName)).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(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
-}
-
diff --git a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/Tag.java
deleted file mode 100644
index 33acaca34d3..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/Tag.java
+++ /dev/null
@@ -1,138 +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.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonValue;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-
-/**
- * Tag
- */
-@JsonPropertyOrder({
- Tag.JSON_PROPERTY_ID,
- Tag.JSON_PROPERTY_NAME
-})
-@JsonTypeName("Tag")
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
-public class Tag {
- public static final String JSON_PROPERTY_ID = "id";
- private Long id;
-
- public static final String JSON_PROPERTY_NAME = "name";
- private String name;
-
-
- public Tag id(Long id) {
-
- this.id = id;
- return this;
- }
-
- /**
- * Get id
- * @return id
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_ID)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public Long getId() {
- return id;
- }
-
-
- @JsonProperty(JSON_PROPERTY_ID)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setId(Long id) {
- this.id = id;
- }
-
-
- public Tag 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;
- }
-
-
- @JsonProperty(JSON_PROPERTY_NAME)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setName(String name) {
- this.name = name;
- }
-
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- Tag tag = (Tag) o;
- return Objects.equals(this.id, tag.id) &&
- Objects.equals(this.name, tag.name);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(id, name);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class Tag {\n");
- sb.append(" id: ").append(toIndentedString(id)).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(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
-}
-
diff --git a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/User.java
deleted file mode 100644
index 337d1993067..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/model/User.java
+++ /dev/null
@@ -1,336 +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.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonValue;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-
-/**
- * User
- */
-@JsonPropertyOrder({
- User.JSON_PROPERTY_ID,
- User.JSON_PROPERTY_USERNAME,
- User.JSON_PROPERTY_FIRST_NAME,
- User.JSON_PROPERTY_LAST_NAME,
- User.JSON_PROPERTY_EMAIL,
- User.JSON_PROPERTY_PASSWORD,
- User.JSON_PROPERTY_PHONE,
- User.JSON_PROPERTY_USER_STATUS
-})
-@JsonTypeName("User")
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
-public class User {
- public static final String JSON_PROPERTY_ID = "id";
- private Long id;
-
- public static final String JSON_PROPERTY_USERNAME = "username";
- private String username;
-
- public static final String JSON_PROPERTY_FIRST_NAME = "firstName";
- private String firstName;
-
- public static final String JSON_PROPERTY_LAST_NAME = "lastName";
- private String lastName;
-
- public static final String JSON_PROPERTY_EMAIL = "email";
- private String email;
-
- public static final String JSON_PROPERTY_PASSWORD = "password";
- private String password;
-
- public static final String JSON_PROPERTY_PHONE = "phone";
- private String phone;
-
- public static final String JSON_PROPERTY_USER_STATUS = "userStatus";
- private Integer userStatus;
-
-
- public User id(Long id) {
-
- this.id = id;
- return this;
- }
-
- /**
- * Get id
- * @return id
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_ID)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public Long getId() {
- return id;
- }
-
-
- @JsonProperty(JSON_PROPERTY_ID)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setId(Long id) {
- this.id = id;
- }
-
-
- public User username(String username) {
-
- this.username = username;
- return this;
- }
-
- /**
- * Get username
- * @return username
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_USERNAME)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public String getUsername() {
- return username;
- }
-
-
- @JsonProperty(JSON_PROPERTY_USERNAME)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setUsername(String username) {
- this.username = username;
- }
-
-
- public User firstName(String firstName) {
-
- this.firstName = firstName;
- return this;
- }
-
- /**
- * Get firstName
- * @return firstName
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_FIRST_NAME)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public String getFirstName() {
- return firstName;
- }
-
-
- @JsonProperty(JSON_PROPERTY_FIRST_NAME)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setFirstName(String firstName) {
- this.firstName = firstName;
- }
-
-
- public User lastName(String lastName) {
-
- this.lastName = lastName;
- return this;
- }
-
- /**
- * Get lastName
- * @return lastName
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_LAST_NAME)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public String getLastName() {
- return lastName;
- }
-
-
- @JsonProperty(JSON_PROPERTY_LAST_NAME)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setLastName(String lastName) {
- this.lastName = lastName;
- }
-
-
- public User email(String email) {
-
- this.email = email;
- return this;
- }
-
- /**
- * Get email
- * @return email
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_EMAIL)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public String getEmail() {
- return email;
- }
-
-
- @JsonProperty(JSON_PROPERTY_EMAIL)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setEmail(String email) {
- this.email = email;
- }
-
-
- public User password(String password) {
-
- this.password = password;
- return this;
- }
-
- /**
- * Get password
- * @return password
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_PASSWORD)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public String getPassword() {
- return password;
- }
-
-
- @JsonProperty(JSON_PROPERTY_PASSWORD)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setPassword(String password) {
- this.password = password;
- }
-
-
- public User phone(String phone) {
-
- this.phone = phone;
- return this;
- }
-
- /**
- * Get phone
- * @return phone
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_PHONE)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public String getPhone() {
- return phone;
- }
-
-
- @JsonProperty(JSON_PROPERTY_PHONE)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setPhone(String phone) {
- this.phone = phone;
- }
-
-
- public User userStatus(Integer userStatus) {
-
- this.userStatus = userStatus;
- return this;
- }
-
- /**
- * User Status
- * @return userStatus
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "User Status")
- @JsonProperty(JSON_PROPERTY_USER_STATUS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public Integer getUserStatus() {
- return userStatus;
- }
-
-
- @JsonProperty(JSON_PROPERTY_USER_STATUS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setUserStatus(Integer userStatus) {
- this.userStatus = userStatus;
- }
-
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- User user = (User) o;
- return Objects.equals(this.id, user.id) &&
- Objects.equals(this.username, user.username) &&
- Objects.equals(this.firstName, user.firstName) &&
- Objects.equals(this.lastName, user.lastName) &&
- Objects.equals(this.email, user.email) &&
- Objects.equals(this.password, user.password) &&
- Objects.equals(this.phone, user.phone) &&
- Objects.equals(this.userStatus, user.userStatus);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(id, username, firstName, lastName, email, password, phone, userStatus);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class User {\n");
- sb.append(" id: ").append(toIndentedString(id)).append("\n");
- sb.append(" username: ").append(toIndentedString(username)).append("\n");
- sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n");
- sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n");
- sb.append(" email: ").append(toIndentedString(email)).append("\n");
- sb.append(" password: ").append(toIndentedString(password)).append("\n");
- sb.append(" phone: ").append(toIndentedString(phone)).append("\n");
- sb.append(" userStatus: ").append(toIndentedString(userStatus)).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(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
-}
-
diff --git a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java b/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java
deleted file mode 100644
index b45602438ef..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java
+++ /dev/null
@@ -1,40 +0,0 @@
-package org.openapitools.client.api;
-
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.model.Client;
-import org.junit.jupiter.api.Test;
-import org.junit.jupiter.api.BeforeEach;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-/**
- * API tests for AnotherFakeApi
- */
-class AnotherFakeApiTest {
-
- private AnotherFakeApi api;
-
- @BeforeEach
- public void setup() {
- api = new ApiClient().buildClient(AnotherFakeApi.class);
- }
-
-
- /**
- * To test special tags
- *
- * To test special tags and operation ID starting with number
- */
- @Test
- void call123testSpecialTagsTest() {
- Client client = null;
- // Client response = api.call123testSpecialTags(client);
-
- // TODO: test validations
- }
-
-
-}
diff --git a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/api/FakeApiTest.java b/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/api/FakeApiTest.java
deleted file mode 100644
index 001ad61cc17..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/api/FakeApiTest.java
+++ /dev/null
@@ -1,391 +0,0 @@
-package org.openapitools.client.api;
-
-import org.openapitools.client.ApiClient;
-import java.math.BigDecimal;
-import org.openapitools.client.model.Client;
-import java.io.File;
-import org.openapitools.client.model.FileSchemaTestClass;
-import org.openapitools.client.model.HealthCheckResult;
-import org.threeten.bp.LocalDate;
-import org.threeten.bp.OffsetDateTime;
-import org.openapitools.client.model.OuterComposite;
-import org.openapitools.client.model.OuterObjectWithEnumProperty;
-import org.openapitools.client.model.Pet;
-import org.openapitools.client.model.User;
-import org.junit.jupiter.api.Test;
-import org.junit.jupiter.api.BeforeEach;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-/**
- * API tests for FakeApi
- */
-class FakeApiTest {
-
- private FakeApi api;
-
- @BeforeEach
- public void setup() {
- api = new ApiClient().buildClient(FakeApi.class);
- }
-
-
- /**
- * Health check endpoint
- *
- *
- */
- @Test
- void fakeHealthGetTest() {
- // HealthCheckResult response = api.fakeHealthGet();
-
- // TODO: test validations
- }
-
-
- /**
- * test http signature authentication
- *
- *
- */
- @Test
- void fakeHttpSignatureTestTest() {
- Pet pet = null;
- String query1 = null;
- String header1 = null;
- // api.fakeHttpSignatureTest(pet, query1, header1);
-
- // TODO: test validations
- }
-
- /**
- * test http signature authentication
- *
- *
- *
- * This tests the overload of the method that uses a Map for query parameters instead of
- * listing them out individually.
- */
- @Test
- void fakeHttpSignatureTestTestQueryMap() {
- Pet pet = null;
- String header1 = null;
- FakeApi.FakeHttpSignatureTestQueryParams queryParams = new FakeApi.FakeHttpSignatureTestQueryParams()
- .query1(null);
- // api.fakeHttpSignatureTest(pet, header1, queryParams);
-
- // TODO: test validations
- }
-
- /**
- *
- *
- * Test serialization of outer boolean types
- */
- @Test
- void fakeOuterBooleanSerializeTest() {
- Boolean body = null;
- // Boolean response = api.fakeOuterBooleanSerialize(body);
-
- // TODO: test validations
- }
-
-
- /**
- *
- *
- * Test serialization of object with outer number type
- */
- @Test
- void fakeOuterCompositeSerializeTest() {
- OuterComposite outerComposite = null;
- // OuterComposite response = api.fakeOuterCompositeSerialize(outerComposite);
-
- // TODO: test validations
- }
-
-
- /**
- *
- *
- * Test serialization of outer number types
- */
- @Test
- void fakeOuterNumberSerializeTest() {
- BigDecimal body = null;
- // BigDecimal response = api.fakeOuterNumberSerialize(body);
-
- // TODO: test validations
- }
-
-
- /**
- *
- *
- * Test serialization of outer string types
- */
- @Test
- void fakeOuterStringSerializeTest() {
- String body = null;
- // String response = api.fakeOuterStringSerialize(body);
-
- // TODO: test validations
- }
-
-
- /**
- *
- *
- * Test serialization of enum (int) properties with examples
- */
- @Test
- void fakePropertyEnumIntegerSerializeTest() {
- OuterObjectWithEnumProperty outerObjectWithEnumProperty = null;
- // OuterObjectWithEnumProperty response = api.fakePropertyEnumIntegerSerialize(outerObjectWithEnumProperty);
-
- // TODO: test validations
- }
-
-
- /**
- *
- *
- * For this test, the body for this request much reference a schema named `File`.
- */
- @Test
- void testBodyWithFileSchemaTest() {
- FileSchemaTestClass fileSchemaTestClass = null;
- // api.testBodyWithFileSchema(fileSchemaTestClass);
-
- // TODO: test validations
- }
-
-
- /**
- *
- *
- *
- */
- @Test
- void testBodyWithQueryParamsTest() {
- String query = null;
- User user = null;
- // api.testBodyWithQueryParams(query, user);
-
- // TODO: test validations
- }
-
- /**
- *
- *
- *
- *
- * This tests the overload of the method that uses a Map for query parameters instead of
- * listing them out individually.
- */
- @Test
- void testBodyWithQueryParamsTestQueryMap() {
- User user = null;
- FakeApi.TestBodyWithQueryParamsQueryParams queryParams = new FakeApi.TestBodyWithQueryParamsQueryParams()
- .query(null);
- // api.testBodyWithQueryParams(user, queryParams);
-
- // TODO: test validations
- }
-
- /**
- * To test \"client\" model
- *
- * To test \"client\" model
- */
- @Test
- void testClientModelTest() {
- Client client = null;
- // Client response = api.testClientModel(client);
-
- // TODO: test validations
- }
-
-
- /**
- * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
- *
- * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
- */
- @Test
- void testEndpointParametersTest() {
- BigDecimal number = null;
- Double _double = null;
- String patternWithoutDelimiter = null;
- byte[] _byte = null;
- Integer integer = null;
- Integer int32 = null;
- Long int64 = null;
- Float _float = null;
- String string = null;
- File binary = null;
- LocalDate date = null;
- OffsetDateTime dateTime = null;
- String password = null;
- String paramCallback = null;
- // api.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback);
-
- // TODO: test validations
- }
-
-
- /**
- * To test enum parameters
- *
- * To test enum parameters
- */
- @Test
- void testEnumParametersTest() {
- List enumHeaderStringArray = null;
- String enumHeaderString = null;
- List enumQueryStringArray = null;
- String enumQueryString = null;
- Integer enumQueryInteger = null;
- Double enumQueryDouble = null;
- List enumFormStringArray = null;
- String enumFormString = null;
- // api.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString);
-
- // TODO: test validations
- }
-
- /**
- * To test enum parameters
- *
- * To test enum parameters
- *
- * This tests the overload of the method that uses a Map for query parameters instead of
- * listing them out individually.
- */
- @Test
- void testEnumParametersTestQueryMap() {
- List enumHeaderStringArray = null;
- String enumHeaderString = null;
- List enumFormStringArray = null;
- String enumFormString = null;
- FakeApi.TestEnumParametersQueryParams queryParams = new FakeApi.TestEnumParametersQueryParams()
- .enumQueryStringArray(null)
- .enumQueryString(null)
- .enumQueryInteger(null)
- .enumQueryDouble(null);
- // api.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumFormStringArray, enumFormString, queryParams);
-
- // TODO: test validations
- }
-
- /**
- * Fake endpoint to test group parameters (optional)
- *
- * Fake endpoint to test group parameters (optional)
- */
- @Test
- void testGroupParametersTest() {
- Integer requiredStringGroup = null;
- Boolean requiredBooleanGroup = null;
- Long requiredInt64Group = null;
- Integer stringGroup = null;
- Boolean booleanGroup = null;
- Long int64Group = null;
- // api.testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group);
-
- // TODO: test validations
- }
-
- /**
- * Fake endpoint to test group parameters (optional)
- *
- * Fake endpoint to test group parameters (optional)
- *
- * This tests the overload of the method that uses a Map for query parameters instead of
- * listing them out individually.
- */
- @Test
- void testGroupParametersTestQueryMap() {
- Boolean requiredBooleanGroup = null;
- Boolean booleanGroup = null;
- FakeApi.TestGroupParametersQueryParams queryParams = new FakeApi.TestGroupParametersQueryParams()
- .requiredStringGroup(null)
- .requiredInt64Group(null)
- .stringGroup(null)
- .int64Group(null);
- // api.testGroupParameters(requiredBooleanGroup, booleanGroup, queryParams);
-
- // TODO: test validations
- }
-
- /**
- * test inline additionalProperties
- *
- *
- */
- @Test
- void testInlineAdditionalPropertiesTest() {
- Map requestBody = null;
- // api.testInlineAdditionalProperties(requestBody);
-
- // TODO: test validations
- }
-
-
- /**
- * test json serialization of form data
- *
- *
- */
- @Test
- void testJsonFormDataTest() {
- String param = null;
- String param2 = null;
- // api.testJsonFormData(param, param2);
-
- // TODO: test validations
- }
-
-
- /**
- *
- *
- * To test the collection format in query parameters
- */
- @Test
- void testQueryParameterCollectionFormatTest() {
- List pipe = null;
- List ioutil = null;
- List http = null;
- List url = null;
- List context = null;
- // api.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context);
-
- // TODO: test validations
- }
-
- /**
- *
- *
- * To test the collection format in query parameters
- *
- * This tests the overload of the method that uses a Map for query parameters instead of
- * listing them out individually.
- */
- @Test
- void testQueryParameterCollectionFormatTestQueryMap() {
- FakeApi.TestQueryParameterCollectionFormatQueryParams queryParams = new FakeApi.TestQueryParameterCollectionFormatQueryParams()
- .pipe(null)
- .ioutil(null)
- .http(null)
- .url(null)
- .context(null);
- // api.testQueryParameterCollectionFormat(queryParams);
-
- // TODO: test validations
- }
-
-}
diff --git a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java b/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java
deleted file mode 100644
index ca8e2ba08f7..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java
+++ /dev/null
@@ -1,40 +0,0 @@
-package org.openapitools.client.api;
-
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.model.Client;
-import org.junit.jupiter.api.Test;
-import org.junit.jupiter.api.BeforeEach;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-/**
- * API tests for FakeClassnameTags123Api
- */
-class FakeClassnameTags123ApiTest {
-
- private FakeClassnameTags123Api api;
-
- @BeforeEach
- public void setup() {
- api = new ApiClient().buildClient(FakeClassnameTags123Api.class);
- }
-
-
- /**
- * To test class name in snake case
- *
- * To test class name in snake case
- */
- @Test
- void testClassnameTest() {
- Client client = null;
- // Client response = api.testClassname(client);
-
- // TODO: test validations
- }
-
-
-}
diff --git a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/api/PetApiTest.java b/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/api/PetApiTest.java
deleted file mode 100644
index 2e2258056a9..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/api/PetApiTest.java
+++ /dev/null
@@ -1,194 +0,0 @@
-package org.openapitools.client.api;
-
-import org.openapitools.client.ApiClient;
-import java.io.File;
-import org.openapitools.client.model.ModelApiResponse;
-import org.openapitools.client.model.Pet;
-import java.util.Set;
-import org.junit.jupiter.api.Test;
-import org.junit.jupiter.api.BeforeEach;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-/**
- * API tests for PetApi
- */
-class PetApiTest {
-
- private PetApi api;
-
- @BeforeEach
- public void setup() {
- api = new ApiClient().buildClient(PetApi.class);
- }
-
-
- /**
- * Add a new pet to the store
- *
- *
- */
- @Test
- void addPetTest() {
- Pet pet = null;
- // api.addPet(pet);
-
- // TODO: test validations
- }
-
-
- /**
- * Deletes a pet
- *
- *
- */
- @Test
- void deletePetTest() {
- Long petId = null;
- String apiKey = null;
- // api.deletePet(petId, apiKey);
-
- // TODO: test validations
- }
-
-
- /**
- * Finds Pets by status
- *
- * Multiple status values can be provided with comma separated strings
- */
- @Test
- void findPetsByStatusTest() {
- List status = null;
- // List response = api.findPetsByStatus(status);
-
- // TODO: test validations
- }
-
- /**
- * Finds Pets by status
- *
- * Multiple status values can be provided with comma separated strings
- *
- * This tests the overload of the method that uses a Map for query parameters instead of
- * listing them out individually.
- */
- @Test
- void findPetsByStatusTestQueryMap() {
- PetApi.FindPetsByStatusQueryParams queryParams = new PetApi.FindPetsByStatusQueryParams()
- .status(null);
- // List response = api.findPetsByStatus(queryParams);
-
- // TODO: test validations
- }
-
- /**
- * Finds Pets by tags
- *
- * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
- */
- @Test
- void findPetsByTagsTest() {
- Set tags = null;
- // Set response = api.findPetsByTags(tags);
-
- // TODO: test validations
- }
-
- /**
- * Finds Pets by tags
- *
- * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
- *
- * This tests the overload of the method that uses a Map for query parameters instead of
- * listing them out individually.
- */
- @Test
- void findPetsByTagsTestQueryMap() {
- PetApi.FindPetsByTagsQueryParams queryParams = new PetApi.FindPetsByTagsQueryParams()
- .tags(null);
- // Set response = api.findPetsByTags(queryParams);
-
- // TODO: test validations
- }
-
- /**
- * Find pet by ID
- *
- * Returns a single pet
- */
- @Test
- void getPetByIdTest() {
- Long petId = null;
- // Pet response = api.getPetById(petId);
-
- // TODO: test validations
- }
-
-
- /**
- * Update an existing pet
- *
- *
- */
- @Test
- void updatePetTest() {
- Pet pet = null;
- // api.updatePet(pet);
-
- // TODO: test validations
- }
-
-
- /**
- * Updates a pet in the store with form data
- *
- *
- */
- @Test
- void updatePetWithFormTest() {
- Long petId = null;
- String name = null;
- String status = null;
- // api.updatePetWithForm(petId, name, status);
-
- // TODO: test validations
- }
-
-
- /**
- * uploads an image
- *
- *
- */
- @Test
- void uploadFileTest() {
- Long petId = null;
- String additionalMetadata = null;
- File file = null;
- // ModelApiResponse response = api.uploadFile(petId, additionalMetadata, file);
-
- // TODO: test validations
- }
-
-
- /**
- * uploads an image (required)
- *
- *
- */
- @Test
- void uploadFileWithRequiredFileTest() {
- Long petId = null;
- File requiredFile = null;
- String additionalMetadata = null;
- // ModelApiResponse response = api.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata);
-
- // TODO: test validations
- }
-
-
-}
diff --git a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/api/StoreApiTest.java b/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/api/StoreApiTest.java
deleted file mode 100644
index b7fe8cb6a97..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/api/StoreApiTest.java
+++ /dev/null
@@ -1,81 +0,0 @@
-package org.openapitools.client.api;
-
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.model.Order;
-import org.junit.jupiter.api.Test;
-import org.junit.jupiter.api.BeforeEach;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-/**
- * API tests for StoreApi
- */
-class StoreApiTest {
-
- private StoreApi api;
-
- @BeforeEach
- public void setup() {
- api = new ApiClient().buildClient(StoreApi.class);
- }
-
-
- /**
- * Delete purchase order by ID
- *
- * For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
- */
- @Test
- void deleteOrderTest() {
- String orderId = null;
- // api.deleteOrder(orderId);
-
- // TODO: test validations
- }
-
-
- /**
- * Returns pet inventories by status
- *
- * Returns a map of status codes to quantities
- */
- @Test
- void getInventoryTest() {
- // Map response = api.getInventory();
-
- // TODO: test validations
- }
-
-
- /**
- * Find purchase order by ID
- *
- * For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
- */
- @Test
- void getOrderByIdTest() {
- Long orderId = null;
- // Order response = api.getOrderById(orderId);
-
- // TODO: test validations
- }
-
-
- /**
- * Place an order for a pet
- *
- *
- */
- @Test
- void placeOrderTest() {
- Order order = null;
- // Order response = api.placeOrder(order);
-
- // TODO: test validations
- }
-
-
-}
diff --git a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/api/UserApiTest.java b/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/api/UserApiTest.java
deleted file mode 100644
index ef4a557d150..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/api/UserApiTest.java
+++ /dev/null
@@ -1,156 +0,0 @@
-package org.openapitools.client.api;
-
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.model.User;
-import org.junit.jupiter.api.Test;
-import org.junit.jupiter.api.BeforeEach;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-/**
- * API tests for UserApi
- */
-class UserApiTest {
-
- private UserApi api;
-
- @BeforeEach
- public void setup() {
- api = new ApiClient().buildClient(UserApi.class);
- }
-
-
- /**
- * Create user
- *
- * This can only be done by the logged in user.
- */
- @Test
- void createUserTest() {
- User user = null;
- // api.createUser(user);
-
- // TODO: test validations
- }
-
-
- /**
- * Creates list of users with given input array
- *
- *
- */
- @Test
- void createUsersWithArrayInputTest() {
- List user = null;
- // api.createUsersWithArrayInput(user);
-
- // TODO: test validations
- }
-
-
- /**
- * Creates list of users with given input array
- *
- *
- */
- @Test
- void createUsersWithListInputTest() {
- List user = null;
- // api.createUsersWithListInput(user);
-
- // TODO: test validations
- }
-
-
- /**
- * Delete user
- *
- * This can only be done by the logged in user.
- */
- @Test
- void deleteUserTest() {
- String username = null;
- // api.deleteUser(username);
-
- // TODO: test validations
- }
-
-
- /**
- * Get user by user name
- *
- *
- */
- @Test
- void getUserByNameTest() {
- String username = null;
- // User response = api.getUserByName(username);
-
- // TODO: test validations
- }
-
-
- /**
- * Logs user into the system
- *
- *
- */
- @Test
- void loginUserTest() {
- String username = null;
- String password = null;
- // String response = api.loginUser(username, password);
-
- // TODO: test validations
- }
-
- /**
- * Logs user into the system
- *
- *
- *
- * This tests the overload of the method that uses a Map for query parameters instead of
- * listing them out individually.
- */
- @Test
- void loginUserTestQueryMap() {
- UserApi.LoginUserQueryParams queryParams = new UserApi.LoginUserQueryParams()
- .username(null)
- .password(null);
- // String response = api.loginUser(queryParams);
-
- // TODO: test validations
- }
-
- /**
- * Logs out current logged in user session
- *
- *
- */
- @Test
- void logoutUserTest() {
- // api.logoutUser();
-
- // TODO: test validations
- }
-
-
- /**
- * Updated user
- *
- * This can only be done by the logged in user.
- */
- @Test
- void updateUserTest() {
- String username = null;
- User user = null;
- // api.updateUser(username, user);
-
- // TODO: test validations
- }
-
-
-}
diff --git a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/AdditionalPropertiesClassTest.java b/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/AdditionalPropertiesClassTest.java
deleted file mode 100644
index 4bc5fc6cc43..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/AdditionalPropertiesClassTest.java
+++ /dev/null
@@ -1,59 +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 com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-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 org.junit.jupiter.api.Test;
-
-
-/**
- * Model tests for AdditionalPropertiesClass
- */
-class AdditionalPropertiesClassTest {
- private final AdditionalPropertiesClass model = new AdditionalPropertiesClass();
-
- /**
- * Model tests for AdditionalPropertiesClass
- */
- @Test
- void testAdditionalPropertiesClass() {
- // TODO: test AdditionalPropertiesClass
- }
-
- /**
- * Test the property 'mapProperty'
- */
- @Test
- void mapPropertyTest() {
- // TODO: test mapProperty
- }
-
- /**
- * Test the property 'mapOfMapProperty'
- */
- @Test
- void mapOfMapPropertyTest() {
- // TODO: test mapOfMapProperty
- }
-
-}
diff --git a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/AnimalTest.java b/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/AnimalTest.java
deleted file mode 100644
index 7e72145fe46..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/AnimalTest.java
+++ /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.model;
-
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonValue;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import org.openapitools.client.model.Cat;
-import org.openapitools.client.model.Dog;
-import org.junit.jupiter.api.Test;
-
-
-/**
- * Model tests for Animal
- */
-class AnimalTest {
- private final Animal model = new Animal();
-
- /**
- * Model tests for Animal
- */
- @Test
- void testAnimal() {
- // TODO: test Animal
- }
-
- /**
- * Test the property 'className'
- */
- @Test
- void classNameTest() {
- // TODO: test className
- }
-
- /**
- * Test the property 'color'
- */
- @Test
- void colorTest() {
- // TODO: test color
- }
-
-}
diff --git a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java b/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java
deleted file mode 100644
index e07106af8ff..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java
+++ /dev/null
@@ -1,51 +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 com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonValue;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import java.math.BigDecimal;
-import java.util.ArrayList;
-import java.util.List;
-import org.junit.jupiter.api.Test;
-
-
-/**
- * Model tests for ArrayOfArrayOfNumberOnly
- */
-class ArrayOfArrayOfNumberOnlyTest {
- private final ArrayOfArrayOfNumberOnly model = new ArrayOfArrayOfNumberOnly();
-
- /**
- * Model tests for ArrayOfArrayOfNumberOnly
- */
- @Test
- void testArrayOfArrayOfNumberOnly() {
- // TODO: test ArrayOfArrayOfNumberOnly
- }
-
- /**
- * Test the property 'arrayArrayNumber'
- */
- @Test
- void arrayArrayNumberTest() {
- // TODO: test arrayArrayNumber
- }
-
-}
diff --git a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/ArrayOfNumberOnlyTest.java b/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/ArrayOfNumberOnlyTest.java
deleted file mode 100644
index 0957f3f4adc..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/ArrayOfNumberOnlyTest.java
+++ /dev/null
@@ -1,51 +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 com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonValue;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import java.math.BigDecimal;
-import java.util.ArrayList;
-import java.util.List;
-import org.junit.jupiter.api.Test;
-
-
-/**
- * Model tests for ArrayOfNumberOnly
- */
-class ArrayOfNumberOnlyTest {
- private final ArrayOfNumberOnly model = new ArrayOfNumberOnly();
-
- /**
- * Model tests for ArrayOfNumberOnly
- */
- @Test
- void testArrayOfNumberOnly() {
- // TODO: test ArrayOfNumberOnly
- }
-
- /**
- * Test the property 'arrayNumber'
- */
- @Test
- void arrayNumberTest() {
- // TODO: test arrayNumber
- }
-
-}
diff --git a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/ArrayTestTest.java b/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/ArrayTestTest.java
deleted file mode 100644
index 74b0886d6ad..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/ArrayTestTest.java
+++ /dev/null
@@ -1,67 +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 com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonValue;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import java.util.ArrayList;
-import java.util.List;
-import org.openapitools.client.model.ReadOnlyFirst;
-import org.junit.jupiter.api.Test;
-
-
-/**
- * Model tests for ArrayTest
- */
-class ArrayTestTest {
- private final ArrayTest model = new ArrayTest();
-
- /**
- * Model tests for ArrayTest
- */
- @Test
- void testArrayTest() {
- // TODO: test ArrayTest
- }
-
- /**
- * Test the property 'arrayOfString'
- */
- @Test
- void arrayOfStringTest() {
- // TODO: test arrayOfString
- }
-
- /**
- * Test the property 'arrayArrayOfInteger'
- */
- @Test
- void arrayArrayOfIntegerTest() {
- // TODO: test arrayArrayOfInteger
- }
-
- /**
- * Test the property 'arrayArrayOfModel'
- */
- @Test
- void arrayArrayOfModelTest() {
- // TODO: test arrayArrayOfModel
- }
-
-}
diff --git a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/CapitalizationTest.java b/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/CapitalizationTest.java
deleted file mode 100644
index d91e81773ff..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/CapitalizationTest.java
+++ /dev/null
@@ -1,88 +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 com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonValue;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import org.junit.jupiter.api.Test;
-
-
-/**
- * Model tests for Capitalization
- */
-class CapitalizationTest {
- private final Capitalization model = new Capitalization();
-
- /**
- * Model tests for Capitalization
- */
- @Test
- void testCapitalization() {
- // TODO: test Capitalization
- }
-
- /**
- * Test the property 'smallCamel'
- */
- @Test
- void smallCamelTest() {
- // TODO: test smallCamel
- }
-
- /**
- * Test the property 'capitalCamel'
- */
- @Test
- void capitalCamelTest() {
- // TODO: test capitalCamel
- }
-
- /**
- * Test the property 'smallSnake'
- */
- @Test
- void smallSnakeTest() {
- // TODO: test smallSnake
- }
-
- /**
- * Test the property 'capitalSnake'
- */
- @Test
- void capitalSnakeTest() {
- // TODO: test capitalSnake
- }
-
- /**
- * Test the property 'scAETHFlowPoints'
- */
- @Test
- void scAETHFlowPointsTest() {
- // TODO: test scAETHFlowPoints
- }
-
- /**
- * Test the property 'ATT_NAME'
- */
- @Test
- void ATT_NAMETest() {
- // TODO: test ATT_NAME
- }
-
-}
diff --git a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/CatAllOfTest.java b/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/CatAllOfTest.java
deleted file mode 100644
index b13bcf1e7a1..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/CatAllOfTest.java
+++ /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.model;
-
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonValue;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import org.junit.jupiter.api.Test;
-
-
-/**
- * Model tests for CatAllOf
- */
-class CatAllOfTest {
- private final CatAllOf model = new CatAllOf();
-
- /**
- * Model tests for CatAllOf
- */
- @Test
- void testCatAllOf() {
- // TODO: test CatAllOf
- }
-
- /**
- * Test the property 'declawed'
- */
- @Test
- void declawedTest() {
- // TODO: test declawed
- }
-
-}
diff --git a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/CatTest.java b/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/CatTest.java
deleted file mode 100644
index 1a742639a18..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/CatTest.java
+++ /dev/null
@@ -1,68 +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 com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonValue;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import org.openapitools.client.model.Animal;
-import org.openapitools.client.model.CatAllOf;
-import org.junit.jupiter.api.Test;
-
-
-/**
- * Model tests for Cat
- */
-class CatTest {
- private final Cat model = new Cat();
-
- /**
- * Model tests for Cat
- */
- @Test
- void testCat() {
- // TODO: test Cat
- }
-
- /**
- * Test the property 'className'
- */
- @Test
- void classNameTest() {
- // TODO: test className
- }
-
- /**
- * Test the property 'color'
- */
- @Test
- void colorTest() {
- // TODO: test color
- }
-
- /**
- * Test the property 'declawed'
- */
- @Test
- void declawedTest() {
- // TODO: test declawed
- }
-
-}
diff --git a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/CategoryTest.java b/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/CategoryTest.java
deleted file mode 100644
index 22583f947c3..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/CategoryTest.java
+++ /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.model;
-
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonValue;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import org.junit.jupiter.api.Test;
-
-
-/**
- * Model tests for Category
- */
-class CategoryTest {
- private final Category model = new Category();
-
- /**
- * Model tests for Category
- */
- @Test
- void testCategory() {
- // TODO: test Category
- }
-
- /**
- * Test the property 'id'
- */
- @Test
- void idTest() {
- // TODO: test id
- }
-
- /**
- * Test the property 'name'
- */
- @Test
- void nameTest() {
- // TODO: test name
- }
-
-}
diff --git a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/ClassModelTest.java b/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/ClassModelTest.java
deleted file mode 100644
index 44d9611e0dc..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/ClassModelTest.java
+++ /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.model;
-
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonValue;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import org.junit.jupiter.api.Test;
-
-
-/**
- * Model tests for ClassModel
- */
-class ClassModelTest {
- private final ClassModel model = new ClassModel();
-
- /**
- * Model tests for ClassModel
- */
- @Test
- void testClassModel() {
- // TODO: test ClassModel
- }
-
- /**
- * Test the property 'propertyClass'
- */
- @Test
- void propertyClassTest() {
- // TODO: test propertyClass
- }
-
-}
diff --git a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/ClientTest.java b/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/ClientTest.java
deleted file mode 100644
index ff12463d5cf..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/ClientTest.java
+++ /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.model;
-
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonValue;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import org.junit.jupiter.api.Test;
-
-
-/**
- * Model tests for Client
- */
-class ClientTest {
- private final Client model = new Client();
-
- /**
- * Model tests for Client
- */
- @Test
- void testClient() {
- // TODO: test Client
- }
-
- /**
- * Test the property 'client'
- */
- @Test
- void clientTest() {
- // TODO: test client
- }
-
-}
diff --git a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/DogAllOfTest.java b/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/DogAllOfTest.java
deleted file mode 100644
index ab8a1b63af4..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/DogAllOfTest.java
+++ /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.model;
-
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonValue;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import org.junit.jupiter.api.Test;
-
-
-/**
- * Model tests for DogAllOf
- */
-class DogAllOfTest {
- private final DogAllOf model = new DogAllOf();
-
- /**
- * Model tests for DogAllOf
- */
- @Test
- void testDogAllOf() {
- // TODO: test DogAllOf
- }
-
- /**
- * Test the property 'breed'
- */
- @Test
- void breedTest() {
- // TODO: test breed
- }
-
-}
diff --git a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/DogTest.java b/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/DogTest.java
deleted file mode 100644
index 705a0429377..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/DogTest.java
+++ /dev/null
@@ -1,68 +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 com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonValue;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import org.openapitools.client.model.Animal;
-import org.openapitools.client.model.DogAllOf;
-import org.junit.jupiter.api.Test;
-
-
-/**
- * Model tests for Dog
- */
-class DogTest {
- private final Dog model = new Dog();
-
- /**
- * Model tests for Dog
- */
- @Test
- void testDog() {
- // TODO: test Dog
- }
-
- /**
- * Test the property 'className'
- */
- @Test
- void classNameTest() {
- // TODO: test className
- }
-
- /**
- * Test the property 'color'
- */
- @Test
- void colorTest() {
- // TODO: test color
- }
-
- /**
- * Test the property 'breed'
- */
- @Test
- void breedTest() {
- // TODO: test breed
- }
-
-}
diff --git a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/EnumArraysTest.java b/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/EnumArraysTest.java
deleted file mode 100644
index 1ed1044bac9..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/EnumArraysTest.java
+++ /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.model;
-
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonValue;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import java.util.ArrayList;
-import java.util.List;
-import org.junit.jupiter.api.Test;
-
-
-/**
- * Model tests for EnumArrays
- */
-class EnumArraysTest {
- private final EnumArrays model = new EnumArrays();
-
- /**
- * Model tests for EnumArrays
- */
- @Test
- void testEnumArrays() {
- // TODO: test EnumArrays
- }
-
- /**
- * Test the property 'justSymbol'
- */
- @Test
- void justSymbolTest() {
- // TODO: test justSymbol
- }
-
- /**
- * Test the property 'arrayEnum'
- */
- @Test
- void arrayEnumTest() {
- // TODO: test arrayEnum
- }
-
-}
diff --git a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/EnumClassTest.java b/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/EnumClassTest.java
deleted file mode 100644
index 55b946a9f7c..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/EnumClassTest.java
+++ /dev/null
@@ -1,31 +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 org.junit.jupiter.api.Test;
-
-
-/**
- * Model tests for EnumClass
- */
-class EnumClassTest {
- /**
- * Model tests for EnumClass
- */
- @Test
- void testEnumClass() {
- // TODO: test EnumClass
- }
-
-}
diff --git a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/EnumTestTest.java b/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/EnumTestTest.java
deleted file mode 100644
index 1dbce4ce8bc..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/EnumTestTest.java
+++ /dev/null
@@ -1,111 +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 com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonValue;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import org.openapitools.client.model.OuterEnum;
-import org.openapitools.client.model.OuterEnumDefaultValue;
-import org.openapitools.client.model.OuterEnumInteger;
-import org.openapitools.client.model.OuterEnumIntegerDefaultValue;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import org.openapitools.jackson.nullable.JsonNullable;
-import java.util.NoSuchElementException;
-import org.junit.jupiter.api.Test;
-
-
-/**
- * Model tests for EnumTest
- */
-class EnumTestTest {
- private final EnumTest model = new EnumTest();
-
- /**
- * Model tests for EnumTest
- */
- @Test
- void testEnumTest() {
- // TODO: test EnumTest
- }
-
- /**
- * Test the property 'enumString'
- */
- @Test
- void enumStringTest() {
- // TODO: test enumString
- }
-
- /**
- * Test the property 'enumStringRequired'
- */
- @Test
- void enumStringRequiredTest() {
- // TODO: test enumStringRequired
- }
-
- /**
- * Test the property 'enumInteger'
- */
- @Test
- void enumIntegerTest() {
- // TODO: test enumInteger
- }
-
- /**
- * Test the property 'enumNumber'
- */
- @Test
- void enumNumberTest() {
- // TODO: test enumNumber
- }
-
- /**
- * Test the property 'outerEnum'
- */
- @Test
- void outerEnumTest() {
- // TODO: test outerEnum
- }
-
- /**
- * Test the property 'outerEnumInteger'
- */
- @Test
- void outerEnumIntegerTest() {
- // TODO: test outerEnumInteger
- }
-
- /**
- * Test the property 'outerEnumDefaultValue'
- */
- @Test
- void outerEnumDefaultValueTest() {
- // TODO: test outerEnumDefaultValue
- }
-
- /**
- * Test the property 'outerEnumIntegerDefaultValue'
- */
- @Test
- void outerEnumIntegerDefaultValueTest() {
- // TODO: test outerEnumIntegerDefaultValue
- }
-
-}
diff --git a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/FileSchemaTestClassTest.java b/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/FileSchemaTestClassTest.java
deleted file mode 100644
index dc539f34554..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/FileSchemaTestClassTest.java
+++ /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.model;
-
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonValue;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import java.util.ArrayList;
-import java.util.List;
-import org.junit.jupiter.api.Test;
-
-
-/**
- * Model tests for FileSchemaTestClass
- */
-class FileSchemaTestClassTest {
- private final FileSchemaTestClass model = new FileSchemaTestClass();
-
- /**
- * Model tests for FileSchemaTestClass
- */
- @Test
- void testFileSchemaTestClass() {
- // TODO: test FileSchemaTestClass
- }
-
- /**
- * Test the property 'file'
- */
- @Test
- void fileTest() {
- // TODO: test file
- }
-
- /**
- * Test the property 'files'
- */
- @Test
- void filesTest() {
- // TODO: test files
- }
-
-}
diff --git a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/FormatTestTest.java b/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/FormatTestTest.java
deleted file mode 100644
index 3fe8f9722da..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/FormatTestTest.java
+++ /dev/null
@@ -1,173 +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 com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonValue;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import java.io.File;
-import java.math.BigDecimal;
-import java.util.UUID;
-import org.threeten.bp.LocalDate;
-import org.threeten.bp.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-
-
-/**
- * Model tests for FormatTest
- */
-class FormatTestTest {
- private final FormatTest model = new FormatTest();
-
- /**
- * Model tests for FormatTest
- */
- @Test
- void testFormatTest() {
- // TODO: test FormatTest
- }
-
- /**
- * Test the property 'integer'
- */
- @Test
- void integerTest() {
- // TODO: test integer
- }
-
- /**
- * Test the property 'int32'
- */
- @Test
- void int32Test() {
- // TODO: test int32
- }
-
- /**
- * Test the property 'int64'
- */
- @Test
- void int64Test() {
- // TODO: test int64
- }
-
- /**
- * Test the property 'number'
- */
- @Test
- void numberTest() {
- // TODO: test number
- }
-
- /**
- * Test the property '_float'
- */
- @Test
- void _floatTest() {
- // TODO: test _float
- }
-
- /**
- * Test the property '_double'
- */
- @Test
- void _doubleTest() {
- // TODO: test _double
- }
-
- /**
- * Test the property 'decimal'
- */
- @Test
- void decimalTest() {
- // TODO: test decimal
- }
-
- /**
- * Test the property 'string'
- */
- @Test
- void stringTest() {
- // TODO: test string
- }
-
- /**
- * Test the property '_byte'
- */
- @Test
- void _byteTest() {
- // TODO: test _byte
- }
-
- /**
- * Test the property 'binary'
- */
- @Test
- void binaryTest() {
- // TODO: test binary
- }
-
- /**
- * Test the property 'date'
- */
- @Test
- void dateTest() {
- // TODO: test date
- }
-
- /**
- * Test the property 'dateTime'
- */
- @Test
- void dateTimeTest() {
- // TODO: test dateTime
- }
-
- /**
- * Test the property 'uuid'
- */
- @Test
- void uuidTest() {
- // TODO: test uuid
- }
-
- /**
- * Test the property 'password'
- */
- @Test
- void passwordTest() {
- // TODO: test password
- }
-
- /**
- * Test the property 'patternWithDigits'
- */
- @Test
- void patternWithDigitsTest() {
- // TODO: test patternWithDigits
- }
-
- /**
- * Test the property 'patternWithDigitsAndDelimiter'
- */
- @Test
- void patternWithDigitsAndDelimiterTest() {
- // TODO: test patternWithDigitsAndDelimiter
- }
-
-}
diff --git a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/HasOnlyReadOnlyTest.java b/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/HasOnlyReadOnlyTest.java
deleted file mode 100644
index 224c1ad22b0..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/HasOnlyReadOnlyTest.java
+++ /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.model;
-
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonValue;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import org.junit.jupiter.api.Test;
-
-
-/**
- * Model tests for HasOnlyReadOnly
- */
-class HasOnlyReadOnlyTest {
- private final HasOnlyReadOnly model = new HasOnlyReadOnly();
-
- /**
- * Model tests for HasOnlyReadOnly
- */
- @Test
- void testHasOnlyReadOnly() {
- // TODO: test HasOnlyReadOnly
- }
-
- /**
- * Test the property 'bar'
- */
- @Test
- void barTest() {
- // TODO: test bar
- }
-
- /**
- * Test the property 'foo'
- */
- @Test
- void fooTest() {
- // TODO: test foo
- }
-
-}
diff --git a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/MapTestTest.java b/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/MapTestTest.java
deleted file mode 100644
index 21187f97510..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/MapTestTest.java
+++ /dev/null
@@ -1,75 +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 com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-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 org.junit.jupiter.api.Test;
-
-
-/**
- * Model tests for MapTest
- */
-class MapTestTest {
- private final MapTest model = new MapTest();
-
- /**
- * Model tests for MapTest
- */
- @Test
- void testMapTest() {
- // TODO: test MapTest
- }
-
- /**
- * Test the property 'mapMapOfString'
- */
- @Test
- void mapMapOfStringTest() {
- // TODO: test mapMapOfString
- }
-
- /**
- * Test the property 'mapOfEnumString'
- */
- @Test
- void mapOfEnumStringTest() {
- // TODO: test mapOfEnumString
- }
-
- /**
- * Test the property 'directMap'
- */
- @Test
- void directMapTest() {
- // TODO: test directMap
- }
-
- /**
- * Test the property 'indirectMap'
- */
- @Test
- void indirectMapTest() {
- // TODO: test indirectMap
- }
-
-}
diff --git a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClassTest.java b/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClassTest.java
deleted file mode 100644
index b2ce8721036..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClassTest.java
+++ /dev/null
@@ -1,70 +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 com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-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 java.util.UUID;
-import org.openapitools.client.model.Animal;
-import org.threeten.bp.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-
-
-/**
- * Model tests for MixedPropertiesAndAdditionalPropertiesClass
- */
-class MixedPropertiesAndAdditionalPropertiesClassTest {
- private final MixedPropertiesAndAdditionalPropertiesClass model = new MixedPropertiesAndAdditionalPropertiesClass();
-
- /**
- * Model tests for MixedPropertiesAndAdditionalPropertiesClass
- */
- @Test
- void testMixedPropertiesAndAdditionalPropertiesClass() {
- // TODO: test MixedPropertiesAndAdditionalPropertiesClass
- }
-
- /**
- * Test the property 'uuid'
- */
- @Test
- void uuidTest() {
- // TODO: test uuid
- }
-
- /**
- * Test the property 'dateTime'
- */
- @Test
- void dateTimeTest() {
- // TODO: test dateTime
- }
-
- /**
- * Test the property 'map'
- */
- @Test
- void mapTest() {
- // TODO: test map
- }
-
-}
diff --git a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/Model200ResponseTest.java b/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/Model200ResponseTest.java
deleted file mode 100644
index 0a0f7aa7554..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/Model200ResponseTest.java
+++ /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.model;
-
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonValue;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import org.junit.jupiter.api.Test;
-
-
-/**
- * Model tests for Model200Response
- */
-class Model200ResponseTest {
- private final Model200Response model = new Model200Response();
-
- /**
- * Model tests for Model200Response
- */
- @Test
- void testModel200Response() {
- // TODO: test Model200Response
- }
-
- /**
- * Test the property 'name'
- */
- @Test
- void nameTest() {
- // TODO: test name
- }
-
- /**
- * Test the property 'propertyClass'
- */
- @Test
- void propertyClassTest() {
- // TODO: test propertyClass
- }
-
-}
diff --git a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java b/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java
deleted file mode 100644
index 9c746af8be0..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java
+++ /dev/null
@@ -1,64 +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 com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonValue;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import org.junit.jupiter.api.Test;
-
-
-/**
- * Model tests for ModelApiResponse
- */
-class ModelApiResponseTest {
- private final ModelApiResponse model = new ModelApiResponse();
-
- /**
- * Model tests for ModelApiResponse
- */
- @Test
- void testModelApiResponse() {
- // TODO: test ModelApiResponse
- }
-
- /**
- * Test the property 'code'
- */
- @Test
- void codeTest() {
- // TODO: test code
- }
-
- /**
- * Test the property 'type'
- */
- @Test
- void typeTest() {
- // TODO: test type
- }
-
- /**
- * Test the property 'message'
- */
- @Test
- void messageTest() {
- // TODO: test message
- }
-
-}
diff --git a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/ModelReturnTest.java b/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/ModelReturnTest.java
deleted file mode 100644
index e1bddc25f2d..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/ModelReturnTest.java
+++ /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.model;
-
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonValue;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import org.junit.jupiter.api.Test;
-
-
-/**
- * Model tests for ModelReturn
- */
-class ModelReturnTest {
- private final ModelReturn model = new ModelReturn();
-
- /**
- * Model tests for ModelReturn
- */
- @Test
- void testModelReturn() {
- // TODO: test ModelReturn
- }
-
- /**
- * Test the property '_return'
- */
- @Test
- void _returnTest() {
- // TODO: test _return
- }
-
-}
diff --git a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/NameTest.java b/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/NameTest.java
deleted file mode 100644
index 13ae33a2084..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/NameTest.java
+++ /dev/null
@@ -1,72 +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 com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonValue;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import org.junit.jupiter.api.Test;
-
-
-/**
- * Model tests for Name
- */
-class NameTest {
- private final Name model = new Name();
-
- /**
- * Model tests for Name
- */
- @Test
- void testName() {
- // TODO: test Name
- }
-
- /**
- * Test the property 'name'
- */
- @Test
- void nameTest() {
- // TODO: test name
- }
-
- /**
- * Test the property 'snakeCase'
- */
- @Test
- void snakeCaseTest() {
- // TODO: test snakeCase
- }
-
- /**
- * Test the property 'property'
- */
- @Test
- void propertyTest() {
- // TODO: test property
- }
-
- /**
- * Test the property '_123number'
- */
- @Test
- void _123numberTest() {
- // TODO: test _123number
- }
-
-}
diff --git a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/NumberOnlyTest.java b/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/NumberOnlyTest.java
deleted file mode 100644
index 4a600363e15..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/NumberOnlyTest.java
+++ /dev/null
@@ -1,49 +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 com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonValue;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import java.math.BigDecimal;
-import org.junit.jupiter.api.Test;
-
-
-/**
- * Model tests for NumberOnly
- */
-class NumberOnlyTest {
- private final NumberOnly model = new NumberOnly();
-
- /**
- * Model tests for NumberOnly
- */
- @Test
- void testNumberOnly() {
- // TODO: test NumberOnly
- }
-
- /**
- * Test the property 'justNumber'
- */
- @Test
- void justNumberTest() {
- // TODO: test justNumber
- }
-
-}
diff --git a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/OrderTest.java b/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/OrderTest.java
deleted file mode 100644
index f84bff7dca9..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/OrderTest.java
+++ /dev/null
@@ -1,89 +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 com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonValue;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import org.threeten.bp.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-
-
-/**
- * Model tests for Order
- */
-class OrderTest {
- private final Order model = new Order();
-
- /**
- * Model tests for Order
- */
- @Test
- void testOrder() {
- // TODO: test Order
- }
-
- /**
- * Test the property 'id'
- */
- @Test
- void idTest() {
- // TODO: test id
- }
-
- /**
- * Test the property 'petId'
- */
- @Test
- void petIdTest() {
- // TODO: test petId
- }
-
- /**
- * Test the property 'quantity'
- */
- @Test
- void quantityTest() {
- // TODO: test quantity
- }
-
- /**
- * Test the property 'shipDate'
- */
- @Test
- void shipDateTest() {
- // TODO: test shipDate
- }
-
- /**
- * Test the property 'status'
- */
- @Test
- void statusTest() {
- // TODO: test status
- }
-
- /**
- * Test the property 'complete'
- */
- @Test
- void completeTest() {
- // TODO: test complete
- }
-
-}
diff --git a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/OuterCompositeTest.java b/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/OuterCompositeTest.java
deleted file mode 100644
index c42f4fd0478..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/OuterCompositeTest.java
+++ /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.model;
-
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonValue;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import java.math.BigDecimal;
-import org.junit.jupiter.api.Test;
-
-
-/**
- * Model tests for OuterComposite
- */
-class OuterCompositeTest {
- private final OuterComposite model = new OuterComposite();
-
- /**
- * Model tests for OuterComposite
- */
- @Test
- void testOuterComposite() {
- // TODO: test OuterComposite
- }
-
- /**
- * Test the property 'myNumber'
- */
- @Test
- void myNumberTest() {
- // TODO: test myNumber
- }
-
- /**
- * Test the property 'myString'
- */
- @Test
- void myStringTest() {
- // TODO: test myString
- }
-
- /**
- * Test the property 'myBoolean'
- */
- @Test
- void myBooleanTest() {
- // TODO: test myBoolean
- }
-
-}
diff --git a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/OuterEnumTest.java b/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/OuterEnumTest.java
deleted file mode 100644
index fd8833deb8b..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/OuterEnumTest.java
+++ /dev/null
@@ -1,31 +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 org.junit.jupiter.api.Test;
-
-
-/**
- * Model tests for OuterEnum
- */
-class OuterEnumTest {
- /**
- * Model tests for OuterEnum
- */
- @Test
- void testOuterEnum() {
- // TODO: test OuterEnum
- }
-
-}
diff --git a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/PetTest.java b/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/PetTest.java
deleted file mode 100644
index f7276f8e317..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/PetTest.java
+++ /dev/null
@@ -1,94 +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 com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonValue;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import java.util.ArrayList;
-import java.util.LinkedHashSet;
-import java.util.List;
-import java.util.Set;
-import org.openapitools.client.model.Category;
-import org.openapitools.client.model.Tag;
-import org.junit.jupiter.api.Test;
-
-
-/**
- * Model tests for Pet
- */
-class PetTest {
- private final Pet model = new Pet();
-
- /**
- * Model tests for Pet
- */
- @Test
- void testPet() {
- // TODO: test Pet
- }
-
- /**
- * Test the property 'id'
- */
- @Test
- void idTest() {
- // TODO: test id
- }
-
- /**
- * Test the property 'category'
- */
- @Test
- void categoryTest() {
- // TODO: test category
- }
-
- /**
- * Test the property 'name'
- */
- @Test
- void nameTest() {
- // TODO: test name
- }
-
- /**
- * Test the property 'photoUrls'
- */
- @Test
- void photoUrlsTest() {
- // TODO: test photoUrls
- }
-
- /**
- * Test the property 'tags'
- */
- @Test
- void tagsTest() {
- // TODO: test tags
- }
-
- /**
- * Test the property 'status'
- */
- @Test
- void statusTest() {
- // TODO: test status
- }
-
-}
diff --git a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/ReadOnlyFirstTest.java b/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/ReadOnlyFirstTest.java
deleted file mode 100644
index a8dd8e92722..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/ReadOnlyFirstTest.java
+++ /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.model;
-
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonValue;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import org.junit.jupiter.api.Test;
-
-
-/**
- * Model tests for ReadOnlyFirst
- */
-class ReadOnlyFirstTest {
- private final ReadOnlyFirst model = new ReadOnlyFirst();
-
- /**
- * Model tests for ReadOnlyFirst
- */
- @Test
- void testReadOnlyFirst() {
- // TODO: test ReadOnlyFirst
- }
-
- /**
- * Test the property 'bar'
- */
- @Test
- void barTest() {
- // TODO: test bar
- }
-
- /**
- * Test the property 'baz'
- */
- @Test
- void bazTest() {
- // TODO: test baz
- }
-
-}
diff --git a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/SpecialModelNameTest.java b/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/SpecialModelNameTest.java
deleted file mode 100644
index 028705916ee..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/SpecialModelNameTest.java
+++ /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.model;
-
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonValue;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import org.junit.jupiter.api.Test;
-
-
-/**
- * Model tests for SpecialModelName
- */
-class SpecialModelNameTest {
- private final SpecialModelName model = new SpecialModelName();
-
- /**
- * Model tests for SpecialModelName
- */
- @Test
- void testSpecialModelName() {
- // TODO: test SpecialModelName
- }
-
- /**
- * Test the property '$specialPropertyName'
- */
- @Test
- void $specialPropertyNameTest() {
- // TODO: test $specialPropertyName
- }
-
-}
diff --git a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/TagTest.java b/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/TagTest.java
deleted file mode 100644
index 174a9319f89..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/TagTest.java
+++ /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.model;
-
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonValue;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import org.junit.jupiter.api.Test;
-
-
-/**
- * Model tests for Tag
- */
-class TagTest {
- private final Tag model = new Tag();
-
- /**
- * Model tests for Tag
- */
- @Test
- void testTag() {
- // TODO: test Tag
- }
-
- /**
- * Test the property 'id'
- */
- @Test
- void idTest() {
- // TODO: test id
- }
-
- /**
- * Test the property 'name'
- */
- @Test
- void nameTest() {
- // TODO: test name
- }
-
-}
diff --git a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/UserTest.java b/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/UserTest.java
deleted file mode 100644
index f01cfceed72..00000000000
--- a/samples/client/petstore/java/feign-openapi3/src/test/java/org/openapitools/client/model/UserTest.java
+++ /dev/null
@@ -1,104 +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 com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonValue;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import org.junit.jupiter.api.Test;
-
-
-/**
- * Model tests for User
- */
-class UserTest {
- private final User model = new User();
-
- /**
- * Model tests for User
- */
- @Test
- void testUser() {
- // TODO: test User
- }
-
- /**
- * Test the property 'id'
- */
- @Test
- void idTest() {
- // TODO: test id
- }
-
- /**
- * Test the property 'username'
- */
- @Test
- void usernameTest() {
- // TODO: test username
- }
-
- /**
- * Test the property 'firstName'
- */
- @Test
- void firstNameTest() {
- // TODO: test firstName
- }
-
- /**
- * Test the property 'lastName'
- */
- @Test
- void lastNameTest() {
- // TODO: test lastName
- }
-
- /**
- * Test the property 'email'
- */
- @Test
- void emailTest() {
- // TODO: test email
- }
-
- /**
- * Test the property 'password'
- */
- @Test
- void passwordTest() {
- // TODO: test password
- }
-
- /**
- * Test the property 'phone'
- */
- @Test
- void phoneTest() {
- // TODO: test phone
- }
-
- /**
- * Test the property 'userStatus'
- */
- @Test
- void userStatusTest() {
- // TODO: test userStatus
- }
-
-}
diff --git a/samples/client/petstore/java/feign/.openapi-generator/FILES b/samples/client/petstore/java/feign/.openapi-generator/FILES
index cd394fffa07..628c2dae9f9 100644
--- a/samples/client/petstore/java/feign/.openapi-generator/FILES
+++ b/samples/client/petstore/java/feign/.openapi-generator/FILES
@@ -22,6 +22,7 @@ src/main/java/org/openapitools/client/ServerConfiguration.java
src/main/java/org/openapitools/client/ServerVariable.java
src/main/java/org/openapitools/client/StringUtil.java
src/main/java/org/openapitools/client/api/AnotherFakeApi.java
+src/main/java/org/openapitools/client/api/DefaultApi.java
src/main/java/org/openapitools/client/api/FakeApi.java
src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java
src/main/java/org/openapitools/client/api/PetApi.java
@@ -35,49 +36,47 @@ src/main/java/org/openapitools/client/auth/OAuth.java
src/main/java/org/openapitools/client/auth/OAuthFlow.java
src/main/java/org/openapitools/client/auth/OauthClientCredentialsGrant.java
src/main/java/org/openapitools/client/auth/OauthPasswordGrant.java
-src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java
-src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java
-src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java
src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java
-src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java
-src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java
-src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java
-src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java
src/main/java/org/openapitools/client/model/Animal.java
src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java
src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java
src/main/java/org/openapitools/client/model/ArrayTest.java
-src/main/java/org/openapitools/client/model/BigCat.java
-src/main/java/org/openapitools/client/model/BigCatAllOf.java
src/main/java/org/openapitools/client/model/Capitalization.java
src/main/java/org/openapitools/client/model/Cat.java
src/main/java/org/openapitools/client/model/CatAllOf.java
src/main/java/org/openapitools/client/model/Category.java
src/main/java/org/openapitools/client/model/ClassModel.java
src/main/java/org/openapitools/client/model/Client.java
+src/main/java/org/openapitools/client/model/DeprecatedObject.java
src/main/java/org/openapitools/client/model/Dog.java
src/main/java/org/openapitools/client/model/DogAllOf.java
src/main/java/org/openapitools/client/model/EnumArrays.java
src/main/java/org/openapitools/client/model/EnumClass.java
src/main/java/org/openapitools/client/model/EnumTest.java
src/main/java/org/openapitools/client/model/FileSchemaTestClass.java
+src/main/java/org/openapitools/client/model/Foo.java
src/main/java/org/openapitools/client/model/FormatTest.java
src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java
+src/main/java/org/openapitools/client/model/HealthCheckResult.java
+src/main/java/org/openapitools/client/model/InlineResponseDefault.java
src/main/java/org/openapitools/client/model/MapTest.java
src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java
src/main/java/org/openapitools/client/model/Model200Response.java
src/main/java/org/openapitools/client/model/ModelApiResponse.java
src/main/java/org/openapitools/client/model/ModelReturn.java
src/main/java/org/openapitools/client/model/Name.java
+src/main/java/org/openapitools/client/model/NullableClass.java
src/main/java/org/openapitools/client/model/NumberOnly.java
+src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java
src/main/java/org/openapitools/client/model/Order.java
src/main/java/org/openapitools/client/model/OuterComposite.java
src/main/java/org/openapitools/client/model/OuterEnum.java
+src/main/java/org/openapitools/client/model/OuterEnumDefaultValue.java
+src/main/java/org/openapitools/client/model/OuterEnumInteger.java
+src/main/java/org/openapitools/client/model/OuterEnumIntegerDefaultValue.java
+src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java
src/main/java/org/openapitools/client/model/Pet.java
src/main/java/org/openapitools/client/model/ReadOnlyFirst.java
src/main/java/org/openapitools/client/model/SpecialModelName.java
src/main/java/org/openapitools/client/model/Tag.java
-src/main/java/org/openapitools/client/model/TypeHolderDefault.java
-src/main/java/org/openapitools/client/model/TypeHolderExample.java
src/main/java/org/openapitools/client/model/User.java
-src/main/java/org/openapitools/client/model/XmlItem.java
diff --git a/samples/client/petstore/java/feign/api/openapi.yaml b/samples/client/petstore/java/feign/api/openapi.yaml
index 0b3ef3a11c9..baf5bb3cde2 100644
--- a/samples/client/petstore/java/feign/api/openapi.yaml
+++ b/samples/client/petstore/java/feign/api/openapi.yaml
@@ -1,4 +1,4 @@
-openapi: 3.0.1
+openapi: 3.0.0
info:
description: 'This spec is mainly for testing Petstore server and contains fake
endpoints, models. Please do not use this for any other purpose. Special characters:
@@ -9,7 +9,30 @@ info:
title: OpenAPI Petstore
version: 1.0.0
servers:
-- url: http://petstore.swagger.io:80/v2
+- description: petstore server
+ url: http://{server}.swagger.io:{port}/v2
+ variables:
+ server:
+ default: petstore
+ enum:
+ - petstore
+ - qa-petstore
+ - dev-petstore
+ port:
+ default: "80"
+ enum:
+ - "80"
+ - "8080"
+- description: The local server
+ url: https://localhost:8080/{version}
+ variables:
+ version:
+ default: v2
+ enum:
+ - v1
+ - v2
+- description: The local server without variables
+ url: https://127.0.0.1/no_varaible
tags:
- description: Everything about your Pets
name: pet
@@ -18,25 +41,25 @@ tags:
- description: Operations about user
name: user
paths:
+ /foo:
+ get:
+ responses:
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/inline_response_default'
+ description: response
+ x-accepts: application/json
/pet:
post:
operationId: addPet
requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Pet'
- application/xml:
- schema:
- $ref: '#/components/schemas/Pet'
- description: Pet object that needs to be added to the store
- required: true
+ $ref: '#/components/requestBodies/Pet'
responses:
"200":
- content: {}
- description: successful operation
+ description: Successful operation
"405":
- content: {}
description: Invalid input
security:
- petstore_auth:
@@ -45,33 +68,20 @@ paths:
summary: Add a new pet to the store
tags:
- pet
- x-codegen-request-body-name: body
x-contentType: application/json
x-accepts: application/json
put:
operationId: updatePet
requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Pet'
- application/xml:
- schema:
- $ref: '#/components/schemas/Pet'
- description: Pet object that needs to be added to the store
- required: true
+ $ref: '#/components/requestBodies/Pet'
responses:
"200":
- content: {}
- description: successful operation
+ description: Successful operation
"400":
- content: {}
description: Invalid ID supplied
"404":
- content: {}
description: Pet not found
"405":
- content: {}
description: Validation exception
security:
- petstore_auth:
@@ -80,9 +90,11 @@ paths:
summary: Update an existing pet
tags:
- pet
- x-codegen-request-body-name: body
x-contentType: application/json
x-accepts: application/json
+ servers:
+ - url: http://petstore.swagger.io/v2
+ - url: http://path-server-test.petstore.local/v2
/pet/findByStatus:
get:
description: Multiple status values can be provided with comma separated strings
@@ -118,7 +130,6 @@ paths:
type: array
description: successful operation
"400":
- content: {}
description: Invalid status value
security:
- petstore_auth:
@@ -163,7 +174,6 @@ paths:
uniqueItems: true
description: successful operation
"400":
- content: {}
description: Invalid tag value
security:
- petstore_auth:
@@ -177,23 +187,26 @@ paths:
delete:
operationId: deletePet
parameters:
- - in: header
+ - explode: false
+ in: header
name: api_key
+ required: false
schema:
type: string
+ style: simple
- description: Pet id to delete
+ explode: false
in: path
name: petId
required: true
schema:
format: int64
type: integer
+ style: simple
responses:
"200":
- content: {}
- description: successful operation
+ description: Successful operation
"400":
- content: {}
description: Invalid pet value
security:
- petstore_auth:
@@ -208,12 +221,14 @@ paths:
operationId: getPetById
parameters:
- description: ID of pet to return
+ explode: false
in: path
name: petId
required: true
schema:
format: int64
type: integer
+ style: simple
responses:
"200":
content:
@@ -225,10 +240,8 @@ paths:
$ref: '#/components/schemas/Pet'
description: successful operation
"400":
- content: {}
description: Invalid ID supplied
"404":
- content: {}
description: Pet not found
security:
- api_key: []
@@ -240,13 +253,16 @@ paths:
operationId: updatePetWithForm
parameters:
- description: ID of pet that needs to be updated
+ explode: false
in: path
name: petId
required: true
schema:
format: int64
type: integer
+ style: simple
requestBody:
+ $ref: '#/components/requestBodies/inline_object'
content:
application/x-www-form-urlencoded:
schema:
@@ -257,9 +273,11 @@ paths:
status:
description: Updated status of the pet
type: string
+ type: object
responses:
+ "200":
+ description: Successful operation
"405":
- content: {}
description: Invalid input
security:
- petstore_auth:
@@ -275,13 +293,16 @@ paths:
operationId: uploadFile
parameters:
- description: ID of pet to update
+ explode: false
in: path
name: petId
required: true
schema:
format: int64
type: integer
+ style: simple
requestBody:
+ $ref: '#/components/requestBodies/inline_object_1'
content:
multipart/form-data:
schema:
@@ -293,6 +314,7 @@ paths:
description: file to upload
format: binary
type: string
+ type: object
responses:
"200":
content:
@@ -334,7 +356,7 @@ paths:
operationId: placeOrder
requestBody:
content:
- '*/*':
+ application/json:
schema:
$ref: '#/components/schemas/Order'
description: order placed for purchasing the pet
@@ -350,13 +372,11 @@ paths:
$ref: '#/components/schemas/Order'
description: successful operation
"400":
- content: {}
description: Invalid Order
summary: Place an order for a pet
tags:
- store
- x-codegen-request-body-name: body
- x-contentType: '*/*'
+ x-contentType: application/json
x-accepts: application/json
/store/order/{order_id}:
delete:
@@ -365,17 +385,17 @@ paths:
operationId: deleteOrder
parameters:
- description: ID of the order that needs to be deleted
+ explode: false
in: path
name: order_id
required: true
schema:
type: string
+ style: simple
responses:
"400":
- content: {}
description: Invalid ID supplied
"404":
- content: {}
description: Order not found
summary: Delete purchase order by ID
tags:
@@ -387,6 +407,7 @@ paths:
operationId: getOrderById
parameters:
- description: ID of pet that needs to be fetched
+ explode: false
in: path
name: order_id
required: true
@@ -395,6 +416,7 @@ paths:
maximum: 5
minimum: 1
type: integer
+ style: simple
responses:
"200":
content:
@@ -406,10 +428,8 @@ paths:
$ref: '#/components/schemas/Order'
description: successful operation
"400":
- content: {}
description: Invalid ID supplied
"404":
- content: {}
description: Order not found
summary: Find purchase order by ID
tags:
@@ -421,81 +441,65 @@ paths:
operationId: createUser
requestBody:
content:
- '*/*':
+ application/json:
schema:
$ref: '#/components/schemas/User'
description: Created user object
required: true
responses:
default:
- content: {}
description: successful operation
summary: Create user
tags:
- user
- x-codegen-request-body-name: body
- x-contentType: '*/*'
+ x-contentType: application/json
x-accepts: application/json
/user/createWithArray:
post:
operationId: createUsersWithArrayInput
requestBody:
- content:
- '*/*':
- schema:
- items:
- $ref: '#/components/schemas/User'
- type: array
- description: List of user object
- required: true
+ $ref: '#/components/requestBodies/UserArray'
responses:
default:
- content: {}
description: successful operation
summary: Creates list of users with given input array
tags:
- user
- x-codegen-request-body-name: body
- x-contentType: '*/*'
+ x-contentType: application/json
x-accepts: application/json
/user/createWithList:
post:
operationId: createUsersWithListInput
requestBody:
- content:
- '*/*':
- schema:
- items:
- $ref: '#/components/schemas/User'
- type: array
- description: List of user object
- required: true
+ $ref: '#/components/requestBodies/UserArray'
responses:
default:
- content: {}
description: successful operation
summary: Creates list of users with given input array
tags:
- user
- x-codegen-request-body-name: body
- x-contentType: '*/*'
+ x-contentType: application/json
x-accepts: application/json
/user/login:
get:
operationId: loginUser
parameters:
- description: The user name for login
+ explode: true
in: query
name: username
required: true
schema:
type: string
+ style: form
- description: The password for login in clear text
+ explode: true
in: query
name: password
required: true
schema:
type: string
+ style: form
responses:
"200":
content:
@@ -509,16 +513,19 @@ paths:
headers:
X-Rate-Limit:
description: calls per hour allowed by the user
+ explode: false
schema:
format: int32
type: integer
+ style: simple
X-Expires-After:
description: date in UTC when token expires
+ explode: false
schema:
format: date-time
type: string
+ style: simple
"400":
- content: {}
description: Invalid username/password supplied
summary: Logs user into the system
tags:
@@ -529,7 +536,6 @@ paths:
operationId: logoutUser
responses:
default:
- content: {}
description: successful operation
summary: Logs out current logged in user session
tags:
@@ -541,17 +547,17 @@ paths:
operationId: deleteUser
parameters:
- description: The name that needs to be deleted
+ explode: false
in: path
name: username
required: true
schema:
type: string
+ style: simple
responses:
"400":
- content: {}
description: Invalid username supplied
"404":
- content: {}
description: User not found
summary: Delete user
tags:
@@ -561,11 +567,13 @@ paths:
operationId: getUserByName
parameters:
- description: The name that needs to be fetched. Use user1 for testing.
+ explode: false
in: path
name: username
required: true
schema:
type: string
+ style: simple
responses:
"200":
content:
@@ -577,10 +585,8 @@ paths:
$ref: '#/components/schemas/User'
description: successful operation
"400":
- content: {}
description: Invalid username supplied
"404":
- content: {}
description: User not found
summary: Get user by user name
tags:
@@ -591,42 +597,36 @@ paths:
operationId: updateUser
parameters:
- description: name that need to be deleted
+ explode: false
in: path
name: username
required: true
schema:
type: string
+ style: simple
requestBody:
content:
- '*/*':
+ application/json:
schema:
$ref: '#/components/schemas/User'
description: Updated user object
required: true
responses:
"400":
- content: {}
description: Invalid user supplied
"404":
- content: {}
description: User not found
summary: Updated user
tags:
- user
- x-codegen-request-body-name: body
- x-contentType: '*/*'
+ x-contentType: application/json
x-accepts: application/json
/fake_classname_test:
patch:
description: To test class name in snake case
operationId: testClassname
requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Client'
- description: client model
- required: true
+ $ref: '#/components/requestBodies/Client'
responses:
"200":
content:
@@ -639,7 +639,6 @@ paths:
summary: To test class name in snake case
tags:
- fake_classname_tags 123#$%^
- x-codegen-request-body-name: body
x-contentType: application/json
x-accepts: application/json
/fake:
@@ -648,44 +647,60 @@ paths:
operationId: testGroupParameters
parameters:
- description: Required String in group parameters
+ explode: true
in: query
name: required_string_group
required: true
schema:
type: integer
+ style: form
- description: Required Boolean in group parameters
+ explode: false
in: header
name: required_boolean_group
required: true
schema:
type: boolean
+ style: simple
- description: Required Integer in group parameters
+ explode: true
in: query
name: required_int64_group
required: true
schema:
format: int64
type: integer
+ style: form
- description: String in group parameters
+ explode: true
in: query
name: string_group
+ required: false
schema:
type: integer
+ style: form
- description: Boolean in group parameters
+ explode: false
in: header
name: boolean_group
+ required: false
schema:
type: boolean
+ style: simple
- description: Integer in group parameters
+ explode: true
in: query
name: int64_group
+ required: false
schema:
format: int64
type: integer
+ style: form
responses:
"400":
- content: {}
description: Someting wrong
+ security:
+ - bearer_test: []
summary: Fake endpoint to test group parameters (optional)
tags:
- fake
@@ -699,6 +714,7 @@ paths:
explode: false
in: header
name: enum_header_string_array
+ required: false
schema:
items:
default: $
@@ -709,8 +725,10 @@ paths:
type: array
style: simple
- description: Header parameter enum test (string)
+ explode: false
in: header
name: enum_header_string
+ required: false
schema:
default: -efg
enum:
@@ -718,10 +736,12 @@ paths:
- -efg
- (xyz)
type: string
+ style: simple
- description: Query parameter enum test (string array)
- explode: false
+ explode: true
in: query
name: enum_query_string_array
+ required: false
schema:
items:
default: $
@@ -732,8 +752,10 @@ paths:
type: array
style: form
- description: Query parameter enum test (string)
+ explode: true
in: query
name: enum_query_string
+ required: false
schema:
default: -efg
enum:
@@ -741,25 +763,33 @@ paths:
- -efg
- (xyz)
type: string
+ style: form
- description: Query parameter enum test (double)
+ explode: true
in: query
name: enum_query_integer
+ required: false
schema:
enum:
- 1
- -2
format: int32
type: integer
+ style: form
- description: Query parameter enum test (double)
+ explode: true
in: query
name: enum_query_double
+ required: false
schema:
enum:
- 1.1
- -1.2
format: double
type: number
+ style: form
requestBody:
+ $ref: '#/components/requestBodies/inline_object_2'
content:
application/x-www-form-urlencoded:
schema:
@@ -781,12 +811,11 @@ paths:
- -efg
- (xyz)
type: string
+ type: object
responses:
"400":
- content: {}
description: Invalid request
"404":
- content: {}
description: Not found
summary: To test enum parameters
tags:
@@ -797,12 +826,7 @@ paths:
description: To test "client" model
operationId: testClientModel
requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Client'
- description: client model
- required: true
+ $ref: '#/components/requestBodies/Client'
responses:
"200":
content:
@@ -813,24 +837,23 @@ paths:
summary: To test "client" model
tags:
- fake
- x-codegen-request-body-name: body
x-contentType: application/json
x-accepts: application/json
post:
- description: |-
+ description: |
Fake endpoint for testing various parameters
- 假端點
- 偽のエンドポイント
- 가짜 엔드 포인트
+ 假端點
+ 偽のエンドポイント
+ 가짜 엔드 포인트
operationId: testEndpointParameters
requestBody:
+ $ref: '#/components/requestBodies/inline_object_3'
content:
application/x-www-form-urlencoded:
schema:
properties:
integer:
description: None
- format: int32
maximum: 100
minimum: 10
type: integer
@@ -898,21 +921,19 @@ paths:
- double
- number
- pattern_without_delimiter
- required: true
+ type: object
responses:
"400":
- content: {}
description: Invalid username supplied
"404":
- content: {}
description: User not found
security:
- http_basic_test: []
- summary: |-
+ summary: |
Fake endpoint for testing various parameters
- 假端點
- 偽のエンドポイント
- 가짜 엔드 포인트
+ 假端點
+ 偽のエンドポイント
+ 가짜 엔드 포인트
tags:
- fake
x-contentType: application/x-www-form-urlencoded
@@ -923,11 +944,10 @@ paths:
operationId: fakeOuterNumberSerialize
requestBody:
content:
- '*/*':
+ application/json:
schema:
$ref: '#/components/schemas/OuterNumber'
description: Input number as post body
- required: false
responses:
"200":
content:
@@ -937,8 +957,29 @@ paths:
description: Output number
tags:
- fake
- x-codegen-request-body-name: body
- x-contentType: '*/*'
+ x-contentType: application/json
+ x-accepts: '*/*'
+ /fake/property/enum-int:
+ post:
+ description: Test serialization of enum (int) properties with examples
+ operationId: fakePropertyEnumIntegerSerialize
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/OuterObjectWithEnumProperty'
+ description: Input enum (int) as post body
+ required: true
+ responses:
+ "200":
+ content:
+ '*/*':
+ schema:
+ $ref: '#/components/schemas/OuterObjectWithEnumProperty'
+ description: Output enum (int)
+ tags:
+ - fake
+ x-contentType: application/json
x-accepts: '*/*'
/fake/outer/string:
post:
@@ -946,11 +987,10 @@ paths:
operationId: fakeOuterStringSerialize
requestBody:
content:
- '*/*':
+ application/json:
schema:
$ref: '#/components/schemas/OuterString'
description: Input string as post body
- required: false
responses:
"200":
content:
@@ -960,8 +1000,7 @@ paths:
description: Output string
tags:
- fake
- x-codegen-request-body-name: body
- x-contentType: '*/*'
+ x-contentType: application/json
x-accepts: '*/*'
/fake/outer/boolean:
post:
@@ -969,11 +1008,10 @@ paths:
operationId: fakeOuterBooleanSerialize
requestBody:
content:
- '*/*':
+ application/json:
schema:
$ref: '#/components/schemas/OuterBoolean'
description: Input boolean as post body
- required: false
responses:
"200":
content:
@@ -983,8 +1021,7 @@ paths:
description: Output boolean
tags:
- fake
- x-codegen-request-body-name: body
- x-contentType: '*/*'
+ x-contentType: application/json
x-accepts: '*/*'
/fake/outer/composite:
post:
@@ -992,11 +1029,10 @@ paths:
operationId: fakeOuterCompositeSerialize
requestBody:
content:
- '*/*':
+ application/json:
schema:
$ref: '#/components/schemas/OuterComposite'
description: Input composite as post body
- required: false
responses:
"200":
content:
@@ -1006,13 +1042,13 @@ paths:
description: Output composite
tags:
- fake
- x-codegen-request-body-name: body
- x-contentType: '*/*'
+ x-contentType: application/json
x-accepts: '*/*'
/fake/jsonFormData:
get:
operationId: testJsonFormData
requestBody:
+ $ref: '#/components/requestBodies/inline_object_4'
content:
application/x-www-form-urlencoded:
schema:
@@ -1026,10 +1062,9 @@ paths:
required:
- param
- param2
- required: true
+ type: object
responses:
"200":
- content: {}
description: successful operation
summary: test json serialization of form data
tags:
@@ -1050,23 +1085,23 @@ paths:
required: true
responses:
"200":
- content: {}
description: successful operation
summary: test inline additionalProperties
tags:
- fake
- x-codegen-request-body-name: param
x-contentType: application/json
x-accepts: application/json
/fake/body-with-query-params:
put:
operationId: testBodyWithQueryParams
parameters:
- - in: query
+ - explode: true
+ in: query
name: query
required: true
schema:
type: string
+ style: form
requestBody:
content:
application/json:
@@ -1075,60 +1110,17 @@ paths:
required: true
responses:
"200":
- content: {}
description: Success
tags:
- fake
- x-codegen-request-body-name: body
x-contentType: application/json
x-accepts: application/json
- /fake/create_xml_item:
- post:
- description: this route creates an XmlItem
- operationId: createXmlItem
- requestBody:
- content:
- application/xml:
- schema:
- $ref: '#/components/schemas/XmlItem'
- application/xml; charset=utf-8:
- schema:
- $ref: '#/components/schemas/XmlItem'
- application/xml; charset=utf-16:
- schema:
- $ref: '#/components/schemas/XmlItem'
- text/xml:
- schema:
- $ref: '#/components/schemas/XmlItem'
- text/xml; charset=utf-8:
- schema:
- $ref: '#/components/schemas/XmlItem'
- text/xml; charset=utf-16:
- schema:
- $ref: '#/components/schemas/XmlItem'
- description: XmlItem Body
- required: true
- responses:
- "200":
- content: {}
- description: successful operation
- summary: creates an XmlItem
- tags:
- - fake
- x-codegen-request-body-name: XmlItem
- x-contentType: application/xml
- x-accepts: application/json
/another-fake/dummy:
patch:
description: To test special tags and operation ID starting with number
operationId: 123_test_@#$%_special_tags
requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Client'
- description: client model
- required: true
+ $ref: '#/components/requestBodies/Client'
responses:
"200":
content:
@@ -1139,12 +1131,11 @@ paths:
summary: To test special tags
tags:
- $another-fake?
- x-codegen-request-body-name: body
x-contentType: application/json
x-accepts: application/json
/fake/body-with-file-schema:
put:
- description: For this test, the body for this request much reference a schema
+ description: For this test, the body for this request must reference a schema
named `File`.
operationId: testBodyWithFileSchema
requestBody:
@@ -1155,13 +1146,31 @@ paths:
required: true
responses:
"200":
- content: {}
description: Success
tags:
- fake
- x-codegen-request-body-name: body
x-contentType: application/json
x-accepts: application/json
+ /fake/body-with-binary:
+ put:
+ description: For this test, the body has to be a binary file.
+ operationId: testBodyWithBinary
+ requestBody:
+ content:
+ image/png:
+ schema:
+ format: binary
+ nullable: true
+ type: string
+ description: image to upload
+ required: true
+ responses:
+ "200":
+ description: Success
+ tags:
+ - fake
+ x-contentType: image/png
+ x-accepts: application/json
/fake/test-query-paramters:
put:
description: To test the collection format in query parameters
@@ -1175,15 +1184,18 @@ paths:
items:
type: string
type: array
- style: form
- - in: query
+ style: pipeDelimited
+ - explode: false
+ in: query
name: ioutil
required: true
schema:
items:
type: string
type: array
- - in: query
+ style: form
+ - explode: false
+ in: query
name: http
required: true
schema:
@@ -1211,7 +1223,6 @@ paths:
style: form
responses:
"200":
- content: {}
description: Success
tags:
- fake
@@ -1221,13 +1232,16 @@ paths:
operationId: uploadFileWithRequiredFile
parameters:
- description: ID of pet to update
+ explode: false
in: path
name: petId
required: true
schema:
format: int64
type: integer
+ style: simple
requestBody:
+ $ref: '#/components/requestBodies/inline_object_5'
content:
multipart/form-data:
schema:
@@ -1241,7 +1255,7 @@ paths:
type: string
required:
- requiredFile
- required: true
+ type: object
responses:
"200":
content:
@@ -1258,8 +1272,121 @@ paths:
- pet
x-contentType: multipart/form-data
x-accepts: application/json
+ /fake/health:
+ get:
+ responses:
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/HealthCheckResult'
+ description: The instance started successfully
+ summary: Health check endpoint
+ tags:
+ - fake
+ x-accepts: application/json
+ /fake/http-signature-test:
+ get:
+ operationId: fake-http-signature-test
+ parameters:
+ - description: query parameter
+ explode: true
+ in: query
+ name: query_1
+ required: false
+ schema:
+ type: string
+ style: form
+ - description: header parameter
+ explode: false
+ in: header
+ name: header_1
+ required: false
+ schema:
+ type: string
+ style: simple
+ requestBody:
+ $ref: '#/components/requestBodies/Pet'
+ responses:
+ "200":
+ description: The instance started successfully
+ security:
+ - http_signature_test: []
+ summary: test http signature authentication
+ tags:
+ - fake
+ x-contentType: application/json
+ x-accepts: application/json
components:
+ requestBodies:
+ UserArray:
+ content:
+ application/json:
+ schema:
+ items:
+ $ref: '#/components/schemas/User'
+ type: array
+ description: List of user object
+ required: true
+ Client:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Client'
+ description: client model
+ required: true
+ Pet:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Pet'
+ application/xml:
+ schema:
+ $ref: '#/components/schemas/Pet'
+ description: Pet object that needs to be added to the store
+ required: true
+ inline_object:
+ content:
+ application/x-www-form-urlencoded:
+ schema:
+ $ref: '#/components/schemas/inline_object'
+ inline_object_1:
+ content:
+ multipart/form-data:
+ schema:
+ $ref: '#/components/schemas/inline_object_1'
+ inline_object_2:
+ content:
+ application/x-www-form-urlencoded:
+ schema:
+ $ref: '#/components/schemas/inline_object_2'
+ inline_object_3:
+ content:
+ application/x-www-form-urlencoded:
+ schema:
+ $ref: '#/components/schemas/inline_object_3'
+ inline_object_4:
+ content:
+ application/x-www-form-urlencoded:
+ schema:
+ $ref: '#/components/schemas/inline_object_4'
+ inline_object_5:
+ content:
+ multipart/form-data:
+ schema:
+ $ref: '#/components/schemas/inline_object_5'
schemas:
+ Foo:
+ example:
+ bar: bar
+ properties:
+ bar:
+ default: bar
+ type: string
+ type: object
+ Bar:
+ default: bar
+ type: string
Order:
example:
petId: 6
@@ -1425,21 +1552,12 @@ components:
message:
type: string
type: object
- $special[model.name]:
- properties:
- $special[property.name]:
- format: int64
- type: integer
- type: object
- xml:
- name: $special[model.name]
Return:
description: Model for testing reserved words
properties:
return:
format: int32
type: integer
- type: object
xml:
name: Return
Name:
@@ -1459,7 +1577,6 @@ components:
type: integer
required:
- name
- type: object
xml:
name: Name
"200_response":
@@ -1470,7 +1587,6 @@ components:
type: integer
class:
type: string
- type: object
xml:
name: Name
ClassModel:
@@ -1478,7 +1594,6 @@ components:
properties:
_class:
type: string
- type: object
Dog:
allOf:
- $ref: '#/components/schemas/Animal'
@@ -1487,10 +1602,6 @@ components:
allOf:
- $ref: '#/components/schemas/Animal'
- $ref: '#/components/schemas/Cat_allOf'
- BigCat:
- allOf:
- - $ref: '#/components/schemas/Cat'
- - $ref: '#/components/schemas/BigCat_allOf'
Animal:
discriminator:
propertyName: className
@@ -1510,13 +1621,13 @@ components:
format_test:
properties:
integer:
- maximum: 1E+2
- minimum: 1E+1
+ maximum: 100
+ minimum: 10
type: integer
int32:
format: int32
- maximum: 2E+2
- minimum: 2E+1
+ maximum: 200
+ minimum: 20
type: integer
int64:
format: int64
@@ -1535,12 +1646,14 @@ components:
maximum: 123.4
minimum: 67.8
type: number
+ decimal:
+ format: number
+ type: string
string:
pattern: /[a-z]/i
type: string
byte:
format: byte
- pattern: ^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$
type: string
binary:
format: binary
@@ -1560,8 +1673,14 @@ components:
maxLength: 64
minLength: 10
type: string
- BigDecimal:
- format: number
+ pattern_with_digits:
+ description: A string that is a 10 digit number. Can have leading zeros.
+ pattern: ^\d{10}$
+ type: string
+ pattern_with_digits_and_delimiter:
+ description: A string starting with 'image_' (case insensitive) and one
+ to three digits following i.e. Image_01.
+ pattern: /^image_\d{1,3}$/i
type: string
required:
- byte
@@ -1604,117 +1723,27 @@ components:
type: number
outerEnum:
$ref: '#/components/schemas/OuterEnum'
+ outerEnumInteger:
+ $ref: '#/components/schemas/OuterEnumInteger'
+ outerEnumDefaultValue:
+ $ref: '#/components/schemas/OuterEnumDefaultValue'
+ outerEnumIntegerDefaultValue:
+ $ref: '#/components/schemas/OuterEnumIntegerDefaultValue'
required:
- enum_string_required
type: object
AdditionalPropertiesClass:
properties:
- map_string:
+ map_property:
additionalProperties:
type: string
type: object
- map_number:
- additionalProperties:
- type: number
- type: object
- map_integer:
- additionalProperties:
- type: integer
- type: object
- map_boolean:
- additionalProperties:
- type: boolean
- type: object
- map_array_integer:
- additionalProperties:
- items:
- type: integer
- type: array
- type: object
- map_array_anytype:
- additionalProperties:
- items:
- properties: {}
- type: object
- type: array
- type: object
- map_map_string:
+ map_of_map_property:
additionalProperties:
additionalProperties:
type: string
type: object
type: object
- map_map_anytype:
- additionalProperties:
- additionalProperties:
- properties: {}
- type: object
- type: object
- type: object
- anytype_1:
- properties: {}
- type: object
- anytype_2:
- type: object
- anytype_3:
- properties: {}
- type: object
- type: object
- AdditionalPropertiesString:
- additionalProperties:
- type: string
- properties:
- name:
- type: string
- type: object
- AdditionalPropertiesInteger:
- additionalProperties:
- type: integer
- properties:
- name:
- type: string
- type: object
- AdditionalPropertiesNumber:
- additionalProperties:
- type: number
- properties:
- name:
- type: string
- type: object
- AdditionalPropertiesBoolean:
- additionalProperties:
- type: boolean
- properties:
- name:
- type: string
- type: object
- AdditionalPropertiesArray:
- additionalProperties:
- items:
- properties: {}
- type: object
- type: array
- properties:
- name:
- type: string
- type: object
- AdditionalPropertiesObject:
- additionalProperties:
- additionalProperties:
- properties: {}
- type: object
- type: object
- properties:
- name:
- type: string
- type: object
- AdditionalPropertiesAnyType:
- additionalProperties:
- properties: {}
- type: object
- properties:
- name:
- type: string
type: object
MixedPropertiesAndAdditionalPropertiesClass:
properties:
@@ -1804,6 +1833,8 @@ components:
array_of_string:
items:
type: string
+ maxItems: 3
+ minItems: 0
type: array
array_array_of_integer:
items:
@@ -1860,7 +1891,29 @@ components:
- placed
- approved
- delivered
+ nullable: true
type: string
+ OuterEnumInteger:
+ enum:
+ - 0
+ - 1
+ - 2
+ example: 2
+ type: integer
+ OuterEnumDefaultValue:
+ default: placed
+ enum:
+ - placed
+ - approved
+ - delivered
+ type: string
+ OuterEnumIntegerDefaultValue:
+ default: 0
+ enum:
+ - 0
+ - 1
+ - 2
+ type: integer
OuterComposite:
example:
my_string: my_string
@@ -1910,243 +1963,254 @@ components:
description: Test capitalization
type: string
type: object
- TypeHolderDefault:
+ _special_model.name_:
properties:
- string_item:
- default: what
- type: string
- number_item:
- type: number
- integer_item:
+ $special[property.name]:
+ format: int64
type: integer
- bool_item:
- default: true
- type: boolean
- array_item:
- items:
- type: integer
- type: array
- required:
- - array_item
- - bool_item
- - integer_item
- - number_item
- - string_item
- type: object
- TypeHolderExample:
- properties:
- string_item:
- example: what
- type: string
- number_item:
- example: 1.234
- type: number
- float_item:
- example: 1.234
- format: float
- type: number
- integer_item:
- example: -2
- type: integer
- bool_item:
- example: true
- type: boolean
- array_item:
- example:
- - 0
- - 1
- - 2
- - 3
- items:
- type: integer
- type: array
- required:
- - array_item
- - bool_item
- - float_item
- - integer_item
- - number_item
- - string_item
- type: object
- XmlItem:
- properties:
- attribute_string:
- example: string
- type: string
- xml:
- attribute: true
- attribute_number:
- example: 1.234
- type: number
- xml:
- attribute: true
- attribute_integer:
- example: -2
- type: integer
- xml:
- attribute: true
- attribute_boolean:
- example: true
- type: boolean
- xml:
- attribute: true
- wrapped_array:
- items:
- type: integer
- type: array
- xml:
- wrapped: true
- name_string:
- example: string
- type: string
- xml:
- name: xml_name_string
- name_number:
- example: 1.234
- type: number
- xml:
- name: xml_name_number
- name_integer:
- example: -2
- type: integer
- xml:
- name: xml_name_integer
- name_boolean:
- example: true
- type: boolean
- xml:
- name: xml_name_boolean
- name_array:
- items:
- type: integer
- xml:
- name: xml_name_array_item
- type: array
- name_wrapped_array:
- items:
- type: integer
- xml:
- name: xml_name_wrapped_array_item
- type: array
- xml:
- name: xml_name_wrapped_array
- wrapped: true
- prefix_string:
- example: string
- type: string
- xml:
- prefix: ab
- prefix_number:
- example: 1.234
- type: number
- xml:
- prefix: cd
- prefix_integer:
- example: -2
- type: integer
- xml:
- prefix: ef
- prefix_boolean:
- example: true
- type: boolean
- xml:
- prefix: gh
- prefix_array:
- items:
- type: integer
- xml:
- prefix: ij
- type: array
- prefix_wrapped_array:
- items:
- type: integer
- xml:
- prefix: mn
- type: array
- xml:
- prefix: kl
- wrapped: true
- namespace_string:
- example: string
- type: string
- xml:
- namespace: http://a.com/schema
- namespace_number:
- example: 1.234
- type: number
- xml:
- namespace: http://b.com/schema
- namespace_integer:
- example: -2
- type: integer
- xml:
- namespace: http://c.com/schema
- namespace_boolean:
- example: true
- type: boolean
- xml:
- namespace: http://d.com/schema
- namespace_array:
- items:
- type: integer
- xml:
- namespace: http://e.com/schema
- type: array
- namespace_wrapped_array:
- items:
- type: integer
- xml:
- namespace: http://g.com/schema
- type: array
- xml:
- namespace: http://f.com/schema
- wrapped: true
- prefix_ns_string:
- example: string
- type: string
- xml:
- namespace: http://a.com/schema
- prefix: a
- prefix_ns_number:
- example: 1.234
- type: number
- xml:
- namespace: http://b.com/schema
- prefix: b
- prefix_ns_integer:
- example: -2
- type: integer
- xml:
- namespace: http://c.com/schema
- prefix: c
- prefix_ns_boolean:
- example: true
- type: boolean
- xml:
- namespace: http://d.com/schema
- prefix: d
- prefix_ns_array:
- items:
- type: integer
- xml:
- namespace: http://e.com/schema
- prefix: e
- type: array
- prefix_ns_wrapped_array:
- items:
- type: integer
- xml:
- namespace: http://g.com/schema
- prefix: g
- type: array
- xml:
- namespace: http://f.com/schema
- prefix: f
- wrapped: true
- type: object
xml:
- namespace: http://a.com/schema
- prefix: pre
+ name: $special[model.name]
+ HealthCheckResult:
+ description: Just a string to inform instance is up and running. Make it nullable
+ in hope to get it as pointer in generated model.
+ example:
+ NullableMessage: NullableMessage
+ properties:
+ NullableMessage:
+ nullable: true
+ type: string
+ type: object
+ NullableClass:
+ additionalProperties:
+ nullable: true
+ type: object
+ properties:
+ integer_prop:
+ nullable: true
+ type: integer
+ number_prop:
+ nullable: true
+ type: number
+ boolean_prop:
+ nullable: true
+ type: boolean
+ string_prop:
+ nullable: true
+ type: string
+ date_prop:
+ format: date
+ nullable: true
+ type: string
+ datetime_prop:
+ format: date-time
+ nullable: true
+ type: string
+ array_nullable_prop:
+ items:
+ type: object
+ nullable: true
+ type: array
+ array_and_items_nullable_prop:
+ items:
+ nullable: true
+ type: object
+ nullable: true
+ type: array
+ array_items_nullable:
+ items:
+ nullable: true
+ type: object
+ type: array
+ object_nullable_prop:
+ additionalProperties:
+ type: object
+ nullable: true
+ type: object
+ object_and_items_nullable_prop:
+ additionalProperties:
+ nullable: true
+ type: object
+ nullable: true
+ type: object
+ object_items_nullable:
+ additionalProperties:
+ nullable: true
+ type: object
+ type: object
+ type: object
+ OuterObjectWithEnumProperty:
+ example:
+ value: 2
+ properties:
+ value:
+ $ref: '#/components/schemas/OuterEnumInteger'
+ required:
+ - value
+ type: object
+ DeprecatedObject:
+ deprecated: true
+ properties:
+ name:
+ type: string
+ type: object
+ ObjectWithDeprecatedFields:
+ properties:
+ uuid:
+ type: string
+ id:
+ deprecated: true
+ type: number
+ deprecatedRef:
+ $ref: '#/components/schemas/DeprecatedObject'
+ bars:
+ deprecated: true
+ items:
+ $ref: '#/components/schemas/Bar'
+ type: array
+ type: object
+ inline_response_default:
+ example:
+ string:
+ bar: bar
+ properties:
+ string:
+ $ref: '#/components/schemas/Foo'
+ type: object
+ inline_object:
+ properties:
+ name:
+ description: Updated name of the pet
+ type: string
+ status:
+ description: Updated status of the pet
+ type: string
+ type: object
+ inline_object_1:
+ properties:
+ additionalMetadata:
+ description: Additional data to pass to server
+ type: string
+ file:
+ description: file to upload
+ format: binary
+ type: string
+ type: object
+ inline_object_2:
+ properties:
+ enum_form_string_array:
+ description: Form parameter enum test (string array)
+ items:
+ default: $
+ enum:
+ - '>'
+ - $
+ type: string
+ type: array
+ enum_form_string:
+ default: -efg
+ description: Form parameter enum test (string)
+ enum:
+ - _abc
+ - -efg
+ - (xyz)
+ type: string
+ type: object
+ inline_object_3:
+ properties:
+ integer:
+ description: None
+ maximum: 100
+ minimum: 10
+ type: integer
+ int32:
+ description: None
+ format: int32
+ maximum: 200
+ minimum: 20
+ type: integer
+ int64:
+ description: None
+ format: int64
+ type: integer
+ number:
+ description: None
+ maximum: 543.2
+ minimum: 32.1
+ type: number
+ float:
+ description: None
+ format: float
+ maximum: 987.6
+ type: number
+ double:
+ description: None
+ format: double
+ maximum: 123.4
+ minimum: 67.8
+ type: number
+ string:
+ description: None
+ pattern: /[a-z]/i
+ type: string
+ pattern_without_delimiter:
+ description: None
+ pattern: ^[A-Z].*
+ type: string
+ byte:
+ description: None
+ format: byte
+ type: string
+ binary:
+ description: None
+ format: binary
+ type: string
+ date:
+ description: None
+ format: date
+ type: string
+ dateTime:
+ description: None
+ format: date-time
+ type: string
+ password:
+ description: None
+ format: password
+ maxLength: 64
+ minLength: 10
+ type: string
+ callback:
+ description: None
+ type: string
+ required:
+ - byte
+ - double
+ - number
+ - pattern_without_delimiter
+ type: object
+ inline_object_4:
+ properties:
+ param:
+ description: field1
+ type: string
+ param2:
+ description: field2
+ type: string
+ required:
+ - param
+ - param2
+ type: object
+ inline_object_5:
+ properties:
+ additionalMetadata:
+ description: Additional data to pass to server
+ type: string
+ requiredFile:
+ description: file to upload
+ format: binary
+ type: string
+ required:
+ - requiredFile
+ type: object
Dog_allOf:
properties:
breed:
@@ -2157,16 +2221,6 @@ components:
declawed:
type: boolean
type: object
- BigCat_allOf:
- properties:
- kind:
- enum:
- - lions
- - tigers
- - leopards
- - jaguars
- type: string
- type: object
securitySchemes:
petstore_auth:
flows:
@@ -2187,5 +2241,11 @@ components:
http_basic_test:
scheme: basic
type: http
-x-original-swagger-version: "2.0"
+ bearer_test:
+ bearerFormat: JWT
+ scheme: bearer
+ type: http
+ http_signature_test:
+ scheme: signature
+ type: http
diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/ApiClient.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/ApiClient.java
index 118b665aeaf..6dcf3fd1790 100644
--- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/ApiClient.java
+++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/ApiClient.java
@@ -53,8 +53,12 @@ public class ApiClient {
auth = new ApiKeyAuth("header", "api_key");
} else if ("api_key_query".equals(authName)) {
auth = new ApiKeyAuth("query", "api_key_query");
+ } else if ("bearer_test".equals(authName)) {
+ auth = new HttpBearerAuth("bearer");
} else if ("http_basic_test".equals(authName)) {
auth = new HttpBasicAuth();
+ } else if ("http_signature_test".equals(authName)) {
+ auth = new HttpBearerAuth("signature");
} else if ("petstore_auth".equals(authName)) {
auth = buildOauthRequestInterceptor(OAuthFlow.implicit, "http://petstore.swagger.io/api/oauth/dialog", "", "write:pets, read:pets");
} else {
diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
index 2cefc6e4185..a7d60c2b64f 100644
--- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
+++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
@@ -18,7 +18,7 @@ public interface AnotherFakeApi extends ApiClient.Api {
/**
* To test special tags
* To test special tags and operation ID starting with number
- * @param body client model (required)
+ * @param client client model (required)
* @return Client
*/
@RequestLine("PATCH /another-fake/dummy")
@@ -26,5 +26,5 @@ public interface AnotherFakeApi extends ApiClient.Api {
"Content-Type: application/json",
"Accept: application/json",
})
- Client call123testSpecialTags(Client body);
+ Client call123testSpecialTags(Client client);
}
diff --git a/samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/api/DefaultApi.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/DefaultApi.java
similarity index 100%
rename from samples/client/petstore/java/feign-openapi3/src/main/java/org/openapitools/client/api/DefaultApi.java
rename to samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/DefaultApi.java
diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/FakeApi.java
index d1d0e6ed88e..c70e1a6b159 100644
--- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/FakeApi.java
+++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/FakeApi.java
@@ -7,11 +7,13 @@ import java.math.BigDecimal;
import org.openapitools.client.model.Client;
import java.io.File;
import org.openapitools.client.model.FileSchemaTestClass;
+import org.openapitools.client.model.HealthCheckResult;
import org.threeten.bp.LocalDate;
import org.threeten.bp.OffsetDateTime;
import org.openapitools.client.model.OuterComposite;
+import org.openapitools.client.model.OuterObjectWithEnumProperty;
+import org.openapitools.client.model.Pet;
import org.openapitools.client.model.User;
-import org.openapitools.client.model.XmlItem;
import java.util.ArrayList;
import java.util.HashMap;
@@ -24,16 +26,65 @@ public interface FakeApi extends ApiClient.Api {
/**
- * creates an XmlItem
- * this route creates an XmlItem
- * @param xmlItem XmlItem Body (required)
+ * Health check endpoint
+ *
+ * @return HealthCheckResult
*/
- @RequestLine("POST /fake/create_xml_item")
+ @RequestLine("GET /fake/health")
@Headers({
- "Content-Type: application/xml",
"Accept: application/json",
})
- void createXmlItem(XmlItem xmlItem);
+ HealthCheckResult fakeHealthGet();
+
+ /**
+ * test http signature authentication
+ *
+ * @param pet Pet object that needs to be added to the store (required)
+ * @param query1 query parameter (optional)
+ * @param header1 header parameter (optional)
+ */
+ @RequestLine("GET /fake/http-signature-test?query_1={query1}")
+ @Headers({
+ "Content-Type: application/json",
+ "Accept: application/json",
+ "header_1: {header1}"
+ })
+ void fakeHttpSignatureTest(Pet pet, @Param("query1") String query1, @Param("header1") String header1);
+
+ /**
+ * test http signature authentication
+ *
+ * Note, this is equivalent to the other fakeHttpSignatureTest
method,
+ * but with the query parameters collected into a single Map parameter. This
+ * is convenient for services with optional query parameters, especially when
+ * used with the {@link FakeHttpSignatureTestQueryParams} class that allows for
+ * building up this map in a fluent style.
+ * @param pet Pet object that needs to be added to the store (required)
+ * @param header1 header parameter (optional)
+ * @param queryParams Map of query parameters as name-value pairs
+ * The following elements may be specified in the query map:
+ *
+ * - query1 - query parameter (optional)
+ *
+ */
+ @RequestLine("GET /fake/http-signature-test?query_1={query1}")
+ @Headers({
+ "Content-Type: application/json",
+ "Accept: application/json",
+ "header_1: {header1}"
+ })
+ void fakeHttpSignatureTest(Pet pet, @Param("header1") String header1, @QueryMap(encoded=true) Map queryParams);
+
+ /**
+ * A convenience class for generating query parameters for the
+ * fakeHttpSignatureTest
method in a fluent style.
+ */
+ public static class FakeHttpSignatureTestQueryParams extends HashMap {
+ public FakeHttpSignatureTestQueryParams query1(final String value) {
+ put("query_1", EncodingUtils.encode(value));
+ return this;
+ }
+ }
/**
*
@@ -43,7 +94,7 @@ public interface FakeApi extends ApiClient.Api {
*/
@RequestLine("POST /fake/outer/boolean")
@Headers({
- "Content-Type: */*",
+ "Content-Type: application/json",
"Accept: */*",
})
Boolean fakeOuterBooleanSerialize(Boolean body);
@@ -51,15 +102,15 @@ public interface FakeApi extends ApiClient.Api {
/**
*
* Test serialization of object with outer number type
- * @param body Input composite as post body (optional)
+ * @param outerComposite Input composite as post body (optional)
* @return OuterComposite
*/
@RequestLine("POST /fake/outer/composite")
@Headers({
- "Content-Type: */*",
+ "Content-Type: application/json",
"Accept: */*",
})
- OuterComposite fakeOuterCompositeSerialize(OuterComposite body);
+ OuterComposite fakeOuterCompositeSerialize(OuterComposite outerComposite);
/**
*
@@ -69,7 +120,7 @@ public interface FakeApi extends ApiClient.Api {
*/
@RequestLine("POST /fake/outer/number")
@Headers({
- "Content-Type: */*",
+ "Content-Type: application/json",
"Accept: */*",
})
BigDecimal fakeOuterNumberSerialize(BigDecimal body);
@@ -82,35 +133,60 @@ public interface FakeApi extends ApiClient.Api {
*/
@RequestLine("POST /fake/outer/string")
@Headers({
- "Content-Type: */*",
+ "Content-Type: application/json",
"Accept: */*",
})
String fakeOuterStringSerialize(String body);
/**
*
- * For this test, the body for this request much reference a schema named `File`.
- * @param body (required)
+ * Test serialization of enum (int) properties with examples
+ * @param outerObjectWithEnumProperty Input enum (int) as post body (required)
+ * @return OuterObjectWithEnumProperty
+ */
+ @RequestLine("POST /fake/property/enum-int")
+ @Headers({
+ "Content-Type: application/json",
+ "Accept: */*",
+ })
+ OuterObjectWithEnumProperty fakePropertyEnumIntegerSerialize(OuterObjectWithEnumProperty outerObjectWithEnumProperty);
+
+ /**
+ *
+ * For this test, the body has to be a binary file.
+ * @param body image to upload (required)
+ */
+ @RequestLine("PUT /fake/body-with-binary")
+ @Headers({
+ "Content-Type: image/png",
+ "Accept: application/json",
+ })
+ void testBodyWithBinary(File body);
+
+ /**
+ *
+ * For this test, the body for this request must reference a schema named `File`.
+ * @param fileSchemaTestClass (required)
*/
@RequestLine("PUT /fake/body-with-file-schema")
@Headers({
"Content-Type: application/json",
"Accept: application/json",
})
- void testBodyWithFileSchema(FileSchemaTestClass body);
+ void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass);
/**
*
*
* @param query (required)
- * @param body (required)
+ * @param user (required)
*/
@RequestLine("PUT /fake/body-with-query-params?query={query}")
@Headers({
"Content-Type: application/json",
"Accept: application/json",
})
- void testBodyWithQueryParams(@Param("query") String query, User body);
+ void testBodyWithQueryParams(@Param("query") String query, User user);
/**
*
@@ -120,7 +196,7 @@ public interface FakeApi extends ApiClient.Api {
* is convenient for services with optional query parameters, especially when
* used with the {@link TestBodyWithQueryParamsQueryParams} class that allows for
* building up this map in a fluent style.
- * @param body (required)
+ * @param user (required)
* @param queryParams Map of query parameters as name-value pairs
* The following elements may be specified in the query map:
*
@@ -132,7 +208,7 @@ public interface FakeApi extends ApiClient.Api {
"Content-Type: application/json",
"Accept: application/json",
})
- void testBodyWithQueryParams(User body, @QueryMap(encoded=true) Map queryParams);
+ void testBodyWithQueryParams(User user, @QueryMap(encoded=true) Map queryParams);
/**
* A convenience class for generating query parameters for the
@@ -148,7 +224,7 @@ public interface FakeApi extends ApiClient.Api {
/**
* To test \"client\" model
* To test \"client\" model
- * @param body client model (required)
+ * @param client client model (required)
* @return Client
*/
@RequestLine("PATCH /fake")
@@ -156,11 +232,11 @@ public interface FakeApi extends ApiClient.Api {
"Content-Type: application/json",
"Accept: application/json",
})
- Client testClientModel(Client body);
+ Client testClientModel(Client client);
/**
- * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
- * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
+ * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
+ * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
* @param number None (required)
* @param _double None (required)
* @param patternWithoutDelimiter None (required)
@@ -242,7 +318,7 @@ public interface FakeApi extends ApiClient.Api {
*/
public static class TestEnumParametersQueryParams extends HashMap {
public TestEnumParametersQueryParams enumQueryStringArray(final List value) {
- put("enum_query_string_array", EncodingUtils.encodeCollection(value, "csv"));
+ put("enum_query_string_array", EncodingUtils.encodeCollection(value, "multi"));
return this;
}
public TestEnumParametersQueryParams enumQueryString(final String value) {
@@ -332,14 +408,14 @@ public interface FakeApi extends ApiClient.Api {
/**
* test inline additionalProperties
*
- * @param param request body (required)
+ * @param requestBody request body (required)
*/
@RequestLine("POST /fake/inline-additionalProperties")
@Headers({
"Content-Type: application/json",
"Accept: application/json",
})
- void testInlineAdditionalProperties(Map param);
+ void testInlineAdditionalProperties(Map requestBody);
/**
* test json serialization of form data
@@ -399,7 +475,7 @@ public interface FakeApi extends ApiClient.Api {
*/
public static class TestQueryParameterCollectionFormatQueryParams extends HashMap {
public TestQueryParameterCollectionFormatQueryParams pipe(final List value) {
- put("pipe", EncodingUtils.encodeCollection(value, "csv"));
+ put("pipe", EncodingUtils.encodeCollection(value, "pipes"));
return this;
}
public TestQueryParameterCollectionFormatQueryParams ioutil(final List value) {
diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java
index c22fbfa8d74..17c6bfa6695 100644
--- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java
+++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java
@@ -18,7 +18,7 @@ public interface FakeClassnameTags123Api extends ApiClient.Api {
/**
* To test class name in snake case
* To test class name in snake case
- * @param body client model (required)
+ * @param client client model (required)
* @return Client
*/
@RequestLine("PATCH /fake_classname_test")
@@ -26,5 +26,5 @@ public interface FakeClassnameTags123Api extends ApiClient.Api {
"Content-Type: application/json",
"Accept: application/json",
})
- Client testClassname(Client body);
+ Client testClassname(Client client);
}
diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/PetApi.java
index cb7ab4bbe63..10cb8950f63 100644
--- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/PetApi.java
+++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/PetApi.java
@@ -21,14 +21,14 @@ public interface PetApi extends ApiClient.Api {
/**
* Add a new pet to the store
*
- * @param body Pet object that needs to be added to the store (required)
+ * @param pet Pet object that needs to be added to the store (required)
*/
@RequestLine("POST /pet")
@Headers({
"Content-Type: application/json",
"Accept: application/json",
})
- void addPet(Pet body);
+ void addPet(Pet pet);
/**
* Deletes a pet
@@ -150,14 +150,14 @@ public interface PetApi extends ApiClient.Api {
/**
* Update an existing pet
*
- * @param body Pet object that needs to be added to the store (required)
+ * @param pet Pet object that needs to be added to the store (required)
*/
@RequestLine("PUT /pet")
@Headers({
"Content-Type: application/json",
"Accept: application/json",
})
- void updatePet(Pet body);
+ void updatePet(Pet pet);
/**
* Updates a pet in the store with form data
diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/StoreApi.java
index 5ba8227e99b..21611cabe79 100644
--- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/StoreApi.java
+++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/StoreApi.java
@@ -52,13 +52,13 @@ public interface StoreApi extends ApiClient.Api {
/**
* Place an order for a pet
*
- * @param body order placed for purchasing the pet (required)
+ * @param order order placed for purchasing the pet (required)
* @return Order
*/
@RequestLine("POST /store/order")
@Headers({
- "Content-Type: */*",
+ "Content-Type: application/json",
"Accept: application/json",
})
- Order placeOrder(Order body);
+ Order placeOrder(Order order);
}
diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/UserApi.java
index 40b6010dab2..f7f9fcb3194 100644
--- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/UserApi.java
+++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/UserApi.java
@@ -18,38 +18,38 @@ public interface UserApi extends ApiClient.Api {
/**
* Create user
* This can only be done by the logged in user.
- * @param body Created user object (required)
+ * @param user Created user object (required)
*/
@RequestLine("POST /user")
@Headers({
- "Content-Type: */*",
+ "Content-Type: application/json",
"Accept: application/json",
})
- void createUser(User body);
+ void createUser(User user);
/**
* Creates list of users with given input array
*
- * @param body List of user object (required)
+ * @param user List of user object (required)
*/
@RequestLine("POST /user/createWithArray")
@Headers({
- "Content-Type: */*",
+ "Content-Type: application/json",
"Accept: application/json",
})
- void createUsersWithArrayInput(List body);
+ void createUsersWithArrayInput(List user);
/**
* Creates list of users with given input array
*
- * @param body List of user object (required)
+ * @param user List of user object (required)
*/
@RequestLine("POST /user/createWithList")
@Headers({
- "Content-Type: */*",
+ "Content-Type: application/json",
"Accept: application/json",
})
- void createUsersWithListInput(List body);
+ void createUsersWithListInput(List user);
/**
* Delete user
@@ -138,12 +138,12 @@ public interface UserApi extends ApiClient.Api {
* 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)
+ * @param user Updated user object (required)
*/
@RequestLine("PUT /user/{username}")
@Headers({
- "Content-Type: */*",
+ "Content-Type: application/json",
"Accept: application/json",
})
- void updateUser(@Param("username") String username, User body);
+ void updateUser(@Param("username") String username, User user);
}
diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java
index 4e476cf79de..ae545659226 100644
--- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java
+++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java
@@ -22,7 +22,6 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
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;
@@ -32,413 +31,86 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
* 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
+ AdditionalPropertiesClass.JSON_PROPERTY_MAP_PROPERTY,
+ AdditionalPropertiesClass.JSON_PROPERTY_MAP_OF_MAP_PROPERTY
})
@JsonTypeName("AdditionalPropertiesClass")
@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_PROPERTY = "map_property";
+ private Map mapProperty = 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 static final String JSON_PROPERTY_MAP_OF_MAP_PROPERTY = "map_of_map_property";
+ private Map> mapOfMapProperty = null;
- public AdditionalPropertiesClass mapString(Map mapString) {
+ public AdditionalPropertiesClass mapProperty(Map mapProperty) {
- this.mapString = mapString;
+ this.mapProperty = mapProperty;
return this;
}
- public AdditionalPropertiesClass putMapStringItem(String key, String mapStringItem) {
- if (this.mapString == null) {
- this.mapString = new HashMap();
+ public AdditionalPropertiesClass putMapPropertyItem(String key, String mapPropertyItem) {
+ if (this.mapProperty == null) {
+ this.mapProperty = new HashMap();
}
- this.mapString.put(key, mapStringItem);
+ this.mapProperty.put(key, mapPropertyItem);
return this;
}
/**
- * Get mapString
- * @return mapString
+ * Get mapProperty
+ * @return mapProperty
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_MAP_STRING)
+ @JsonProperty(JSON_PROPERTY_MAP_PROPERTY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public Map getMapString() {
- return mapString;
+ public Map getMapProperty() {
+ return mapProperty;
}
- @JsonProperty(JSON_PROPERTY_MAP_STRING)
+ @JsonProperty(JSON_PROPERTY_MAP_PROPERTY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setMapString(Map mapString) {
- this.mapString = mapString;
+ public void setMapProperty(Map mapProperty) {
+ this.mapProperty = mapProperty;
}
- public AdditionalPropertiesClass mapNumber(Map mapNumber) {
+ public AdditionalPropertiesClass mapOfMapProperty(Map> mapOfMapProperty) {
- this.mapNumber = mapNumber;
+ this.mapOfMapProperty = mapOfMapProperty;
return this;
}
- public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumberItem) {
- if (this.mapNumber == null) {
- this.mapNumber = new HashMap();
+ public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map mapOfMapPropertyItem) {
+ if (this.mapOfMapProperty == null) {
+ this.mapOfMapProperty = new HashMap>();
}
- this.mapNumber.put(key, mapNumberItem);
+ this.mapOfMapProperty.put(key, mapOfMapPropertyItem);
return this;
}
/**
- * Get mapNumber
- * @return mapNumber
+ * Get mapOfMapProperty
+ * @return mapOfMapProperty
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
- @JsonProperty(JSON_PROPERTY_MAP_NUMBER)
+ @JsonProperty(JSON_PROPERTY_MAP_OF_MAP_PROPERTY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public Map getMapNumber() {
- return mapNumber;
+ public Map> getMapOfMapProperty() {
+ return mapOfMapProperty;
}
- @JsonProperty(JSON_PROPERTY_MAP_NUMBER)
+ @JsonProperty(JSON_PROPERTY_MAP_OF_MAP_PROPERTY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- 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;
- }
-
-
- @JsonProperty(JSON_PROPERTY_MAP_INTEGER)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- 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