VYPR
Moderate severityNVD Advisory· Published Mar 11, 2021· Updated Aug 3, 2024

Generated Code Contains Local Information Disclosure Vulnerability

CVE-2021-21364

Description

Swagger-codegen before 2.4.19 creates temporary files with insecure permissions, allowing local users to read sensitive data.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Swagger-codegen before 2.4.19 creates temporary files with insecure permissions, allowing local users to read sensitive data.

Vulnerability

In swagger-codegen versions prior to 2.4.19, the generated code uses File.createTempFile from the JDK, which respects the default umask and creates files with world-readable permissions (-rw-r--r--) on Unix-like systems [1][3]. Since the temporary directory is shared among all local users, this leads to a local information disclosure vulnerability [2].

Exploitation

An attacker with local access to the system can read temporary files created by the generated code. No special privileges are required beyond being a local user [2]. The vulnerability impacts the generated code itself; if the code is generated once and not part of an automated process, it remains vulnerable until manually fixed [3].

Impact

Successful exploitation allows a local attacker to read sensitive data that may be stored in temporary files, such as authentication tokens or API responses, leading to information disclosure [2].

Mitigation

The vulnerability is fixed in version 2.4.19 of swagger-codegen [1][2]. Users of earlier versions should upgrade or manually patch the generated code to use java.nio.file.Files instead of java.io.File.createTempFile [3].

AI Insight generated on May 21, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
io.swagger:swagger-codegenMaven
< 2.4.192.4.19

Affected products

2

Patches

1
35adbd552d5f

Merge pull request from GHSA-hpv8-9rq5-hq7w

https://github.com/swagger-api/swagger-codegenFrancesco TumanischviliMar 2, 2021via ghsa
159 files changed · +178 12652
  • bin/java-petstore-all.sh+0 1 modified
    @@ -12,7 +12,6 @@
     ./bin/java-petstore-retrofit2rx2.sh
     ./bin/java8-petstore-jersey2.sh
     ./bin/java-petstore-retrofit2-play24.sh
    -./bin/java-petstore-jersey2-java6.sh
     ./bin/java-petstore-resttemplate.sh
     ./bin/java-petstore-resttemplate-withxml.sh
     ./bin/java-petstore-resteasy.sh
    
  • bin/java-petstore-jersey2-java6.sh+0 34 removed
    @@ -1,34 +0,0 @@
    -#!/bin/sh
    -
    -SCRIPT="$0"
    -
    -while [ -h "$SCRIPT" ] ; do
    -  ls=`ls -ld "$SCRIPT"`
    -  link=`expr "$ls" : '.*-> \(.*\)$'`
    -  if expr "$link" : '/.*' > /dev/null; then
    -    SCRIPT="$link"
    -  else
    -    SCRIPT=`dirname "$SCRIPT"`/"$link"
    -  fi
    -done
    -
    -if [ ! -d "${APP_DIR}" ]; then
    -  APP_DIR=`dirname "$SCRIPT"`/..
    -  APP_DIR=`cd "${APP_DIR}"; pwd`
    -fi
    -
    -executable="./modules/swagger-codegen-cli/target/swagger-codegen-cli.jar"
    -
    -if [ ! -f "$executable" ]
    -then
    -  mvn clean package
    -fi
    -
    -# if you've executed sbt assembly previously it will use that instead.
    -export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
    -ags="$@ generate --artifact-id swagger-petstore-jersey2-java6 -i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l java -c bin/java-petstore-jersey2.json -o samples/client/petstore/java/jersey2-java6 -DhideGenerationTimestamp=true,supportJava6=true"
    -
    -echo "Removing files and folders under samples/client/petstore/java/jersey2/src/main"
    -rm -rf samples/client/petstore/java/jersey2-java6/src/main
    -find samples/client/petstore/java/jersey2-java6 -maxdepth 1 -type f ! -name "README.md" -exec rm {} +
    -java $JAVA_OPTS -jar $executable $ags
    
  • modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/AbstractJavaCodegen.java+1 1 modified
    @@ -198,7 +198,7 @@ public void processOpts() {
             super.processOpts();
     
             if (additionalProperties.containsKey(SUPPORT_JAVA6)) {
    -            this.setSupportJava6(Boolean.valueOf(additionalProperties.get(SUPPORT_JAVA6).toString()));
    +            this.setSupportJava6(false); // JAVA 6 not supported
             }
             additionalProperties.put(SUPPORT_JAVA6, supportJava6);
     
    
  • modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/JavaClientCodegen.java+0 1 modified
    @@ -69,7 +69,6 @@ public JavaClientCodegen() {
             cliOptions.add(CliOption.newBoolean(PARCELABLE_MODEL, "Whether to generate models for Android that implement Parcelable with the okhttp-gson library."));
             cliOptions.add(CliOption.newBoolean(USE_PLAY_WS, "Use Play! Async HTTP client (Play WS API)"));
             cliOptions.add(CliOption.newString(PLAY_VERSION, "Version of Play! Framework (possible values \"play24\", \"play25\")"));
    -        cliOptions.add(CliOption.newBoolean(SUPPORT_JAVA6, "Whether to support Java6 with the Jersey1 library."));
             cliOptions.add(CliOption.newBoolean(USE_BEANVALIDATION, "Use BeanValidation API annotations"));
             cliOptions.add(CliOption.newBoolean(PERFORM_BEANVALIDATION, "Perform BeanValidation"));
             cliOptions.add(CliOption.newBoolean(USE_GZIP_FEATURE, "Send gzip-encoded requests"));
    
  • modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/JavaJerseyServerCodegen.java+3 4 modified
    @@ -13,7 +13,7 @@ public class JavaJerseyServerCodegen extends AbstractJavaJAXRSServerCodegen {
     
         protected static final String LIBRARY_JERSEY1 = "jersey1";
         protected static final String LIBRARY_JERSEY2 = "jersey2";
    -    
    +
         /**
          * Default library template to use. (Default:{@value #DEFAULT_LIBRARY})
          */
    @@ -48,7 +48,6 @@ public JavaJerseyServerCodegen() {
             library.setDefault(DEFAULT_LIBRARY);
     
             cliOptions.add(library);
    -        cliOptions.add(CliOption.newBoolean(SUPPORT_JAVA6, "Whether to support Java6 with the Jersey1/2 library."));
             cliOptions.add(CliOption.newBoolean(USE_TAGS, "use tags for creating interface and controller classnames"));
         }
     
    @@ -89,11 +88,11 @@ public void processOpts() {
             if (StringUtils.isEmpty(library)) {
                 setLibrary(DEFAULT_LIBRARY);
             }
    -        
    +
             if ( additionalProperties.containsKey(CodegenConstants.IMPL_FOLDER)) {
                 implFolder = (String) additionalProperties.get(CodegenConstants.IMPL_FOLDER);
             }
    -    
    +
             if (additionalProperties.containsKey(USE_TAGS)) {
                 this.setUseTags(Boolean.valueOf(additionalProperties.get(USE_TAGS).toString()));
             }
    
  • modules/swagger-codegen/src/main/resources/finch/api.mustache+3 1 modified
    @@ -16,6 +16,8 @@ import com.twitter.util.Future
     import com.twitter.io.Buf
     import io.finch._, items._
     import java.io.File
    +import java.nio.file.Files
    +import java.nio.file.Paths
     import java.time._
     
     object {{classname}} {
    @@ -81,7 +83,7 @@ object {{classname}} {
         }
     
         private def bytesToFile(input: Array[Byte]): java.io.File = {
    -      val file = File.createTempFile("tmp{{classname}}", null)
    +      val file = Files.createTempFile("tmp{{classname}}", null).toFile()
           val output = new FileOutputStream(file)
           output.write(input)
           file
    
  • modules/swagger-codegen/src/main/resources/Java/libraries/jersey2/ApiClient.mustache+4 3 modified
    @@ -25,6 +25,7 @@ import java.io.InputStream;
     
     {{^supportJava6}}
     import java.nio.file.Files;
    +import java.nio.file.Paths;
     import java.nio.file.StandardCopyOption;
     import org.glassfish.jersey.logging.LoggingFeature;
     {{/supportJava6}}
    @@ -296,7 +297,7 @@ public class ApiClient {
       public int getReadTimeout() {
         return readTimeout;
       }
    -  
    +
       /**
        * Set the read timeout (in milliseconds).
        * A value of 0 means no timeout, otherwise values must be between 1 and
    @@ -628,9 +629,9 @@ public class ApiClient {
         }
     
         if (tempFolderPath == null)
    -      return File.createTempFile(prefix, suffix);
    +      return Files.createTempFile(prefix, suffix).toFile();
         else
    -      return File.createTempFile(prefix, suffix, new File(tempFolderPath));
    +      return Files.createTempFile(Paths.get(tempFolderPath), prefix, suffix).toFile();
       }
     
       /**
    
  • modules/swagger-codegen/src/main/resources/Java/libraries/okhttp-gson/ApiClient.mustache+5 3 modified
    @@ -24,6 +24,8 @@ import java.io.File;
     import java.io.IOException;
     import java.io.InputStream;
     import java.io.UnsupportedEncodingException;
    +import java.nio.file.Files;
    +import java.nio.file.Paths;
     import java.lang.reflect.Type;
     import java.net.URLConnection;
     import java.net.URLEncoder;
    @@ -829,9 +831,9 @@ public class ApiClient {
             }
     
             if (tempFolderPath == null)
    -            return File.createTempFile(prefix, suffix);
    +            return Files.createTempFile(prefix, suffix).toFile();
             else
    -            return File.createTempFile(prefix, suffix, new File(tempFolderPath));
    +            return Files.createTempFile(Paths.get(tempFolderPath), prefix, suffix).toFile();
         }
     
         /**
    @@ -981,7 +983,7 @@ public class ApiClient {
          * @param formParams The form parameters
          * @param authNames The authentications to apply
          * @param progressRequestListener Progress request listener
    -     * @return The HTTP request 
    +     * @return The HTTP request
          * @throws ApiException If fail to serialize the request body object
          */
         public Request buildRequest(String path, String method, List<Pair> queryParams, List<Pair> collectionQueryParams, Object body, Map<String, String> headerParams, Map<String, Object> formParams, String[] authNames, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
    
  • modules/swagger-codegen/src/main/resources/Java/libraries/resteasy/ApiClient.mustache+4 3 modified
    @@ -8,6 +8,7 @@ import java.io.InputStream;
     import java.io.UnsupportedEncodingException;
     import java.net.URLEncoder;
     import java.nio.file.Files;
    +import java.nio.file.Paths;
     import java.text.DateFormat;
     import java.text.SimpleDateFormat;
     import java.util.ArrayList;
    @@ -446,7 +447,7 @@ public class ApiClient {
       public Entity<?> serialize(Object obj, Map<String, Object> formParams, String contentType) throws ApiException {
         Entity<?> entity = null;
         if (contentType.startsWith("multipart/form-data")) {
    -      MultipartFormDataOutput multipart = new MultipartFormDataOutput();  
    +      MultipartFormDataOutput multipart = new MultipartFormDataOutput();
           //MultiPart multiPart = new MultiPart();
           for (Entry<String, Object> param: formParams.entrySet()) {
             if (param.getValue() instanceof File) {
    @@ -552,9 +553,9 @@ public class ApiClient {
         }
     
         if (tempFolderPath == null)
    -      return File.createTempFile(prefix, suffix);
    +      return Files.createTempFile(prefix, suffix).toFile();
         else
    -      return File.createTempFile(prefix, suffix, new File(tempFolderPath));
    +      return Files.createTempFile(Paths.get(tempFolderPath), prefix, suffix).toFile();
       }
     
       /**
    
  • modules/swagger-codegen/src/main/resources/kotlin-client/infrastructure/ApiClient.kt.mustache+8 7 modified
    @@ -3,6 +3,7 @@ package {{packageName}}.infrastructure
     import okhttp3.*
     import java.io.File
     import java.io.IOException
    +import java.nio.file.Files;
     import java.util.regex.Pattern
     
     open class ApiClient(val baseUrl: String) {
    @@ -64,15 +65,15 @@ open class ApiClient(val baseUrl: String) {
     
         inline protected fun <reified T: Any?> responseBody(response: Response, mediaType: String = JsonMediaType): T? {
             if(response.body() == null) return null
    -        
    +
             if(T::class.java == java.io.File::class.java){
                 return downloadFileFromResponse(response) as T
             } else if(T::class == kotlin.Unit::class) {
                 return kotlin.Unit as T
             }
    -        
    +
             var contentType = response.headers().get("Content-Type")
    -        
    +
             if(contentType == null) {
                 contentType = JsonMediaType
             }
    @@ -85,7 +86,7 @@ open class ApiClient(val baseUrl: String) {
                 TODO("Fill in more types!")
             }
         }
    -    
    +
         fun isJsonMime(mime: String?): Boolean {
             val jsonMime = "(?i)^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$"
             return mime != null && (mime.matches(jsonMime.toRegex()) || mime == "*/*")
    @@ -162,7 +163,7 @@ open class ApiClient(val baseUrl: String) {
                 )
             }
         }
    -    
    +
         @Throws(IOException::class)
         fun downloadFileFromResponse(response: Response): File {
             val file = prepareDownloadFile(response)
    @@ -206,6 +207,6 @@ open class ApiClient(val baseUrl: String) {
                 prefix = "download-"
             }
     
    -        return File.createTempFile(prefix, suffix);
    +        return Files.createTempFile(prefix, suffix).toFile();
         }
    -}
    \ No newline at end of file
    +}
    
  • modules/swagger-codegen/src/test/java/io/swagger/codegen/config/CodegenConfiguratorTest.java+0 4 modified
    @@ -162,14 +162,12 @@ public void testAdditionalProperties() throws Exception {
     
             configurator.addAdditionalProperty("foo", "bar")
                     .addAdditionalProperty("hello", "world")
    -                .addAdditionalProperty("supportJava6", false)
                     .addAdditionalProperty("useRxJava", true);
     
             final ClientOptInput clientOptInput = setupAndRunGenericTest(configurator);
     
             assertValueInMap(clientOptInput.getConfig().additionalProperties(), "foo", "bar");
             assertValueInMap(clientOptInput.getConfig().additionalProperties(), "hello", "world");
    -        assertValueInMap(clientOptInput.getConfig().additionalProperties(), "supportJava6", false);
             assertValueInMap(clientOptInput.getConfig().additionalProperties(), "useRxJava", true);
         }
     
    @@ -250,13 +248,11 @@ public void testLibrary() throws Exception {
         @Test
         public void testDynamicProperties() throws Exception {
             configurator.addDynamicProperty(CodegenConstants.LOCAL_VARIABLE_PREFIX, "_");
    -        configurator.addDynamicProperty("supportJava6", false);
             configurator.addDynamicProperty("useRxJava", true);
     
             final ClientOptInput clientOptInput = setupAndRunGenericTest(configurator);
     
             assertValueInMap(clientOptInput.getConfig().additionalProperties(), CodegenConstants.LOCAL_VARIABLE_PREFIX, "_");
    -        assertValueInMap(clientOptInput.getConfig().additionalProperties(), "supportJava6", false);
             assertValueInMap(clientOptInput.getConfig().additionalProperties(), "useRxJava", true);
         }
     
    
  • modules/swagger-codegen/src/test/java/io/swagger/codegen/jaxrs/JaxRSServerOptionsTest.java+1 3 modified
    @@ -72,10 +72,8 @@ protected void setExpectations() {
                 times = 1;
                 clientCodegen.setDateLibrary("joda");
                 times = 1;
    -            clientCodegen.setSupportJava6(false);
    -            times = 1;
                 clientCodegen.setUseBeanValidation(Boolean.valueOf(JaxRSServerOptionsProvider.USE_BEANVALIDATION));
    -            times = 1;           
    +            times = 1;
                 clientCodegen.setUseTags(Boolean.valueOf(JaxRSServerOptionsProvider.USE_TAGS));
                 times = 1;
             }};
    
  • modules/swagger-codegen/src/test/java/io/swagger/codegen/options/JavaClientOptionsProvider.java+0 1 modified
    @@ -21,7 +21,6 @@ public Map<String, String> createOptions() {
             options.put(JavaClientCodegen.USE_PLAY_WS, "false");
             options.put(JavaClientCodegen.PLAY_VERSION, JavaClientCodegen.PLAY_25);
             options.put(JavaClientCodegen.PARCELABLE_MODEL, "false");
    -        options.put(JavaClientCodegen.SUPPORT_JAVA6, "false");
             options.put(JavaClientCodegen.USE_BEANVALIDATION, "false");
             options.put(JavaClientCodegen.PERFORM_BEANVALIDATION, PERFORM_BEANVALIDATION);
             options.put(JavaClientCodegen.USE_GZIP_FEATURE, "false");
    
  • modules/swagger-codegen/src/test/java/io/swagger/codegen/options/JaxRSServerOptionsProvider.java+0 1 modified
    @@ -58,7 +58,6 @@ public Map<String, String> createOptions() {
             ImmutableMap.Builder<String, String> builder = new ImmutableMap.Builder<String, String>();
             builder.put(CodegenConstants.IMPL_FOLDER, IMPL_FOLDER_VALUE)
                 .put(JavaClientCodegen.DATE_LIBRARY, "joda") //java.lang.IllegalArgumentException: Multiple entries with same key: dateLibrary=joda and dateLibrary=joda
    -            .put(JavaClientCodegen.SUPPORT_JAVA6, "false")
                 .put("title", "Test title")
                 .put(CodegenConstants.MODEL_PACKAGE, MODEL_PACKAGE_VALUE)
                 .put(CodegenConstants.API_PACKAGE, API_PACKAGE_VALUE)
    
  • modules/swagger-codegen/src/test/resources/2_0/templates/Java/libraries/jersey2/ApiClient.mustache+3 2 modified
    @@ -27,6 +27,7 @@ import java.io.InputStream;
     
     {{^supportJava6}}
     import java.nio.file.Files;
    +import java.nio.file.Paths;
     import java.nio.file.StandardCopyOption;
     {{/supportJava6}}
     {{#supportJava6}}
    @@ -624,9 +625,9 @@ public class ApiClient {
         }
     
         if (tempFolderPath == null)
    -      return File.createTempFile(prefix, suffix);
    +      return Files.createTempFile(prefix, suffix).toFile();
         else
    -      return File.createTempFile(prefix, suffix, new File(tempFolderPath));
    +      return Files.createTempFile(Paths.get(tempFolderPath), prefix, suffix).toFile();
       }
     
       /**
    
  • pom.xml+0 12 modified
    @@ -408,18 +408,6 @@
                     <module>samples/client/petstore/java/jersey2</module>
                 </modules>
             </profile>
    -        <profile>
    -            <id>java-client-jersey2-java6</id>
    -            <activation>
    -                <property>
    -                    <name>env</name>
    -                    <value>java</value>
    -                </property>
    -            </activation>
    -            <modules>
    -                <module>samples/client/petstore/java/jersey2-java6</module>
    -            </modules>
    -        </profile>
             <profile>
                 <id>java-client-okhttp-gson</id>
                 <activation>
    
  • pom.xml.bash+0 12 modified
    @@ -408,18 +408,6 @@
                     <module>samples/client/petstore/java/jersey2</module>
                 </modules>
             </profile>
    -        <profile>
    -            <id>java-client-jersey2-java6</id>
    -            <activation>
    -                <property>
    -                    <name>env</name>
    -                    <value>java</value>
    -                </property>
    -            </activation>
    -            <modules>
    -                <module>samples/client/petstore/java/jersey2-java6</module>
    -            </modules>
    -        </profile>
             <profile>
                 <id>java-client-okhttp-gson</id>
                 <activation>
    
  • pom.xml.circleci+0 12 modified
    @@ -368,18 +368,6 @@
                     <module>samples/client/petstore/java/jersey2</module>
                 </modules>
             </profile>
    -        <profile>
    -            <id>java-client-jersey2-java6</id>
    -            <activation>
    -                <property>
    -                    <name>env</name>
    -                    <value>java</value>
    -                </property>
    -            </activation>
    -            <modules>
    -                <module>samples/client/petstore/java/jersey2-java6</module>
    -            </modules>
    -        </profile>
             <profile>
                 <id>java-client-okhttp-gson</id>
                 <activation>
    
  • pom.xml.circleci.java7+0 12 modified
    @@ -368,18 +368,6 @@
                     <module>samples/client/petstore/java/jersey2</module>
                 </modules>
             </profile>
    -        <profile>
    -            <id>java-client-jersey2-java6</id>
    -            <activation>
    -                <property>
    -                    <name>env</name>
    -                    <value>java</value>
    -                </property>
    -            </activation>
    -            <modules>
    -                <module>samples/client/petstore/java/jersey2-java6</module>
    -            </modules>
    -        </profile>
             <profile>
                 <id>java-client-okhttp-gson</id>
                 <activation>
    
  • pom.xml.ios+0 12 modified
    @@ -408,18 +408,6 @@
                     <module>samples/client/petstore/java/jersey2</module>
                 </modules>
             </profile>
    -        <profile>
    -            <id>java-client-jersey2-java6</id>
    -            <activation>
    -                <property>
    -                    <name>env</name>
    -                    <value>java</value>
    -                </property>
    -            </activation>
    -            <modules>
    -                <module>samples/client/petstore/java/jersey2-java6</module>
    -            </modules>
    -        </profile>
             <profile>
                 <id>java-client-okhttp-gson</id>
                 <activation>
    
  • pom.xml.jenkins+0 12 modified
    @@ -408,18 +408,6 @@
                     <module>samples/client/petstore/java/jersey2</module>
                 </modules>
             </profile>
    -        <profile>
    -            <id>java-client-jersey2-java6</id>
    -            <activation>
    -                <property>
    -                    <name>env</name>
    -                    <value>java</value>
    -                </property>
    -            </activation>
    -            <modules>
    -                <module>samples/client/petstore/java/jersey2-java6</module>
    -            </modules>
    -        </profile>
             <profile>
                 <id>java-client-okhttp-gson</id>
                 <activation>
    
  • pom.xml.jenkins.java7+0 12 modified
    @@ -364,18 +364,6 @@
                     <module>samples/client/petstore/java/jersey2</module>
                 </modules>
             </profile>
    -        <profile>
    -            <id>java-client-jersey2-java6</id>
    -            <activation>
    -                <property>
    -                    <name>env</name>
    -                    <value>java</value>
    -                </property>
    -            </activation>
    -            <modules>
    -                <module>samples/client/petstore/java/jersey2-java6</module>
    -            </modules>
    -        </profile>
             <profile>
                 <id>java-client-okhttp-gson</id>
                 <activation>
    
  • pom.xml.travis+0 12 modified
    @@ -408,18 +408,6 @@
                     <module>samples/client/petstore/java/jersey2</module>
                 </modules>
             </profile>
    -        <profile>
    -            <id>java-client-jersey2-java6</id>
    -            <activation>
    -                <property>
    -                    <name>env</name>
    -                    <value>java</value>
    -                </property>
    -            </activation>
    -            <modules>
    -                <module>samples/client/petstore/java/jersey2-java6</module>
    -            </modules>
    -        </profile>
             <profile>
                 <id>java-client-okhttp-gson</id>
                 <activation>
    
  • samples/client/petstore/java/jersey2-java6/build.gradle+0 117 removed
    @@ -1,117 +0,0 @@
    -apply plugin: 'idea'
    -apply plugin: 'eclipse'
    -
    -group = 'io.swagger'
    -version = '1.0.0'
    -
    -buildscript {
    -    repositories {
    -        jcenter()
    -    }
    -    dependencies {
    -        classpath 'com.android.tools.build:gradle:2.3.+'
    -        classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
    -    }
    -}
    -
    -repositories {
    -    jcenter()
    -}
    -
    -
    -if(hasProperty('target') && target == 'android') {
    -
    -    apply plugin: 'com.android.library'
    -    apply plugin: 'com.github.dcendents.android-maven'
    -
    -    android {
    -        compileSdkVersion 25
    -        buildToolsVersion '25.0.2'
    -        defaultConfig {
    -            minSdkVersion 14
    -            targetSdkVersion 25
    -        }
    -        compileOptions {
    -            sourceCompatibility JavaVersion.VERSION_1_7
    -            targetCompatibility JavaVersion.VERSION_1_7
    -        }
    -
    -        // Rename the aar correctly
    -        libraryVariants.all { variant ->
    -            variant.outputs.each { output ->
    -                def outputFile = output.outputFile
    -                if (outputFile != null && outputFile.name.endsWith('.aar')) {
    -                    def fileName = "${project.name}-${variant.baseName}-${version}.aar"
    -                    output.outputFile = new File(outputFile.parent, fileName)
    -                }
    -            }
    -        }
    -
    -        dependencies {
    -            provided 'javax.annotation:jsr250-api:1.0'
    -        }
    -    }
    -
    -    afterEvaluate {
    -        android.libraryVariants.all { variant ->
    -            def task = project.tasks.create "jar${variant.name.capitalize()}", Jar
    -            task.description = "Create jar artifact for ${variant.name}"
    -            task.dependsOn variant.javaCompile
    -            task.from variant.javaCompile.destinationDir
    -            task.destinationDir = project.file("${project.buildDir}/outputs/jar")
    -            task.archiveName = "${project.name}-${variant.baseName}-${version}.jar"
    -            artifacts.add('archives', task);
    -        }
    -    }
    -
    -    task sourcesJar(type: Jar) {
    -        from android.sourceSets.main.java.srcDirs
    -        classifier = 'sources'
    -    }
    -
    -    artifacts {
    -        archives sourcesJar
    -    }
    -
    -} else {
    -
    -    apply plugin: 'java'
    -    apply plugin: 'maven'
    -    sourceCompatibility = JavaVersion.VERSION_1_7
    -    targetCompatibility = JavaVersion.VERSION_1_7
    -
    -    install {
    -        repositories.mavenInstaller {
    -            pom.artifactId = 'swagger-petstore-jersey2-java6'
    -        }
    -    }
    -
    -    task execute(type:JavaExec) {
    -       main = System.getProperty('mainClass')
    -       classpath = sourceSets.main.runtimeClasspath
    -    }
    -}
    -
    -ext {
    -    swagger_annotations_version = "1.5.17"
    -    jackson_version = "2.10.1"
    -    jersey_version = "2.6"
    -    commons_io_version=2.5
    -    commons_lang3_version=3.6
    -    junit_version = "4.12"
    -}
    -
    -dependencies {
    -    compile "io.swagger:swagger-annotations:$swagger_annotations_version"
    -    compile "org.glassfish.jersey.core:jersey-client:$jersey_version"
    -    compile "org.glassfish.jersey.media:jersey-media-multipart:$jersey_version"
    -    compile "org.glassfish.jersey.media:jersey-media-json-jackson:$jersey_version"
    -    compile "com.fasterxml.jackson.core:jackson-core:$jackson_version"
    -    compile "com.fasterxml.jackson.core:jackson-annotations:$jackson_version"
    -    compile "com.fasterxml.jackson.core:jackson-databind:$jackson_version"
    -    compile "commons-io:commons-io:$commons_io_version"
    -    compile "org.apache.commons:commons-lang3:$commons_lang3_version"
    -    compile "com.github.joschi.jackson:jackson-datatype-threetenbp:$jackson_version"
    -    compile "com.brsanthu:migbase64:2.2"
    -    testCompile "junit:junit:$junit_version"
    -}
    
  • samples/client/petstore/java/jersey2-java6/build.sbt+0 27 removed
    @@ -1,27 +0,0 @@
    -lazy val root = (project in file(".")).
    -  settings(
    -    organization := "io.swagger",
    -    name := "swagger-petstore-jersey2-java6",
    -    version := "1.0.0",
    -    scalaVersion := "2.11.4",
    -    scalacOptions ++= Seq("-feature"),
    -    javacOptions in compile ++= Seq("-Xlint:deprecation"),
    -    publishArtifact in (Compile, packageDoc) := false,
    -    resolvers += Resolver.mavenLocal,
    -    libraryDependencies ++= Seq(
    -      "io.swagger" % "swagger-annotations" % "1.5.17",
    -      "org.glassfish.jersey.core" % "jersey-client" % "2.6",
    -      "org.glassfish.jersey.media" % "jersey-media-multipart" % "2.6",
    -      
    -      "org.glassfish.jersey.media" % "jersey-media-json-jackson" % "2.6",
    -      "com.fasterxml.jackson.core" % "jackson-core" % "2.6.4" % "compile",
    -      "com.fasterxml.jackson.core" % "jackson-annotations" % "2.6.4" % "compile",
    -      "com.fasterxml.jackson.core" % "jackson-databind" % "2.6.4" % "compile",
    -      "com.github.joschi.jackson" % "jackson-datatype-threetenbp" % "2.6.4" % "compile",
    -      "com.brsanthu" % "migbase64" % "2.2",
    -      "org.apache.commons" % "commons-lang3" % "3.6",
    -      "commons-io" % "commons-io" % "2.5",
    -      "junit" % "junit" % "4.12" % "test",
    -      "com.novocode" % "junit-interface" % "0.10" % "test"
    -    )
    -  )
    
  • samples/client/petstore/java/jersey2-java6/docs/AdditionalPropertiesClass.md+0 11 removed
    @@ -1,11 +0,0 @@
    -
    -# AdditionalPropertiesClass
    -
    -## Properties
    -Name | Type | Description | Notes
    ------------- | ------------- | ------------- | -------------
    -**mapProperty** | **Map&lt;String, String&gt;** |  |  [optional]
    -**mapOfMapProperty** | [**Map&lt;String, Map&lt;String, String&gt;&gt;**](Map.md) |  |  [optional]
    -
    -
    -
    
  • samples/client/petstore/java/jersey2-java6/docs/AnimalFarm.md+0 9 removed
    @@ -1,9 +0,0 @@
    -
    -# AnimalFarm
    -
    -## Properties
    -Name | Type | Description | Notes
    ------------- | ------------- | ------------- | -------------
    -
    -
    -
    
  • samples/client/petstore/java/jersey2-java6/docs/Animal.md+0 11 removed
    @@ -1,11 +0,0 @@
    -
    -# Animal
    -
    -## Properties
    -Name | Type | Description | Notes
    ------------- | ------------- | ------------- | -------------
    -**className** | **String** |  | 
    -**color** | **String** |  |  [optional]
    -
    -
    -
    
  • samples/client/petstore/java/jersey2-java6/docs/AnotherFakeApi.md+0 54 removed
    @@ -1,54 +0,0 @@
    -# AnotherFakeApi
    -
    -All URIs are relative to *http://petstore.swagger.io:80/v2*
    -
    -Method | HTTP request | Description
    -------------- | ------------- | -------------
    -[**testSpecialTags**](AnotherFakeApi.md#testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags
    -
    -
    -<a name="testSpecialTags"></a>
    -# **testSpecialTags**
    -> Client testSpecialTags(body)
    -
    -To test special tags
    -
    -To test special tags
    -
    -### Example
    -```java
    -// Import classes:
    -//import io.swagger.client.ApiException;
    -//import io.swagger.client.api.AnotherFakeApi;
    -
    -
    -AnotherFakeApi apiInstance = new AnotherFakeApi();
    -Client body = new Client(); // Client | client model
    -try {
    -    Client result = apiInstance.testSpecialTags(body);
    -    System.out.println(result);
    -} catch (ApiException e) {
    -    System.err.println("Exception when calling AnotherFakeApi#testSpecialTags");
    -    e.printStackTrace();
    -}
    -```
    -
    -### Parameters
    -
    -Name | Type | Description  | Notes
    -------------- | ------------- | ------------- | -------------
    - **body** | [**Client**](Client.md)| client model |
    -
    -### Return type
    -
    -[**Client**](Client.md)
    -
    -### Authorization
    -
    -No authorization required
    -
    -### HTTP request headers
    -
    - - **Content-Type**: application/json
    - - **Accept**: application/json
    -
    
  • samples/client/petstore/java/jersey2-java6/docs/ArrayOfArrayOfNumberOnly.md+0 10 removed
    @@ -1,10 +0,0 @@
    -
    -# ArrayOfArrayOfNumberOnly
    -
    -## Properties
    -Name | Type | Description | Notes
    ------------- | ------------- | ------------- | -------------
    -**arrayArrayNumber** | [**List&lt;List&lt;BigDecimal&gt;&gt;**](List.md) |  |  [optional]
    -
    -
    -
    
  • samples/client/petstore/java/jersey2-java6/docs/ArrayOfNumberOnly.md+0 10 removed
    @@ -1,10 +0,0 @@
    -
    -# ArrayOfNumberOnly
    -
    -## Properties
    -Name | Type | Description | Notes
    ------------- | ------------- | ------------- | -------------
    -**arrayNumber** | [**List&lt;BigDecimal&gt;**](BigDecimal.md) |  |  [optional]
    -
    -
    -
    
  • samples/client/petstore/java/jersey2-java6/docs/ArrayTest.md+0 12 removed
    @@ -1,12 +0,0 @@
    -
    -# ArrayTest
    -
    -## Properties
    -Name | Type | Description | Notes
    ------------- | ------------- | ------------- | -------------
    -**arrayOfString** | **List&lt;String&gt;** |  |  [optional]
    -**arrayArrayOfInteger** | [**List&lt;List&lt;Long&gt;&gt;**](List.md) |  |  [optional]
    -**arrayArrayOfModel** | [**List&lt;List&lt;ReadOnlyFirst&gt;&gt;**](List.md) |  |  [optional]
    -
    -
    -
    
  • samples/client/petstore/java/jersey2-java6/docs/Capitalization.md+0 15 removed
    @@ -1,15 +0,0 @@
    -
    -# Capitalization
    -
    -## Properties
    -Name | Type | Description | Notes
    ------------- | ------------- | ------------- | -------------
    -**smallCamel** | **String** |  |  [optional]
    -**capitalCamel** | **String** |  |  [optional]
    -**smallSnake** | **String** |  |  [optional]
    -**capitalSnake** | **String** |  |  [optional]
    -**scAETHFlowPoints** | **String** |  |  [optional]
    -**ATT_NAME** | **String** | Name of the pet  |  [optional]
    -
    -
    -
    
  • samples/client/petstore/java/jersey2-java6/docs/Category.md+0 11 removed
    @@ -1,11 +0,0 @@
    -
    -# Category
    -
    -## Properties
    -Name | Type | Description | Notes
    ------------- | ------------- | ------------- | -------------
    -**id** | **Long** |  |  [optional]
    -**name** | **String** |  |  [optional]
    -
    -
    -
    
  • samples/client/petstore/java/jersey2-java6/docs/Cat.md+0 10 removed
    @@ -1,10 +0,0 @@
    -
    -# Cat
    -
    -## Properties
    -Name | Type | Description | Notes
    ------------- | ------------- | ------------- | -------------
    -**declawed** | **Boolean** |  |  [optional]
    -
    -
    -
    
  • samples/client/petstore/java/jersey2-java6/docs/ClassModel.md+0 10 removed
    @@ -1,10 +0,0 @@
    -
    -# ClassModel
    -
    -## Properties
    -Name | Type | Description | Notes
    ------------- | ------------- | ------------- | -------------
    -**propertyClass** | **String** |  |  [optional]
    -
    -
    -
    
  • samples/client/petstore/java/jersey2-java6/docs/Client.md+0 10 removed
    @@ -1,10 +0,0 @@
    -
    -# Client
    -
    -## Properties
    -Name | Type | Description | Notes
    ------------- | ------------- | ------------- | -------------
    -**client** | **String** |  |  [optional]
    -
    -
    -
    
  • samples/client/petstore/java/jersey2-java6/docs/Dog.md+0 10 removed
    @@ -1,10 +0,0 @@
    -
    -# Dog
    -
    -## Properties
    -Name | Type | Description | Notes
    ------------- | ------------- | ------------- | -------------
    -**breed** | **String** |  |  [optional]
    -
    -
    -
    
  • samples/client/petstore/java/jersey2-java6/docs/EnumArrays.md+0 27 removed
    @@ -1,27 +0,0 @@
    -
    -# EnumArrays
    -
    -## Properties
    -Name | Type | Description | Notes
    ------------- | ------------- | ------------- | -------------
    -**justSymbol** | [**JustSymbolEnum**](#JustSymbolEnum) |  |  [optional]
    -**arrayEnum** | [**List&lt;ArrayEnumEnum&gt;**](#List&lt;ArrayEnumEnum&gt;) |  |  [optional]
    -
    -
    -<a name="JustSymbolEnum"></a>
    -## Enum: JustSymbolEnum
    -Name | Value
    ----- | -----
    -GREATER_THAN_OR_EQUAL_TO | &quot;&gt;&#x3D;&quot;
    -DOLLAR | &quot;$&quot;
    -
    -
    -<a name="List<ArrayEnumEnum>"></a>
    -## Enum: List&lt;ArrayEnumEnum&gt;
    -Name | Value
    ----- | -----
    -FISH | &quot;fish&quot;
    -CRAB | &quot;crab&quot;
    -
    -
    -
    
  • samples/client/petstore/java/jersey2-java6/docs/EnumClass.md+0 14 removed
    @@ -1,14 +0,0 @@
    -
    -# EnumClass
    -
    -## Enum
    -
    -
    -* `_ABC` (value: `"_abc"`)
    -
    -* `_EFG` (value: `"-efg"`)
    -
    -* `_XYZ_` (value: `"(xyz)"`)
    -
    -
    -
    
  • samples/client/petstore/java/jersey2-java6/docs/EnumTest.md+0 48 removed
    @@ -1,48 +0,0 @@
    -
    -# EnumTest
    -
    -## Properties
    -Name | Type | Description | Notes
    ------------- | ------------- | ------------- | -------------
    -**enumString** | [**EnumStringEnum**](#EnumStringEnum) |  |  [optional]
    -**enumStringRequired** | [**EnumStringRequiredEnum**](#EnumStringRequiredEnum) |  | 
    -**enumInteger** | [**EnumIntegerEnum**](#EnumIntegerEnum) |  |  [optional]
    -**enumNumber** | [**EnumNumberEnum**](#EnumNumberEnum) |  |  [optional]
    -**outerEnum** | [**OuterEnum**](OuterEnum.md) |  |  [optional]
    -
    -
    -<a name="EnumStringEnum"></a>
    -## Enum: EnumStringEnum
    -Name | Value
    ----- | -----
    -UPPER | &quot;UPPER&quot;
    -LOWER | &quot;lower&quot;
    -EMPTY | &quot;&quot;
    -
    -
    -<a name="EnumStringRequiredEnum"></a>
    -## Enum: EnumStringRequiredEnum
    -Name | Value
    ----- | -----
    -UPPER | &quot;UPPER&quot;
    -LOWER | &quot;lower&quot;
    -EMPTY | &quot;&quot;
    -
    -
    -<a name="EnumIntegerEnum"></a>
    -## Enum: EnumIntegerEnum
    -Name | Value
    ----- | -----
    -NUMBER_1 | 1
    -NUMBER_MINUS_1 | -1
    -
    -
    -<a name="EnumNumberEnum"></a>
    -## Enum: EnumNumberEnum
    -Name | Value
    ----- | -----
    -NUMBER_1_DOT_1 | 1.1
    -NUMBER_MINUS_1_DOT_2 | -1.2
    -
    -
    -
    
  • samples/client/petstore/java/jersey2-java6/docs/FakeApi.md+0 514 removed
    @@ -1,514 +0,0 @@
    -# FakeApi
    -
    -All URIs are relative to *http://petstore.swagger.io:80/v2*
    -
    -Method | HTTP request | Description
    -------------- | ------------- | -------------
    -[**fakeOuterBooleanSerialize**](FakeApi.md#fakeOuterBooleanSerialize) | **POST** /fake/outer/boolean | 
    -[**fakeOuterCompositeSerialize**](FakeApi.md#fakeOuterCompositeSerialize) | **POST** /fake/outer/composite | 
    -[**fakeOuterNumberSerialize**](FakeApi.md#fakeOuterNumberSerialize) | **POST** /fake/outer/number | 
    -[**fakeOuterStringSerialize**](FakeApi.md#fakeOuterStringSerialize) | **POST** /fake/outer/string | 
    -[**testBodyWithQueryParams**](FakeApi.md#testBodyWithQueryParams) | **PUT** /fake/body-with-query-params | 
    -[**testClientModel**](FakeApi.md#testClientModel) | **PATCH** /fake | To test \&quot;client\&quot; model
    -[**testEndpointParameters**](FakeApi.md#testEndpointParameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 
    -[**testEnumParameters**](FakeApi.md#testEnumParameters) | **GET** /fake | To test enum parameters
    -[**testInlineAdditionalProperties**](FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties
    -[**testJsonFormData**](FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data
    -
    -
    -<a name="fakeOuterBooleanSerialize"></a>
    -# **fakeOuterBooleanSerialize**
    -> Boolean fakeOuterBooleanSerialize(body)
    -
    -
    -
    -Test serialization of outer boolean types
    -
    -### Example
    -```java
    -// Import classes:
    -//import io.swagger.client.ApiException;
    -//import io.swagger.client.api.FakeApi;
    -
    -
    -FakeApi apiInstance = new FakeApi();
    -Boolean body = true; // Boolean | Input boolean as post body
    -try {
    -    Boolean result = apiInstance.fakeOuterBooleanSerialize(body);
    -    System.out.println(result);
    -} catch (ApiException e) {
    -    System.err.println("Exception when calling FakeApi#fakeOuterBooleanSerialize");
    -    e.printStackTrace();
    -}
    -```
    -
    -### Parameters
    -
    -Name | Type | Description  | Notes
    -------------- | ------------- | ------------- | -------------
    - **body** | [**Boolean**](Boolean.md)| Input boolean as post body | [optional]
    -
    -### Return type
    -
    -**Boolean**
    -
    -### Authorization
    -
    -No authorization required
    -
    -### HTTP request headers
    -
    - - **Content-Type**: Not defined
    - - **Accept**: Not defined
    -
    -<a name="fakeOuterCompositeSerialize"></a>
    -# **fakeOuterCompositeSerialize**
    -> OuterComposite fakeOuterCompositeSerialize(body)
    -
    -
    -
    -Test serialization of object with outer number type
    -
    -### Example
    -```java
    -// Import classes:
    -//import io.swagger.client.ApiException;
    -//import io.swagger.client.api.FakeApi;
    -
    -
    -FakeApi apiInstance = new FakeApi();
    -OuterComposite body = new OuterComposite(); // OuterComposite | Input composite as post body
    -try {
    -    OuterComposite result = apiInstance.fakeOuterCompositeSerialize(body);
    -    System.out.println(result);
    -} catch (ApiException e) {
    -    System.err.println("Exception when calling FakeApi#fakeOuterCompositeSerialize");
    -    e.printStackTrace();
    -}
    -```
    -
    -### Parameters
    -
    -Name | Type | Description  | Notes
    -------------- | ------------- | ------------- | -------------
    - **body** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional]
    -
    -### Return type
    -
    -[**OuterComposite**](OuterComposite.md)
    -
    -### Authorization
    -
    -No authorization required
    -
    -### HTTP request headers
    -
    - - **Content-Type**: Not defined
    - - **Accept**: Not defined
    -
    -<a name="fakeOuterNumberSerialize"></a>
    -# **fakeOuterNumberSerialize**
    -> BigDecimal fakeOuterNumberSerialize(body)
    -
    -
    -
    -Test serialization of outer number types
    -
    -### Example
    -```java
    -// Import classes:
    -//import io.swagger.client.ApiException;
    -//import io.swagger.client.api.FakeApi;
    -
    -
    -FakeApi apiInstance = new FakeApi();
    -BigDecimal body = new BigDecimal(); // BigDecimal | Input number as post body
    -try {
    -    BigDecimal result = apiInstance.fakeOuterNumberSerialize(body);
    -    System.out.println(result);
    -} catch (ApiException e) {
    -    System.err.println("Exception when calling FakeApi#fakeOuterNumberSerialize");
    -    e.printStackTrace();
    -}
    -```
    -
    -### Parameters
    -
    -Name | Type | Description  | Notes
    -------------- | ------------- | ------------- | -------------
    - **body** | [**BigDecimal**](BigDecimal.md)| Input number as post body | [optional]
    -
    -### Return type
    -
    -[**BigDecimal**](BigDecimal.md)
    -
    -### Authorization
    -
    -No authorization required
    -
    -### HTTP request headers
    -
    - - **Content-Type**: Not defined
    - - **Accept**: Not defined
    -
    -<a name="fakeOuterStringSerialize"></a>
    -# **fakeOuterStringSerialize**
    -> String fakeOuterStringSerialize(body)
    -
    -
    -
    -Test serialization of outer string types
    -
    -### Example
    -```java
    -// Import classes:
    -//import io.swagger.client.ApiException;
    -//import io.swagger.client.api.FakeApi;
    -
    -
    -FakeApi apiInstance = new FakeApi();
    -String body = "body_example"; // String | Input string as post body
    -try {
    -    String result = apiInstance.fakeOuterStringSerialize(body);
    -    System.out.println(result);
    -} catch (ApiException e) {
    -    System.err.println("Exception when calling FakeApi#fakeOuterStringSerialize");
    -    e.printStackTrace();
    -}
    -```
    -
    -### Parameters
    -
    -Name | Type | Description  | Notes
    -------------- | ------------- | ------------- | -------------
    - **body** | [**String**](String.md)| Input string as post body | [optional]
    -
    -### Return type
    -
    -**String**
    -
    -### Authorization
    -
    -No authorization required
    -
    -### HTTP request headers
    -
    - - **Content-Type**: Not defined
    - - **Accept**: Not defined
    -
    -<a name="testBodyWithQueryParams"></a>
    -# **testBodyWithQueryParams**
    -> testBodyWithQueryParams(body, query)
    -
    -
    -
    -### Example
    -```java
    -// Import classes:
    -//import io.swagger.client.ApiException;
    -//import io.swagger.client.api.FakeApi;
    -
    -
    -FakeApi apiInstance = new FakeApi();
    -User body = new User(); // User | 
    -String query = "query_example"; // String | 
    -try {
    -    apiInstance.testBodyWithQueryParams(body, query);
    -} catch (ApiException e) {
    -    System.err.println("Exception when calling FakeApi#testBodyWithQueryParams");
    -    e.printStackTrace();
    -}
    -```
    -
    -### Parameters
    -
    -Name | Type | Description  | Notes
    -------------- | ------------- | ------------- | -------------
    - **body** | [**User**](User.md)|  |
    - **query** | **String**|  |
    -
    -### Return type
    -
    -null (empty response body)
    -
    -### Authorization
    -
    -No authorization required
    -
    -### HTTP request headers
    -
    - - **Content-Type**: application/json
    - - **Accept**: Not defined
    -
    -<a name="testClientModel"></a>
    -# **testClientModel**
    -> Client testClientModel(body)
    -
    -To test \&quot;client\&quot; model
    -
    -To test \&quot;client\&quot; model
    -
    -### Example
    -```java
    -// Import classes:
    -//import io.swagger.client.ApiException;
    -//import io.swagger.client.api.FakeApi;
    -
    -
    -FakeApi apiInstance = new FakeApi();
    -Client body = new Client(); // Client | client model
    -try {
    -    Client result = apiInstance.testClientModel(body);
    -    System.out.println(result);
    -} catch (ApiException e) {
    -    System.err.println("Exception when calling FakeApi#testClientModel");
    -    e.printStackTrace();
    -}
    -```
    -
    -### Parameters
    -
    -Name | Type | Description  | Notes
    -------------- | ------------- | ------------- | -------------
    - **body** | [**Client**](Client.md)| client model |
    -
    -### Return type
    -
    -[**Client**](Client.md)
    -
    -### Authorization
    -
    -No authorization required
    -
    -### HTTP request headers
    -
    - - **Content-Type**: application/json
    - - **Accept**: application/json
    -
    -<a name="testEndpointParameters"></a>
    -# **testEndpointParameters**
    -> testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback)
    -
    -Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 
    -
    -Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 
    -
    -### Example
    -```java
    -// Import classes:
    -//import io.swagger.client.ApiClient;
    -//import io.swagger.client.ApiException;
    -//import io.swagger.client.Configuration;
    -//import io.swagger.client.auth.*;
    -//import io.swagger.client.api.FakeApi;
    -
    -ApiClient defaultClient = Configuration.getDefaultApiClient();
    -
    -// Configure HTTP basic authorization: http_basic_test
    -HttpBasicAuth http_basic_test = (HttpBasicAuth) defaultClient.getAuthentication("http_basic_test");
    -http_basic_test.setUsername("YOUR USERNAME");
    -http_basic_test.setPassword("YOUR PASSWORD");
    -
    -FakeApi apiInstance = new FakeApi();
    -BigDecimal number = new BigDecimal(); // BigDecimal | None
    -Double _double = 3.4D; // Double | None
    -String patternWithoutDelimiter = "patternWithoutDelimiter_example"; // String | None
    -byte[] _byte = B; // byte[] | None
    -Integer integer = 56; // Integer | None
    -Integer int32 = 56; // Integer | None
    -Long int64 = 789L; // Long | None
    -Float _float = 3.4F; // Float | None
    -String string = "string_example"; // String | None
    -byte[] binary = B; // byte[] | None
    -LocalDate date = LocalDate.now(); // LocalDate | None
    -OffsetDateTime dateTime = OffsetDateTime.now(); // OffsetDateTime | None
    -String password = "password_example"; // String | None
    -String paramCallback = "paramCallback_example"; // String | None
    -try {
    -    apiInstance.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback);
    -} catch (ApiException e) {
    -    System.err.println("Exception when calling FakeApi#testEndpointParameters");
    -    e.printStackTrace();
    -}
    -```
    -
    -### Parameters
    -
    -Name | Type | Description  | Notes
    -------------- | ------------- | ------------- | -------------
    - **number** | **BigDecimal**| None |
    - **_double** | **Double**| None |
    - **patternWithoutDelimiter** | **String**| None |
    - **_byte** | **byte[]**| None |
    - **integer** | **Integer**| None | [optional]
    - **int32** | **Integer**| None | [optional]
    - **int64** | **Long**| None | [optional]
    - **_float** | **Float**| None | [optional]
    - **string** | **String**| None | [optional]
    - **binary** | **byte[]**| None | [optional]
    - **date** | **LocalDate**| None | [optional]
    - **dateTime** | **OffsetDateTime**| None | [optional]
    - **password** | **String**| None | [optional]
    - **paramCallback** | **String**| None | [optional]
    -
    -### Return type
    -
    -null (empty response body)
    -
    -### Authorization
    -
    -[http_basic_test](../README.md#http_basic_test)
    -
    -### HTTP request headers
    -
    - - **Content-Type**: application/xml; charset=utf-8, application/json; charset=utf-8
    - - **Accept**: application/xml; charset=utf-8, application/json; charset=utf-8
    -
    -<a name="testEnumParameters"></a>
    -# **testEnumParameters**
    -> testEnumParameters(enumFormStringArray, enumFormString, enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble)
    -
    -To test enum parameters
    -
    -To test enum parameters
    -
    -### Example
    -```java
    -// Import classes:
    -//import io.swagger.client.ApiException;
    -//import io.swagger.client.api.FakeApi;
    -
    -
    -FakeApi apiInstance = new FakeApi();
    -List<String> enumFormStringArray = Arrays.asList("enumFormStringArray_example"); // List<String> | Form parameter enum test (string array)
    -String enumFormString = "-efg"; // String | Form parameter enum test (string)
    -List<String> enumHeaderStringArray = Arrays.asList("enumHeaderStringArray_example"); // List<String> | Header parameter enum test (string array)
    -String enumHeaderString = "-efg"; // String | Header parameter enum test (string)
    -List<String> enumQueryStringArray = Arrays.asList("enumQueryStringArray_example"); // List<String> | Query parameter enum test (string array)
    -String enumQueryString = "-efg"; // String | Query parameter enum test (string)
    -Integer enumQueryInteger = 56; // Integer | Query parameter enum test (double)
    -Double enumQueryDouble = 3.4D; // Double | Query parameter enum test (double)
    -try {
    -    apiInstance.testEnumParameters(enumFormStringArray, enumFormString, enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble);
    -} catch (ApiException e) {
    -    System.err.println("Exception when calling FakeApi#testEnumParameters");
    -    e.printStackTrace();
    -}
    -```
    -
    -### Parameters
    -
    -Name | Type | Description  | Notes
    -------------- | ------------- | ------------- | -------------
    - **enumFormStringArray** | [**List&lt;String&gt;**](String.md)| Form parameter enum test (string array) | [optional] [enum: >, $]
    - **enumFormString** | **String**| Form parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)]
    - **enumHeaderStringArray** | [**List&lt;String&gt;**](String.md)| Header parameter enum test (string array) | [optional] [enum: >, $]
    - **enumHeaderString** | **String**| Header parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)]
    - **enumQueryStringArray** | [**List&lt;String&gt;**](String.md)| Query parameter enum test (string array) | [optional] [enum: >, $]
    - **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)]
    - **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, -2]
    - **enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional] [enum: 1.1, -1.2]
    -
    -### Return type
    -
    -null (empty response body)
    -
    -### Authorization
    -
    -No authorization required
    -
    -### HTTP request headers
    -
    - - **Content-Type**: */*
    - - **Accept**: */*
    -
    -<a name="testInlineAdditionalProperties"></a>
    -# **testInlineAdditionalProperties**
    -> testInlineAdditionalProperties(param)
    -
    -test inline additionalProperties
    -
    -
    -
    -### Example
    -```java
    -// Import classes:
    -//import io.swagger.client.ApiException;
    -//import io.swagger.client.api.FakeApi;
    -
    -
    -FakeApi apiInstance = new FakeApi();
    -Object param = null; // Object | request body
    -try {
    -    apiInstance.testInlineAdditionalProperties(param);
    -} catch (ApiException e) {
    -    System.err.println("Exception when calling FakeApi#testInlineAdditionalProperties");
    -    e.printStackTrace();
    -}
    -```
    -
    -### Parameters
    -
    -Name | Type | Description  | Notes
    -------------- | ------------- | ------------- | -------------
    - **param** | **Object**| request body |
    -
    -### Return type
    -
    -null (empty response body)
    -
    -### Authorization
    -
    -No authorization required
    -
    -### HTTP request headers
    -
    - - **Content-Type**: application/json
    - - **Accept**: Not defined
    -
    -<a name="testJsonFormData"></a>
    -# **testJsonFormData**
    -> testJsonFormData(param, param2)
    -
    -test json serialization of form data
    -
    -
    -
    -### Example
    -```java
    -// Import classes:
    -//import io.swagger.client.ApiException;
    -//import io.swagger.client.api.FakeApi;
    -
    -
    -FakeApi apiInstance = new FakeApi();
    -String param = "param_example"; // String | field1
    -String param2 = "param2_example"; // String | field2
    -try {
    -    apiInstance.testJsonFormData(param, param2);
    -} catch (ApiException e) {
    -    System.err.println("Exception when calling FakeApi#testJsonFormData");
    -    e.printStackTrace();
    -}
    -```
    -
    -### Parameters
    -
    -Name | Type | Description  | Notes
    -------------- | ------------- | ------------- | -------------
    - **param** | **String**| field1 |
    - **param2** | **String**| field2 |
    -
    -### Return type
    -
    -null (empty response body)
    -
    -### Authorization
    -
    -No authorization required
    -
    -### HTTP request headers
    -
    - - **Content-Type**: application/json
    - - **Accept**: Not defined
    -
    
  • samples/client/petstore/java/jersey2-java6/docs/FakeClassnameTags123Api.md+0 64 removed
    @@ -1,64 +0,0 @@
    -# FakeClassnameTags123Api
    -
    -All URIs are relative to *http://petstore.swagger.io:80/v2*
    -
    -Method | HTTP request | Description
    -------------- | ------------- | -------------
    -[**testClassname**](FakeClassnameTags123Api.md#testClassname) | **PATCH** /fake_classname_test | To test class name in snake case
    -
    -
    -<a name="testClassname"></a>
    -# **testClassname**
    -> Client testClassname(body)
    -
    -To test class name in snake case
    -
    -To test class name in snake case
    -
    -### Example
    -```java
    -// Import classes:
    -//import io.swagger.client.ApiClient;
    -//import io.swagger.client.ApiException;
    -//import io.swagger.client.Configuration;
    -//import io.swagger.client.auth.*;
    -//import io.swagger.client.api.FakeClassnameTags123Api;
    -
    -ApiClient defaultClient = Configuration.getDefaultApiClient();
    -
    -// Configure API key authorization: api_key_query
    -ApiKeyAuth api_key_query = (ApiKeyAuth) defaultClient.getAuthentication("api_key_query");
    -api_key_query.setApiKey("YOUR API KEY");
    -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    -//api_key_query.setApiKeyPrefix("Token");
    -
    -FakeClassnameTags123Api apiInstance = new FakeClassnameTags123Api();
    -Client body = new Client(); // Client | client model
    -try {
    -    Client result = apiInstance.testClassname(body);
    -    System.out.println(result);
    -} catch (ApiException e) {
    -    System.err.println("Exception when calling FakeClassnameTags123Api#testClassname");
    -    e.printStackTrace();
    -}
    -```
    -
    -### Parameters
    -
    -Name | Type | Description  | Notes
    -------------- | ------------- | ------------- | -------------
    - **body** | [**Client**](Client.md)| client model |
    -
    -### Return type
    -
    -[**Client**](Client.md)
    -
    -### Authorization
    -
    -[api_key_query](../README.md#api_key_query)
    -
    -### HTTP request headers
    -
    - - **Content-Type**: application/json
    - - **Accept**: application/json
    -
    
  • samples/client/petstore/java/jersey2-java6/docs/FormatTest.md+0 22 removed
    @@ -1,22 +0,0 @@
    -
    -# FormatTest
    -
    -## Properties
    -Name | Type | Description | Notes
    ------------- | ------------- | ------------- | -------------
    -**integer** | **Integer** |  |  [optional]
    -**int32** | **Integer** |  |  [optional]
    -**int64** | **Long** |  |  [optional]
    -**number** | [**BigDecimal**](BigDecimal.md) |  | 
    -**_float** | **Float** |  |  [optional]
    -**_double** | **Double** |  |  [optional]
    -**string** | **String** |  |  [optional]
    -**_byte** | **byte[]** |  | 
    -**binary** | **byte[]** |  |  [optional]
    -**date** | [**LocalDate**](LocalDate.md) |  | 
    -**dateTime** | [**OffsetDateTime**](OffsetDateTime.md) |  |  [optional]
    -**uuid** | [**UUID**](UUID.md) |  |  [optional]
    -**password** | **String** |  | 
    -
    -
    -
    
  • samples/client/petstore/java/jersey2-java6/docs/HasOnlyReadOnly.md+0 11 removed
    @@ -1,11 +0,0 @@
    -
    -# HasOnlyReadOnly
    -
    -## Properties
    -Name | Type | Description | Notes
    ------------- | ------------- | ------------- | -------------
    -**bar** | **String** |  |  [optional]
    -**foo** | **String** |  |  [optional]
    -
    -
    -
    
  • samples/client/petstore/java/jersey2-java6/docs/Ints.md+0 22 removed
    @@ -1,22 +0,0 @@
    -
    -# Ints
    -
    -## Enum
    -
    -
    -* `NUMBER_0` (value: `0`)
    -
    -* `NUMBER_1` (value: `1`)
    -
    -* `NUMBER_2` (value: `2`)
    -
    -* `NUMBER_3` (value: `3`)
    -
    -* `NUMBER_4` (value: `4`)
    -
    -* `NUMBER_5` (value: `5`)
    -
    -* `NUMBER_6` (value: `6`)
    -
    -
    -
    
  • samples/client/petstore/java/jersey2-java6/docs/MapTest.md+0 19 removed
    @@ -1,19 +0,0 @@
    -
    -# MapTest
    -
    -## Properties
    -Name | Type | Description | Notes
    ------------- | ------------- | ------------- | -------------
    -**mapMapOfString** | [**Map&lt;String, Map&lt;String, String&gt;&gt;**](Map.md) |  |  [optional]
    -**mapOfEnumString** | [**Map&lt;String, InnerEnum&gt;**](#Map&lt;String, InnerEnum&gt;) |  |  [optional]
    -
    -
    -<a name="Map<String, InnerEnum>"></a>
    -## Enum: Map&lt;String, InnerEnum&gt;
    -Name | Value
    ----- | -----
    -UPPER | &quot;UPPER&quot;
    -LOWER | &quot;lower&quot;
    -
    -
    -
    
  • samples/client/petstore/java/jersey2-java6/docs/MixedPropertiesAndAdditionalPropertiesClass.md+0 12 removed
    @@ -1,12 +0,0 @@
    -
    -# MixedPropertiesAndAdditionalPropertiesClass
    -
    -## Properties
    -Name | Type | Description | Notes
    ------------- | ------------- | ------------- | -------------
    -**uuid** | [**UUID**](UUID.md) |  |  [optional]
    -**dateTime** | [**OffsetDateTime**](OffsetDateTime.md) |  |  [optional]
    -**map** | [**Map&lt;String, Animal&gt;**](Animal.md) |  |  [optional]
    -
    -
    -
    
  • samples/client/petstore/java/jersey2-java6/docs/Model200Response.md+0 11 removed
    @@ -1,11 +0,0 @@
    -
    -# Model200Response
    -
    -## Properties
    -Name | Type | Description | Notes
    ------------- | ------------- | ------------- | -------------
    -**name** | **Integer** |  |  [optional]
    -**propertyClass** | **String** |  |  [optional]
    -
    -
    -
    
  • samples/client/petstore/java/jersey2-java6/docs/ModelApiResponse.md+0 12 removed
    @@ -1,12 +0,0 @@
    -
    -# ModelApiResponse
    -
    -## Properties
    -Name | Type | Description | Notes
    ------------- | ------------- | ------------- | -------------
    -**code** | **Integer** |  |  [optional]
    -**type** | **String** |  |  [optional]
    -**message** | **String** |  |  [optional]
    -
    -
    -
    
  • samples/client/petstore/java/jersey2-java6/docs/ModelBoolean.md+0 12 removed
    @@ -1,12 +0,0 @@
    -
    -# ModelBoolean
    -
    -## Enum
    -
    -
    -* `TRUE` (value: `true`)
    -
    -* `FALSE` (value: `false`)
    -
    -
    -
    
  • samples/client/petstore/java/jersey2-java6/docs/ModelList.md+0 10 removed
    @@ -1,10 +0,0 @@
    -
    -# ModelList
    -
    -## Properties
    -Name | Type | Description | Notes
    ------------- | ------------- | ------------- | -------------
    -**_123List** | **String** |  |  [optional]
    -
    -
    -
    
  • samples/client/petstore/java/jersey2-java6/docs/ModelReturn.md+0 10 removed
    @@ -1,10 +0,0 @@
    -
    -# ModelReturn
    -
    -## Properties
    -Name | Type | Description | Notes
    ------------- | ------------- | ------------- | -------------
    -**_return** | **Integer** |  |  [optional]
    -
    -
    -
    
  • samples/client/petstore/java/jersey2-java6/docs/Name.md+0 13 removed
    @@ -1,13 +0,0 @@
    -
    -# Name
    -
    -## Properties
    -Name | Type | Description | Notes
    ------------- | ------------- | ------------- | -------------
    -**name** | **Integer** |  | 
    -**snakeCase** | **Integer** |  |  [optional]
    -**property** | **String** |  |  [optional]
    -**_123Number** | **Integer** |  |  [optional]
    -
    -
    -
    
  • samples/client/petstore/java/jersey2-java6/docs/NumberOnly.md+0 10 removed
    @@ -1,10 +0,0 @@
    -
    -# NumberOnly
    -
    -## Properties
    -Name | Type | Description | Notes
    ------------- | ------------- | ------------- | -------------
    -**justNumber** | [**BigDecimal**](BigDecimal.md) |  |  [optional]
    -
    -
    -
    
  • samples/client/petstore/java/jersey2-java6/docs/Numbers.md+0 16 removed
    @@ -1,16 +0,0 @@
    -
    -# Numbers
    -
    -## Enum
    -
    -
    -* `NUMBER_7` (value: `new BigDecimal(7)`)
    -
    -* `NUMBER_8` (value: `new BigDecimal(8)`)
    -
    -* `NUMBER_9` (value: `new BigDecimal(9)`)
    -
    -* `NUMBER_10` (value: `new BigDecimal(10)`)
    -
    -
    -
    
  • samples/client/petstore/java/jersey2-java6/docs/Order.md+0 24 removed
    @@ -1,24 +0,0 @@
    -
    -# Order
    -
    -## Properties
    -Name | Type | Description | Notes
    ------------- | ------------- | ------------- | -------------
    -**id** | **Long** |  |  [optional]
    -**petId** | **Long** |  |  [optional]
    -**quantity** | **Integer** |  |  [optional]
    -**shipDate** | [**OffsetDateTime**](OffsetDateTime.md) |  |  [optional]
    -**status** | [**StatusEnum**](#StatusEnum) | Order Status |  [optional]
    -**complete** | **Boolean** |  |  [optional]
    -
    -
    -<a name="StatusEnum"></a>
    -## Enum: StatusEnum
    -Name | Value
    ----- | -----
    -PLACED | &quot;placed&quot;
    -APPROVED | &quot;approved&quot;
    -DELIVERED | &quot;delivered&quot;
    -
    -
    -
    
  • samples/client/petstore/java/jersey2-java6/docs/OuterComposite.md+0 12 removed
    @@ -1,12 +0,0 @@
    -
    -# OuterComposite
    -
    -## Properties
    -Name | Type | Description | Notes
    ------------- | ------------- | ------------- | -------------
    -**myNumber** | [**BigDecimal**](BigDecimal.md) |  |  [optional]
    -**myString** | **String** |  |  [optional]
    -**myBoolean** | **Boolean** |  |  [optional]
    -
    -
    -
    
  • samples/client/petstore/java/jersey2-java6/docs/OuterEnum.md+0 14 removed
    @@ -1,14 +0,0 @@
    -
    -# OuterEnum
    -
    -## Enum
    -
    -
    -* `PLACED` (value: `"placed"`)
    -
    -* `APPROVED` (value: `"approved"`)
    -
    -* `DELIVERED` (value: `"delivered"`)
    -
    -
    -
    
  • samples/client/petstore/java/jersey2-java6/docs/PetApi.md+0 448 removed
    @@ -1,448 +0,0 @@
    -# PetApi
    -
    -All URIs are relative to *http://petstore.swagger.io:80/v2*
    -
    -Method | HTTP request | Description
    -------------- | ------------- | -------------
    -[**addPet**](PetApi.md#addPet) | **POST** /pet | Add a new pet to the store
    -[**deletePet**](PetApi.md#deletePet) | **DELETE** /pet/{petId} | Deletes a pet
    -[**findPetsByStatus**](PetApi.md#findPetsByStatus) | **GET** /pet/findByStatus | Finds Pets by status
    -[**findPetsByTags**](PetApi.md#findPetsByTags) | **GET** /pet/findByTags | Finds Pets by tags
    -[**getPetById**](PetApi.md#getPetById) | **GET** /pet/{petId} | Find pet by ID
    -[**updatePet**](PetApi.md#updatePet) | **PUT** /pet | Update an existing pet
    -[**updatePetWithForm**](PetApi.md#updatePetWithForm) | **POST** /pet/{petId} | Updates a pet in the store with form data
    -[**uploadFile**](PetApi.md#uploadFile) | **POST** /pet/{petId}/uploadImage | uploads an image
    -
    -
    -<a name="addPet"></a>
    -# **addPet**
    -> addPet(body)
    -
    -Add a new pet to the store
    -
    -
    -
    -### Example
    -```java
    -// Import classes:
    -//import io.swagger.client.ApiClient;
    -//import io.swagger.client.ApiException;
    -//import io.swagger.client.Configuration;
    -//import io.swagger.client.auth.*;
    -//import io.swagger.client.api.PetApi;
    -
    -ApiClient defaultClient = Configuration.getDefaultApiClient();
    -
    -// Configure OAuth2 access token for authorization: petstore_auth
    -OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
    -petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
    -
    -PetApi apiInstance = new PetApi();
    -Pet body = new Pet(); // Pet | Pet object that needs to be added to the store
    -try {
    -    apiInstance.addPet(body);
    -} catch (ApiException e) {
    -    System.err.println("Exception when calling PetApi#addPet");
    -    e.printStackTrace();
    -}
    -```
    -
    -### Parameters
    -
    -Name | Type | Description  | Notes
    -------------- | ------------- | ------------- | -------------
    - **body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
    -
    -### Return type
    -
    -null (empty response body)
    -
    -### Authorization
    -
    -[petstore_auth](../README.md#petstore_auth)
    -
    -### HTTP request headers
    -
    - - **Content-Type**: application/json, application/xml
    - - **Accept**: application/xml, application/json
    -
    -<a name="deletePet"></a>
    -# **deletePet**
    -> deletePet(petId, apiKey)
    -
    -Deletes a pet
    -
    -
    -
    -### Example
    -```java
    -// Import classes:
    -//import io.swagger.client.ApiClient;
    -//import io.swagger.client.ApiException;
    -//import io.swagger.client.Configuration;
    -//import io.swagger.client.auth.*;
    -//import io.swagger.client.api.PetApi;
    -
    -ApiClient defaultClient = Configuration.getDefaultApiClient();
    -
    -// Configure OAuth2 access token for authorization: petstore_auth
    -OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
    -petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
    -
    -PetApi apiInstance = new PetApi();
    -Long petId = 789L; // Long | Pet id to delete
    -String apiKey = "apiKey_example"; // String | 
    -try {
    -    apiInstance.deletePet(petId, apiKey);
    -} catch (ApiException e) {
    -    System.err.println("Exception when calling PetApi#deletePet");
    -    e.printStackTrace();
    -}
    -```
    -
    -### Parameters
    -
    -Name | Type | Description  | Notes
    -------------- | ------------- | ------------- | -------------
    - **petId** | **Long**| Pet id to delete |
    - **apiKey** | **String**|  | [optional]
    -
    -### Return type
    -
    -null (empty response body)
    -
    -### Authorization
    -
    -[petstore_auth](../README.md#petstore_auth)
    -
    -### HTTP request headers
    -
    - - **Content-Type**: Not defined
    - - **Accept**: application/xml, application/json
    -
    -<a name="findPetsByStatus"></a>
    -# **findPetsByStatus**
    -> List&lt;Pet&gt; findPetsByStatus(status)
    -
    -Finds Pets by status
    -
    -Multiple status values can be provided with comma separated strings
    -
    -### Example
    -```java
    -// Import classes:
    -//import io.swagger.client.ApiClient;
    -//import io.swagger.client.ApiException;
    -//import io.swagger.client.Configuration;
    -//import io.swagger.client.auth.*;
    -//import io.swagger.client.api.PetApi;
    -
    -ApiClient defaultClient = Configuration.getDefaultApiClient();
    -
    -// Configure OAuth2 access token for authorization: petstore_auth
    -OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
    -petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
    -
    -PetApi apiInstance = new PetApi();
    -List<String> status = Arrays.asList("status_example"); // List<String> | Status values that need to be considered for filter
    -try {
    -    List<Pet> result = apiInstance.findPetsByStatus(status);
    -    System.out.println(result);
    -} catch (ApiException e) {
    -    System.err.println("Exception when calling PetApi#findPetsByStatus");
    -    e.printStackTrace();
    -}
    -```
    -
    -### Parameters
    -
    -Name | Type | Description  | Notes
    -------------- | ------------- | ------------- | -------------
    - **status** | [**List&lt;String&gt;**](String.md)| Status values that need to be considered for filter | [enum: available, pending, sold]
    -
    -### Return type
    -
    -[**List&lt;Pet&gt;**](Pet.md)
    -
    -### Authorization
    -
    -[petstore_auth](../README.md#petstore_auth)
    -
    -### HTTP request headers
    -
    - - **Content-Type**: Not defined
    - - **Accept**: application/xml, application/json
    -
    -<a name="findPetsByTags"></a>
    -# **findPetsByTags**
    -> List&lt;Pet&gt; findPetsByTags(tags)
    -
    -Finds Pets by tags
    -
    -Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
    -
    -### Example
    -```java
    -// Import classes:
    -//import io.swagger.client.ApiClient;
    -//import io.swagger.client.ApiException;
    -//import io.swagger.client.Configuration;
    -//import io.swagger.client.auth.*;
    -//import io.swagger.client.api.PetApi;
    -
    -ApiClient defaultClient = Configuration.getDefaultApiClient();
    -
    -// Configure OAuth2 access token for authorization: petstore_auth
    -OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
    -petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
    -
    -PetApi apiInstance = new PetApi();
    -List<String> tags = Arrays.asList("tags_example"); // List<String> | Tags to filter by
    -try {
    -    List<Pet> result = apiInstance.findPetsByTags(tags);
    -    System.out.println(result);
    -} catch (ApiException e) {
    -    System.err.println("Exception when calling PetApi#findPetsByTags");
    -    e.printStackTrace();
    -}
    -```
    -
    -### Parameters
    -
    -Name | Type | Description  | Notes
    -------------- | ------------- | ------------- | -------------
    - **tags** | [**List&lt;String&gt;**](String.md)| Tags to filter by |
    -
    -### Return type
    -
    -[**List&lt;Pet&gt;**](Pet.md)
    -
    -### Authorization
    -
    -[petstore_auth](../README.md#petstore_auth)
    -
    -### HTTP request headers
    -
    - - **Content-Type**: Not defined
    - - **Accept**: application/xml, application/json
    -
    -<a name="getPetById"></a>
    -# **getPetById**
    -> Pet getPetById(petId)
    -
    -Find pet by ID
    -
    -Returns a single pet
    -
    -### Example
    -```java
    -// Import classes:
    -//import io.swagger.client.ApiClient;
    -//import io.swagger.client.ApiException;
    -//import io.swagger.client.Configuration;
    -//import io.swagger.client.auth.*;
    -//import io.swagger.client.api.PetApi;
    -
    -ApiClient defaultClient = Configuration.getDefaultApiClient();
    -
    -// Configure API key authorization: api_key
    -ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
    -api_key.setApiKey("YOUR API KEY");
    -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    -//api_key.setApiKeyPrefix("Token");
    -
    -PetApi apiInstance = new PetApi();
    -Long petId = 789L; // Long | ID of pet to return
    -try {
    -    Pet result = apiInstance.getPetById(petId);
    -    System.out.println(result);
    -} catch (ApiException e) {
    -    System.err.println("Exception when calling PetApi#getPetById");
    -    e.printStackTrace();
    -}
    -```
    -
    -### Parameters
    -
    -Name | Type | Description  | Notes
    -------------- | ------------- | ------------- | -------------
    - **petId** | **Long**| ID of pet to return |
    -
    -### Return type
    -
    -[**Pet**](Pet.md)
    -
    -### Authorization
    -
    -[api_key](../README.md#api_key)
    -
    -### HTTP request headers
    -
    - - **Content-Type**: Not defined
    - - **Accept**: application/xml, application/json
    -
    -<a name="updatePet"></a>
    -# **updatePet**
    -> updatePet(body)
    -
    -Update an existing pet
    -
    -
    -
    -### Example
    -```java
    -// Import classes:
    -//import io.swagger.client.ApiClient;
    -//import io.swagger.client.ApiException;
    -//import io.swagger.client.Configuration;
    -//import io.swagger.client.auth.*;
    -//import io.swagger.client.api.PetApi;
    -
    -ApiClient defaultClient = Configuration.getDefaultApiClient();
    -
    -// Configure OAuth2 access token for authorization: petstore_auth
    -OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
    -petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
    -
    -PetApi apiInstance = new PetApi();
    -Pet body = new Pet(); // Pet | Pet object that needs to be added to the store
    -try {
    -    apiInstance.updatePet(body);
    -} catch (ApiException e) {
    -    System.err.println("Exception when calling PetApi#updatePet");
    -    e.printStackTrace();
    -}
    -```
    -
    -### Parameters
    -
    -Name | Type | Description  | Notes
    -------------- | ------------- | ------------- | -------------
    - **body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
    -
    -### Return type
    -
    -null (empty response body)
    -
    -### Authorization
    -
    -[petstore_auth](../README.md#petstore_auth)
    -
    -### HTTP request headers
    -
    - - **Content-Type**: application/json, application/xml
    - - **Accept**: application/xml, application/json
    -
    -<a name="updatePetWithForm"></a>
    -# **updatePetWithForm**
    -> updatePetWithForm(petId, name, status)
    -
    -Updates a pet in the store with form data
    -
    -
    -
    -### Example
    -```java
    -// Import classes:
    -//import io.swagger.client.ApiClient;
    -//import io.swagger.client.ApiException;
    -//import io.swagger.client.Configuration;
    -//import io.swagger.client.auth.*;
    -//import io.swagger.client.api.PetApi;
    -
    -ApiClient defaultClient = Configuration.getDefaultApiClient();
    -
    -// Configure OAuth2 access token for authorization: petstore_auth
    -OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
    -petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
    -
    -PetApi apiInstance = new PetApi();
    -Long petId = 789L; // Long | ID of pet that needs to be updated
    -String name = "name_example"; // String | Updated name of the pet
    -String status = "status_example"; // String | Updated status of the pet
    -try {
    -    apiInstance.updatePetWithForm(petId, name, status);
    -} catch (ApiException e) {
    -    System.err.println("Exception when calling PetApi#updatePetWithForm");
    -    e.printStackTrace();
    -}
    -```
    -
    -### Parameters
    -
    -Name | Type | Description  | Notes
    -------------- | ------------- | ------------- | -------------
    - **petId** | **Long**| ID of pet that needs to be updated |
    - **name** | **String**| Updated name of the pet | [optional]
    - **status** | **String**| Updated status of the pet | [optional]
    -
    -### Return type
    -
    -null (empty response body)
    -
    -### Authorization
    -
    -[petstore_auth](../README.md#petstore_auth)
    -
    -### HTTP request headers
    -
    - - **Content-Type**: application/x-www-form-urlencoded
    - - **Accept**: application/xml, application/json
    -
    -<a name="uploadFile"></a>
    -# **uploadFile**
    -> ModelApiResponse uploadFile(petId, additionalMetadata, file)
    -
    -uploads an image
    -
    -
    -
    -### Example
    -```java
    -// Import classes:
    -//import io.swagger.client.ApiClient;
    -//import io.swagger.client.ApiException;
    -//import io.swagger.client.Configuration;
    -//import io.swagger.client.auth.*;
    -//import io.swagger.client.api.PetApi;
    -
    -ApiClient defaultClient = Configuration.getDefaultApiClient();
    -
    -// Configure OAuth2 access token for authorization: petstore_auth
    -OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
    -petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
    -
    -PetApi apiInstance = new PetApi();
    -Long petId = 789L; // Long | ID of pet to update
    -String additionalMetadata = "additionalMetadata_example"; // String | Additional data to pass to server
    -File file = new File("/path/to/file.txt"); // File | file to upload
    -try {
    -    ModelApiResponse result = apiInstance.uploadFile(petId, additionalMetadata, file);
    -    System.out.println(result);
    -} catch (ApiException e) {
    -    System.err.println("Exception when calling PetApi#uploadFile");
    -    e.printStackTrace();
    -}
    -```
    -
    -### Parameters
    -
    -Name | Type | Description  | Notes
    -------------- | ------------- | ------------- | -------------
    - **petId** | **Long**| ID of pet to update |
    - **additionalMetadata** | **String**| Additional data to pass to server | [optional]
    - **file** | **File**| file to upload | [optional]
    -
    -### Return type
    -
    -[**ModelApiResponse**](ModelApiResponse.md)
    -
    -### Authorization
    -
    -[petstore_auth](../README.md#petstore_auth)
    -
    -### HTTP request headers
    -
    - - **Content-Type**: multipart/form-data
    - - **Accept**: application/json
    -
    
  • samples/client/petstore/java/jersey2-java6/docs/Pet.md+0 24 removed
    @@ -1,24 +0,0 @@
    -
    -# Pet
    -
    -## Properties
    -Name | Type | Description | Notes
    ------------- | ------------- | ------------- | -------------
    -**id** | **Long** |  |  [optional]
    -**category** | [**Category**](Category.md) |  |  [optional]
    -**name** | **String** |  | 
    -**photoUrls** | **List&lt;String&gt;** |  | 
    -**tags** | [**List&lt;Tag&gt;**](Tag.md) |  |  [optional]
    -**status** | [**StatusEnum**](#StatusEnum) | pet status in the store |  [optional]
    -
    -
    -<a name="StatusEnum"></a>
    -## Enum: StatusEnum
    -Name | Value
    ----- | -----
    -AVAILABLE | &quot;available&quot;
    -PENDING | &quot;pending&quot;
    -SOLD | &quot;sold&quot;
    -
    -
    -
    
  • samples/client/petstore/java/jersey2-java6/docs/ReadOnlyFirst.md+0 11 removed
    @@ -1,11 +0,0 @@
    -
    -# ReadOnlyFirst
    -
    -## Properties
    -Name | Type | Description | Notes
    ------------- | ------------- | ------------- | -------------
    -**bar** | **String** |  |  [optional]
    -**baz** | **String** |  |  [optional]
    -
    -
    -
    
  • samples/client/petstore/java/jersey2-java6/docs/SpecialModelName.md+0 10 removed
    @@ -1,10 +0,0 @@
    -
    -# SpecialModelName
    -
    -## Properties
    -Name | Type | Description | Notes
    ------------- | ------------- | ------------- | -------------
    -**specialPropertyName** | **Long** |  |  [optional]
    -
    -
    -
    
  • samples/client/petstore/java/jersey2-java6/docs/StoreApi.md+0 197 removed
    @@ -1,197 +0,0 @@
    -# StoreApi
    -
    -All URIs are relative to *http://petstore.swagger.io:80/v2*
    -
    -Method | HTTP request | Description
    -------------- | ------------- | -------------
    -[**deleteOrder**](StoreApi.md#deleteOrder) | **DELETE** /store/order/{order_id} | Delete purchase order by ID
    -[**getInventory**](StoreApi.md#getInventory) | **GET** /store/inventory | Returns pet inventories by status
    -[**getOrderById**](StoreApi.md#getOrderById) | **GET** /store/order/{order_id} | Find purchase order by ID
    -[**placeOrder**](StoreApi.md#placeOrder) | **POST** /store/order | Place an order for a pet
    -
    -
    -<a name="deleteOrder"></a>
    -# **deleteOrder**
    -> deleteOrder(orderId)
    -
    -Delete purchase order by ID
    -
    -For valid response try integer IDs with value &lt; 1000. Anything above 1000 or nonintegers will generate API errors
    -
    -### Example
    -```java
    -// Import classes:
    -//import io.swagger.client.ApiException;
    -//import io.swagger.client.api.StoreApi;
    -
    -
    -StoreApi apiInstance = new StoreApi();
    -String orderId = "orderId_example"; // String | ID of the order that needs to be deleted
    -try {
    -    apiInstance.deleteOrder(orderId);
    -} catch (ApiException e) {
    -    System.err.println("Exception when calling StoreApi#deleteOrder");
    -    e.printStackTrace();
    -}
    -```
    -
    -### Parameters
    -
    -Name | Type | Description  | Notes
    -------------- | ------------- | ------------- | -------------
    - **orderId** | **String**| ID of the order that needs to be deleted |
    -
    -### Return type
    -
    -null (empty response body)
    -
    -### Authorization
    -
    -No authorization required
    -
    -### HTTP request headers
    -
    - - **Content-Type**: Not defined
    - - **Accept**: application/xml, application/json
    -
    -<a name="getInventory"></a>
    -# **getInventory**
    -> Map&lt;String, Integer&gt; getInventory()
    -
    -Returns pet inventories by status
    -
    -Returns a map of status codes to quantities
    -
    -### Example
    -```java
    -// Import classes:
    -//import io.swagger.client.ApiClient;
    -//import io.swagger.client.ApiException;
    -//import io.swagger.client.Configuration;
    -//import io.swagger.client.auth.*;
    -//import io.swagger.client.api.StoreApi;
    -
    -ApiClient defaultClient = Configuration.getDefaultApiClient();
    -
    -// Configure API key authorization: api_key
    -ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
    -api_key.setApiKey("YOUR API KEY");
    -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    -//api_key.setApiKeyPrefix("Token");
    -
    -StoreApi apiInstance = new StoreApi();
    -try {
    -    Map<String, Integer> result = apiInstance.getInventory();
    -    System.out.println(result);
    -} catch (ApiException e) {
    -    System.err.println("Exception when calling StoreApi#getInventory");
    -    e.printStackTrace();
    -}
    -```
    -
    -### Parameters
    -This endpoint does not need any parameter.
    -
    -### Return type
    -
    -**Map&lt;String, Integer&gt;**
    -
    -### Authorization
    -
    -[api_key](../README.md#api_key)
    -
    -### HTTP request headers
    -
    - - **Content-Type**: Not defined
    - - **Accept**: application/json
    -
    -<a name="getOrderById"></a>
    -# **getOrderById**
    -> Order getOrderById(orderId)
    -
    -Find purchase order by ID
    -
    -For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; 10. Other values will generated exceptions
    -
    -### Example
    -```java
    -// Import classes:
    -//import io.swagger.client.ApiException;
    -//import io.swagger.client.api.StoreApi;
    -
    -
    -StoreApi apiInstance = new StoreApi();
    -Long orderId = 789L; // Long | ID of pet that needs to be fetched
    -try {
    -    Order result = apiInstance.getOrderById(orderId);
    -    System.out.println(result);
    -} catch (ApiException e) {
    -    System.err.println("Exception when calling StoreApi#getOrderById");
    -    e.printStackTrace();
    -}
    -```
    -
    -### Parameters
    -
    -Name | Type | Description  | Notes
    -------------- | ------------- | ------------- | -------------
    - **orderId** | **Long**| ID of pet that needs to be fetched |
    -
    -### Return type
    -
    -[**Order**](Order.md)
    -
    -### Authorization
    -
    -No authorization required
    -
    -### HTTP request headers
    -
    - - **Content-Type**: Not defined
    - - **Accept**: application/xml, application/json
    -
    -<a name="placeOrder"></a>
    -# **placeOrder**
    -> Order placeOrder(body)
    -
    -Place an order for a pet
    -
    -
    -
    -### Example
    -```java
    -// Import classes:
    -//import io.swagger.client.ApiException;
    -//import io.swagger.client.api.StoreApi;
    -
    -
    -StoreApi apiInstance = new StoreApi();
    -Order body = new Order(); // Order | order placed for purchasing the pet
    -try {
    -    Order result = apiInstance.placeOrder(body);
    -    System.out.println(result);
    -} catch (ApiException e) {
    -    System.err.println("Exception when calling StoreApi#placeOrder");
    -    e.printStackTrace();
    -}
    -```
    -
    -### Parameters
    -
    -Name | Type | Description  | Notes
    -------------- | ------------- | ------------- | -------------
    - **body** | [**Order**](Order.md)| order placed for purchasing the pet |
    -
    -### Return type
    -
    -[**Order**](Order.md)
    -
    -### Authorization
    -
    -No authorization required
    -
    -### HTTP request headers
    -
    - - **Content-Type**: Not defined
    - - **Accept**: application/xml, application/json
    -
    
  • samples/client/petstore/java/jersey2-java6/docs/Tag.md+0 11 removed
    @@ -1,11 +0,0 @@
    -
    -# Tag
    -
    -## Properties
    -Name | Type | Description | Notes
    ------------- | ------------- | ------------- | -------------
    -**id** | **Long** |  |  [optional]
    -**name** | **String** |  |  [optional]
    -
    -
    -
    
  • samples/client/petstore/java/jersey2-java6/docs/UserApi.md+0 370 removed
    @@ -1,370 +0,0 @@
    -# UserApi
    -
    -All URIs are relative to *http://petstore.swagger.io:80/v2*
    -
    -Method | HTTP request | Description
    -------------- | ------------- | -------------
    -[**createUser**](UserApi.md#createUser) | **POST** /user | Create user
    -[**createUsersWithArrayInput**](UserApi.md#createUsersWithArrayInput) | **POST** /user/createWithArray | Creates list of users with given input array
    -[**createUsersWithListInput**](UserApi.md#createUsersWithListInput) | **POST** /user/createWithList | Creates list of users with given input array
    -[**deleteUser**](UserApi.md#deleteUser) | **DELETE** /user/{username} | Delete user
    -[**getUserByName**](UserApi.md#getUserByName) | **GET** /user/{username} | Get user by user name
    -[**loginUser**](UserApi.md#loginUser) | **GET** /user/login | Logs user into the system
    -[**logoutUser**](UserApi.md#logoutUser) | **GET** /user/logout | Logs out current logged in user session
    -[**updateUser**](UserApi.md#updateUser) | **PUT** /user/{username} | Updated user
    -
    -
    -<a name="createUser"></a>
    -# **createUser**
    -> createUser(body)
    -
    -Create user
    -
    -This can only be done by the logged in user.
    -
    -### Example
    -```java
    -// Import classes:
    -//import io.swagger.client.ApiException;
    -//import io.swagger.client.api.UserApi;
    -
    -
    -UserApi apiInstance = new UserApi();
    -User body = new User(); // User | Created user object
    -try {
    -    apiInstance.createUser(body);
    -} catch (ApiException e) {
    -    System.err.println("Exception when calling UserApi#createUser");
    -    e.printStackTrace();
    -}
    -```
    -
    -### Parameters
    -
    -Name | Type | Description  | Notes
    -------------- | ------------- | ------------- | -------------
    - **body** | [**User**](User.md)| Created user object |
    -
    -### Return type
    -
    -null (empty response body)
    -
    -### Authorization
    -
    -No authorization required
    -
    -### HTTP request headers
    -
    - - **Content-Type**: Not defined
    - - **Accept**: application/xml, application/json
    -
    -<a name="createUsersWithArrayInput"></a>
    -# **createUsersWithArrayInput**
    -> createUsersWithArrayInput(body)
    -
    -Creates list of users with given input array
    -
    -
    -
    -### Example
    -```java
    -// Import classes:
    -//import io.swagger.client.ApiException;
    -//import io.swagger.client.api.UserApi;
    -
    -
    -UserApi apiInstance = new UserApi();
    -List<User> body = Arrays.asList(new User()); // List<User> | List of user object
    -try {
    -    apiInstance.createUsersWithArrayInput(body);
    -} catch (ApiException e) {
    -    System.err.println("Exception when calling UserApi#createUsersWithArrayInput");
    -    e.printStackTrace();
    -}
    -```
    -
    -### Parameters
    -
    -Name | Type | Description  | Notes
    -------------- | ------------- | ------------- | -------------
    - **body** | [**List&lt;User&gt;**](User.md)| List of user object |
    -
    -### Return type
    -
    -null (empty response body)
    -
    -### Authorization
    -
    -No authorization required
    -
    -### HTTP request headers
    -
    - - **Content-Type**: Not defined
    - - **Accept**: application/xml, application/json
    -
    -<a name="createUsersWithListInput"></a>
    -# **createUsersWithListInput**
    -> createUsersWithListInput(body)
    -
    -Creates list of users with given input array
    -
    -
    -
    -### Example
    -```java
    -// Import classes:
    -//import io.swagger.client.ApiException;
    -//import io.swagger.client.api.UserApi;
    -
    -
    -UserApi apiInstance = new UserApi();
    -List<User> body = Arrays.asList(new User()); // List<User> | List of user object
    -try {
    -    apiInstance.createUsersWithListInput(body);
    -} catch (ApiException e) {
    -    System.err.println("Exception when calling UserApi#createUsersWithListInput");
    -    e.printStackTrace();
    -}
    -```
    -
    -### Parameters
    -
    -Name | Type | Description  | Notes
    -------------- | ------------- | ------------- | -------------
    - **body** | [**List&lt;User&gt;**](User.md)| List of user object |
    -
    -### Return type
    -
    -null (empty response body)
    -
    -### Authorization
    -
    -No authorization required
    -
    -### HTTP request headers
    -
    - - **Content-Type**: Not defined
    - - **Accept**: application/xml, application/json
    -
    -<a name="deleteUser"></a>
    -# **deleteUser**
    -> deleteUser(username)
    -
    -Delete user
    -
    -This can only be done by the logged in user.
    -
    -### Example
    -```java
    -// Import classes:
    -//import io.swagger.client.ApiException;
    -//import io.swagger.client.api.UserApi;
    -
    -
    -UserApi apiInstance = new UserApi();
    -String username = "username_example"; // String | The name that needs to be deleted
    -try {
    -    apiInstance.deleteUser(username);
    -} catch (ApiException e) {
    -    System.err.println("Exception when calling UserApi#deleteUser");
    -    e.printStackTrace();
    -}
    -```
    -
    -### Parameters
    -
    -Name | Type | Description  | Notes
    -------------- | ------------- | ------------- | -------------
    - **username** | **String**| The name that needs to be deleted |
    -
    -### Return type
    -
    -null (empty response body)
    -
    -### Authorization
    -
    -No authorization required
    -
    -### HTTP request headers
    -
    - - **Content-Type**: Not defined
    - - **Accept**: application/xml, application/json
    -
    -<a name="getUserByName"></a>
    -# **getUserByName**
    -> User getUserByName(username)
    -
    -Get user by user name
    -
    -
    -
    -### Example
    -```java
    -// Import classes:
    -//import io.swagger.client.ApiException;
    -//import io.swagger.client.api.UserApi;
    -
    -
    -UserApi apiInstance = new UserApi();
    -String username = "username_example"; // String | The name that needs to be fetched. Use user1 for testing.
    -try {
    -    User result = apiInstance.getUserByName(username);
    -    System.out.println(result);
    -} catch (ApiException e) {
    -    System.err.println("Exception when calling UserApi#getUserByName");
    -    e.printStackTrace();
    -}
    -```
    -
    -### Parameters
    -
    -Name | Type | Description  | Notes
    -------------- | ------------- | ------------- | -------------
    - **username** | **String**| The name that needs to be fetched. Use user1 for testing. |
    -
    -### Return type
    -
    -[**User**](User.md)
    -
    -### Authorization
    -
    -No authorization required
    -
    -### HTTP request headers
    -
    - - **Content-Type**: Not defined
    - - **Accept**: application/xml, application/json
    -
    -<a name="loginUser"></a>
    -# **loginUser**
    -> String loginUser(username, password)
    -
    -Logs user into the system
    -
    -
    -
    -### Example
    -```java
    -// Import classes:
    -//import io.swagger.client.ApiException;
    -//import io.swagger.client.api.UserApi;
    -
    -
    -UserApi apiInstance = new UserApi();
    -String username = "username_example"; // String | The user name for login
    -String password = "password_example"; // String | The password for login in clear text
    -try {
    -    String result = apiInstance.loginUser(username, password);
    -    System.out.println(result);
    -} catch (ApiException e) {
    -    System.err.println("Exception when calling UserApi#loginUser");
    -    e.printStackTrace();
    -}
    -```
    -
    -### Parameters
    -
    -Name | Type | Description  | Notes
    -------------- | ------------- | ------------- | -------------
    - **username** | **String**| The user name for login |
    - **password** | **String**| The password for login in clear text |
    -
    -### Return type
    -
    -**String**
    -
    -### Authorization
    -
    -No authorization required
    -
    -### HTTP request headers
    -
    - - **Content-Type**: Not defined
    - - **Accept**: application/xml, application/json
    -
    -<a name="logoutUser"></a>
    -# **logoutUser**
    -> logoutUser()
    -
    -Logs out current logged in user session
    -
    -
    -
    -### Example
    -```java
    -// Import classes:
    -//import io.swagger.client.ApiException;
    -//import io.swagger.client.api.UserApi;
    -
    -
    -UserApi apiInstance = new UserApi();
    -try {
    -    apiInstance.logoutUser();
    -} catch (ApiException e) {
    -    System.err.println("Exception when calling UserApi#logoutUser");
    -    e.printStackTrace();
    -}
    -```
    -
    -### Parameters
    -This endpoint does not need any parameter.
    -
    -### Return type
    -
    -null (empty response body)
    -
    -### Authorization
    -
    -No authorization required
    -
    -### HTTP request headers
    -
    - - **Content-Type**: Not defined
    - - **Accept**: application/xml, application/json
    -
    -<a name="updateUser"></a>
    -# **updateUser**
    -> updateUser(username, body)
    -
    -Updated user
    -
    -This can only be done by the logged in user.
    -
    -### Example
    -```java
    -// Import classes:
    -//import io.swagger.client.ApiException;
    -//import io.swagger.client.api.UserApi;
    -
    -
    -UserApi apiInstance = new UserApi();
    -String username = "username_example"; // String | name that need to be deleted
    -User body = new User(); // User | Updated user object
    -try {
    -    apiInstance.updateUser(username, body);
    -} catch (ApiException e) {
    -    System.err.println("Exception when calling UserApi#updateUser");
    -    e.printStackTrace();
    -}
    -```
    -
    -### Parameters
    -
    -Name | Type | Description  | Notes
    -------------- | ------------- | ------------- | -------------
    - **username** | **String**| name that need to be deleted |
    - **body** | [**User**](User.md)| Updated user object |
    -
    -### Return type
    -
    -null (empty response body)
    -
    -### Authorization
    -
    -No authorization required
    -
    -### HTTP request headers
    -
    - - **Content-Type**: Not defined
    - - **Accept**: application/xml, application/json
    -
    
  • samples/client/petstore/java/jersey2-java6/docs/User.md+0 17 removed
    @@ -1,17 +0,0 @@
    -
    -# User
    -
    -## Properties
    -Name | Type | Description | Notes
    ------------- | ------------- | ------------- | -------------
    -**id** | **Long** |  |  [optional]
    -**username** | **String** |  |  [optional]
    -**firstName** | **String** |  |  [optional]
    -**lastName** | **String** |  |  [optional]
    -**email** | **String** |  |  [optional]
    -**password** | **String** |  |  [optional]
    -**phone** | **String** |  |  [optional]
    -**userStatus** | **Integer** | User Status |  [optional]
    -
    -
    -
    
  • samples/client/petstore/java/jersey2-java6/.gitignore+0 21 removed
    @@ -1,21 +0,0 @@
    -*.class
    -
    -# Mobile Tools for Java (J2ME)
    -.mtj.tmp/
    -
    -# Package Files #
    -*.jar
    -*.war
    -*.ear
    -
    -# exclude jar for gradle wrapper
    -!gradle/wrapper/*.jar
    -
    -# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
    -hs_err_pid*
    -
    -# build files
    -**/target
    -target
    -.gradle
    -build
    
  • samples/client/petstore/java/jersey2-java6/git_push.sh+0 52 removed
    @@ -1,52 +0,0 @@
    -#!/bin/sh
    -# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
    -#
    -# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update"
    -
    -git_user_id=$1
    -git_repo_id=$2
    -release_note=$3
    -
    -if [ "$git_user_id" = "" ]; then
    -    git_user_id="GIT_USER_ID"
    -    echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
    -fi
    -
    -if [ "$git_repo_id" = "" ]; then
    -    git_repo_id="GIT_REPO_ID"
    -    echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
    -fi
    -
    -if [ "$release_note" = "" ]; then
    -    release_note="Minor update"
    -    echo "[INFO] No command line input provided. Set \$release_note to $release_note"
    -fi
    -
    -# Initialize the local directory as a Git repository
    -git init
    -
    -# Adds the files in the local repository and stages them for commit.
    -git add .
    -
    -# Commits the tracked changes and prepares them to be pushed to a remote repository. 
    -git commit -m "$release_note"
    -
    -# Sets the new remote
    -git_remote=`git remote`
    -if [ "$git_remote" = "" ]; then # git remote not defined
    -
    -    if [ "$GIT_TOKEN" = "" ]; then
    -        echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
    -        git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
    -    else
    -        git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
    -    fi
    -
    -fi
    -
    -git pull origin master
    -
    -# Pushes (Forces) the changes in the local repository up to the remote repository
    -echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
    -git push origin master 2>&1 | grep -v 'To https'
    -
    
  • samples/client/petstore/java/jersey2-java6/gradle.properties+0 2 removed
    @@ -1,2 +0,0 @@
    -# Uncomment to build for Android
    -#target = android
    \ No newline at end of file
    
  • samples/client/petstore/java/jersey2-java6/gradlew+0 160 removed
    @@ -1,160 +0,0 @@
    -#!/usr/bin/env bash
    -
    -##############################################################################
    -##
    -##  Gradle start up script for UN*X
    -##
    -##############################################################################
    -
    -# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
    -DEFAULT_JVM_OPTS=""
    -
    -APP_NAME="Gradle"
    -APP_BASE_NAME=`basename "$0"`
    -
    -# Use the maximum available, or set MAX_FD != -1 to use that value.
    -MAX_FD="maximum"
    -
    -warn ( ) {
    -    echo "$*"
    -}
    -
    -die ( ) {
    -    echo
    -    echo "$*"
    -    echo
    -    exit 1
    -}
    -
    -# OS specific support (must be 'true' or 'false').
    -cygwin=false
    -msys=false
    -darwin=false
    -case "`uname`" in
    -  CYGWIN* )
    -    cygwin=true
    -    ;;
    -  Darwin* )
    -    darwin=true
    -    ;;
    -  MINGW* )
    -    msys=true
    -    ;;
    -esac
    -
    -# Attempt to set APP_HOME
    -# Resolve links: $0 may be a link
    -PRG="$0"
    -# Need this for relative symlinks.
    -while [ -h "$PRG" ] ; do
    -    ls=`ls -ld "$PRG"`
    -    link=`expr "$ls" : '.*-> \(.*\)$'`
    -    if expr "$link" : '/.*' > /dev/null; then
    -        PRG="$link"
    -    else
    -        PRG=`dirname "$PRG"`"/$link"
    -    fi
    -done
    -SAVED="`pwd`"
    -cd "`dirname \"$PRG\"`/" >/dev/null
    -APP_HOME="`pwd -P`"
    -cd "$SAVED" >/dev/null
    -
    -CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
    -
    -# Determine the Java command to use to start the JVM.
    -if [ -n "$JAVA_HOME" ] ; then
    -    if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
    -        # IBM's JDK on AIX uses strange locations for the executables
    -        JAVACMD="$JAVA_HOME/jre/sh/java"
    -    else
    -        JAVACMD="$JAVA_HOME/bin/java"
    -    fi
    -    if [ ! -x "$JAVACMD" ] ; then
    -        die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
    -
    -Please set the JAVA_HOME variable in your environment to match the
    -location of your Java installation."
    -    fi
    -else
    -    JAVACMD="java"
    -    which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
    -
    -Please set the JAVA_HOME variable in your environment to match the
    -location of your Java installation."
    -fi
    -
    -# Increase the maximum file descriptors if we can.
    -if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
    -    MAX_FD_LIMIT=`ulimit -H -n`
    -    if [ $? -eq 0 ] ; then
    -        if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
    -            MAX_FD="$MAX_FD_LIMIT"
    -        fi
    -        ulimit -n $MAX_FD
    -        if [ $? -ne 0 ] ; then
    -            warn "Could not set maximum file descriptor limit: $MAX_FD"
    -        fi
    -    else
    -        warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
    -    fi
    -fi
    -
    -# For Darwin, add options to specify how the application appears in the dock
    -if $darwin; then
    -    GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
    -fi
    -
    -# For Cygwin, switch paths to Windows format before running java
    -if $cygwin ; then
    -    APP_HOME=`cygpath --path --mixed "$APP_HOME"`
    -    CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
    -    JAVACMD=`cygpath --unix "$JAVACMD"`
    -
    -    # We build the pattern for arguments to be converted via cygpath
    -    ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
    -    SEP=""
    -    for dir in $ROOTDIRSRAW ; do
    -        ROOTDIRS="$ROOTDIRS$SEP$dir"
    -        SEP="|"
    -    done
    -    OURCYGPATTERN="(^($ROOTDIRS))"
    -    # Add a user-defined pattern to the cygpath arguments
    -    if [ "$GRADLE_CYGPATTERN" != "" ] ; then
    -        OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
    -    fi
    -    # Now convert the arguments - kludge to limit ourselves to /bin/sh
    -    i=0
    -    for arg in "$@" ; do
    -        CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
    -        CHECK2=`echo "$arg"|egrep -c "^-"`                                 ### Determine if an option
    -
    -        if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then                    ### Added a condition
    -            eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
    -        else
    -            eval `echo args$i`="\"$arg\""
    -        fi
    -        i=$((i+1))
    -    done
    -    case $i in
    -        (0) set -- ;;
    -        (1) set -- "$args0" ;;
    -        (2) set -- "$args0" "$args1" ;;
    -        (3) set -- "$args0" "$args1" "$args2" ;;
    -        (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
    -        (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
    -        (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
    -        (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
    -        (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
    -        (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
    -    esac
    -fi
    -
    -# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
    -function splitJvmOpts() {
    -    JVM_OPTS=("$@")
    -}
    -eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
    -JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
    -
    -exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
    
  • samples/client/petstore/java/jersey2-java6/gradlew.bat+0 90 removed
    @@ -1,90 +0,0 @@
    -@if "%DEBUG%" == "" @echo off
    -@rem ##########################################################################
    -@rem
    -@rem  Gradle startup script for Windows
    -@rem
    -@rem ##########################################################################
    -
    -@rem Set local scope for the variables with windows NT shell
    -if "%OS%"=="Windows_NT" setlocal
    -
    -@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
    -set DEFAULT_JVM_OPTS=
    -
    -set DIRNAME=%~dp0
    -if "%DIRNAME%" == "" set DIRNAME=.
    -set APP_BASE_NAME=%~n0
    -set APP_HOME=%DIRNAME%
    -
    -@rem Find java.exe
    -if defined JAVA_HOME goto findJavaFromJavaHome
    -
    -set JAVA_EXE=java.exe
    -%JAVA_EXE% -version >NUL 2>&1
    -if "%ERRORLEVEL%" == "0" goto init
    -
    -echo.
    -echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
    -echo.
    -echo Please set the JAVA_HOME variable in your environment to match the
    -echo location of your Java installation.
    -
    -goto fail
    -
    -:findJavaFromJavaHome
    -set JAVA_HOME=%JAVA_HOME:"=%
    -set JAVA_EXE=%JAVA_HOME%/bin/java.exe
    -
    -if exist "%JAVA_EXE%" goto init
    -
    -echo.
    -echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
    -echo.
    -echo Please set the JAVA_HOME variable in your environment to match the
    -echo location of your Java installation.
    -
    -goto fail
    -
    -:init
    -@rem Get command-line arguments, handling Windows variants
    -
    -if not "%OS%" == "Windows_NT" goto win9xME_args
    -if "%@eval[2+2]" == "4" goto 4NT_args
    -
    -:win9xME_args
    -@rem Slurp the command line arguments.
    -set CMD_LINE_ARGS=
    -set _SKIP=2
    -
    -:win9xME_args_slurp
    -if "x%~1" == "x" goto execute
    -
    -set CMD_LINE_ARGS=%*
    -goto execute
    -
    -:4NT_args
    -@rem Get arguments from the 4NT Shell from JP Software
    -set CMD_LINE_ARGS=%$
    -
    -:execute
    -@rem Setup the command line
    -
    -set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
    -
    -@rem Execute Gradle
    -"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
    -
    -:end
    -@rem End local scope for the variables with windows NT shell
    -if "%ERRORLEVEL%"=="0" goto mainEnd
    -
    -:fail
    -rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
    -rem the _cmd.exe /c_ return code!
    -if  not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
    -exit /b 1
    -
    -:mainEnd
    -if "%OS%"=="Windows_NT" endlocal
    -
    -:omega
    
  • samples/client/petstore/java/jersey2-java6/gradle/wrapper/gradle-wrapper.jar+0 0 removed
  • samples/client/petstore/java/jersey2-java6/gradle/wrapper/gradle-wrapper.properties+0 6 removed
    @@ -1,6 +0,0 @@
    -#Tue May 17 23:08:05 CST 2016
    -distributionBase=GRADLE_USER_HOME
    -distributionPath=wrapper/dists
    -zipStoreBase=GRADLE_USER_HOME
    -zipStorePath=wrapper/dists
    -distributionUrl=https\://services.gradle.org/distributions/gradle-2.6-bin.zip
    
  • samples/client/petstore/java/jersey2-java6/pom.xml+0 283 removed
    @@ -1,283 +0,0 @@
    -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    -         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
    -    <modelVersion>4.0.0</modelVersion>
    -    <groupId>io.swagger</groupId>
    -    <artifactId>swagger-petstore-jersey2-java6</artifactId>
    -    <packaging>jar</packaging>
    -    <name>swagger-petstore-jersey2-java6</name>
    -    <version>1.0.0</version>
    -    <url>https://github.com/swagger-api/swagger-codegen</url>
    -    <description>Swagger Java</description>
    -    <scm>
    -        <connection>scm:git:git@github.com:swagger-api/swagger-codegen.git</connection>
    -        <developerConnection>scm:git:git@github.com:swagger-api/swagger-codegen.git</developerConnection>
    -        <url>https://github.com/swagger-api/swagger-codegen</url>
    -    </scm>
    -
    -    <licenses>
    -        <license>
    -            <name>Unlicense</name>
    -            <url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
    -            <distribution>repo</distribution>
    -        </license>
    -    </licenses>
    -
    -    <developers>
    -        <developer>
    -            <name>Swagger</name>
    -            <email>apiteam@swagger.io</email>
    -            <organization>Swagger</organization>
    -            <organizationUrl>http://swagger.io</organizationUrl>
    -        </developer>
    -    </developers>
    -
    -    <build>
    -        <plugins>
    -            <plugin>
    -                <groupId>org.apache.maven.plugins</groupId>
    -                <artifactId>maven-enforcer-plugin</artifactId>
    -                <version>3.0.0-M1</version>
    -                <executions>
    -                    <execution>
    -                        <id>enforce-maven</id>
    -                        <goals>
    -                            <goal>enforce</goal>
    -                        </goals>
    -                        <configuration>
    -                            <rules>
    -                                <requireMavenVersion>
    -                                    <version>2.2.0</version>
    -                                </requireMavenVersion>
    -                            </rules>
    -                        </configuration>
    -                    </execution>
    -                </executions>
    -            </plugin>
    -            <plugin>
    -                <groupId>org.apache.maven.plugins</groupId>
    -                <artifactId>maven-surefire-plugin</artifactId>
    -                <version>2.12</version>
    -                <configuration>
    -                    <systemProperties>
    -                        <property>
    -                            <name>loggerPath</name>
    -                            <value>conf/log4j.properties</value>
    -                        </property>
    -                    </systemProperties>
    -                    <argLine>-Xms512m -Xmx1500m</argLine>
    -                    <parallel>methods</parallel>
    -                    <forkMode>pertest</forkMode>
    -                </configuration>
    -            </plugin>
    -            <plugin>
    -                <artifactId>maven-dependency-plugin</artifactId>
    -                <executions>
    -                    <execution>
    -                        <phase>package</phase>
    -                        <goals>
    -                            <goal>copy-dependencies</goal>
    -                        </goals>
    -                        <configuration>
    -                            <outputDirectory>${project.build.directory}/lib</outputDirectory>
    -                        </configuration>
    -                    </execution>
    -                </executions>
    -            </plugin>
    -
    -            <!-- attach test jar -->
    -            <plugin>
    -                <groupId>org.apache.maven.plugins</groupId>
    -                <artifactId>maven-jar-plugin</artifactId>
    -                <version>2.6</version>
    -                <executions>
    -                    <execution>
    -                        <goals>
    -                            <goal>jar</goal>
    -                            <goal>test-jar</goal>
    -                        </goals>
    -                    </execution>
    -                </executions>
    -                <configuration>
    -                </configuration>
    -            </plugin>
    -
    -            <plugin>
    -                <groupId>org.codehaus.mojo</groupId>
    -                <artifactId>build-helper-maven-plugin</artifactId>
    -                <version>1.10</version>
    -                <executions>
    -                    <execution>
    -                        <id>add_sources</id>
    -                        <phase>generate-sources</phase>
    -                        <goals>
    -                            <goal>add-source</goal>
    -                        </goals>
    -                        <configuration>
    -                            <sources>
    -                                <source>
    -                                src/main/java</source>
    -                            </sources>
    -                        </configuration>
    -                    </execution>
    -                    <execution>
    -                        <id>add_test_sources</id>
    -                        <phase>generate-test-sources</phase>
    -                        <goals>
    -                            <goal>add-test-source</goal>
    -                        </goals>
    -                        <configuration>
    -                            <sources>
    -                                <source>
    -                                src/test/java</source>
    -                            </sources>
    -                        </configuration>
    -                    </execution>
    -                </executions>
    -            </plugin>
    -            <plugin>
    -                <groupId>org.apache.maven.plugins</groupId>
    -                <artifactId>maven-compiler-plugin</artifactId>
    -                <version>3.6.1</version>
    -                <configuration>
    -                        <source>
    -                        1.7</source>
    -                        <target>1.7</target>
    -                </configuration>
    -            </plugin>
    -            <plugin>
    -                <groupId>org.apache.maven.plugins</groupId>
    -                <artifactId>maven-javadoc-plugin</artifactId>
    -                <version>2.10.4</version>
    -                <executions>
    -                    <execution>
    -                        <id>attach-javadocs</id>
    -                        <goals>
    -                            <goal>jar</goal>
    -                        </goals>
    -                    </execution>
    -                </executions>
    -            </plugin>
    -            <plugin>
    -                <groupId>org.apache.maven.plugins</groupId>
    -                <artifactId>maven-source-plugin</artifactId>
    -                <version>2.2.1</version>
    -                <executions>
    -                    <execution>
    -                        <id>attach-sources</id>
    -                        <goals>
    -                            <goal>jar-no-fork</goal>
    -                        </goals>
    -                    </execution>
    -                </executions>
    -            </plugin>
    -        </plugins>
    -    </build>
    -
    -    <profiles>
    -        <profile>
    -            <id>sign-artifacts</id>
    -            <build>
    -                <plugins>
    -                    <plugin>
    -                        <groupId>org.apache.maven.plugins</groupId>
    -                        <artifactId>maven-gpg-plugin</artifactId>
    -                        <version>1.5</version>
    -                        <executions>
    -                            <execution>
    -                                <id>sign-artifacts</id>
    -                                <phase>verify</phase>
    -                                <goals>
    -                                    <goal>sign</goal>
    -                                </goals>
    -                            </execution>
    -                        </executions>
    -                    </plugin>
    -                </plugins>
    -            </build>
    -        </profile>
    -    </profiles>
    -
    -    <dependencies>
    -        <dependency>
    -            <groupId>io.swagger</groupId>
    -            <artifactId>swagger-annotations</artifactId>
    -            <version>${swagger-core-version}</version>
    -        </dependency>
    -
    -        <!-- HTTP client: jersey-client -->
    -        <dependency>
    -            <groupId>org.glassfish.jersey.core</groupId>
    -            <artifactId>jersey-client</artifactId>
    -            <version>${jersey-version}</version>
    -        </dependency>
    -        <dependency>
    -            <groupId>org.glassfish.jersey.media</groupId>
    -            <artifactId>jersey-media-multipart</artifactId>
    -            <version>${jersey-version}</version>
    -        </dependency>
    -        <dependency>
    -            <groupId>org.glassfish.jersey.media</groupId>
    -            <artifactId>jersey-media-json-jackson</artifactId>
    -            <version>${jersey-version}</version>
    -        </dependency>
    -        <dependency>
    -            <groupId>org.glassfish.jersey.inject</groupId>
    -            <artifactId>jersey-hk2</artifactId>
    -            <version>${jersey-version}</version>
    -        </dependency>
    -        <!-- JSON processing: jackson -->
    -        <dependency>
    -            <groupId>com.fasterxml.jackson.core</groupId>
    -            <artifactId>jackson-core</artifactId>
    -            <version>${jackson-version}</version>
    -        </dependency>
    -        <dependency>
    -            <groupId>com.fasterxml.jackson.core</groupId>
    -            <artifactId>jackson-annotations</artifactId>
    -            <version>${jackson-version}</version>
    -        </dependency>
    -        <dependency>
    -            <groupId>com.fasterxml.jackson.core</groupId>
    -            <artifactId>jackson-databind</artifactId>
    -            <version>${jackson-version}</version>
    -        </dependency>
    -            <dependency>
    -                <groupId>com.github.joschi.jackson</groupId>
    -                <artifactId>jackson-datatype-threetenbp</artifactId>
    -                <version>${jackson-version}</version>
    -            </dependency>
    -            <!-- Base64 encoding that works in both JVM and Android -->
    -            <dependency>
    -                <groupId>com.brsanthu</groupId>
    -                <artifactId>migbase64</artifactId>
    -                <version>2.2</version>
    -            </dependency>
    -            <dependency>
    -                <groupId>org.apache.commons</groupId>
    -                <artifactId>commons-lang3</artifactId>
    -                <version>${commons_lang3_version}</version>
    -            </dependency>
    -            <dependency>
    -                <groupId>commons-io</groupId>
    -                <artifactId>commons-io</artifactId>
    -                <version>${commons_io_version}</version>
    -            </dependency>
    -        <!-- test dependencies -->
    -        <dependency>
    -            <groupId>junit</groupId>
    -            <artifactId>junit</artifactId>
    -            <version>${junit-version}</version>
    -            <scope>test</scope>
    -        </dependency>
    -    </dependencies>
    -    <properties>
    -        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    -        <swagger-core-version>1.5.24</swagger-core-version>
    -            <jersey-version>2.6</jersey-version>
    -            <commons_io_version>2.5</commons_io_version>
    -            <commons_lang3_version>3.6</commons_lang3_version>
    -        <jackson-version>2.6.4</jackson-version>
    -        <maven-plugin-version>1.0.0</maven-plugin-version>
    -        <junit-version>4.13.1</junit-version>
    -    </properties>
    -</project>
    
  • samples/client/petstore/java/jersey2-java6/README.md+0 198 removed
    @@ -1,198 +0,0 @@
    -# swagger-petstore-jersey2-java6
    -
    -## Requirements
    -
    -Building the API client library requires [Maven](https://maven.apache.org/) to be installed.
    -
    -## Installation
    -
    -To install the API client library to your local Maven repository, simply execute:
    -
    -```shell
    -mvn install
    -```
    -
    -To deploy it to a remote Maven repository instead, configure the settings of the repository and execute:
    -
    -```shell
    -mvn deploy
    -```
    -
    -Refer to the [official documentation](https://maven.apache.org/plugins/maven-deploy-plugin/usage.html) for more information.
    -
    -### Maven users
    -
    -Add this dependency to your project's POM:
    -
    -```xml
    -<dependency>
    -    <groupId>io.swagger</groupId>
    -    <artifactId>swagger-petstore-jersey2-java6</artifactId>
    -    <version>1.0.0</version>
    -    <scope>compile</scope>
    -</dependency>
    -```
    -
    -### Gradle users
    -
    -Add this dependency to your project's build file:
    -
    -```groovy
    -compile "io.swagger:swagger-petstore-jersey2-java6:1.0.0"
    -```
    -
    -### Others
    -
    -At first generate the JAR by executing:
    -
    -    mvn package
    -
    -Then manually install the following JARs:
    -
    -* target/swagger-petstore-jersey2-java6-1.0.0.jar
    -* target/lib/*.jar
    -
    -## Getting Started
    -
    -Please follow the [installation](#installation) instruction and execute the following Java code:
    -
    -```java
    -
    -import io.swagger.client.*;
    -import io.swagger.client.auth.*;
    -import io.swagger.client.model.*;
    -import io.swagger.client.api.AnotherFakeApi;
    -
    -import java.io.File;
    -import java.util.*;
    -
    -public class AnotherFakeApiExample {
    -
    -    public static void main(String[] args) {
    -        
    -        AnotherFakeApi apiInstance = new AnotherFakeApi();
    -        Client body = new Client(); // Client | client model
    -        try {
    -            Client result = apiInstance.testSpecialTags(body);
    -            System.out.println(result);
    -        } catch (ApiException e) {
    -            System.err.println("Exception when calling AnotherFakeApi#testSpecialTags");
    -            e.printStackTrace();
    -        }
    -    }
    -}
    -
    -```
    -
    -## Documentation for API Endpoints
    -
    -All URIs are relative to *http://petstore.swagger.io:80/v2*
    -
    -Class | Method | HTTP request | Description
    ------------- | ------------- | ------------- | -------------
    -*AnotherFakeApi* | [**testSpecialTags**](docs/AnotherFakeApi.md#testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags
    -*FakeApi* | [**fakeOuterBooleanSerialize**](docs/FakeApi.md#fakeOuterBooleanSerialize) | **POST** /fake/outer/boolean | 
    -*FakeApi* | [**fakeOuterCompositeSerialize**](docs/FakeApi.md#fakeOuterCompositeSerialize) | **POST** /fake/outer/composite | 
    -*FakeApi* | [**fakeOuterNumberSerialize**](docs/FakeApi.md#fakeOuterNumberSerialize) | **POST** /fake/outer/number | 
    -*FakeApi* | [**fakeOuterStringSerialize**](docs/FakeApi.md#fakeOuterStringSerialize) | **POST** /fake/outer/string | 
    -*FakeApi* | [**testClientModel**](docs/FakeApi.md#testClientModel) | **PATCH** /fake | To test \&quot;client\&quot; model
    -*FakeApi* | [**testEndpointParameters**](docs/FakeApi.md#testEndpointParameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 
    -*FakeApi* | [**testEnumParameters**](docs/FakeApi.md#testEnumParameters) | **GET** /fake | To test enum parameters
    -*FakeApi* | [**testInlineAdditionalProperties**](docs/FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties
    -*FakeApi* | [**testJsonFormData**](docs/FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data
    -*FakeClassnameTags123Api* | [**testClassname**](docs/FakeClassnameTags123Api.md#testClassname) | **PATCH** /fake_classname_test | To test class name in snake case
    -*PetApi* | [**addPet**](docs/PetApi.md#addPet) | **POST** /pet | Add a new pet to the store
    -*PetApi* | [**deletePet**](docs/PetApi.md#deletePet) | **DELETE** /pet/{petId} | Deletes a pet
    -*PetApi* | [**findPetsByStatus**](docs/PetApi.md#findPetsByStatus) | **GET** /pet/findByStatus | Finds Pets by status
    -*PetApi* | [**findPetsByTags**](docs/PetApi.md#findPetsByTags) | **GET** /pet/findByTags | Finds Pets by tags
    -*PetApi* | [**getPetById**](docs/PetApi.md#getPetById) | **GET** /pet/{petId} | Find pet by ID
    -*PetApi* | [**updatePet**](docs/PetApi.md#updatePet) | **PUT** /pet | Update an existing pet
    -*PetApi* | [**updatePetWithForm**](docs/PetApi.md#updatePetWithForm) | **POST** /pet/{petId} | Updates a pet in the store with form data
    -*PetApi* | [**uploadFile**](docs/PetApi.md#uploadFile) | **POST** /pet/{petId}/uploadImage | uploads an image
    -*StoreApi* | [**deleteOrder**](docs/StoreApi.md#deleteOrder) | **DELETE** /store/order/{order_id} | Delete purchase order by ID
    -*StoreApi* | [**getInventory**](docs/StoreApi.md#getInventory) | **GET** /store/inventory | Returns pet inventories by status
    -*StoreApi* | [**getOrderById**](docs/StoreApi.md#getOrderById) | **GET** /store/order/{order_id} | Find purchase order by ID
    -*StoreApi* | [**placeOrder**](docs/StoreApi.md#placeOrder) | **POST** /store/order | Place an order for a pet
    -*UserApi* | [**createUser**](docs/UserApi.md#createUser) | **POST** /user | Create user
    -*UserApi* | [**createUsersWithArrayInput**](docs/UserApi.md#createUsersWithArrayInput) | **POST** /user/createWithArray | Creates list of users with given input array
    -*UserApi* | [**createUsersWithListInput**](docs/UserApi.md#createUsersWithListInput) | **POST** /user/createWithList | Creates list of users with given input array
    -*UserApi* | [**deleteUser**](docs/UserApi.md#deleteUser) | **DELETE** /user/{username} | Delete user
    -*UserApi* | [**getUserByName**](docs/UserApi.md#getUserByName) | **GET** /user/{username} | Get user by user name
    -*UserApi* | [**loginUser**](docs/UserApi.md#loginUser) | **GET** /user/login | Logs user into the system
    -*UserApi* | [**logoutUser**](docs/UserApi.md#logoutUser) | **GET** /user/logout | Logs out current logged in user session
    -*UserApi* | [**updateUser**](docs/UserApi.md#updateUser) | **PUT** /user/{username} | Updated user
    -
    -
    -## Documentation for Models
    -
    - - [AdditionalPropertiesClass](docs/AdditionalPropertiesClass.md)
    - - [Animal](docs/Animal.md)
    - - [AnimalFarm](docs/AnimalFarm.md)
    - - [ArrayOfArrayOfNumberOnly](docs/ArrayOfArrayOfNumberOnly.md)
    - - [ArrayOfNumberOnly](docs/ArrayOfNumberOnly.md)
    - - [ArrayTest](docs/ArrayTest.md)
    - - [Capitalization](docs/Capitalization.md)
    - - [Category](docs/Category.md)
    - - [ClassModel](docs/ClassModel.md)
    - - [Client](docs/Client.md)
    - - [EnumArrays](docs/EnumArrays.md)
    - - [EnumClass](docs/EnumClass.md)
    - - [EnumTest](docs/EnumTest.md)
    - - [FormatTest](docs/FormatTest.md)
    - - [HasOnlyReadOnly](docs/HasOnlyReadOnly.md)
    - - [MapTest](docs/MapTest.md)
    - - [MixedPropertiesAndAdditionalPropertiesClass](docs/MixedPropertiesAndAdditionalPropertiesClass.md)
    - - [Model200Response](docs/Model200Response.md)
    - - [ModelApiResponse](docs/ModelApiResponse.md)
    - - [ModelReturn](docs/ModelReturn.md)
    - - [Name](docs/Name.md)
    - - [NumberOnly](docs/NumberOnly.md)
    - - [Order](docs/Order.md)
    - - [OuterComposite](docs/OuterComposite.md)
    - - [OuterEnum](docs/OuterEnum.md)
    - - [Pet](docs/Pet.md)
    - - [ReadOnlyFirst](docs/ReadOnlyFirst.md)
    - - [SpecialModelName](docs/SpecialModelName.md)
    - - [Tag](docs/Tag.md)
    - - [User](docs/User.md)
    - - [Cat](docs/Cat.md)
    - - [Dog](docs/Dog.md)
    -
    -
    -## Documentation for Authorization
    -
    -Authentication schemes defined for the API:
    -### api_key
    -
    -- **Type**: API key
    -- **API key parameter name**: api_key
    -- **Location**: HTTP header
    -
    -### api_key_query
    -
    -- **Type**: API key
    -- **API key parameter name**: api_key_query
    -- **Location**: URL query string
    -
    -### http_basic_test
    -
    -- **Type**: HTTP basic authentication
    -
    -### petstore_auth
    -
    -- **Type**: OAuth
    -- **Flow**: implicit
    -- **Authorization URL**: http://petstore.swagger.io/api/oauth/dialog
    -- **Scopes**: 
    -  - write:pets: modify pets in your account
    -  - read:pets: read your pets
    -
    -
    -## Recommendation
    -
    -It's recommended to create an instance of `ApiClient` per thread in a multithreaded environment to avoid any potential issues.
    -
    -## Author
    -
    -apiteam@swagger.io
    -
    
  • samples/client/petstore/java/jersey2-java6/settings.gradle+0 1 removed
    @@ -1 +0,0 @@
    -rootProject.name = "swagger-petstore-jersey2-java6"
    \ No newline at end of file
    
  • samples/client/petstore/java/jersey2-java6/src/main/AndroidManifest.xml+0 3 removed
    @@ -1,3 +0,0 @@
    -<manifest package="io.swagger.client" xmlns:android="http://schemas.android.com/apk/res/android">
    -    <application />
    -</manifest>
    
  • samples/client/petstore/java/jersey2-java6/src/main/java/io/swagger/client/api/AnotherFakeApi.java+0 90 removed
    @@ -1,90 +0,0 @@
    -package io.swagger.client.api;
    -
    -import io.swagger.client.ApiException;
    -import io.swagger.client.ApiClient;
    -import io.swagger.client.ApiResponse;
    -import io.swagger.client.Configuration;
    -import io.swagger.client.Pair;
    -
    -import javax.ws.rs.core.GenericType;
    -
    -import io.swagger.client.model.Client;
    -
    -import java.util.ArrayList;
    -import java.util.HashMap;
    -import java.util.List;
    -import java.util.Map;
    -
    -
    -public class AnotherFakeApi {
    -  private ApiClient apiClient;
    -
    -  public AnotherFakeApi() {
    -    this(Configuration.getDefaultApiClient());
    -  }
    -
    -  public AnotherFakeApi(ApiClient apiClient) {
    -    this.apiClient = apiClient;
    -  }
    -
    -  public ApiClient getApiClient() {
    -    return apiClient;
    -  }
    -
    -  public void setApiClient(ApiClient apiClient) {
    -    this.apiClient = apiClient;
    -  }
    -
    -  /**
    -   * To test special tags
    -   * To test special tags
    -   * @param body client model (required)
    -   * @return Client
    -   * @throws ApiException if fails to make API call
    -   */
    -  public Client testSpecialTags(Client body) throws ApiException {
    -    return testSpecialTagsWithHttpInfo(body).getData();
    -      }
    -
    -  /**
    -   * To test special tags
    -   * To test special tags
    -   * @param body client model (required)
    -   * @return ApiResponse&lt;Client&gt;
    -   * @throws ApiException if fails to make API call
    -   */
    -  public ApiResponse<Client> testSpecialTagsWithHttpInfo(Client body) throws ApiException {
    -    Object localVarPostBody = body;
    -    
    -    // verify the required parameter 'body' is set
    -    if (body == null) {
    -      throw new ApiException(400, "Missing the required parameter 'body' when calling testSpecialTags");
    -    }
    -    
    -    // create path and map variables
    -    String localVarPath = "/another-fake/dummy";
    -
    -    // query params
    -    List<Pair> localVarQueryParams = new ArrayList<Pair>();
    -    Map<String, String> localVarHeaderParams = new HashMap<String, String>();
    -    Map<String, Object> localVarFormParams = new HashMap<String, Object>();
    -
    -
    -    
    -    
    -    final String[] localVarAccepts = {
    -      "application/json"
    -    };
    -    final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
    -
    -    final String[] localVarContentTypes = {
    -      "application/json"
    -    };
    -    final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
    -
    -    String[] localVarAuthNames = new String[] {  };
    -
    -    GenericType<Client> localVarReturnType = new GenericType<Client>() {};
    -    return apiClient.invokeAPI(localVarPath, "PATCH", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
    -      }
    -}
    
  • samples/client/petstore/java/jersey2-java6/src/main/java/io/swagger/client/ApiClient.java+0 780 removed
    @@ -1,780 +0,0 @@
    -package io.swagger.client;
    -
    -import javax.ws.rs.client.Client;
    -import javax.ws.rs.client.ClientBuilder;
    -import javax.ws.rs.client.Entity;
    -import javax.ws.rs.client.Invocation;
    -import javax.ws.rs.client.WebTarget;
    -import javax.ws.rs.core.Form;
    -import javax.ws.rs.core.GenericType;
    -import javax.ws.rs.core.MediaType;
    -import javax.ws.rs.core.Response;
    -import javax.ws.rs.core.Response.Status;
    -
    -import org.glassfish.jersey.client.ClientConfig;
    -import org.glassfish.jersey.client.ClientProperties;
    -import org.glassfish.jersey.client.HttpUrlConnectorProvider;
    -import org.glassfish.jersey.jackson.JacksonFeature;
    -import org.glassfish.jersey.media.multipart.FormDataBodyPart;
    -import org.glassfish.jersey.media.multipart.FormDataContentDisposition;
    -import org.glassfish.jersey.media.multipart.MultiPart;
    -import org.glassfish.jersey.media.multipart.MultiPartFeature;
    -
    -import java.io.IOException;
    -import java.io.InputStream;
    -
    -import org.apache.commons.io.FileUtils;
    -import org.glassfish.jersey.filter.LoggingFilter;
    -import java.util.Collection;
    -import java.util.Collections;
    -import java.util.Map;
    -import java.util.Map.Entry;
    -import java.util.HashMap;
    -import java.util.List;
    -import java.util.ArrayList;
    -import java.util.Date;
    -import java.util.TimeZone;
    -
    -import java.net.URLEncoder;
    -
    -import java.io.File;
    -import java.io.UnsupportedEncodingException;
    -
    -import java.text.DateFormat;
    -import java.util.regex.Matcher;
    -import java.util.regex.Pattern;
    -
    -import io.swagger.client.auth.Authentication;
    -import io.swagger.client.auth.HttpBasicAuth;
    -import io.swagger.client.auth.ApiKeyAuth;
    -import io.swagger.client.auth.OAuth;
    -
    -
    -public class ApiClient {
    -  protected Map<String, String> defaultHeaderMap = new HashMap<String, String>();
    -  protected String basePath = "http://petstore.swagger.io:80/v2";
    -  protected boolean debugging = false;
    -  protected int connectionTimeout = 0;
    -  private int readTimeout = 0;
    -
    -  protected Client httpClient;
    -  protected JSON json;
    -  protected String tempFolderPath = null;
    -
    -  protected Map<String, Authentication> authentications;
    -
    -  protected DateFormat dateFormat;
    -
    -  public ApiClient() {
    -    json = new JSON();
    -    httpClient = buildHttpClient(debugging);
    -
    -    this.dateFormat = new RFC3339DateFormat();
    -
    -    // Set default User-Agent.
    -    setUserAgent("Swagger-Codegen/1.0.0/java");
    -
    -    // Setup authentications (key: authentication name, value: authentication).
    -    authentications = new HashMap<String, Authentication>();
    -    authentications.put("api_key", new ApiKeyAuth("header", "api_key"));
    -    authentications.put("api_key_query", new ApiKeyAuth("query", "api_key_query"));
    -    authentications.put("http_basic_test", new HttpBasicAuth());
    -    authentications.put("petstore_auth", new OAuth());
    -    // Prevent the authentications from being modified.
    -    authentications = Collections.unmodifiableMap(authentications);
    -  }
    -
    -  /**
    -   * Gets the JSON instance to do JSON serialization and deserialization.
    -   * @return JSON
    -   */
    -  public JSON getJSON() {
    -    return json;
    -  }
    -
    -  public Client getHttpClient() {
    -    return httpClient;
    -  }
    -
    -  public ApiClient setHttpClient(Client httpClient) {
    -    this.httpClient = httpClient;
    -    return this;
    -  }
    -
    -  public String getBasePath() {
    -    return basePath;
    -  }
    -
    -  public ApiClient setBasePath(String basePath) {
    -    this.basePath = basePath;
    -    return this;
    -  }
    -
    -  /**
    -   * Get authentications (key: authentication name, value: authentication).
    -   * @return Map of authentication object
    -   */
    -  public Map<String, Authentication> getAuthentications() {
    -    return authentications;
    -  }
    -
    -  /**
    -   * Get authentication for the given name.
    -   *
    -   * @param authName The authentication name
    -   * @return The authentication, null if not found
    -   */
    -  public Authentication getAuthentication(String authName) {
    -    return authentications.get(authName);
    -  }
    -
    -  /**
    -   * Helper method to set username for the first HTTP basic authentication.
    -   * @param username Username
    -   */
    -  public void setUsername(String username) {
    -    for (Authentication auth : authentications.values()) {
    -      if (auth instanceof HttpBasicAuth) {
    -        ((HttpBasicAuth) auth).setUsername(username);
    -        return;
    -      }
    -    }
    -    throw new RuntimeException("No HTTP basic authentication configured!");
    -  }
    -
    -  /**
    -   * Helper method to set password for the first HTTP basic authentication.
    -   * @param password Password
    -   */
    -  public void setPassword(String password) {
    -    for (Authentication auth : authentications.values()) {
    -      if (auth instanceof HttpBasicAuth) {
    -        ((HttpBasicAuth) auth).setPassword(password);
    -        return;
    -      }
    -    }
    -    throw new RuntimeException("No HTTP basic authentication configured!");
    -  }
    -
    -  /**
    -   * Helper method to set API key value for the first API key authentication.
    -   * @param apiKey API key
    -   */
    -  public void setApiKey(String apiKey) {
    -    for (Authentication auth : authentications.values()) {
    -      if (auth instanceof ApiKeyAuth) {
    -        ((ApiKeyAuth) auth).setApiKey(apiKey);
    -        return;
    -      }
    -    }
    -    throw new RuntimeException("No API key authentication configured!");
    -  }
    -
    -  /**
    -   * Helper method to set API key prefix for the first API key authentication.
    -   * @param apiKeyPrefix API key prefix
    -   */
    -  public void setApiKeyPrefix(String apiKeyPrefix) {
    -    for (Authentication auth : authentications.values()) {
    -      if (auth instanceof ApiKeyAuth) {
    -        ((ApiKeyAuth) auth).setApiKeyPrefix(apiKeyPrefix);
    -        return;
    -      }
    -    }
    -    throw new RuntimeException("No API key authentication configured!");
    -  }
    -
    -  /**
    -   * Helper method to set access token for the first OAuth2 authentication.
    -   * @param accessToken Access token
    -   */
    -  public void setAccessToken(String accessToken) {
    -    for (Authentication auth : authentications.values()) {
    -      if (auth instanceof OAuth) {
    -        ((OAuth) auth).setAccessToken(accessToken);
    -        return;
    -      }
    -    }
    -    throw new RuntimeException("No OAuth2 authentication configured!");
    -  }
    -
    -  /**
    -   * Set the User-Agent header's value (by adding to the default header map).
    -   * @param userAgent Http user agent
    -   * @return API client
    -   */
    -  public ApiClient setUserAgent(String userAgent) {
    -    addDefaultHeader("User-Agent", userAgent);
    -    return this;
    -  }
    -
    -  /**
    -   * Add a default header.
    -   *
    -   * @param key The header's key
    -   * @param value The header's value
    -   * @return API client
    -   */
    -  public ApiClient addDefaultHeader(String key, String value) {
    -    defaultHeaderMap.put(key, value);
    -    return this;
    -  }
    -
    -  /**
    -   * Check that whether debugging is enabled for this API client.
    -   * @return True if debugging is switched on
    -   */
    -  public boolean isDebugging() {
    -    return debugging;
    -  }
    -
    -  /**
    -   * Enable/disable debugging for this API client.
    -   *
    -   * @param debugging To enable (true) or disable (false) debugging
    -   * @return API client
    -   */
    -  public ApiClient setDebugging(boolean debugging) {
    -    this.debugging = debugging;
    -    // Rebuild HTTP Client according to the new "debugging" value.
    -    this.httpClient = buildHttpClient(debugging);
    -    return this;
    -  }
    -
    -  /**
    -   * The path of temporary folder used to store downloaded files from endpoints
    -   * with file response. The default value is <code>null</code>, i.e. using
    -   * the system's default tempopary folder.
    -   *
    -   * @return Temp folder path
    -   */
    -  public String getTempFolderPath() {
    -    return tempFolderPath;
    -  }
    -
    -  /**
    -   * Set temp folder path
    -   * @param tempFolderPath Temp folder path
    -   * @return API client
    -   */
    -  public ApiClient setTempFolderPath(String tempFolderPath) {
    -    this.tempFolderPath = tempFolderPath;
    -    return this;
    -  }
    -
    -  /**
    -   * Connect timeout (in milliseconds).
    -   * @return Connection timeout
    -   */
    -  public int getConnectTimeout() {
    -    return connectionTimeout;
    -  }
    -
    -  /**
    -   * Set the connect timeout (in milliseconds).
    -   * A value of 0 means no timeout, otherwise values must be between 1 and
    -   * {@link Integer#MAX_VALUE}.
    -   * @param connectionTimeout Connection timeout in milliseconds
    -   * @return API client
    -   */
    -  public ApiClient setConnectTimeout(int connectionTimeout) {
    -    this.connectionTimeout = connectionTimeout;
    -    httpClient.property(ClientProperties.CONNECT_TIMEOUT, connectionTimeout);
    -    return this;
    -  }
    -
    -  /**
    -   * read timeout (in milliseconds).
    -   * @return Read timeout
    -   */
    -  public int getReadTimeout() {
    -    return readTimeout;
    -  }
    -  
    -  /**
    -   * Set the read timeout (in milliseconds).
    -   * A value of 0 means no timeout, otherwise values must be between 1 and
    -   * {@link Integer#MAX_VALUE}.
    -   * @param readTimeout Read timeout in milliseconds
    -   * @return API client
    -   */
    -  public ApiClient setReadTimeout(int readTimeout) {
    -    this.readTimeout = readTimeout;
    -    httpClient.property(ClientProperties.READ_TIMEOUT, readTimeout);
    -    return this;
    -  }
    -
    -  /**
    -   * Get the date format used to parse/format date parameters.
    -   * @return Date format
    -   */
    -  public DateFormat getDateFormat() {
    -    return dateFormat;
    -  }
    -
    -  /**
    -   * Set the date format used to parse/format date parameters.
    -   * @param dateFormat Date format
    -   * @return API client
    -   */
    -  public ApiClient setDateFormat(DateFormat dateFormat) {
    -    this.dateFormat = dateFormat;
    -    // also set the date format for model (de)serialization with Date properties
    -    this.json.setDateFormat((DateFormat) dateFormat.clone());
    -    return this;
    -  }
    -
    -  /**
    -   * Parse the given string into Date object.
    -   * @param str String
    -   * @return Date
    -   */
    -  public Date parseDate(String str) {
    -    try {
    -      return dateFormat.parse(str);
    -    } catch (java.text.ParseException e) {
    -      throw new RuntimeException(e);
    -    }
    -  }
    -
    -  /**
    -   * Format the given Date object into string.
    -   * @param date Date
    -   * @return Date in string format
    -   */
    -  public String formatDate(Date date) {
    -    return dateFormat.format(date);
    -  }
    -
    -  /**
    -   * Format the given parameter object into string.
    -   * @param param Object
    -   * @return Object in string format
    -   */
    -  public String parameterToString(Object param) {
    -    if (param == null) {
    -      return "";
    -    } else if (param instanceof Date) {
    -      return formatDate((Date) param);
    -    } else if (param instanceof Collection) {
    -      StringBuilder b = new StringBuilder();
    -      for(Object o : (Collection)param) {
    -        if(b.length() > 0) {
    -          b.append(',');
    -        }
    -        b.append(String.valueOf(o));
    -      }
    -      return b.toString();
    -    } else {
    -      return String.valueOf(param);
    -    }
    -  }
    -
    -  /*
    -   * Format to {@code Pair} objects.
    -   * @param collectionFormat Collection format
    -   * @param name Name
    -   * @param value Value
    -   * @return List of pairs
    -   */
    -  public List<Pair> parameterToPairs(String collectionFormat, String name, Object value){
    -    List<Pair> params = new ArrayList<Pair>();
    -
    -    // preconditions
    -    if (name == null || name.isEmpty() || value == null) return params;
    -
    -    Collection valueCollection;
    -    if (value instanceof Collection) {
    -      valueCollection = (Collection) value;
    -    } else {
    -      params.add(new Pair(name, parameterToString(value)));
    -      return params;
    -    }
    -
    -    if (valueCollection.isEmpty()){
    -      return params;
    -    }
    -
    -    // get the collection format (default: csv)
    -    String format = (collectionFormat == null || collectionFormat.isEmpty() ? "csv" : collectionFormat);
    -
    -    // create the params based on the collection format
    -    if ("multi".equals(format)) {
    -      for (Object item : valueCollection) {
    -        params.add(new Pair(name, parameterToString(item)));
    -      }
    -
    -      return params;
    -    }
    -
    -    String delimiter = ",";
    -
    -    if ("csv".equals(format)) {
    -      delimiter = ",";
    -    } else if ("ssv".equals(format)) {
    -      delimiter = " ";
    -    } else if ("tsv".equals(format)) {
    -      delimiter = "\t";
    -    } else if ("pipes".equals(format)) {
    -      delimiter = "|";
    -    }
    -
    -    StringBuilder sb = new StringBuilder() ;
    -    for (Object item : valueCollection) {
    -      sb.append(delimiter);
    -      sb.append(parameterToString(item));
    -    }
    -
    -    params.add(new Pair(name, sb.substring(1)));
    -
    -    return params;
    -  }
    -
    -  /**
    -   * Check if the given MIME is a JSON MIME.
    -   * JSON MIME examples:
    -   *   application/json
    -   *   application/json; charset=UTF8
    -   *   APPLICATION/JSON
    -   *   application/vnd.company+json
    -   * "* / *" is also default to JSON
    -   * @param mime MIME
    -   * @return True if the MIME type is JSON
    -   */
    -  public boolean isJsonMime(String mime) {
    -    String jsonMime = "(?i)^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$";
    -    return mime != null && (mime.matches(jsonMime) || mime.equals("*/*"));
    -  }
    -
    -  /**
    -   * Select the Accept header's value from the given accepts array:
    -   *   if JSON exists in the given array, use it;
    -   *   otherwise use all of them (joining into a string)
    -   *
    -   * @param accepts The accepts array to select from
    -   * @return The Accept header to use. If the given array is empty,
    -   *   null will be returned (not to set the Accept header explicitly).
    -   */
    -  public String selectHeaderAccept(String[] accepts) {
    -    if (accepts.length == 0) {
    -      return null;
    -    }
    -    for (String accept : accepts) {
    -      if (isJsonMime(accept)) {
    -        return accept;
    -      }
    -    }
    -    return StringUtil.join(accepts, ",");
    -  }
    -
    -  /**
    -   * Select the Content-Type header's value from the given array:
    -   *   if JSON exists in the given array, use it;
    -   *   otherwise use the first one of the array.
    -   *
    -   * @param contentTypes The Content-Type array to select from
    -   * @return The Content-Type header to use. If the given array is empty,
    -   *   JSON will be used.
    -   */
    -  public String selectHeaderContentType(String[] contentTypes) {
    -    if (contentTypes.length == 0) {
    -      return "application/json";
    -    }
    -    for (String contentType : contentTypes) {
    -      if (isJsonMime(contentType)) {
    -        return contentType;
    -      }
    -    }
    -    return contentTypes[0];
    -  }
    -
    -  /**
    -   * Escape the given string to be used as URL query value.
    -   * @param str String
    -   * @return Escaped string
    -   */
    -  public String escapeString(String str) {
    -    try {
    -      return URLEncoder.encode(str, "utf8").replaceAll("\\+", "%20");
    -    } catch (UnsupportedEncodingException e) {
    -      return str;
    -    }
    -  }
    -
    -  /**
    -   * Serialize the given Java object into string entity according the given
    -   * Content-Type (only JSON is supported for now).
    -   * @param obj Object
    -   * @param formParams Form parameters
    -   * @param contentType Context type
    -   * @return Entity
    -   * @throws ApiException API exception
    -   */
    -  public Entity<?> serialize(Object obj, Map<String, Object> formParams, String contentType) throws ApiException {
    -    Entity<?> entity;
    -    if (contentType.startsWith("multipart/form-data")) {
    -      MultiPart multiPart = new MultiPart();
    -      for (Entry<String, Object> param: formParams.entrySet()) {
    -        if (param.getValue() instanceof File) {
    -          File file = (File) param.getValue();
    -          FormDataContentDisposition contentDisp = FormDataContentDisposition.name(param.getKey())
    -              .fileName(file.getName()).size(file.length()).build();
    -          multiPart.bodyPart(new FormDataBodyPart(contentDisp, file, MediaType.APPLICATION_OCTET_STREAM_TYPE));
    -        } else {
    -          FormDataContentDisposition contentDisp = FormDataContentDisposition.name(param.getKey()).build();
    -          multiPart.bodyPart(new FormDataBodyPart(contentDisp, parameterToString(param.getValue())));
    -        }
    -      }
    -      entity = Entity.entity(multiPart, MediaType.MULTIPART_FORM_DATA_TYPE);
    -    } else if (contentType.startsWith("application/x-www-form-urlencoded")) {
    -      Form form = new Form();
    -      for (Entry<String, Object> param: formParams.entrySet()) {
    -        form.param(param.getKey(), parameterToString(param.getValue()));
    -      }
    -      entity = Entity.entity(form, MediaType.APPLICATION_FORM_URLENCODED_TYPE);
    -    } else {
    -      // We let jersey handle the serialization
    -      entity = Entity.entity(obj, contentType);
    -    }
    -    return entity;
    -  }
    -
    -  /**
    -   * Deserialize response body to Java object according to the Content-Type.
    -   * @param <T> Type
    -   * @param response Response
    -   * @param returnType Return type
    -   * @return Deserialize object
    -   * @throws ApiException API exception
    -   */
    -  @SuppressWarnings("unchecked")
    -  public <T> T deserialize(Response response, GenericType<T> returnType) throws ApiException {
    -    if (response == null || returnType == null) {
    -      return null;
    -    }
    -
    -    if ("byte[]".equals(returnType.toString())) {
    -      // Handle binary response (byte array).
    -      return (T) response.readEntity(byte[].class);
    -    } else if (returnType.getRawType() == File.class) {
    -      // Handle file downloading.
    -      T file = (T) downloadFileFromResponse(response);
    -      return file;
    -    }
    -
    -    String contentType = null;
    -    List<Object> contentTypes = response.getHeaders().get("Content-Type");
    -    if (contentTypes != null && !contentTypes.isEmpty())
    -      contentType = String.valueOf(contentTypes.get(0));
    -
    -    return response.readEntity(returnType);
    -  }
    -
    -  /**
    -   * Download file from the given response.
    -   * @param response Response
    -   * @return File
    -   * @throws ApiException If fail to read file content from response and write to disk
    -   */
    -  public File downloadFileFromResponse(Response response) throws ApiException {
    -    try {
    -      File file = prepareDownloadFile(response);
    -      // Java6 falls back to commons.io for file copying
    -      FileUtils.copyToFile(response.readEntity(InputStream.class), file);
    -      return file;
    -    } catch (IOException e) {
    -      throw new ApiException(e);
    -    }
    -  }
    -
    -  public File prepareDownloadFile(Response response) throws IOException {
    -    String filename = null;
    -    String contentDisposition = (String) response.getHeaders().getFirst("Content-Disposition");
    -    if (contentDisposition != null && !"".equals(contentDisposition)) {
    -      // Get filename from the Content-Disposition header.
    -      Pattern pattern = Pattern.compile("filename=['\"]?([^'\"\\s]+)['\"]?");
    -      Matcher matcher = pattern.matcher(contentDisposition);
    -      if (matcher.find())
    -        filename = matcher.group(1);
    -    }
    -
    -    String prefix;
    -    String suffix = null;
    -    if (filename == null) {
    -      prefix = "download-";
    -      suffix = "";
    -    } else {
    -      int pos = filename.lastIndexOf('.');
    -      if (pos == -1) {
    -        prefix = filename + "-";
    -      } else {
    -        prefix = filename.substring(0, pos) + "-";
    -        suffix = filename.substring(pos);
    -      }
    -      // File.createTempFile requires the prefix to be at least three characters long
    -      if (prefix.length() < 3)
    -        prefix = "download-";
    -    }
    -
    -    if (tempFolderPath == null)
    -      return File.createTempFile(prefix, suffix);
    -    else
    -      return File.createTempFile(prefix, suffix, new File(tempFolderPath));
    -  }
    -
    -  /**
    -   * Invoke API by sending HTTP request with the given options.
    -   *
    -   * @param <T> Type
    -   * @param path The sub-path of the HTTP URL
    -   * @param method The request method, one of "GET", "POST", "PUT", "HEAD" and "DELETE"
    -   * @param queryParams The query parameters
    -   * @param body The request body object
    -   * @param headerParams The header parameters
    -   * @param formParams The form parameters
    -   * @param accept The request's Accept header
    -   * @param contentType The request's Content-Type header
    -   * @param authNames The authentications to apply
    -   * @param returnType The return type into which to deserialize the response
    -   * @return The response body in type of string
    -   * @throws ApiException API exception
    -   */
    -  public <T> ApiResponse<T> invokeAPI(String path, String method, List<Pair> queryParams, Object body, Map<String, String> headerParams, Map<String, Object> formParams, String accept, String contentType, String[] authNames, GenericType<T> returnType) throws ApiException {
    -    updateParamsForAuth(authNames, queryParams, headerParams);
    -
    -    // Not using `.target(this.basePath).path(path)` below,
    -    // to support (constant) query string in `path`, e.g. "/posts?draft=1"
    -    WebTarget target = httpClient.target(this.basePath + path);
    -
    -    if (queryParams != null) {
    -      for (Pair queryParam : queryParams) {
    -        if (queryParam.getValue() != null) {
    -          target = target.queryParam(queryParam.getName(), queryParam.getValue());
    -        }
    -      }
    -    }
    -
    -    Invocation.Builder invocationBuilder = target.request().accept(accept);
    -
    -    for (Entry<String, String> entry : headerParams.entrySet()) {
    -      String value = entry.getValue();
    -      if (value != null) {
    -        invocationBuilder = invocationBuilder.header(entry.getKey(), value);
    -      }
    -    }
    -
    -    for (Entry<String, String> entry : defaultHeaderMap.entrySet()) {
    -      String key = entry.getKey();
    -      if (!headerParams.containsKey(key)) {
    -        String value = entry.getValue();
    -        if (value != null) {
    -          invocationBuilder = invocationBuilder.header(key, value);
    -        }
    -      }
    -    }
    -
    -    Entity<?> entity = serialize(body, formParams, contentType);
    -
    -    Response response = null;
    -
    -    try {
    -      if ("GET".equals(method)) {
    -        response = invocationBuilder.get();
    -      } else if ("POST".equals(method)) {
    -        response = invocationBuilder.post(entity);
    -      } else if ("PUT".equals(method)) {
    -        response = invocationBuilder.put(entity);
    -      } else if ("DELETE".equals(method)) {
    -        response = invocationBuilder.delete();
    -      } else if ("PATCH".equals(method)) {
    -        response = invocationBuilder.method("PATCH", entity);
    -      } else if ("HEAD".equals(method)) {
    -        response = invocationBuilder.head();
    -      } else {
    -        throw new ApiException(500, "unknown method type " + method);
    -      }
    -
    -      int statusCode = response.getStatusInfo().getStatusCode();
    -      Map<String, List<String>> responseHeaders = buildResponseHeaders(response);
    -
    -      if (response.getStatus() == Status.NO_CONTENT.getStatusCode()) {
    -        return new ApiResponse<>(statusCode, responseHeaders);
    -      } else if (response.getStatusInfo().getFamily() == Status.Family.SUCCESSFUL) {
    -        if (returnType == null)
    -          return new ApiResponse<>(statusCode, responseHeaders);
    -        else
    -          return new ApiResponse<>(statusCode, responseHeaders, deserialize(response, returnType));
    -      } else {
    -        String message = "error";
    -        String respBody = null;
    -        if (response.hasEntity()) {
    -          try {
    -            respBody = String.valueOf(response.readEntity(String.class));
    -            message = respBody;
    -          } catch (RuntimeException e) {
    -            // e.printStackTrace();
    -          }
    -        }
    -        throw new ApiException(
    -          response.getStatus(),
    -          message,
    -          buildResponseHeaders(response),
    -          respBody);
    -      }
    -    } finally {
    -      try {
    -        response.close();
    -      } catch (Exception e) {
    -        // it's not critical, since the response object is local in method invokeAPI; that's fine, just continue
    -      }
    -    }
    -  }
    -
    -  /**
    -   * Build the Client used to make HTTP requests.
    -   * @param debugging Debug setting
    -   * @return Client
    -   */
    -  protected Client buildHttpClient(boolean debugging) {
    -    final ClientConfig clientConfig = new ClientConfig();
    -    clientConfig.register(MultiPartFeature.class);
    -    clientConfig.register(json);
    -    clientConfig.register(JacksonFeature.class);
    -    clientConfig.property(HttpUrlConnectorProvider.SET_METHOD_WORKAROUND, true);
    -    if (debugging) {
    -      clientConfig.register(new LoggingFilter(java.util.logging.Logger.getLogger(LoggingFilter.class.getName()), true));
    -    }
    -    performAdditionalClientConfiguration(clientConfig);
    -    return ClientBuilder.newClient(clientConfig);
    -  }
    -
    -  protected void performAdditionalClientConfiguration(ClientConfig clientConfig) {
    -    // No-op extension point
    -  }
    -
    -  protected Map<String, List<String>> buildResponseHeaders(Response response) {
    -    Map<String, List<String>> responseHeaders = new HashMap<String, List<String>>();
    -    for (Entry<String, List<Object>> entry: response.getHeaders().entrySet()) {
    -      List<Object> values = entry.getValue();
    -      List<String> headers = new ArrayList<String>();
    -      for (Object o : values) {
    -        headers.add(String.valueOf(o));
    -      }
    -      responseHeaders.put(entry.getKey(), headers);
    -    }
    -    return responseHeaders;
    -  }
    -
    -  /**
    -   * Update query and header parameters based on authentication settings.
    -   *
    -   * @param authNames The authentications to apply
    -   */
    -  protected void updateParamsForAuth(String[] authNames, List<Pair> queryParams, Map<String, String> headerParams) {
    -    for (String authName : authNames) {
    -      Authentication auth = authentications.get(authName);
    -      if (auth == null) throw new RuntimeException("Authentication undefined: " + authName);
    -      auth.applyToParams(queryParams, headerParams);
    -    }
    -  }
    -}
    
  • samples/client/petstore/java/jersey2-java6/src/main/java/io/swagger/client/ApiException.java+0 91 removed
    @@ -1,91 +0,0 @@
    -/*
    - * Swagger 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: \" \\
    - *
    - * OpenAPI spec version: 1.0.0
    - * Contact: apiteam@swagger.io
    - *
    - * NOTE: This class is auto generated by the swagger code generator program.
    - * https://github.com/swagger-api/swagger-codegen.git
    - * Do not edit the class manually.
    - */
    -
    -
    -package io.swagger.client;
    -
    -import java.util.Map;
    -import java.util.List;
    -
    -
    -public class ApiException extends Exception {
    -    private int code = 0;
    -    private Map<String, List<String>> responseHeaders = null;
    -    private String responseBody = null;
    -
    -    public ApiException() {}
    -
    -    public ApiException(Throwable throwable) {
    -        super(throwable);
    -    }
    -
    -    public ApiException(String message) {
    -        super(message);
    -    }
    -
    -    public ApiException(String message, Throwable throwable, int code, Map<String, List<String>> responseHeaders, String responseBody) {
    -        super(message, throwable);
    -        this.code = code;
    -        this.responseHeaders = responseHeaders;
    -        this.responseBody = responseBody;
    -    }
    -
    -    public ApiException(String message, int code, Map<String, List<String>> responseHeaders, String responseBody) {
    -        this(message, (Throwable) null, code, responseHeaders, responseBody);
    -    }
    -
    -    public ApiException(String message, Throwable throwable, int code, Map<String, List<String>> responseHeaders) {
    -        this(message, throwable, code, responseHeaders, null);
    -    }
    -
    -    public ApiException(int code, Map<String, List<String>> responseHeaders, String responseBody) {
    -        this((String) null, (Throwable) null, code, responseHeaders, responseBody);
    -    }
    -
    -    public ApiException(int code, String message) {
    -        super(message);
    -        this.code = code;
    -    }
    -
    -    public ApiException(int code, String message, Map<String, List<String>> responseHeaders, String responseBody) {
    -        this(code, message);
    -        this.responseHeaders = responseHeaders;
    -        this.responseBody = responseBody;
    -    }
    -
    -    /**
    -     * Get the HTTP status code.
    -     *
    -     * @return HTTP status code
    -     */
    -    public int getCode() {
    -        return code;
    -    }
    -
    -    /**
    -     * Get the HTTP response headers.
    -     *
    -     * @return A map of list of string
    -     */
    -    public Map<String, List<String>> getResponseHeaders() {
    -        return responseHeaders;
    -    }
    -
    -    /**
    -     * Get the HTTP response body.
    -     *
    -     * @return Response body in the form of string
    -     */
    -    public String getResponseBody() {
    -        return responseBody;
    -    }
    -}
    
  • samples/client/petstore/java/jersey2-java6/src/main/java/io/swagger/client/api/FakeApi.java+0 648 removed
    @@ -1,648 +0,0 @@
    -package io.swagger.client.api;
    -
    -import io.swagger.client.ApiException;
    -import io.swagger.client.ApiClient;
    -import io.swagger.client.ApiResponse;
    -import io.swagger.client.Configuration;
    -import io.swagger.client.Pair;
    -
    -import javax.ws.rs.core.GenericType;
    -
    -import java.math.BigDecimal;
    -import io.swagger.client.model.Client;
    -import org.threeten.bp.LocalDate;
    -import org.threeten.bp.OffsetDateTime;
    -import io.swagger.client.model.OuterComposite;
    -import io.swagger.client.model.User;
    -
    -import java.util.ArrayList;
    -import java.util.HashMap;
    -import java.util.List;
    -import java.util.Map;
    -
    -
    -public class FakeApi {
    -  private ApiClient apiClient;
    -
    -  public FakeApi() {
    -    this(Configuration.getDefaultApiClient());
    -  }
    -
    -  public FakeApi(ApiClient apiClient) {
    -    this.apiClient = apiClient;
    -  }
    -
    -  public ApiClient getApiClient() {
    -    return apiClient;
    -  }
    -
    -  public void setApiClient(ApiClient apiClient) {
    -    this.apiClient = apiClient;
    -  }
    -
    -  /**
    -   * 
    -   * Test serialization of outer boolean types
    -   * @param body Input boolean as post body (optional)
    -   * @return Boolean
    -   * @throws ApiException if fails to make API call
    -   */
    -  public Boolean fakeOuterBooleanSerialize(Boolean body) throws ApiException {
    -    return fakeOuterBooleanSerializeWithHttpInfo(body).getData();
    -      }
    -
    -  /**
    -   * 
    -   * Test serialization of outer boolean types
    -   * @param body Input boolean as post body (optional)
    -   * @return ApiResponse&lt;Boolean&gt;
    -   * @throws ApiException if fails to make API call
    -   */
    -  public ApiResponse<Boolean> fakeOuterBooleanSerializeWithHttpInfo(Boolean body) throws ApiException {
    -    Object localVarPostBody = body;
    -    
    -    // create path and map variables
    -    String localVarPath = "/fake/outer/boolean";
    -
    -    // query params
    -    List<Pair> localVarQueryParams = new ArrayList<Pair>();
    -    Map<String, String> localVarHeaderParams = new HashMap<String, String>();
    -    Map<String, Object> localVarFormParams = new HashMap<String, Object>();
    -
    -
    -    
    -    
    -    final String[] localVarAccepts = {
    -      
    -    };
    -    final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
    -
    -    final String[] localVarContentTypes = {
    -      
    -    };
    -    final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
    -
    -    String[] localVarAuthNames = new String[] {  };
    -
    -    GenericType<Boolean> localVarReturnType = new GenericType<Boolean>() {};
    -    return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
    -      }
    -  /**
    -   * 
    -   * Test serialization of object with outer number type
    -   * @param body Input composite as post body (optional)
    -   * @return OuterComposite
    -   * @throws ApiException if fails to make API call
    -   */
    -  public OuterComposite fakeOuterCompositeSerialize(OuterComposite body) throws ApiException {
    -    return fakeOuterCompositeSerializeWithHttpInfo(body).getData();
    -      }
    -
    -  /**
    -   * 
    -   * Test serialization of object with outer number type
    -   * @param body Input composite as post body (optional)
    -   * @return ApiResponse&lt;OuterComposite&gt;
    -   * @throws ApiException if fails to make API call
    -   */
    -  public ApiResponse<OuterComposite> fakeOuterCompositeSerializeWithHttpInfo(OuterComposite body) throws ApiException {
    -    Object localVarPostBody = body;
    -    
    -    // create path and map variables
    -    String localVarPath = "/fake/outer/composite";
    -
    -    // query params
    -    List<Pair> localVarQueryParams = new ArrayList<Pair>();
    -    Map<String, String> localVarHeaderParams = new HashMap<String, String>();
    -    Map<String, Object> localVarFormParams = new HashMap<String, Object>();
    -
    -
    -    
    -    
    -    final String[] localVarAccepts = {
    -      
    -    };
    -    final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
    -
    -    final String[] localVarContentTypes = {
    -      
    -    };
    -    final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
    -
    -    String[] localVarAuthNames = new String[] {  };
    -
    -    GenericType<OuterComposite> localVarReturnType = new GenericType<OuterComposite>() {};
    -    return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
    -      }
    -  /**
    -   * 
    -   * Test serialization of outer number types
    -   * @param body Input number as post body (optional)
    -   * @return BigDecimal
    -   * @throws ApiException if fails to make API call
    -   */
    -  public BigDecimal fakeOuterNumberSerialize(BigDecimal body) throws ApiException {
    -    return fakeOuterNumberSerializeWithHttpInfo(body).getData();
    -      }
    -
    -  /**
    -   * 
    -   * Test serialization of outer number types
    -   * @param body Input number as post body (optional)
    -   * @return ApiResponse&lt;BigDecimal&gt;
    -   * @throws ApiException if fails to make API call
    -   */
    -  public ApiResponse<BigDecimal> fakeOuterNumberSerializeWithHttpInfo(BigDecimal body) throws ApiException {
    -    Object localVarPostBody = body;
    -    
    -    // create path and map variables
    -    String localVarPath = "/fake/outer/number";
    -
    -    // query params
    -    List<Pair> localVarQueryParams = new ArrayList<Pair>();
    -    Map<String, String> localVarHeaderParams = new HashMap<String, String>();
    -    Map<String, Object> localVarFormParams = new HashMap<String, Object>();
    -
    -
    -    
    -    
    -    final String[] localVarAccepts = {
    -      
    -    };
    -    final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
    -
    -    final String[] localVarContentTypes = {
    -      
    -    };
    -    final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
    -
    -    String[] localVarAuthNames = new String[] {  };
    -
    -    GenericType<BigDecimal> localVarReturnType = new GenericType<BigDecimal>() {};
    -    return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
    -      }
    -  /**
    -   * 
    -   * Test serialization of outer string types
    -   * @param body Input string as post body (optional)
    -   * @return String
    -   * @throws ApiException if fails to make API call
    -   */
    -  public String fakeOuterStringSerialize(String body) throws ApiException {
    -    return fakeOuterStringSerializeWithHttpInfo(body).getData();
    -      }
    -
    -  /**
    -   * 
    -   * Test serialization of outer string types
    -   * @param body Input string as post body (optional)
    -   * @return ApiResponse&lt;String&gt;
    -   * @throws ApiException if fails to make API call
    -   */
    -  public ApiResponse<String> fakeOuterStringSerializeWithHttpInfo(String body) throws ApiException {
    -    Object localVarPostBody = body;
    -    
    -    // create path and map variables
    -    String localVarPath = "/fake/outer/string";
    -
    -    // query params
    -    List<Pair> localVarQueryParams = new ArrayList<Pair>();
    -    Map<String, String> localVarHeaderParams = new HashMap<String, String>();
    -    Map<String, Object> localVarFormParams = new HashMap<String, Object>();
    -
    -
    -    
    -    
    -    final String[] localVarAccepts = {
    -      
    -    };
    -    final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
    -
    -    final String[] localVarContentTypes = {
    -      
    -    };
    -    final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
    -
    -    String[] localVarAuthNames = new String[] {  };
    -
    -    GenericType<String> localVarReturnType = new GenericType<String>() {};
    -    return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
    -      }
    -  /**
    -   * 
    -   * 
    -   * @param body  (required)
    -   * @param query  (required)
    -   * @throws ApiException if fails to make API call
    -   */
    -  public void testBodyWithQueryParams(User body, String query) throws ApiException {
    -
    -    testBodyWithQueryParamsWithHttpInfo(body, query);
    -  }
    -
    -  /**
    -   * 
    -   * 
    -   * @param body  (required)
    -   * @param query  (required)
    -   * @throws ApiException if fails to make API call
    -   */
    -  public ApiResponse<Void> testBodyWithQueryParamsWithHttpInfo(User body, String query) throws ApiException {
    -    Object localVarPostBody = body;
    -    
    -    // verify the required parameter 'body' is set
    -    if (body == null) {
    -      throw new ApiException(400, "Missing the required parameter 'body' when calling testBodyWithQueryParams");
    -    }
    -    
    -    // verify the required parameter 'query' is set
    -    if (query == null) {
    -      throw new ApiException(400, "Missing the required parameter 'query' when calling testBodyWithQueryParams");
    -    }
    -    
    -    // create path and map variables
    -    String localVarPath = "/fake/body-with-query-params";
    -
    -    // query params
    -    List<Pair> localVarQueryParams = new ArrayList<Pair>();
    -    Map<String, String> localVarHeaderParams = new HashMap<String, String>();
    -    Map<String, Object> localVarFormParams = new HashMap<String, Object>();
    -
    -    localVarQueryParams.addAll(apiClient.parameterToPairs("", "query", query));
    -
    -    
    -    
    -    final String[] localVarAccepts = {
    -      
    -    };
    -    final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
    -
    -    final String[] localVarContentTypes = {
    -      "application/json"
    -    };
    -    final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
    -
    -    String[] localVarAuthNames = new String[] {  };
    -
    -
    -    return apiClient.invokeAPI(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
    -  }
    -  /**
    -   * To test \&quot;client\&quot; model
    -   * To test \&quot;client\&quot; model
    -   * @param body client model (required)
    -   * @return Client
    -   * @throws ApiException if fails to make API call
    -   */
    -  public Client testClientModel(Client body) throws ApiException {
    -    return testClientModelWithHttpInfo(body).getData();
    -      }
    -
    -  /**
    -   * To test \&quot;client\&quot; model
    -   * To test \&quot;client\&quot; model
    -   * @param body client model (required)
    -   * @return ApiResponse&lt;Client&gt;
    -   * @throws ApiException if fails to make API call
    -   */
    -  public ApiResponse<Client> testClientModelWithHttpInfo(Client body) throws ApiException {
    -    Object localVarPostBody = body;
    -    
    -    // verify the required parameter 'body' is set
    -    if (body == null) {
    -      throw new ApiException(400, "Missing the required parameter 'body' when calling testClientModel");
    -    }
    -    
    -    // create path and map variables
    -    String localVarPath = "/fake";
    -
    -    // query params
    -    List<Pair> localVarQueryParams = new ArrayList<Pair>();
    -    Map<String, String> localVarHeaderParams = new HashMap<String, String>();
    -    Map<String, Object> localVarFormParams = new HashMap<String, Object>();
    -
    -
    -    
    -    
    -    final String[] localVarAccepts = {
    -      "application/json"
    -    };
    -    final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
    -
    -    final String[] localVarContentTypes = {
    -      "application/json"
    -    };
    -    final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
    -
    -    String[] localVarAuthNames = new String[] {  };
    -
    -    GenericType<Client> localVarReturnType = new GenericType<Client>() {};
    -    return apiClient.invokeAPI(localVarPath, "PATCH", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
    -      }
    -  /**
    -   * 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)
    -   * @throws ApiException if fails to make API call
    -   */
    -  public void testEndpointParameters(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, byte[] binary, LocalDate date, OffsetDateTime dateTime, String password, String paramCallback) throws ApiException {
    -
    -    testEndpointParametersWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback);
    -  }
    -
    -  /**
    -   * 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)
    -   * @throws ApiException if fails to make API call
    -   */
    -  public ApiResponse<Void> testEndpointParametersWithHttpInfo(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, byte[] binary, LocalDate date, OffsetDateTime dateTime, String password, String paramCallback) throws ApiException {
    -    Object localVarPostBody = null;
    -    
    -    // verify the required parameter 'number' is set
    -    if (number == null) {
    -      throw new ApiException(400, "Missing the required parameter 'number' when calling testEndpointParameters");
    -    }
    -    
    -    // verify the required parameter '_double' is set
    -    if (_double == null) {
    -      throw new ApiException(400, "Missing the required parameter '_double' when calling testEndpointParameters");
    -    }
    -    
    -    // verify the required parameter 'patternWithoutDelimiter' is set
    -    if (patternWithoutDelimiter == null) {
    -      throw new ApiException(400, "Missing the required parameter 'patternWithoutDelimiter' when calling testEndpointParameters");
    -    }
    -    
    -    // verify the required parameter '_byte' is set
    -    if (_byte == null) {
    -      throw new ApiException(400, "Missing the required parameter '_byte' when calling testEndpointParameters");
    -    }
    -    
    -    // create path and map variables
    -    String localVarPath = "/fake";
    -
    -    // query params
    -    List<Pair> localVarQueryParams = new ArrayList<Pair>();
    -    Map<String, String> localVarHeaderParams = new HashMap<String, String>();
    -    Map<String, Object> localVarFormParams = new HashMap<String, Object>();
    -
    -
    -    
    -    if (integer != null)
    -      localVarFormParams.put("integer", integer);
    -if (int32 != null)
    -      localVarFormParams.put("int32", int32);
    -if (int64 != null)
    -      localVarFormParams.put("int64", int64);
    -if (number != null)
    -      localVarFormParams.put("number", number);
    -if (_float != null)
    -      localVarFormParams.put("float", _float);
    -if (_double != null)
    -      localVarFormParams.put("double", _double);
    -if (string != null)
    -      localVarFormParams.put("string", string);
    -if (patternWithoutDelimiter != null)
    -      localVarFormParams.put("pattern_without_delimiter", patternWithoutDelimiter);
    -if (_byte != null)
    -      localVarFormParams.put("byte", _byte);
    -if (binary != null)
    -      localVarFormParams.put("binary", binary);
    -if (date != null)
    -      localVarFormParams.put("date", date);
    -if (dateTime != null)
    -      localVarFormParams.put("dateTime", dateTime);
    -if (password != null)
    -      localVarFormParams.put("password", password);
    -if (paramCallback != null)
    -      localVarFormParams.put("callback", paramCallback);
    -
    -    final String[] localVarAccepts = {
    -      "application/xml; charset=utf-8", "application/json; charset=utf-8"
    -    };
    -    final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
    -
    -    final String[] localVarContentTypes = {
    -      "application/xml; charset=utf-8", "application/json; charset=utf-8"
    -    };
    -    final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
    -
    -    String[] localVarAuthNames = new String[] { "http_basic_test" };
    -
    -
    -    return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
    -  }
    -  /**
    -   * To test enum parameters
    -   * To test enum parameters
    -   * @param enumFormStringArray Form parameter enum test (string array) (optional)
    -   * @param enumFormString Form parameter enum test (string) (optional, default to -efg)
    -   * @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)
    -   * @throws ApiException if fails to make API call
    -   */
    -  public void testEnumParameters(List<String> enumFormStringArray, String enumFormString, List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble) throws ApiException {
    -
    -    testEnumParametersWithHttpInfo(enumFormStringArray, enumFormString, enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble);
    -  }
    -
    -  /**
    -   * To test enum parameters
    -   * To test enum parameters
    -   * @param enumFormStringArray Form parameter enum test (string array) (optional)
    -   * @param enumFormString Form parameter enum test (string) (optional, default to -efg)
    -   * @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)
    -   * @throws ApiException if fails to make API call
    -   */
    -  public ApiResponse<Void> testEnumParametersWithHttpInfo(List<String> enumFormStringArray, String enumFormString, List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble) throws ApiException {
    -    Object localVarPostBody = null;
    -    
    -    // create path and map variables
    -    String localVarPath = "/fake";
    -
    -    // query params
    -    List<Pair> localVarQueryParams = new ArrayList<Pair>();
    -    Map<String, String> localVarHeaderParams = new HashMap<String, String>();
    -    Map<String, Object> localVarFormParams = new HashMap<String, Object>();
    -
    -    localVarQueryParams.addAll(apiClient.parameterToPairs("csv", "enum_query_string_array", enumQueryStringArray));
    -    localVarQueryParams.addAll(apiClient.parameterToPairs("", "enum_query_string", enumQueryString));
    -    localVarQueryParams.addAll(apiClient.parameterToPairs("", "enum_query_integer", enumQueryInteger));
    -
    -    if (enumHeaderStringArray != null)
    -      localVarHeaderParams.put("enum_header_string_array", apiClient.parameterToString(enumHeaderStringArray));
    -if (enumHeaderString != null)
    -      localVarHeaderParams.put("enum_header_string", apiClient.parameterToString(enumHeaderString));
    -
    -    if (enumFormStringArray != null)
    -      localVarFormParams.put("enum_form_string_array", enumFormStringArray);
    -if (enumFormString != null)
    -      localVarFormParams.put("enum_form_string", enumFormString);
    -if (enumQueryDouble != null)
    -      localVarFormParams.put("enum_query_double", enumQueryDouble);
    -
    -    final String[] localVarAccepts = {
    -      "*/*"
    -    };
    -    final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
    -
    -    final String[] localVarContentTypes = {
    -      "*/*"
    -    };
    -    final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
    -
    -    String[] localVarAuthNames = new String[] {  };
    -
    -
    -    return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
    -  }
    -  /**
    -   * test inline additionalProperties
    -   * 
    -   * @param param request body (required)
    -   * @throws ApiException if fails to make API call
    -   */
    -  public void testInlineAdditionalProperties(Object param) throws ApiException {
    -
    -    testInlineAdditionalPropertiesWithHttpInfo(param);
    -  }
    -
    -  /**
    -   * test inline additionalProperties
    -   * 
    -   * @param param request body (required)
    -   * @throws ApiException if fails to make API call
    -   */
    -  public ApiResponse<Void> testInlineAdditionalPropertiesWithHttpInfo(Object param) throws ApiException {
    -    Object localVarPostBody = param;
    -    
    -    // verify the required parameter 'param' is set
    -    if (param == null) {
    -      throw new ApiException(400, "Missing the required parameter 'param' when calling testInlineAdditionalProperties");
    -    }
    -    
    -    // create path and map variables
    -    String localVarPath = "/fake/inline-additionalProperties";
    -
    -    // query params
    -    List<Pair> localVarQueryParams = new ArrayList<Pair>();
    -    Map<String, String> localVarHeaderParams = new HashMap<String, String>();
    -    Map<String, Object> localVarFormParams = new HashMap<String, Object>();
    -
    -
    -    
    -    
    -    final String[] localVarAccepts = {
    -      
    -    };
    -    final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
    -
    -    final String[] localVarContentTypes = {
    -      "application/json"
    -    };
    -    final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
    -
    -    String[] localVarAuthNames = new String[] {  };
    -
    -
    -    return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
    -  }
    -  /**
    -   * test json serialization of form data
    -   * 
    -   * @param param field1 (required)
    -   * @param param2 field2 (required)
    -   * @throws ApiException if fails to make API call
    -   */
    -  public void testJsonFormData(String param, String param2) throws ApiException {
    -
    -    testJsonFormDataWithHttpInfo(param, param2);
    -  }
    -
    -  /**
    -   * test json serialization of form data
    -   * 
    -   * @param param field1 (required)
    -   * @param param2 field2 (required)
    -   * @throws ApiException if fails to make API call
    -   */
    -  public ApiResponse<Void> testJsonFormDataWithHttpInfo(String param, String param2) throws ApiException {
    -    Object localVarPostBody = null;
    -    
    -    // verify the required parameter 'param' is set
    -    if (param == null) {
    -      throw new ApiException(400, "Missing the required parameter 'param' when calling testJsonFormData");
    -    }
    -    
    -    // verify the required parameter 'param2' is set
    -    if (param2 == null) {
    -      throw new ApiException(400, "Missing the required parameter 'param2' when calling testJsonFormData");
    -    }
    -    
    -    // create path and map variables
    -    String localVarPath = "/fake/jsonFormData";
    -
    -    // query params
    -    List<Pair> localVarQueryParams = new ArrayList<Pair>();
    -    Map<String, String> localVarHeaderParams = new HashMap<String, String>();
    -    Map<String, Object> localVarFormParams = new HashMap<String, Object>();
    -
    -
    -    
    -    if (param != null)
    -      localVarFormParams.put("param", param);
    -if (param2 != null)
    -      localVarFormParams.put("param2", param2);
    -
    -    final String[] localVarAccepts = {
    -      
    -    };
    -    final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
    -
    -    final String[] localVarContentTypes = {
    -      "application/json"
    -    };
    -    final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
    -
    -    String[] localVarAuthNames = new String[] {  };
    -
    -
    -    return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
    -  }
    -}
    
  • samples/client/petstore/java/jersey2-java6/src/main/java/io/swagger/client/api/FakeClassnameTags123Api.java+0 90 removed
    @@ -1,90 +0,0 @@
    -package io.swagger.client.api;
    -
    -import io.swagger.client.ApiException;
    -import io.swagger.client.ApiClient;
    -import io.swagger.client.ApiResponse;
    -import io.swagger.client.Configuration;
    -import io.swagger.client.Pair;
    -
    -import javax.ws.rs.core.GenericType;
    -
    -import io.swagger.client.model.Client;
    -
    -import java.util.ArrayList;
    -import java.util.HashMap;
    -import java.util.List;
    -import java.util.Map;
    -
    -
    -public class FakeClassnameTags123Api {
    -  private ApiClient apiClient;
    -
    -  public FakeClassnameTags123Api() {
    -    this(Configuration.getDefaultApiClient());
    -  }
    -
    -  public FakeClassnameTags123Api(ApiClient apiClient) {
    -    this.apiClient = apiClient;
    -  }
    -
    -  public ApiClient getApiClient() {
    -    return apiClient;
    -  }
    -
    -  public void setApiClient(ApiClient apiClient) {
    -    this.apiClient = apiClient;
    -  }
    -
    -  /**
    -   * To test class name in snake case
    -   * To test class name in snake case
    -   * @param body client model (required)
    -   * @return Client
    -   * @throws ApiException if fails to make API call
    -   */
    -  public Client testClassname(Client body) throws ApiException {
    -    return testClassnameWithHttpInfo(body).getData();
    -      }
    -
    -  /**
    -   * To test class name in snake case
    -   * To test class name in snake case
    -   * @param body client model (required)
    -   * @return ApiResponse&lt;Client&gt;
    -   * @throws ApiException if fails to make API call
    -   */
    -  public ApiResponse<Client> testClassnameWithHttpInfo(Client body) throws ApiException {
    -    Object localVarPostBody = body;
    -    
    -    // verify the required parameter 'body' is set
    -    if (body == null) {
    -      throw new ApiException(400, "Missing the required parameter 'body' when calling testClassname");
    -    }
    -    
    -    // create path and map variables
    -    String localVarPath = "/fake_classname_test";
    -
    -    // query params
    -    List<Pair> localVarQueryParams = new ArrayList<Pair>();
    -    Map<String, String> localVarHeaderParams = new HashMap<String, String>();
    -    Map<String, Object> localVarFormParams = new HashMap<String, Object>();
    -
    -
    -    
    -    
    -    final String[] localVarAccepts = {
    -      "application/json"
    -    };
    -    final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
    -
    -    final String[] localVarContentTypes = {
    -      "application/json"
    -    };
    -    final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
    -
    -    String[] localVarAuthNames = new String[] { "api_key_query" };
    -
    -    GenericType<Client> localVarReturnType = new GenericType<Client>() {};
    -    return apiClient.invokeAPI(localVarPath, "PATCH", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
    -      }
    -}
    
  • samples/client/petstore/java/jersey2-java6/src/main/java/io/swagger/client/api/PetApi.java+0 482 removed
    @@ -1,482 +0,0 @@
    -package io.swagger.client.api;
    -
    -import io.swagger.client.ApiException;
    -import io.swagger.client.ApiClient;
    -import io.swagger.client.ApiResponse;
    -import io.swagger.client.Configuration;
    -import io.swagger.client.Pair;
    -
    -import javax.ws.rs.core.GenericType;
    -
    -import java.io.File;
    -import io.swagger.client.model.ModelApiResponse;
    -import io.swagger.client.model.Pet;
    -
    -import java.util.ArrayList;
    -import java.util.HashMap;
    -import java.util.List;
    -import java.util.Map;
    -
    -
    -public class PetApi {
    -  private ApiClient apiClient;
    -
    -  public PetApi() {
    -    this(Configuration.getDefaultApiClient());
    -  }
    -
    -  public PetApi(ApiClient apiClient) {
    -    this.apiClient = apiClient;
    -  }
    -
    -  public ApiClient getApiClient() {
    -    return apiClient;
    -  }
    -
    -  public void setApiClient(ApiClient apiClient) {
    -    this.apiClient = apiClient;
    -  }
    -
    -  /**
    -   * Add a new pet to the store
    -   * 
    -   * @param body Pet object that needs to be added to the store (required)
    -   * @throws ApiException if fails to make API call
    -   */
    -  public void addPet(Pet body) throws ApiException {
    -
    -    addPetWithHttpInfo(body);
    -  }
    -
    -  /**
    -   * Add a new pet to the store
    -   * 
    -   * @param body Pet object that needs to be added to the store (required)
    -   * @throws ApiException if fails to make API call
    -   */
    -  public ApiResponse<Void> addPetWithHttpInfo(Pet body) throws ApiException {
    -    Object localVarPostBody = body;
    -    
    -    // verify the required parameter 'body' is set
    -    if (body == null) {
    -      throw new ApiException(400, "Missing the required parameter 'body' when calling addPet");
    -    }
    -    
    -    // create path and map variables
    -    String localVarPath = "/pet";
    -
    -    // query params
    -    List<Pair> localVarQueryParams = new ArrayList<Pair>();
    -    Map<String, String> localVarHeaderParams = new HashMap<String, String>();
    -    Map<String, Object> localVarFormParams = new HashMap<String, Object>();
    -
    -
    -    
    -    
    -    final String[] localVarAccepts = {
    -      "application/xml", "application/json"
    -    };
    -    final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
    -
    -    final String[] localVarContentTypes = {
    -      "application/json", "application/xml"
    -    };
    -    final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
    -
    -    String[] localVarAuthNames = new String[] { "petstore_auth" };
    -
    -
    -    return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
    -  }
    -  /**
    -   * Deletes a pet
    -   * 
    -   * @param petId Pet id to delete (required)
    -   * @param apiKey  (optional)
    -   * @throws ApiException if fails to make API call
    -   */
    -  public void deletePet(Long petId, String apiKey) throws ApiException {
    -
    -    deletePetWithHttpInfo(petId, apiKey);
    -  }
    -
    -  /**
    -   * Deletes a pet
    -   * 
    -   * @param petId Pet id to delete (required)
    -   * @param apiKey  (optional)
    -   * @throws ApiException if fails to make API call
    -   */
    -  public ApiResponse<Void> deletePetWithHttpInfo(Long petId, String apiKey) throws ApiException {
    -    Object localVarPostBody = null;
    -    
    -    // verify the required parameter 'petId' is set
    -    if (petId == null) {
    -      throw new ApiException(400, "Missing the required parameter 'petId' when calling deletePet");
    -    }
    -    
    -    // create path and map variables
    -    String localVarPath = "/pet/{petId}"
    -      .replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString()));
    -
    -    // query params
    -    List<Pair> localVarQueryParams = new ArrayList<Pair>();
    -    Map<String, String> localVarHeaderParams = new HashMap<String, String>();
    -    Map<String, Object> localVarFormParams = new HashMap<String, Object>();
    -
    -
    -    if (apiKey != null)
    -      localVarHeaderParams.put("api_key", apiClient.parameterToString(apiKey));
    -
    -    
    -    final String[] localVarAccepts = {
    -      "application/xml", "application/json"
    -    };
    -    final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
    -
    -    final String[] localVarContentTypes = {
    -      
    -    };
    -    final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
    -
    -    String[] localVarAuthNames = new String[] { "petstore_auth" };
    -
    -
    -    return apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
    -  }
    -  /**
    -   * 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&lt;Pet&gt;
    -   * @throws ApiException if fails to make API call
    -   */
    -  public List<Pet> findPetsByStatus(List<String> status) throws ApiException {
    -    return findPetsByStatusWithHttpInfo(status).getData();
    -      }
    -
    -  /**
    -   * 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 ApiResponse&lt;List&lt;Pet&gt;&gt;
    -   * @throws ApiException if fails to make API call
    -   */
    -  public ApiResponse<List<Pet>> findPetsByStatusWithHttpInfo(List<String> status) throws ApiException {
    -    Object localVarPostBody = null;
    -    
    -    // verify the required parameter 'status' is set
    -    if (status == null) {
    -      throw new ApiException(400, "Missing the required parameter 'status' when calling findPetsByStatus");
    -    }
    -    
    -    // create path and map variables
    -    String localVarPath = "/pet/findByStatus";
    -
    -    // query params
    -    List<Pair> localVarQueryParams = new ArrayList<Pair>();
    -    Map<String, String> localVarHeaderParams = new HashMap<String, String>();
    -    Map<String, Object> localVarFormParams = new HashMap<String, Object>();
    -
    -    localVarQueryParams.addAll(apiClient.parameterToPairs("csv", "status", status));
    -
    -    
    -    
    -    final String[] localVarAccepts = {
    -      "application/xml", "application/json"
    -    };
    -    final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
    -
    -    final String[] localVarContentTypes = {
    -      
    -    };
    -    final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
    -
    -    String[] localVarAuthNames = new String[] { "petstore_auth" };
    -
    -    GenericType<List<Pet>> localVarReturnType = new GenericType<List<Pet>>() {};
    -    return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
    -      }
    -  /**
    -   * 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 List&lt;Pet&gt;
    -   * @throws ApiException if fails to make API call
    -   * @deprecated
    -   */
    -  @Deprecated
    -  public List<Pet> findPetsByTags(List<String> tags) throws ApiException {
    -    return findPetsByTagsWithHttpInfo(tags).getData();
    -      }
    -
    -  /**
    -   * 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 ApiResponse&lt;List&lt;Pet&gt;&gt;
    -   * @throws ApiException if fails to make API call
    -   * @deprecated
    -   */
    -  @Deprecated
    -  public ApiResponse<List<Pet>> findPetsByTagsWithHttpInfo(List<String> tags) throws ApiException {
    -    Object localVarPostBody = null;
    -    
    -    // verify the required parameter 'tags' is set
    -    if (tags == null) {
    -      throw new ApiException(400, "Missing the required parameter 'tags' when calling findPetsByTags");
    -    }
    -    
    -    // create path and map variables
    -    String localVarPath = "/pet/findByTags";
    -
    -    // query params
    -    List<Pair> localVarQueryParams = new ArrayList<Pair>();
    -    Map<String, String> localVarHeaderParams = new HashMap<String, String>();
    -    Map<String, Object> localVarFormParams = new HashMap<String, Object>();
    -
    -    localVarQueryParams.addAll(apiClient.parameterToPairs("csv", "tags", tags));
    -
    -    
    -    
    -    final String[] localVarAccepts = {
    -      "application/xml", "application/json"
    -    };
    -    final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
    -
    -    final String[] localVarContentTypes = {
    -      
    -    };
    -    final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
    -
    -    String[] localVarAuthNames = new String[] { "petstore_auth" };
    -
    -    GenericType<List<Pet>> localVarReturnType = new GenericType<List<Pet>>() {};
    -    return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
    -      }
    -  /**
    -   * Find pet by ID
    -   * Returns a single pet
    -   * @param petId ID of pet to return (required)
    -   * @return Pet
    -   * @throws ApiException if fails to make API call
    -   */
    -  public Pet getPetById(Long petId) throws ApiException {
    -    return getPetByIdWithHttpInfo(petId).getData();
    -      }
    -
    -  /**
    -   * Find pet by ID
    -   * Returns a single pet
    -   * @param petId ID of pet to return (required)
    -   * @return ApiResponse&lt;Pet&gt;
    -   * @throws ApiException if fails to make API call
    -   */
    -  public ApiResponse<Pet> getPetByIdWithHttpInfo(Long petId) throws ApiException {
    -    Object localVarPostBody = null;
    -    
    -    // verify the required parameter 'petId' is set
    -    if (petId == null) {
    -      throw new ApiException(400, "Missing the required parameter 'petId' when calling getPetById");
    -    }
    -    
    -    // create path and map variables
    -    String localVarPath = "/pet/{petId}"
    -      .replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString()));
    -
    -    // query params
    -    List<Pair> localVarQueryParams = new ArrayList<Pair>();
    -    Map<String, String> localVarHeaderParams = new HashMap<String, String>();
    -    Map<String, Object> localVarFormParams = new HashMap<String, Object>();
    -
    -
    -    
    -    
    -    final String[] localVarAccepts = {
    -      "application/xml", "application/json"
    -    };
    -    final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
    -
    -    final String[] localVarContentTypes = {
    -      
    -    };
    -    final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
    -
    -    String[] localVarAuthNames = new String[] { "api_key" };
    -
    -    GenericType<Pet> localVarReturnType = new GenericType<Pet>() {};
    -    return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
    -      }
    -  /**
    -   * Update an existing pet
    -   * 
    -   * @param body Pet object that needs to be added to the store (required)
    -   * @throws ApiException if fails to make API call
    -   */
    -  public void updatePet(Pet body) throws ApiException {
    -
    -    updatePetWithHttpInfo(body);
    -  }
    -
    -  /**
    -   * Update an existing pet
    -   * 
    -   * @param body Pet object that needs to be added to the store (required)
    -   * @throws ApiException if fails to make API call
    -   */
    -  public ApiResponse<Void> updatePetWithHttpInfo(Pet body) throws ApiException {
    -    Object localVarPostBody = body;
    -    
    -    // verify the required parameter 'body' is set
    -    if (body == null) {
    -      throw new ApiException(400, "Missing the required parameter 'body' when calling updatePet");
    -    }
    -    
    -    // create path and map variables
    -    String localVarPath = "/pet";
    -
    -    // query params
    -    List<Pair> localVarQueryParams = new ArrayList<Pair>();
    -    Map<String, String> localVarHeaderParams = new HashMap<String, String>();
    -    Map<String, Object> localVarFormParams = new HashMap<String, Object>();
    -
    -
    -    
    -    
    -    final String[] localVarAccepts = {
    -      "application/xml", "application/json"
    -    };
    -    final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
    -
    -    final String[] localVarContentTypes = {
    -      "application/json", "application/xml"
    -    };
    -    final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
    -
    -    String[] localVarAuthNames = new String[] { "petstore_auth" };
    -
    -
    -    return apiClient.invokeAPI(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
    -  }
    -  /**
    -   * 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)
    -   * @throws ApiException if fails to make API call
    -   */
    -  public void updatePetWithForm(Long petId, String name, String status) throws ApiException {
    -
    -    updatePetWithFormWithHttpInfo(petId, name, status);
    -  }
    -
    -  /**
    -   * 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)
    -   * @throws ApiException if fails to make API call
    -   */
    -  public ApiResponse<Void> updatePetWithFormWithHttpInfo(Long petId, String name, String status) throws ApiException {
    -    Object localVarPostBody = null;
    -    
    -    // verify the required parameter 'petId' is set
    -    if (petId == null) {
    -      throw new ApiException(400, "Missing the required parameter 'petId' when calling updatePetWithForm");
    -    }
    -    
    -    // create path and map variables
    -    String localVarPath = "/pet/{petId}"
    -      .replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString()));
    -
    -    // query params
    -    List<Pair> localVarQueryParams = new ArrayList<Pair>();
    -    Map<String, String> localVarHeaderParams = new HashMap<String, String>();
    -    Map<String, Object> localVarFormParams = new HashMap<String, Object>();
    -
    -
    -    
    -    if (name != null)
    -      localVarFormParams.put("name", name);
    -if (status != null)
    -      localVarFormParams.put("status", status);
    -
    -    final String[] localVarAccepts = {
    -      "application/xml", "application/json"
    -    };
    -    final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
    -
    -    final String[] localVarContentTypes = {
    -      "application/x-www-form-urlencoded"
    -    };
    -    final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
    -
    -    String[] localVarAuthNames = new String[] { "petstore_auth" };
    -
    -
    -    return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
    -  }
    -  /**
    -   * 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
    -   * @throws ApiException if fails to make API call
    -   */
    -  public ModelApiResponse uploadFile(Long petId, String additionalMetadata, File file) throws ApiException {
    -    return uploadFileWithHttpInfo(petId, additionalMetadata, file).getData();
    -      }
    -
    -  /**
    -   * 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 ApiResponse&lt;ModelApiResponse&gt;
    -   * @throws ApiException if fails to make API call
    -   */
    -  public ApiResponse<ModelApiResponse> uploadFileWithHttpInfo(Long petId, String additionalMetadata, File file) throws ApiException {
    -    Object localVarPostBody = null;
    -    
    -    // verify the required parameter 'petId' is set
    -    if (petId == null) {
    -      throw new ApiException(400, "Missing the required parameter 'petId' when calling uploadFile");
    -    }
    -    
    -    // create path and map variables
    -    String localVarPath = "/pet/{petId}/uploadImage"
    -      .replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString()));
    -
    -    // query params
    -    List<Pair> localVarQueryParams = new ArrayList<Pair>();
    -    Map<String, String> localVarHeaderParams = new HashMap<String, String>();
    -    Map<String, Object> localVarFormParams = new HashMap<String, Object>();
    -
    -
    -    
    -    if (additionalMetadata != null)
    -      localVarFormParams.put("additionalMetadata", additionalMetadata);
    -if (file != null)
    -      localVarFormParams.put("file", file);
    -
    -    final String[] localVarAccepts = {
    -      "application/json"
    -    };
    -    final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
    -
    -    final String[] localVarContentTypes = {
    -      "multipart/form-data"
    -    };
    -    final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
    -
    -    String[] localVarAuthNames = new String[] { "petstore_auth" };
    -
    -    GenericType<ModelApiResponse> localVarReturnType = new GenericType<ModelApiResponse>() {};
    -    return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
    -      }
    -}
    
  • samples/client/petstore/java/jersey2-java6/src/main/java/io/swagger/client/ApiResponse.java+0 59 removed
    @@ -1,59 +0,0 @@
    -/*
    - * Swagger 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: \" \\
    - *
    - * OpenAPI spec version: 1.0.0
    - * Contact: apiteam@swagger.io
    - *
    - * NOTE: This class is auto generated by the swagger code generator program.
    - * https://github.com/swagger-api/swagger-codegen.git
    - * Do not edit the class manually.
    - */
    -
    -
    -package io.swagger.client;
    -
    -import java.util.List;
    -import java.util.Map;
    -
    -/**
    - * API response returned by API call.
    - *
    - * @param <T> The type of data that is deserialized from response body
    - */
    -public class ApiResponse<T> {
    -    private final int statusCode;
    -    private final Map<String, List<String>> headers;
    -    private final T data;
    -
    -    /**
    -     * @param statusCode The status code of HTTP response
    -     * @param headers The headers of HTTP response
    -     */
    -    public ApiResponse(int statusCode, Map<String, List<String>> headers) {
    -        this(statusCode, headers, null);
    -    }
    -
    -    /**
    -     * @param statusCode The status code of HTTP response
    -     * @param headers The headers of HTTP response
    -     * @param data The object deserialized from response bod
    -     */
    -    public ApiResponse(int statusCode, Map<String, List<String>> headers, T data) {
    -        this.statusCode = statusCode;
    -        this.headers = headers;
    -        this.data = data;
    -    }
    -
    -    public int getStatusCode() {
    -        return statusCode;
    -    }
    -
    -    public Map<String, List<String>> getHeaders() {
    -        return headers;
    -    }
    -
    -    public T getData() {
    -        return data;
    -    }
    -}
    
  • samples/client/petstore/java/jersey2-java6/src/main/java/io/swagger/client/api/StoreApi.java+0 240 removed
    @@ -1,240 +0,0 @@
    -package io.swagger.client.api;
    -
    -import io.swagger.client.ApiException;
    -import io.swagger.client.ApiClient;
    -import io.swagger.client.ApiResponse;
    -import io.swagger.client.Configuration;
    -import io.swagger.client.Pair;
    -
    -import javax.ws.rs.core.GenericType;
    -
    -import io.swagger.client.model.Order;
    -
    -import java.util.ArrayList;
    -import java.util.HashMap;
    -import java.util.List;
    -import java.util.Map;
    -
    -
    -public class StoreApi {
    -  private ApiClient apiClient;
    -
    -  public StoreApi() {
    -    this(Configuration.getDefaultApiClient());
    -  }
    -
    -  public StoreApi(ApiClient apiClient) {
    -    this.apiClient = apiClient;
    -  }
    -
    -  public ApiClient getApiClient() {
    -    return apiClient;
    -  }
    -
    -  public void setApiClient(ApiClient apiClient) {
    -    this.apiClient = apiClient;
    -  }
    -
    -  /**
    -   * Delete purchase order by ID
    -   * For valid response try integer IDs with value &lt; 1000. Anything above 1000 or nonintegers will generate API errors
    -   * @param orderId ID of the order that needs to be deleted (required)
    -   * @throws ApiException if fails to make API call
    -   */
    -  public void deleteOrder(String orderId) throws ApiException {
    -
    -    deleteOrderWithHttpInfo(orderId);
    -  }
    -
    -  /**
    -   * Delete purchase order by ID
    -   * For valid response try integer IDs with value &lt; 1000. Anything above 1000 or nonintegers will generate API errors
    -   * @param orderId ID of the order that needs to be deleted (required)
    -   * @throws ApiException if fails to make API call
    -   */
    -  public ApiResponse<Void> deleteOrderWithHttpInfo(String orderId) throws ApiException {
    -    Object localVarPostBody = null;
    -    
    -    // verify the required parameter 'orderId' is set
    -    if (orderId == null) {
    -      throw new ApiException(400, "Missing the required parameter 'orderId' when calling deleteOrder");
    -    }
    -    
    -    // create path and map variables
    -    String localVarPath = "/store/order/{order_id}"
    -      .replaceAll("\\{" + "order_id" + "\\}", apiClient.escapeString(orderId.toString()));
    -
    -    // query params
    -    List<Pair> localVarQueryParams = new ArrayList<Pair>();
    -    Map<String, String> localVarHeaderParams = new HashMap<String, String>();
    -    Map<String, Object> localVarFormParams = new HashMap<String, Object>();
    -
    -
    -    
    -    
    -    final String[] localVarAccepts = {
    -      "application/xml", "application/json"
    -    };
    -    final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
    -
    -    final String[] localVarContentTypes = {
    -      
    -    };
    -    final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
    -
    -    String[] localVarAuthNames = new String[] {  };
    -
    -
    -    return apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
    -  }
    -  /**
    -   * Returns pet inventories by status
    -   * Returns a map of status codes to quantities
    -   * @return Map&lt;String, Integer&gt;
    -   * @throws ApiException if fails to make API call
    -   */
    -  public Map<String, Integer> getInventory() throws ApiException {
    -    return getInventoryWithHttpInfo().getData();
    -      }
    -
    -  /**
    -   * Returns pet inventories by status
    -   * Returns a map of status codes to quantities
    -   * @return ApiResponse&lt;Map&lt;String, Integer&gt;&gt;
    -   * @throws ApiException if fails to make API call
    -   */
    -  public ApiResponse<Map<String, Integer>> getInventoryWithHttpInfo() throws ApiException {
    -    Object localVarPostBody = null;
    -    
    -    // create path and map variables
    -    String localVarPath = "/store/inventory";
    -
    -    // query params
    -    List<Pair> localVarQueryParams = new ArrayList<Pair>();
    -    Map<String, String> localVarHeaderParams = new HashMap<String, String>();
    -    Map<String, Object> localVarFormParams = new HashMap<String, Object>();
    -
    -
    -    
    -    
    -    final String[] localVarAccepts = {
    -      "application/json"
    -    };
    -    final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
    -
    -    final String[] localVarContentTypes = {
    -      
    -    };
    -    final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
    -
    -    String[] localVarAuthNames = new String[] { "api_key" };
    -
    -    GenericType<Map<String, Integer>> localVarReturnType = new GenericType<Map<String, Integer>>() {};
    -    return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
    -      }
    -  /**
    -   * Find purchase order by ID
    -   * For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; 10. Other values will generated exceptions
    -   * @param orderId ID of pet that needs to be fetched (required)
    -   * @return Order
    -   * @throws ApiException if fails to make API call
    -   */
    -  public Order getOrderById(Long orderId) throws ApiException {
    -    return getOrderByIdWithHttpInfo(orderId).getData();
    -      }
    -
    -  /**
    -   * Find purchase order by ID
    -   * For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; 10. Other values will generated exceptions
    -   * @param orderId ID of pet that needs to be fetched (required)
    -   * @return ApiResponse&lt;Order&gt;
    -   * @throws ApiException if fails to make API call
    -   */
    -  public ApiResponse<Order> getOrderByIdWithHttpInfo(Long orderId) throws ApiException {
    -    Object localVarPostBody = null;
    -    
    -    // verify the required parameter 'orderId' is set
    -    if (orderId == null) {
    -      throw new ApiException(400, "Missing the required parameter 'orderId' when calling getOrderById");
    -    }
    -    
    -    // create path and map variables
    -    String localVarPath = "/store/order/{order_id}"
    -      .replaceAll("\\{" + "order_id" + "\\}", apiClient.escapeString(orderId.toString()));
    -
    -    // query params
    -    List<Pair> localVarQueryParams = new ArrayList<Pair>();
    -    Map<String, String> localVarHeaderParams = new HashMap<String, String>();
    -    Map<String, Object> localVarFormParams = new HashMap<String, Object>();
    -
    -
    -    
    -    
    -    final String[] localVarAccepts = {
    -      "application/xml", "application/json"
    -    };
    -    final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
    -
    -    final String[] localVarContentTypes = {
    -      
    -    };
    -    final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
    -
    -    String[] localVarAuthNames = new String[] {  };
    -
    -    GenericType<Order> localVarReturnType = new GenericType<Order>() {};
    -    return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
    -      }
    -  /**
    -   * Place an order for a pet
    -   * 
    -   * @param body order placed for purchasing the pet (required)
    -   * @return Order
    -   * @throws ApiException if fails to make API call
    -   */
    -  public Order placeOrder(Order body) throws ApiException {
    -    return placeOrderWithHttpInfo(body).getData();
    -      }
    -
    -  /**
    -   * Place an order for a pet
    -   * 
    -   * @param body order placed for purchasing the pet (required)
    -   * @return ApiResponse&lt;Order&gt;
    -   * @throws ApiException if fails to make API call
    -   */
    -  public ApiResponse<Order> placeOrderWithHttpInfo(Order body) throws ApiException {
    -    Object localVarPostBody = body;
    -    
    -    // verify the required parameter 'body' is set
    -    if (body == null) {
    -      throw new ApiException(400, "Missing the required parameter 'body' when calling placeOrder");
    -    }
    -    
    -    // create path and map variables
    -    String localVarPath = "/store/order";
    -
    -    // query params
    -    List<Pair> localVarQueryParams = new ArrayList<Pair>();
    -    Map<String, String> localVarHeaderParams = new HashMap<String, String>();
    -    Map<String, Object> localVarFormParams = new HashMap<String, Object>();
    -
    -
    -    
    -    
    -    final String[] localVarAccepts = {
    -      "application/xml", "application/json"
    -    };
    -    final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
    -
    -    final String[] localVarContentTypes = {
    -      
    -    };
    -    final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
    -
    -    String[] localVarAuthNames = new String[] {  };
    -
    -    GenericType<Order> localVarReturnType = new GenericType<Order>() {};
    -    return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
    -      }
    -}
    
  • samples/client/petstore/java/jersey2-java6/src/main/java/io/swagger/client/api/UserApi.java+0 460 removed
    @@ -1,460 +0,0 @@
    -package io.swagger.client.api;
    -
    -import io.swagger.client.ApiException;
    -import io.swagger.client.ApiClient;
    -import io.swagger.client.ApiResponse;
    -import io.swagger.client.Configuration;
    -import io.swagger.client.Pair;
    -
    -import javax.ws.rs.core.GenericType;
    -
    -import io.swagger.client.model.User;
    -
    -import java.util.ArrayList;
    -import java.util.HashMap;
    -import java.util.List;
    -import java.util.Map;
    -
    -
    -public class UserApi {
    -  private ApiClient apiClient;
    -
    -  public UserApi() {
    -    this(Configuration.getDefaultApiClient());
    -  }
    -
    -  public UserApi(ApiClient apiClient) {
    -    this.apiClient = apiClient;
    -  }
    -
    -  public ApiClient getApiClient() {
    -    return apiClient;
    -  }
    -
    -  public void setApiClient(ApiClient apiClient) {
    -    this.apiClient = apiClient;
    -  }
    -
    -  /**
    -   * Create user
    -   * This can only be done by the logged in user.
    -   * @param body Created user object (required)
    -   * @throws ApiException if fails to make API call
    -   */
    -  public void createUser(User body) throws ApiException {
    -
    -    createUserWithHttpInfo(body);
    -  }
    -
    -  /**
    -   * Create user
    -   * This can only be done by the logged in user.
    -   * @param body Created user object (required)
    -   * @throws ApiException if fails to make API call
    -   */
    -  public ApiResponse<Void> createUserWithHttpInfo(User body) throws ApiException {
    -    Object localVarPostBody = body;
    -    
    -    // verify the required parameter 'body' is set
    -    if (body == null) {
    -      throw new ApiException(400, "Missing the required parameter 'body' when calling createUser");
    -    }
    -    
    -    // create path and map variables
    -    String localVarPath = "/user";
    -
    -    // query params
    -    List<Pair> localVarQueryParams = new ArrayList<Pair>();
    -    Map<String, String> localVarHeaderParams = new HashMap<String, String>();
    -    Map<String, Object> localVarFormParams = new HashMap<String, Object>();
    -
    -
    -    
    -    
    -    final String[] localVarAccepts = {
    -      "application/xml", "application/json"
    -    };
    -    final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
    -
    -    final String[] localVarContentTypes = {
    -      
    -    };
    -    final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
    -
    -    String[] localVarAuthNames = new String[] {  };
    -
    -
    -    return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
    -  }
    -  /**
    -   * Creates list of users with given input array
    -   * 
    -   * @param body List of user object (required)
    -   * @throws ApiException if fails to make API call
    -   */
    -  public void createUsersWithArrayInput(List<User> body) throws ApiException {
    -
    -    createUsersWithArrayInputWithHttpInfo(body);
    -  }
    -
    -  /**
    -   * Creates list of users with given input array
    -   * 
    -   * @param body List of user object (required)
    -   * @throws ApiException if fails to make API call
    -   */
    -  public ApiResponse<Void> createUsersWithArrayInputWithHttpInfo(List<User> body) throws ApiException {
    -    Object localVarPostBody = body;
    -    
    -    // verify the required parameter 'body' is set
    -    if (body == null) {
    -      throw new ApiException(400, "Missing the required parameter 'body' when calling createUsersWithArrayInput");
    -    }
    -    
    -    // create path and map variables
    -    String localVarPath = "/user/createWithArray";
    -
    -    // query params
    -    List<Pair> localVarQueryParams = new ArrayList<Pair>();
    -    Map<String, String> localVarHeaderParams = new HashMap<String, String>();
    -    Map<String, Object> localVarFormParams = new HashMap<String, Object>();
    -
    -
    -    
    -    
    -    final String[] localVarAccepts = {
    -      "application/xml", "application/json"
    -    };
    -    final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
    -
    -    final String[] localVarContentTypes = {
    -      
    -    };
    -    final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
    -
    -    String[] localVarAuthNames = new String[] {  };
    -
    -
    -    return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
    -  }
    -  /**
    -   * Creates list of users with given input array
    -   * 
    -   * @param body List of user object (required)
    -   * @throws ApiException if fails to make API call
    -   */
    -  public void createUsersWithListInput(List<User> body) throws ApiException {
    -
    -    createUsersWithListInputWithHttpInfo(body);
    -  }
    -
    -  /**
    -   * Creates list of users with given input array
    -   * 
    -   * @param body List of user object (required)
    -   * @throws ApiException if fails to make API call
    -   */
    -  public ApiResponse<Void> createUsersWithListInputWithHttpInfo(List<User> body) throws ApiException {
    -    Object localVarPostBody = body;
    -    
    -    // verify the required parameter 'body' is set
    -    if (body == null) {
    -      throw new ApiException(400, "Missing the required parameter 'body' when calling createUsersWithListInput");
    -    }
    -    
    -    // create path and map variables
    -    String localVarPath = "/user/createWithList";
    -
    -    // query params
    -    List<Pair> localVarQueryParams = new ArrayList<Pair>();
    -    Map<String, String> localVarHeaderParams = new HashMap<String, String>();
    -    Map<String, Object> localVarFormParams = new HashMap<String, Object>();
    -
    -
    -    
    -    
    -    final String[] localVarAccepts = {
    -      "application/xml", "application/json"
    -    };
    -    final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
    -
    -    final String[] localVarContentTypes = {
    -      
    -    };
    -    final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
    -
    -    String[] localVarAuthNames = new String[] {  };
    -
    -
    -    return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
    -  }
    -  /**
    -   * Delete user
    -   * This can only be done by the logged in user.
    -   * @param username The name that needs to be deleted (required)
    -   * @throws ApiException if fails to make API call
    -   */
    -  public void deleteUser(String username) throws ApiException {
    -
    -    deleteUserWithHttpInfo(username);
    -  }
    -
    -  /**
    -   * Delete user
    -   * This can only be done by the logged in user.
    -   * @param username The name that needs to be deleted (required)
    -   * @throws ApiException if fails to make API call
    -   */
    -  public ApiResponse<Void> deleteUserWithHttpInfo(String username) throws ApiException {
    -    Object localVarPostBody = null;
    -    
    -    // verify the required parameter 'username' is set
    -    if (username == null) {
    -      throw new ApiException(400, "Missing the required parameter 'username' when calling deleteUser");
    -    }
    -    
    -    // create path and map variables
    -    String localVarPath = "/user/{username}"
    -      .replaceAll("\\{" + "username" + "\\}", apiClient.escapeString(username.toString()));
    -
    -    // query params
    -    List<Pair> localVarQueryParams = new ArrayList<Pair>();
    -    Map<String, String> localVarHeaderParams = new HashMap<String, String>();
    -    Map<String, Object> localVarFormParams = new HashMap<String, Object>();
    -
    -
    -    
    -    
    -    final String[] localVarAccepts = {
    -      "application/xml", "application/json"
    -    };
    -    final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
    -
    -    final String[] localVarContentTypes = {
    -      
    -    };
    -    final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
    -
    -    String[] localVarAuthNames = new String[] {  };
    -
    -
    -    return apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
    -  }
    -  /**
    -   * Get user by user name
    -   * 
    -   * @param username The name that needs to be fetched. Use user1 for testing. (required)
    -   * @return User
    -   * @throws ApiException if fails to make API call
    -   */
    -  public User getUserByName(String username) throws ApiException {
    -    return getUserByNameWithHttpInfo(username).getData();
    -      }
    -
    -  /**
    -   * Get user by user name
    -   * 
    -   * @param username The name that needs to be fetched. Use user1 for testing. (required)
    -   * @return ApiResponse&lt;User&gt;
    -   * @throws ApiException if fails to make API call
    -   */
    -  public ApiResponse<User> getUserByNameWithHttpInfo(String username) throws ApiException {
    -    Object localVarPostBody = null;
    -    
    -    // verify the required parameter 'username' is set
    -    if (username == null) {
    -      throw new ApiException(400, "Missing the required parameter 'username' when calling getUserByName");
    -    }
    -    
    -    // create path and map variables
    -    String localVarPath = "/user/{username}"
    -      .replaceAll("\\{" + "username" + "\\}", apiClient.escapeString(username.toString()));
    -
    -    // query params
    -    List<Pair> localVarQueryParams = new ArrayList<Pair>();
    -    Map<String, String> localVarHeaderParams = new HashMap<String, String>();
    -    Map<String, Object> localVarFormParams = new HashMap<String, Object>();
    -
    -
    -    
    -    
    -    final String[] localVarAccepts = {
    -      "application/xml", "application/json"
    -    };
    -    final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
    -
    -    final String[] localVarContentTypes = {
    -      
    -    };
    -    final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
    -
    -    String[] localVarAuthNames = new String[] {  };
    -
    -    GenericType<User> localVarReturnType = new GenericType<User>() {};
    -    return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
    -      }
    -  /**
    -   * 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
    -   * @throws ApiException if fails to make API call
    -   */
    -  public String loginUser(String username, String password) throws ApiException {
    -    return loginUserWithHttpInfo(username, password).getData();
    -      }
    -
    -  /**
    -   * Logs user into the system
    -   * 
    -   * @param username The user name for login (required)
    -   * @param password The password for login in clear text (required)
    -   * @return ApiResponse&lt;String&gt;
    -   * @throws ApiException if fails to make API call
    -   */
    -  public ApiResponse<String> loginUserWithHttpInfo(String username, String password) throws ApiException {
    -    Object localVarPostBody = null;
    -    
    -    // verify the required parameter 'username' is set
    -    if (username == null) {
    -      throw new ApiException(400, "Missing the required parameter 'username' when calling loginUser");
    -    }
    -    
    -    // verify the required parameter 'password' is set
    -    if (password == null) {
    -      throw new ApiException(400, "Missing the required parameter 'password' when calling loginUser");
    -    }
    -    
    -    // create path and map variables
    -    String localVarPath = "/user/login";
    -
    -    // query params
    -    List<Pair> localVarQueryParams = new ArrayList<Pair>();
    -    Map<String, String> localVarHeaderParams = new HashMap<String, String>();
    -    Map<String, Object> localVarFormParams = new HashMap<String, Object>();
    -
    -    localVarQueryParams.addAll(apiClient.parameterToPairs("", "username", username));
    -    localVarQueryParams.addAll(apiClient.parameterToPairs("", "password", password));
    -
    -    
    -    
    -    final String[] localVarAccepts = {
    -      "application/xml", "application/json"
    -    };
    -    final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
    -
    -    final String[] localVarContentTypes = {
    -      
    -    };
    -    final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
    -
    -    String[] localVarAuthNames = new String[] {  };
    -
    -    GenericType<String> localVarReturnType = new GenericType<String>() {};
    -    return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
    -      }
    -  /**
    -   * Logs out current logged in user session
    -   * 
    -   * @throws ApiException if fails to make API call
    -   */
    -  public void logoutUser() throws ApiException {
    -
    -    logoutUserWithHttpInfo();
    -  }
    -
    -  /**
    -   * Logs out current logged in user session
    -   * 
    -   * @throws ApiException if fails to make API call
    -   */
    -  public ApiResponse<Void> logoutUserWithHttpInfo() throws ApiException {
    -    Object localVarPostBody = null;
    -    
    -    // create path and map variables
    -    String localVarPath = "/user/logout";
    -
    -    // query params
    -    List<Pair> localVarQueryParams = new ArrayList<Pair>();
    -    Map<String, String> localVarHeaderParams = new HashMap<String, String>();
    -    Map<String, Object> localVarFormParams = new HashMap<String, Object>();
    -
    -
    -    
    -    
    -    final String[] localVarAccepts = {
    -      "application/xml", "application/json"
    -    };
    -    final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
    -
    -    final String[] localVarContentTypes = {
    -      
    -    };
    -    final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
    -
    -    String[] localVarAuthNames = new String[] {  };
    -
    -
    -    return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
    -  }
    -  /**
    -   * 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)
    -   * @throws ApiException if fails to make API call
    -   */
    -  public void updateUser(String username, User body) throws ApiException {
    -
    -    updateUserWithHttpInfo(username, body);
    -  }
    -
    -  /**
    -   * 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)
    -   * @throws ApiException if fails to make API call
    -   */
    -  public ApiResponse<Void> updateUserWithHttpInfo(String username, User body) throws ApiException {
    -    Object localVarPostBody = body;
    -    
    -    // verify the required parameter 'username' is set
    -    if (username == null) {
    -      throw new ApiException(400, "Missing the required parameter 'username' when calling updateUser");
    -    }
    -    
    -    // verify the required parameter 'body' is set
    -    if (body == null) {
    -      throw new ApiException(400, "Missing the required parameter 'body' when calling updateUser");
    -    }
    -    
    -    // create path and map variables
    -    String localVarPath = "/user/{username}"
    -      .replaceAll("\\{" + "username" + "\\}", apiClient.escapeString(username.toString()));
    -
    -    // query params
    -    List<Pair> localVarQueryParams = new ArrayList<Pair>();
    -    Map<String, String> localVarHeaderParams = new HashMap<String, String>();
    -    Map<String, Object> localVarFormParams = new HashMap<String, Object>();
    -
    -
    -    
    -    
    -    final String[] localVarAccepts = {
    -      "application/xml", "application/json"
    -    };
    -    final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
    -
    -    final String[] localVarContentTypes = {
    -      
    -    };
    -    final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
    -
    -    String[] localVarAuthNames = new String[] {  };
    -
    -
    -    return apiClient.invokeAPI(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
    -  }
    -}
    
  • samples/client/petstore/java/jersey2-java6/src/main/java/io/swagger/client/auth/ApiKeyAuth.java+0 75 removed
    @@ -1,75 +0,0 @@
    -/*
    - * Swagger 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: \" \\
    - *
    - * OpenAPI spec version: 1.0.0
    - * Contact: apiteam@swagger.io
    - *
    - * NOTE: This class is auto generated by the swagger code generator program.
    - * https://github.com/swagger-api/swagger-codegen.git
    - * Do not edit the class manually.
    - */
    -
    -
    -package io.swagger.client.auth;
    -
    -import io.swagger.client.Pair;
    -
    -import java.util.Map;
    -import java.util.List;
    -
    -
    -public class ApiKeyAuth implements Authentication {
    -  private final String location;
    -  private final String paramName;
    -
    -  private String apiKey;
    -  private String apiKeyPrefix;
    -
    -  public ApiKeyAuth(String location, String paramName) {
    -    this.location = location;
    -    this.paramName = paramName;
    -  }
    -
    -  public String getLocation() {
    -    return location;
    -  }
    -
    -  public String getParamName() {
    -    return paramName;
    -  }
    -
    -  public String getApiKey() {
    -    return apiKey;
    -  }
    -
    -  public void setApiKey(String apiKey) {
    -    this.apiKey = apiKey;
    -  }
    -
    -  public String getApiKeyPrefix() {
    -    return apiKeyPrefix;
    -  }
    -
    -  public void setApiKeyPrefix(String apiKeyPrefix) {
    -    this.apiKeyPrefix = apiKeyPrefix;
    -  }
    -
    -  @Override
    -  public void applyToParams(List<Pair> queryParams, Map<String, String> headerParams) {
    -    if (apiKey == null) {
    -      return;
    -    }
    -    String value;
    -    if (apiKeyPrefix != null) {
    -      value = apiKeyPrefix + " " + apiKey;
    -    } else {
    -      value = apiKey;
    -    }
    -    if ("query".equals(location)) {
    -      queryParams.add(new Pair(paramName, value));
    -    } else if ("header".equals(location)) {
    -      headerParams.put(paramName, value);
    -    }
    -  }
    -}
    
  • samples/client/petstore/java/jersey2-java6/src/main/java/io/swagger/client/auth/Authentication.java+0 29 removed
    @@ -1,29 +0,0 @@
    -/*
    - * Swagger 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: \" \\
    - *
    - * OpenAPI spec version: 1.0.0
    - * Contact: apiteam@swagger.io
    - *
    - * NOTE: This class is auto generated by the swagger code generator program.
    - * https://github.com/swagger-api/swagger-codegen.git
    - * Do not edit the class manually.
    - */
    -
    -
    -package io.swagger.client.auth;
    -
    -import io.swagger.client.Pair;
    -
    -import java.util.Map;
    -import java.util.List;
    -
    -public interface Authentication {
    -    /**
    -     * Apply authentication settings to header and query params.
    -     *
    -     * @param queryParams List of query parameters
    -     * @param headerParams Map of header parameters
    -     */
    -    void applyToParams(List<Pair> queryParams, Map<String, String> headerParams);
    -}
    
  • samples/client/petstore/java/jersey2-java6/src/main/java/io/swagger/client/auth/HttpBasicAuth.java+0 58 removed
    @@ -1,58 +0,0 @@
    -/*
    - * Swagger 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: \" \\
    - *
    - * OpenAPI spec version: 1.0.0
    - * Contact: apiteam@swagger.io
    - *
    - * NOTE: This class is auto generated by the swagger code generator program.
    - * https://github.com/swagger-api/swagger-codegen.git
    - * Do not edit the class manually.
    - */
    -
    -
    -package io.swagger.client.auth;
    -
    -import io.swagger.client.Pair;
    -
    -import com.migcomponents.migbase64.Base64;
    -
    -import java.util.Map;
    -import java.util.List;
    -
    -import java.io.UnsupportedEncodingException;
    -
    -
    -public class HttpBasicAuth implements Authentication {
    -  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;
    -  }
    -
    -  @Override
    -  public void applyToParams(List<Pair> queryParams, Map<String, String> headerParams) {
    -    if (username == null && password == null) {
    -      return;
    -    }
    -    String str = (username == null ? "" : username) + ":" + (password == null ? "" : password);
    -    try {
    -      headerParams.put("Authorization", "Basic " + Base64.encodeToString(str.getBytes("UTF-8"), false));
    -    } catch (UnsupportedEncodingException e) {
    -      throw new RuntimeException(e);
    -    }
    -  }
    -}
    
  • samples/client/petstore/java/jersey2-java6/src/main/java/io/swagger/client/auth/OAuthFlow.java+0 18 removed
    @@ -1,18 +0,0 @@
    -/*
    - * Swagger 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: \" \\
    - *
    - * OpenAPI spec version: 1.0.0
    - * Contact: apiteam@swagger.io
    - *
    - * NOTE: This class is auto generated by the swagger code generator program.
    - * https://github.com/swagger-api/swagger-codegen.git
    - * Do not edit the class manually.
    - */
    -
    -
    -package io.swagger.client.auth;
    -
    -public enum OAuthFlow {
    -    accessCode, implicit, password, application
    -}
    
  • samples/client/petstore/java/jersey2-java6/src/main/java/io/swagger/client/auth/OAuth.java+0 39 removed
    @@ -1,39 +0,0 @@
    -/*
    - * Swagger 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: \" \\
    - *
    - * OpenAPI spec version: 1.0.0
    - * Contact: apiteam@swagger.io
    - *
    - * NOTE: This class is auto generated by the swagger code generator program.
    - * https://github.com/swagger-api/swagger-codegen.git
    - * Do not edit the class manually.
    - */
    -
    -
    -package io.swagger.client.auth;
    -
    -import io.swagger.client.Pair;
    -
    -import java.util.Map;
    -import java.util.List;
    -
    -
    -public class OAuth implements Authentication {
    -  private String accessToken;
    -
    -  public String getAccessToken() {
    -    return accessToken;
    -  }
    -
    -  public void setAccessToken(String accessToken) {
    -    this.accessToken = accessToken;
    -  }
    -
    -  @Override
    -  public void applyToParams(List<Pair> queryParams, Map<String, String> headerParams) {
    -    if (accessToken != null) {
    -      headerParams.put("Authorization", "Bearer " + accessToken);
    -    }
    -  }
    -}
    
  • samples/client/petstore/java/jersey2-java6/src/main/java/io/swagger/client/Configuration.java+0 39 removed
    @@ -1,39 +0,0 @@
    -/*
    - * Swagger 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: \" \\
    - *
    - * OpenAPI spec version: 1.0.0
    - * Contact: apiteam@swagger.io
    - *
    - * NOTE: This class is auto generated by the swagger code generator program.
    - * https://github.com/swagger-api/swagger-codegen.git
    - * Do not edit the class manually.
    - */
    -
    -
    -package io.swagger.client;
    -
    -
    -public class Configuration {
    -    private static ApiClient defaultApiClient = new ApiClient();
    -
    -    /**
    -     * Get the default API client, which would be used when creating API
    -     * instances without providing an API client.
    -     *
    -     * @return Default API client
    -     */
    -    public static ApiClient getDefaultApiClient() {
    -        return defaultApiClient;
    -    }
    -
    -    /**
    -     * Set the default API client, which would be used when creating API
    -     * instances without providing an API client.
    -     *
    -     * @param apiClient API client
    -     */
    -    public static void setDefaultApiClient(ApiClient apiClient) {
    -        defaultApiClient = apiClient;
    -    }
    -}
    
  • samples/client/petstore/java/jersey2-java6/src/main/java/io/swagger/client/CustomInstantDeserializer.java+0 232 removed
    @@ -1,232 +0,0 @@
    -package io.swagger.client;
    -
    -import com.fasterxml.jackson.core.JsonParser;
    -import com.fasterxml.jackson.core.JsonTokenId;
    -import com.fasterxml.jackson.databind.DeserializationContext;
    -import com.fasterxml.jackson.databind.DeserializationFeature;
    -import com.fasterxml.jackson.databind.JsonDeserializer;
    -import com.fasterxml.jackson.datatype.threetenbp.DateTimeUtils;
    -import com.fasterxml.jackson.datatype.threetenbp.DecimalUtils;
    -import com.fasterxml.jackson.datatype.threetenbp.deser.ThreeTenDateTimeDeserializerBase;
    -import com.fasterxml.jackson.datatype.threetenbp.function.BiFunction;
    -import com.fasterxml.jackson.datatype.threetenbp.function.Function;
    -import org.threeten.bp.DateTimeException;
    -import org.threeten.bp.Instant;
    -import org.threeten.bp.OffsetDateTime;
    -import org.threeten.bp.ZoneId;
    -import org.threeten.bp.ZonedDateTime;
    -import org.threeten.bp.format.DateTimeFormatter;
    -import org.threeten.bp.temporal.Temporal;
    -import org.threeten.bp.temporal.TemporalAccessor;
    -
    -import java.io.IOException;
    -import java.math.BigDecimal;
    -
    -/**
    - * Deserializer for ThreeTen temporal {@link Instant}s, {@link OffsetDateTime}, and {@link ZonedDateTime}s.
    - * Adapted from the jackson threetenbp InstantDeserializer to add support for deserializing rfc822 format.
    - *
    - * @author Nick Williams
    - */
    -public class CustomInstantDeserializer<T extends Temporal>
    -    extends ThreeTenDateTimeDeserializerBase<T> {
    -  private static final long serialVersionUID = 1L;
    -
    -  public static final CustomInstantDeserializer<Instant> INSTANT = new CustomInstantDeserializer<Instant>(
    -      Instant.class, DateTimeFormatter.ISO_INSTANT,
    -      new Function<TemporalAccessor, Instant>() {
    -        @Override
    -        public Instant apply(TemporalAccessor temporalAccessor) {
    -          return Instant.from(temporalAccessor);
    -        }
    -      },
    -      new Function<FromIntegerArguments, Instant>() {
    -        @Override
    -        public Instant apply(FromIntegerArguments a) {
    -          return Instant.ofEpochMilli(a.value);
    -        }
    -      },
    -      new Function<FromDecimalArguments, Instant>() {
    -        @Override
    -        public Instant apply(FromDecimalArguments a) {
    -          return Instant.ofEpochSecond(a.integer, a.fraction);
    -        }
    -      },
    -      null
    -  );
    -
    -  public static final CustomInstantDeserializer<OffsetDateTime> OFFSET_DATE_TIME = new CustomInstantDeserializer<OffsetDateTime>(
    -      OffsetDateTime.class, DateTimeFormatter.ISO_OFFSET_DATE_TIME,
    -      new Function<TemporalAccessor, OffsetDateTime>() {
    -        @Override
    -        public OffsetDateTime apply(TemporalAccessor temporalAccessor) {
    -          return OffsetDateTime.from(temporalAccessor);
    -        }
    -      },
    -      new Function<FromIntegerArguments, OffsetDateTime>() {
    -        @Override
    -        public OffsetDateTime apply(FromIntegerArguments a) {
    -          return OffsetDateTime.ofInstant(Instant.ofEpochMilli(a.value), a.zoneId);
    -        }
    -      },
    -      new Function<FromDecimalArguments, OffsetDateTime>() {
    -        @Override
    -        public OffsetDateTime apply(FromDecimalArguments a) {
    -          return OffsetDateTime.ofInstant(Instant.ofEpochSecond(a.integer, a.fraction), a.zoneId);
    -        }
    -      },
    -      new BiFunction<OffsetDateTime, ZoneId, OffsetDateTime>() {
    -        @Override
    -        public OffsetDateTime apply(OffsetDateTime d, ZoneId z) {
    -          return d.withOffsetSameInstant(z.getRules().getOffset(d.toLocalDateTime()));
    -        }
    -      }
    -  );
    -
    -  public static final CustomInstantDeserializer<ZonedDateTime> ZONED_DATE_TIME = new CustomInstantDeserializer<ZonedDateTime>(
    -      ZonedDateTime.class, DateTimeFormatter.ISO_ZONED_DATE_TIME,
    -      new Function<TemporalAccessor, ZonedDateTime>() {
    -        @Override
    -        public ZonedDateTime apply(TemporalAccessor temporalAccessor) {
    -          return ZonedDateTime.from(temporalAccessor);
    -        }
    -      },
    -      new Function<FromIntegerArguments, ZonedDateTime>() {
    -        @Override
    -        public ZonedDateTime apply(FromIntegerArguments a) {
    -          return ZonedDateTime.ofInstant(Instant.ofEpochMilli(a.value), a.zoneId);
    -        }
    -      },
    -      new Function<FromDecimalArguments, ZonedDateTime>() {
    -        @Override
    -        public ZonedDateTime apply(FromDecimalArguments a) {
    -          return ZonedDateTime.ofInstant(Instant.ofEpochSecond(a.integer, a.fraction), a.zoneId);
    -        }
    -      },
    -      new BiFunction<ZonedDateTime, ZoneId, ZonedDateTime>() {
    -        @Override
    -        public ZonedDateTime apply(ZonedDateTime zonedDateTime, ZoneId zoneId) {
    -          return zonedDateTime.withZoneSameInstant(zoneId);
    -        }
    -      }
    -  );
    -
    -  protected final Function<FromIntegerArguments, T> fromMilliseconds;
    -
    -  protected final Function<FromDecimalArguments, T> fromNanoseconds;
    -
    -  protected final Function<TemporalAccessor, T> parsedToValue;
    -
    -  protected final BiFunction<T, ZoneId, T> adjust;
    -
    -  protected CustomInstantDeserializer(Class<T> supportedType,
    -                    DateTimeFormatter parser,
    -                    Function<TemporalAccessor, T> parsedToValue,
    -                    Function<FromIntegerArguments, T> fromMilliseconds,
    -                    Function<FromDecimalArguments, T> fromNanoseconds,
    -                    BiFunction<T, ZoneId, T> adjust) {
    -    super(supportedType, parser);
    -    this.parsedToValue = parsedToValue;
    -    this.fromMilliseconds = fromMilliseconds;
    -    this.fromNanoseconds = fromNanoseconds;
    -    this.adjust = adjust == null ? new BiFunction<T, ZoneId, T>() {
    -      @Override
    -      public T apply(T t, ZoneId zoneId) {
    -        return t;
    -      }
    -    } : adjust;
    -  }
    -
    -  @SuppressWarnings("unchecked")
    -  protected CustomInstantDeserializer(CustomInstantDeserializer<T> base, DateTimeFormatter f) {
    -    super((Class<T>) base.handledType(), f);
    -    parsedToValue = base.parsedToValue;
    -    fromMilliseconds = base.fromMilliseconds;
    -    fromNanoseconds = base.fromNanoseconds;
    -    adjust = base.adjust;
    -  }
    -
    -  @Override
    -  protected JsonDeserializer<T> withDateFormat(DateTimeFormatter dtf) {
    -    if (dtf == _formatter) {
    -      return this;
    -    }
    -    return new CustomInstantDeserializer<T>(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.timeZoneToZoneId(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;
    -    }
    -  }
    -}
    
  • samples/client/petstore/java/jersey2-java6/src/main/java/io/swagger/client/JSON.java+0 44 removed
    @@ -1,44 +0,0 @@
    -package io.swagger.client;
    -
    -import org.threeten.bp.*;
    -import com.fasterxml.jackson.annotation.*;
    -import com.fasterxml.jackson.databind.*;
    -import com.fasterxml.jackson.datatype.threetenbp.ThreeTenModule;
    -
    -import java.text.DateFormat;
    -
    -import javax.ws.rs.ext.ContextResolver;
    -
    -
    -public class JSON implements ContextResolver<ObjectMapper> {
    -  private ObjectMapper mapper;
    -
    -  public JSON() {
    -    mapper = new ObjectMapper();
    -    mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);
    -    mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
    -    mapper.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, false);
    -    mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS);
    -    mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING);
    -    mapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING);
    -    mapper.setDateFormat(new RFC3339DateFormat());
    -    ThreeTenModule module = new ThreeTenModule();
    -    module.addDeserializer(Instant.class, CustomInstantDeserializer.INSTANT);
    -    module.addDeserializer(OffsetDateTime.class, CustomInstantDeserializer.OFFSET_DATE_TIME);
    -    module.addDeserializer(ZonedDateTime.class, CustomInstantDeserializer.ZONED_DATE_TIME);
    -    mapper.registerModule(module);
    -  }
    -
    -  /**
    -   * Set the date format for JSON (de)serialization with Date properties.
    -   * @param dateFormat Date format
    -   */
    -  public void setDateFormat(DateFormat dateFormat) {
    -    mapper.setDateFormat(dateFormat);
    -  }
    -
    -  @Override
    -  public ObjectMapper getContext(Class<?> type) {
    -    return mapper;
    -  }
    -}
    
  • samples/client/petstore/java/jersey2-java6/src/main/java/io/swagger/client/model/AdditionalPropertiesClass.java+0 132 removed
    @@ -1,132 +0,0 @@
    -/*
    - * Swagger 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: \" \\
    - *
    - * OpenAPI spec version: 1.0.0
    - * Contact: apiteam@swagger.io
    - *
    - * NOTE: This class is auto generated by the swagger code generator program.
    - * https://github.com/swagger-api/swagger-codegen.git
    - * Do not edit the class manually.
    - */
    -
    -
    -package io.swagger.client.model;
    -
    -import org.apache.commons.lang3.ObjectUtils;
    -import com.fasterxml.jackson.annotation.JsonProperty;
    -import com.fasterxml.jackson.annotation.JsonCreator;
    -import com.fasterxml.jackson.annotation.JsonValue;
    -import io.swagger.annotations.ApiModel;
    -import io.swagger.annotations.ApiModelProperty;
    -import java.util.HashMap;
    -import java.util.List;
    -import java.util.Map;
    -
    -/**
    - * AdditionalPropertiesClass
    - */
    -
    -public class AdditionalPropertiesClass {
    -  @JsonProperty("map_property")
    -  private Map<String, String> mapProperty = null;
    -
    -  @JsonProperty("map_of_map_property")
    -  private Map<String, Map<String, String>> mapOfMapProperty = null;
    -
    -  public AdditionalPropertiesClass mapProperty(Map<String, String> mapProperty) {
    -    this.mapProperty = mapProperty;
    -    return this;
    -  }
    -
    -  public AdditionalPropertiesClass putMapPropertyItem(String key, String mapPropertyItem) {
    -    if (this.mapProperty == null) {
    -      this.mapProperty = new HashMap<String, String>();
    -    }
    -    this.mapProperty.put(key, mapPropertyItem);
    -    return this;
    -  }
    -
    -   /**
    -   * Get mapProperty
    -   * @return mapProperty
    -  **/
    -  @ApiModelProperty(value = "")
    -  public Map<String, String> getMapProperty() {
    -    return mapProperty;
    -  }
    -
    -  public void setMapProperty(Map<String, String> mapProperty) {
    -    this.mapProperty = mapProperty;
    -  }
    -
    -  public AdditionalPropertiesClass mapOfMapProperty(Map<String, Map<String, String>> mapOfMapProperty) {
    -    this.mapOfMapProperty = mapOfMapProperty;
    -    return this;
    -  }
    -
    -  public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map<String, String> mapOfMapPropertyItem) {
    -    if (this.mapOfMapProperty == null) {
    -      this.mapOfMapProperty = new HashMap<String, Map<String, String>>();
    -    }
    -    this.mapOfMapProperty.put(key, mapOfMapPropertyItem);
    -    return this;
    -  }
    -
    -   /**
    -   * Get mapOfMapProperty
    -   * @return mapOfMapProperty
    -  **/
    -  @ApiModelProperty(value = "")
    -  public Map<String, Map<String, String>> getMapOfMapProperty() {
    -    return mapOfMapProperty;
    -  }
    -
    -  public void setMapOfMapProperty(Map<String, Map<String, String>> mapOfMapProperty) {
    -    this.mapOfMapProperty = mapOfMapProperty;
    -  }
    -
    -
    -  @Override
    -  public boolean equals(java.lang.Object o) {
    -  if (this == o) {
    -    return true;
    -  }
    -  if (o == null || getClass() != o.getClass()) {
    -    return false;
    -  }
    -    AdditionalPropertiesClass additionalPropertiesClass = (AdditionalPropertiesClass) o;
    -    return ObjectUtils.equals(this.mapProperty, additionalPropertiesClass.mapProperty) &&
    -    ObjectUtils.equals(this.mapOfMapProperty, additionalPropertiesClass.mapOfMapProperty);
    -  }
    -
    -  @Override
    -  public int hashCode() {
    -    return ObjectUtils.hashCodeMulti(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(java.lang.Object o) {
    -    if (o == null) {
    -      return "null";
    -    }
    -    return o.toString().replace("\n", "\n    ");
    -  }
    -
    -}
    -
    
  • samples/client/petstore/java/jersey2-java6/src/main/java/io/swagger/client/model/AnimalFarm.java+0 65 removed
    @@ -1,65 +0,0 @@
    -/*
    - * Swagger 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: \" \\
    - *
    - * OpenAPI spec version: 1.0.0
    - * Contact: apiteam@swagger.io
    - *
    - * NOTE: This class is auto generated by the swagger code generator program.
    - * https://github.com/swagger-api/swagger-codegen.git
    - * Do not edit the class manually.
    - */
    -
    -
    -package io.swagger.client.model;
    -
    -import org.apache.commons.lang3.ObjectUtils;
    -import io.swagger.client.model.Animal;
    -import java.util.ArrayList;
    -import java.util.List;
    -
    -/**
    - * AnimalFarm
    - */
    -
    -public class AnimalFarm extends ArrayList<Animal> {
    -
    -  @Override
    -  public boolean equals(java.lang.Object o) {
    -  if (this == o) {
    -    return true;
    -  }
    -  if (o == null || getClass() != o.getClass()) {
    -    return false;
    -  }
    -    return true;
    -  }
    -
    -  @Override
    -  public int hashCode() {
    -    return ObjectUtils.hashCodeMulti(super.hashCode());
    -  }
    -
    -
    -  @Override
    -  public String toString() {
    -    StringBuilder sb = new StringBuilder();
    -    sb.append("class AnimalFarm {\n");
    -    sb.append("    ").append(toIndentedString(super.toString())).append("\n");
    -    sb.append("}");
    -    return sb.toString();
    -  }
    -
    -  /**
    -   * Convert the given object to string with each line indented by 4 spaces
    -   * (except the first line).
    -   */
    -  private String toIndentedString(java.lang.Object o) {
    -    if (o == null) {
    -      return "null";
    -    }
    -    return o.toString().replace("\n", "\n    ");
    -  }
    -
    -}
    -
    
  • samples/client/petstore/java/jersey2-java6/src/main/java/io/swagger/client/model/Animal.java+0 120 removed
    @@ -1,120 +0,0 @@
    -/*
    - * Swagger 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: \" \\
    - *
    - * OpenAPI spec version: 1.0.0
    - * Contact: apiteam@swagger.io
    - *
    - * NOTE: This class is auto generated by the swagger code generator program.
    - * https://github.com/swagger-api/swagger-codegen.git
    - * Do not edit the class manually.
    - */
    -
    -
    -package io.swagger.client.model;
    -
    -import org.apache.commons.lang3.ObjectUtils;
    -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.JsonValue;
    -import io.swagger.annotations.ApiModel;
    -import io.swagger.annotations.ApiModelProperty;
    -
    -/**
    - * Animal
    - */
    -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "className", visible = true )
    -@JsonSubTypes({
    -  @JsonSubTypes.Type(value = Dog.class, name = "Dog"),
    -  @JsonSubTypes.Type(value = Cat.class, name = "Cat"),
    -})
    -
    -public class Animal {
    -  @JsonProperty("className")
    -  private String className = null;
    -
    -  @JsonProperty("color")
    -  private String color = "red";
    -
    -  public Animal className(String className) {
    -    this.className = className;
    -    return this;
    -  }
    -
    -   /**
    -   * Get className
    -   * @return className
    -  **/
    -  @ApiModelProperty(required = true, value = "")
    -  public String getClassName() {
    -    return className;
    -  }
    -
    -  public void setClassName(String className) {
    -    this.className = className;
    -  }
    -
    -  public Animal color(String color) {
    -    this.color = color;
    -    return this;
    -  }
    -
    -   /**
    -   * Get color
    -   * @return color
    -  **/
    -  @ApiModelProperty(value = "")
    -  public String getColor() {
    -    return color;
    -  }
    -
    -  public void setColor(String color) {
    -    this.color = color;
    -  }
    -
    -
    -  @Override
    -  public boolean equals(java.lang.Object o) {
    -  if (this == o) {
    -    return true;
    -  }
    -  if (o == null || getClass() != o.getClass()) {
    -    return false;
    -  }
    -    Animal animal = (Animal) o;
    -    return ObjectUtils.equals(this.className, animal.className) &&
    -    ObjectUtils.equals(this.color, animal.color);
    -  }
    -
    -  @Override
    -  public int hashCode() {
    -    return ObjectUtils.hashCodeMulti(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(java.lang.Object o) {
    -    if (o == null) {
    -      return "null";
    -    }
    -    return o.toString().replace("\n", "\n    ");
    -  }
    -
    -}
    -
    
  • samples/client/petstore/java/jersey2-java6/src/main/java/io/swagger/client/model/ArrayOfArrayOfNumberOnly.java+0 101 removed
    @@ -1,101 +0,0 @@
    -/*
    - * Swagger 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: \" \\
    - *
    - * OpenAPI spec version: 1.0.0
    - * Contact: apiteam@swagger.io
    - *
    - * NOTE: This class is auto generated by the swagger code generator program.
    - * https://github.com/swagger-api/swagger-codegen.git
    - * Do not edit the class manually.
    - */
    -
    -
    -package io.swagger.client.model;
    -
    -import org.apache.commons.lang3.ObjectUtils;
    -import com.fasterxml.jackson.annotation.JsonProperty;
    -import com.fasterxml.jackson.annotation.JsonCreator;
    -import com.fasterxml.jackson.annotation.JsonValue;
    -import io.swagger.annotations.ApiModel;
    -import io.swagger.annotations.ApiModelProperty;
    -import java.math.BigDecimal;
    -import java.util.ArrayList;
    -import java.util.List;
    -
    -/**
    - * ArrayOfArrayOfNumberOnly
    - */
    -
    -public class ArrayOfArrayOfNumberOnly {
    -  @JsonProperty("ArrayArrayNumber")
    -  private List<List<BigDecimal>> arrayArrayNumber = null;
    -
    -  public ArrayOfArrayOfNumberOnly arrayArrayNumber(List<List<BigDecimal>> arrayArrayNumber) {
    -    this.arrayArrayNumber = arrayArrayNumber;
    -    return this;
    -  }
    -
    -  public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List<BigDecimal> arrayArrayNumberItem) {
    -    if (this.arrayArrayNumber == null) {
    -      this.arrayArrayNumber = new ArrayList<List<BigDecimal>>();
    -    }
    -    this.arrayArrayNumber.add(arrayArrayNumberItem);
    -    return this;
    -  }
    -
    -   /**
    -   * Get arrayArrayNumber
    -   * @return arrayArrayNumber
    -  **/
    -  @ApiModelProperty(value = "")
    -  public List<List<BigDecimal>> getArrayArrayNumber() {
    -    return arrayArrayNumber;
    -  }
    -
    -  public void setArrayArrayNumber(List<List<BigDecimal>> arrayArrayNumber) {
    -    this.arrayArrayNumber = arrayArrayNumber;
    -  }
    -
    -
    -  @Override
    -  public boolean equals(java.lang.Object o) {
    -  if (this == o) {
    -    return true;
    -  }
    -  if (o == null || getClass() != o.getClass()) {
    -    return false;
    -  }
    -    ArrayOfArrayOfNumberOnly arrayOfArrayOfNumberOnly = (ArrayOfArrayOfNumberOnly) o;
    -    return ObjectUtils.equals(this.arrayArrayNumber, arrayOfArrayOfNumberOnly.arrayArrayNumber);
    -  }
    -
    -  @Override
    -  public int hashCode() {
    -    return ObjectUtils.hashCodeMulti(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(java.lang.Object o) {
    -    if (o == null) {
    -      return "null";
    -    }
    -    return o.toString().replace("\n", "\n    ");
    -  }
    -
    -}
    -
    
  • samples/client/petstore/java/jersey2-java6/src/main/java/io/swagger/client/model/ArrayOfNumberOnly.java+0 101 removed
    @@ -1,101 +0,0 @@
    -/*
    - * Swagger 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: \" \\
    - *
    - * OpenAPI spec version: 1.0.0
    - * Contact: apiteam@swagger.io
    - *
    - * NOTE: This class is auto generated by the swagger code generator program.
    - * https://github.com/swagger-api/swagger-codegen.git
    - * Do not edit the class manually.
    - */
    -
    -
    -package io.swagger.client.model;
    -
    -import org.apache.commons.lang3.ObjectUtils;
    -import com.fasterxml.jackson.annotation.JsonProperty;
    -import com.fasterxml.jackson.annotation.JsonCreator;
    -import com.fasterxml.jackson.annotation.JsonValue;
    -import io.swagger.annotations.ApiModel;
    -import io.swagger.annotations.ApiModelProperty;
    -import java.math.BigDecimal;
    -import java.util.ArrayList;
    -import java.util.List;
    -
    -/**
    - * ArrayOfNumberOnly
    - */
    -
    -public class ArrayOfNumberOnly {
    -  @JsonProperty("ArrayNumber")
    -  private List<BigDecimal> arrayNumber = null;
    -
    -  public ArrayOfNumberOnly arrayNumber(List<BigDecimal> arrayNumber) {
    -    this.arrayNumber = arrayNumber;
    -    return this;
    -  }
    -
    -  public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) {
    -    if (this.arrayNumber == null) {
    -      this.arrayNumber = new ArrayList<BigDecimal>();
    -    }
    -    this.arrayNumber.add(arrayNumberItem);
    -    return this;
    -  }
    -
    -   /**
    -   * Get arrayNumber
    -   * @return arrayNumber
    -  **/
    -  @ApiModelProperty(value = "")
    -  public List<BigDecimal> getArrayNumber() {
    -    return arrayNumber;
    -  }
    -
    -  public void setArrayNumber(List<BigDecimal> arrayNumber) {
    -    this.arrayNumber = arrayNumber;
    -  }
    -
    -
    -  @Override
    -  public boolean equals(java.lang.Object o) {
    -  if (this == o) {
    -    return true;
    -  }
    -  if (o == null || getClass() != o.getClass()) {
    -    return false;
    -  }
    -    ArrayOfNumberOnly arrayOfNumberOnly = (ArrayOfNumberOnly) o;
    -    return ObjectUtils.equals(this.arrayNumber, arrayOfNumberOnly.arrayNumber);
    -  }
    -
    -  @Override
    -  public int hashCode() {
    -    return ObjectUtils.hashCodeMulti(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(java.lang.Object o) {
    -    if (o == null) {
    -      return "null";
    -    }
    -    return o.toString().replace("\n", "\n    ");
    -  }
    -
    -}
    -
    
  • samples/client/petstore/java/jersey2-java6/src/main/java/io/swagger/client/model/ArrayTest.java+0 163 removed
    @@ -1,163 +0,0 @@
    -/*
    - * Swagger 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: \" \\
    - *
    - * OpenAPI spec version: 1.0.0
    - * Contact: apiteam@swagger.io
    - *
    - * NOTE: This class is auto generated by the swagger code generator program.
    - * https://github.com/swagger-api/swagger-codegen.git
    - * Do not edit the class manually.
    - */
    -
    -
    -package io.swagger.client.model;
    -
    -import org.apache.commons.lang3.ObjectUtils;
    -import com.fasterxml.jackson.annotation.JsonProperty;
    -import com.fasterxml.jackson.annotation.JsonCreator;
    -import com.fasterxml.jackson.annotation.JsonValue;
    -import io.swagger.annotations.ApiModel;
    -import io.swagger.annotations.ApiModelProperty;
    -import io.swagger.client.model.ReadOnlyFirst;
    -import java.util.ArrayList;
    -import java.util.List;
    -
    -/**
    - * ArrayTest
    - */
    -
    -public class ArrayTest {
    -  @JsonProperty("array_of_string")
    -  private List<String> arrayOfString = null;
    -
    -  @JsonProperty("array_array_of_integer")
    -  private List<List<Long>> arrayArrayOfInteger = null;
    -
    -  @JsonProperty("array_array_of_model")
    -  private List<List<ReadOnlyFirst>> arrayArrayOfModel = null;
    -
    -  public ArrayTest arrayOfString(List<String> arrayOfString) {
    -    this.arrayOfString = arrayOfString;
    -    return this;
    -  }
    -
    -  public ArrayTest addArrayOfStringItem(String arrayOfStringItem) {
    -    if (this.arrayOfString == null) {
    -      this.arrayOfString = new ArrayList<String>();
    -    }
    -    this.arrayOfString.add(arrayOfStringItem);
    -    return this;
    -  }
    -
    -   /**
    -   * Get arrayOfString
    -   * @return arrayOfString
    -  **/
    -  @ApiModelProperty(value = "")
    -  public List<String> getArrayOfString() {
    -    return arrayOfString;
    -  }
    -
    -  public void setArrayOfString(List<String> arrayOfString) {
    -    this.arrayOfString = arrayOfString;
    -  }
    -
    -  public ArrayTest arrayArrayOfInteger(List<List<Long>> arrayArrayOfInteger) {
    -    this.arrayArrayOfInteger = arrayArrayOfInteger;
    -    return this;
    -  }
    -
    -  public ArrayTest addArrayArrayOfIntegerItem(List<Long> arrayArrayOfIntegerItem) {
    -    if (this.arrayArrayOfInteger == null) {
    -      this.arrayArrayOfInteger = new ArrayList<List<Long>>();
    -    }
    -    this.arrayArrayOfInteger.add(arrayArrayOfIntegerItem);
    -    return this;
    -  }
    -
    -   /**
    -   * Get arrayArrayOfInteger
    -   * @return arrayArrayOfInteger
    -  **/
    -  @ApiModelProperty(value = "")
    -  public List<List<Long>> getArrayArrayOfInteger() {
    -    return arrayArrayOfInteger;
    -  }
    -
    -  public void setArrayArrayOfInteger(List<List<Long>> arrayArrayOfInteger) {
    -    this.arrayArrayOfInteger = arrayArrayOfInteger;
    -  }
    -
    -  public ArrayTest arrayArrayOfModel(List<List<ReadOnlyFirst>> arrayArrayOfModel) {
    -    this.arrayArrayOfModel = arrayArrayOfModel;
    -    return this;
    -  }
    -
    -  public ArrayTest addArrayArrayOfModelItem(List<ReadOnlyFirst> arrayArrayOfModelItem) {
    -    if (this.arrayArrayOfModel == null) {
    -      this.arrayArrayOfModel = new ArrayList<List<ReadOnlyFirst>>();
    -    }
    -    this.arrayArrayOfModel.add(arrayArrayOfModelItem);
    -    return this;
    -  }
    -
    -   /**
    -   * Get arrayArrayOfModel
    -   * @return arrayArrayOfModel
    -  **/
    -  @ApiModelProperty(value = "")
    -  public List<List<ReadOnlyFirst>> getArrayArrayOfModel() {
    -    return arrayArrayOfModel;
    -  }
    -
    -  public void setArrayArrayOfModel(List<List<ReadOnlyFirst>> arrayArrayOfModel) {
    -    this.arrayArrayOfModel = arrayArrayOfModel;
    -  }
    -
    -
    -  @Override
    -  public boolean equals(java.lang.Object o) {
    -  if (this == o) {
    -    return true;
    -  }
    -  if (o == null || getClass() != o.getClass()) {
    -    return false;
    -  }
    -    ArrayTest arrayTest = (ArrayTest) o;
    -    return ObjectUtils.equals(this.arrayOfString, arrayTest.arrayOfString) &&
    -    ObjectUtils.equals(this.arrayArrayOfInteger, arrayTest.arrayArrayOfInteger) &&
    -    ObjectUtils.equals(this.arrayArrayOfModel, arrayTest.arrayArrayOfModel);
    -  }
    -
    -  @Override
    -  public int hashCode() {
    -    return ObjectUtils.hashCodeMulti(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(java.lang.Object o) {
    -    if (o == null) {
    -      return "null";
    -    }
    -    return o.toString().replace("\n", "\n    ");
    -  }
    -
    -}
    -
    
  • samples/client/petstore/java/jersey2-java6/src/main/java/io/swagger/client/model/Capitalization.java+0 205 removed
    @@ -1,205 +0,0 @@
    -/*
    - * Swagger 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: \" \\
    - *
    - * OpenAPI spec version: 1.0.0
    - * Contact: apiteam@swagger.io
    - *
    - * NOTE: This class is auto generated by the swagger code generator program.
    - * https://github.com/swagger-api/swagger-codegen.git
    - * Do not edit the class manually.
    - */
    -
    -
    -package io.swagger.client.model;
    -
    -import org.apache.commons.lang3.ObjectUtils;
    -import com.fasterxml.jackson.annotation.JsonProperty;
    -import com.fasterxml.jackson.annotation.JsonCreator;
    -import com.fasterxml.jackson.annotation.JsonValue;
    -import io.swagger.annotations.ApiModel;
    -import io.swagger.annotations.ApiModelProperty;
    -
    -/**
    - * Capitalization
    - */
    -
    -public class Capitalization {
    -  @JsonProperty("smallCamel")
    -  private String smallCamel = null;
    -
    -  @JsonProperty("CapitalCamel")
    -  private String capitalCamel = null;
    -
    -  @JsonProperty("small_Snake")
    -  private String smallSnake = null;
    -
    -  @JsonProperty("Capital_Snake")
    -  private String capitalSnake = null;
    -
    -  @JsonProperty("SCA_ETH_Flow_Points")
    -  private String scAETHFlowPoints = null;
    -
    -  @JsonProperty("ATT_NAME")
    -  private String ATT_NAME = null;
    -
    -  public Capitalization smallCamel(String smallCamel) {
    -    this.smallCamel = smallCamel;
    -    return this;
    -  }
    -
    -   /**
    -   * Get smallCamel
    -   * @return smallCamel
    -  **/
    -  @ApiModelProperty(value = "")
    -  public String getSmallCamel() {
    -    return smallCamel;
    -  }
    -
    -  public void setSmallCamel(String smallCamel) {
    -    this.smallCamel = smallCamel;
    -  }
    -
    -  public Capitalization capitalCamel(String capitalCamel) {
    -    this.capitalCamel = capitalCamel;
    -    return this;
    -  }
    -
    -   /**
    -   * Get capitalCamel
    -   * @return capitalCamel
    -  **/
    -  @ApiModelProperty(value = "")
    -  public String getCapitalCamel() {
    -    return capitalCamel;
    -  }
    -
    -  public void setCapitalCamel(String capitalCamel) {
    -    this.capitalCamel = capitalCamel;
    -  }
    -
    -  public Capitalization smallSnake(String smallSnake) {
    -    this.smallSnake = smallSnake;
    -    return this;
    -  }
    -
    -   /**
    -   * Get smallSnake
    -   * @return smallSnake
    -  **/
    -  @ApiModelProperty(value = "")
    -  public String getSmallSnake() {
    -    return smallSnake;
    -  }
    -
    -  public void setSmallSnake(String smallSnake) {
    -    this.smallSnake = smallSnake;
    -  }
    -
    -  public Capitalization capitalSnake(String capitalSnake) {
    -    this.capitalSnake = capitalSnake;
    -    return this;
    -  }
    -
    -   /**
    -   * Get capitalSnake
    -   * @return capitalSnake
    -  **/
    -  @ApiModelProperty(value = "")
    -  public String getCapitalSnake() {
    -    return capitalSnake;
    -  }
    -
    -  public void setCapitalSnake(String capitalSnake) {
    -    this.capitalSnake = capitalSnake;
    -  }
    -
    -  public Capitalization scAETHFlowPoints(String scAETHFlowPoints) {
    -    this.scAETHFlowPoints = scAETHFlowPoints;
    -    return this;
    -  }
    -
    -   /**
    -   * Get scAETHFlowPoints
    -   * @return scAETHFlowPoints
    -  **/
    -  @ApiModelProperty(value = "")
    -  public String getScAETHFlowPoints() {
    -    return scAETHFlowPoints;
    -  }
    -
    -  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
    -  **/
    -  @ApiModelProperty(value = "Name of the pet ")
    -  public String getATTNAME() {
    -    return ATT_NAME;
    -  }
    -
    -  public void setATTNAME(String ATT_NAME) {
    -    this.ATT_NAME = ATT_NAME;
    -  }
    -
    -
    -  @Override
    -  public boolean equals(java.lang.Object o) {
    -  if (this == o) {
    -    return true;
    -  }
    -  if (o == null || getClass() != o.getClass()) {
    -    return false;
    -  }
    -    Capitalization capitalization = (Capitalization) o;
    -    return ObjectUtils.equals(this.smallCamel, capitalization.smallCamel) &&
    -    ObjectUtils.equals(this.capitalCamel, capitalization.capitalCamel) &&
    -    ObjectUtils.equals(this.smallSnake, capitalization.smallSnake) &&
    -    ObjectUtils.equals(this.capitalSnake, capitalization.capitalSnake) &&
    -    ObjectUtils.equals(this.scAETHFlowPoints, capitalization.scAETHFlowPoints) &&
    -    ObjectUtils.equals(this.ATT_NAME, capitalization.ATT_NAME);
    -  }
    -
    -  @Override
    -  public int hashCode() {
    -    return ObjectUtils.hashCodeMulti(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(java.lang.Object o) {
    -    if (o == null) {
    -      return "null";
    -    }
    -    return o.toString().replace("\n", "\n    ");
    -  }
    -
    -}
    -
    
  • samples/client/petstore/java/jersey2-java6/src/main/java/io/swagger/client/model/Category.java+0 113 removed
    @@ -1,113 +0,0 @@
    -/*
    - * Swagger 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: \" \\
    - *
    - * OpenAPI spec version: 1.0.0
    - * Contact: apiteam@swagger.io
    - *
    - * NOTE: This class is auto generated by the swagger code generator program.
    - * https://github.com/swagger-api/swagger-codegen.git
    - * Do not edit the class manually.
    - */
    -
    -
    -package io.swagger.client.model;
    -
    -import org.apache.commons.lang3.ObjectUtils;
    -import com.fasterxml.jackson.annotation.JsonProperty;
    -import com.fasterxml.jackson.annotation.JsonCreator;
    -import com.fasterxml.jackson.annotation.JsonValue;
    -import io.swagger.annotations.ApiModel;
    -import io.swagger.annotations.ApiModelProperty;
    -
    -/**
    - * Category
    - */
    -
    -public class Category {
    -  @JsonProperty("id")
    -  private Long id = null;
    -
    -  @JsonProperty("name")
    -  private String name = null;
    -
    -  public Category id(Long id) {
    -    this.id = id;
    -    return this;
    -  }
    -
    -   /**
    -   * Get id
    -   * @return id
    -  **/
    -  @ApiModelProperty(value = "")
    -  public Long getId() {
    -    return id;
    -  }
    -
    -  public void setId(Long id) {
    -    this.id = id;
    -  }
    -
    -  public Category name(String name) {
    -    this.name = name;
    -    return this;
    -  }
    -
    -   /**
    -   * Get name
    -   * @return name
    -  **/
    -  @ApiModelProperty(value = "")
    -  public String getName() {
    -    return name;
    -  }
    -
    -  public void setName(String name) {
    -    this.name = name;
    -  }
    -
    -
    -  @Override
    -  public boolean equals(java.lang.Object o) {
    -  if (this == o) {
    -    return true;
    -  }
    -  if (o == null || getClass() != o.getClass()) {
    -    return false;
    -  }
    -    Category category = (Category) o;
    -    return ObjectUtils.equals(this.id, category.id) &&
    -    ObjectUtils.equals(this.name, category.name);
    -  }
    -
    -  @Override
    -  public int hashCode() {
    -    return ObjectUtils.hashCodeMulti(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(java.lang.Object o) {
    -    if (o == null) {
    -      return "null";
    -    }
    -    return o.toString().replace("\n", "\n    ");
    -  }
    -
    -}
    -
    
  • samples/client/petstore/java/jersey2-java6/src/main/java/io/swagger/client/model/Cat.java+0 92 removed
    @@ -1,92 +0,0 @@
    -/*
    - * Swagger 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: \" \\
    - *
    - * OpenAPI spec version: 1.0.0
    - * Contact: apiteam@swagger.io
    - *
    - * NOTE: This class is auto generated by the swagger code generator program.
    - * https://github.com/swagger-api/swagger-codegen.git
    - * Do not edit the class manually.
    - */
    -
    -
    -package io.swagger.client.model;
    -
    -import org.apache.commons.lang3.ObjectUtils;
    -import com.fasterxml.jackson.annotation.JsonProperty;
    -import com.fasterxml.jackson.annotation.JsonCreator;
    -import com.fasterxml.jackson.annotation.JsonValue;
    -import io.swagger.annotations.ApiModel;
    -import io.swagger.annotations.ApiModelProperty;
    -import io.swagger.client.model.Animal;
    -
    -/**
    - * Cat
    - */
    -
    -public class Cat extends Animal {
    -  @JsonProperty("declawed")
    -  private Boolean declawed = null;
    -
    -  public Cat declawed(Boolean declawed) {
    -    this.declawed = declawed;
    -    return this;
    -  }
    -
    -   /**
    -   * Get declawed
    -   * @return declawed
    -  **/
    -  @ApiModelProperty(value = "")
    -  public Boolean isDeclawed() {
    -    return declawed;
    -  }
    -
    -  public void setDeclawed(Boolean declawed) {
    -    this.declawed = declawed;
    -  }
    -
    -
    -  @Override
    -  public boolean equals(java.lang.Object o) {
    -  if (this == o) {
    -    return true;
    -  }
    -  if (o == null || getClass() != o.getClass()) {
    -    return false;
    -  }
    -    Cat cat = (Cat) o;
    -    return ObjectUtils.equals(this.declawed, cat.declawed) &&
    -    super.equals(o);
    -  }
    -
    -  @Override
    -  public int hashCode() {
    -    return ObjectUtils.hashCodeMulti(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(java.lang.Object o) {
    -    if (o == null) {
    -      return "null";
    -    }
    -    return o.toString().replace("\n", "\n    ");
    -  }
    -
    -}
    -
    
  • samples/client/petstore/java/jersey2-java6/src/main/java/io/swagger/client/model/ClassModel.java+0 91 removed
    @@ -1,91 +0,0 @@
    -/*
    - * Swagger 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: \" \\
    - *
    - * OpenAPI spec version: 1.0.0
    - * Contact: apiteam@swagger.io
    - *
    - * NOTE: This class is auto generated by the swagger code generator program.
    - * https://github.com/swagger-api/swagger-codegen.git
    - * Do not edit the class manually.
    - */
    -
    -
    -package io.swagger.client.model;
    -
    -import org.apache.commons.lang3.ObjectUtils;
    -import com.fasterxml.jackson.annotation.JsonProperty;
    -import com.fasterxml.jackson.annotation.JsonCreator;
    -import com.fasterxml.jackson.annotation.JsonValue;
    -import io.swagger.annotations.ApiModel;
    -import io.swagger.annotations.ApiModelProperty;
    -
    -/**
    - * Model for testing model with \&quot;_class\&quot; property
    - */
    -@ApiModel(description = "Model for testing model with \"_class\" property")
    -
    -public class ClassModel {
    -  @JsonProperty("_class")
    -  private String propertyClass = null;
    -
    -  public ClassModel propertyClass(String propertyClass) {
    -    this.propertyClass = propertyClass;
    -    return this;
    -  }
    -
    -   /**
    -   * Get propertyClass
    -   * @return propertyClass
    -  **/
    -  @ApiModelProperty(value = "")
    -  public String getPropertyClass() {
    -    return propertyClass;
    -  }
    -
    -  public void setPropertyClass(String propertyClass) {
    -    this.propertyClass = propertyClass;
    -  }
    -
    -
    -  @Override
    -  public boolean equals(java.lang.Object o) {
    -  if (this == o) {
    -    return true;
    -  }
    -  if (o == null || getClass() != o.getClass()) {
    -    return false;
    -  }
    -    ClassModel classModel = (ClassModel) o;
    -    return ObjectUtils.equals(this.propertyClass, classModel.propertyClass);
    -  }
    -
    -  @Override
    -  public int hashCode() {
    -    return ObjectUtils.hashCodeMulti(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(java.lang.Object o) {
    -    if (o == null) {
    -      return "null";
    -    }
    -    return o.toString().replace("\n", "\n    ");
    -  }
    -
    -}
    -
    
  • samples/client/petstore/java/jersey2-java6/src/main/java/io/swagger/client/model/Client.java+0 90 removed
    @@ -1,90 +0,0 @@
    -/*
    - * Swagger 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: \" \\
    - *
    - * OpenAPI spec version: 1.0.0
    - * Contact: apiteam@swagger.io
    - *
    - * NOTE: This class is auto generated by the swagger code generator program.
    - * https://github.com/swagger-api/swagger-codegen.git
    - * Do not edit the class manually.
    - */
    -
    -
    -package io.swagger.client.model;
    -
    -import org.apache.commons.lang3.ObjectUtils;
    -import com.fasterxml.jackson.annotation.JsonProperty;
    -import com.fasterxml.jackson.annotation.JsonCreator;
    -import com.fasterxml.jackson.annotation.JsonValue;
    -import io.swagger.annotations.ApiModel;
    -import io.swagger.annotations.ApiModelProperty;
    -
    -/**
    - * Client
    - */
    -
    -public class Client {
    -  @JsonProperty("client")
    -  private String client = null;
    -
    -  public Client client(String client) {
    -    this.client = client;
    -    return this;
    -  }
    -
    -   /**
    -   * Get client
    -   * @return client
    -  **/
    -  @ApiModelProperty(value = "")
    -  public String getClient() {
    -    return client;
    -  }
    -
    -  public void setClient(String client) {
    -    this.client = client;
    -  }
    -
    -
    -  @Override
    -  public boolean equals(java.lang.Object o) {
    -  if (this == o) {
    -    return true;
    -  }
    -  if (o == null || getClass() != o.getClass()) {
    -    return false;
    -  }
    -    Client client = (Client) o;
    -    return ObjectUtils.equals(this.client, client.client);
    -  }
    -
    -  @Override
    -  public int hashCode() {
    -    return ObjectUtils.hashCodeMulti(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(java.lang.Object o) {
    -    if (o == null) {
    -      return "null";
    -    }
    -    return o.toString().replace("\n", "\n    ");
    -  }
    -
    -}
    -
    
  • samples/client/petstore/java/jersey2-java6/src/main/java/io/swagger/client/model/Dog.java+0 92 removed
    @@ -1,92 +0,0 @@
    -/*
    - * Swagger 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: \" \\
    - *
    - * OpenAPI spec version: 1.0.0
    - * Contact: apiteam@swagger.io
    - *
    - * NOTE: This class is auto generated by the swagger code generator program.
    - * https://github.com/swagger-api/swagger-codegen.git
    - * Do not edit the class manually.
    - */
    -
    -
    -package io.swagger.client.model;
    -
    -import org.apache.commons.lang3.ObjectUtils;
    -import com.fasterxml.jackson.annotation.JsonProperty;
    -import com.fasterxml.jackson.annotation.JsonCreator;
    -import com.fasterxml.jackson.annotation.JsonValue;
    -import io.swagger.annotations.ApiModel;
    -import io.swagger.annotations.ApiModelProperty;
    -import io.swagger.client.model.Animal;
    -
    -/**
    - * Dog
    - */
    -
    -public class Dog extends Animal {
    -  @JsonProperty("breed")
    -  private String breed = null;
    -
    -  public Dog breed(String breed) {
    -    this.breed = breed;
    -    return this;
    -  }
    -
    -   /**
    -   * Get breed
    -   * @return breed
    -  **/
    -  @ApiModelProperty(value = "")
    -  public String getBreed() {
    -    return breed;
    -  }
    -
    -  public void setBreed(String breed) {
    -    this.breed = breed;
    -  }
    -
    -
    -  @Override
    -  public boolean equals(java.lang.Object o) {
    -  if (this == o) {
    -    return true;
    -  }
    -  if (o == null || getClass() != o.getClass()) {
    -    return false;
    -  }
    -    Dog dog = (Dog) o;
    -    return ObjectUtils.equals(this.breed, dog.breed) &&
    -    super.equals(o);
    -  }
    -
    -  @Override
    -  public int hashCode() {
    -    return ObjectUtils.hashCodeMulti(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(java.lang.Object o) {
    -    if (o == null) {
    -      return "null";
    -    }
    -    return o.toString().replace("\n", "\n    ");
    -  }
    -
    -}
    -
    
  • samples/client/petstore/java/jersey2-java6/src/main/java/io/swagger/client/model/EnumArrays.java+0 193 removed
    @@ -1,193 +0,0 @@
    -/*
    - * Swagger 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: \" \\
    - *
    - * OpenAPI spec version: 1.0.0
    - * Contact: apiteam@swagger.io
    - *
    - * NOTE: This class is auto generated by the swagger code generator program.
    - * https://github.com/swagger-api/swagger-codegen.git
    - * Do not edit the class manually.
    - */
    -
    -
    -package io.swagger.client.model;
    -
    -import org.apache.commons.lang3.ObjectUtils;
    -import com.fasterxml.jackson.annotation.JsonProperty;
    -import com.fasterxml.jackson.annotation.JsonCreator;
    -import com.fasterxml.jackson.annotation.JsonValue;
    -import io.swagger.annotations.ApiModel;
    -import io.swagger.annotations.ApiModelProperty;
    -import java.util.ArrayList;
    -import java.util.List;
    -
    -/**
    - * EnumArrays
    - */
    -
    -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 text) {
    -      for (JustSymbolEnum b : JustSymbolEnum.values()) {
    -        if (String.valueOf(b.value).equals(text)) {
    -          return b;
    -        }
    -      }
    -      return null;
    -    }
    -  }
    -
    -  @JsonProperty("just_symbol")
    -  private JustSymbolEnum justSymbol = null;
    -
    -  /**
    -   * 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 text) {
    -      for (ArrayEnumEnum b : ArrayEnumEnum.values()) {
    -        if (String.valueOf(b.value).equals(text)) {
    -          return b;
    -        }
    -      }
    -      return null;
    -    }
    -  }
    -
    -  @JsonProperty("array_enum")
    -  private List<ArrayEnumEnum> arrayEnum = null;
    -
    -  public EnumArrays justSymbol(JustSymbolEnum justSymbol) {
    -    this.justSymbol = justSymbol;
    -    return this;
    -  }
    -
    -   /**
    -   * Get justSymbol
    -   * @return justSymbol
    -  **/
    -  @ApiModelProperty(value = "")
    -  public JustSymbolEnum getJustSymbol() {
    -    return justSymbol;
    -  }
    -
    -  public void setJustSymbol(JustSymbolEnum justSymbol) {
    -    this.justSymbol = justSymbol;
    -  }
    -
    -  public EnumArrays arrayEnum(List<ArrayEnumEnum> arrayEnum) {
    -    this.arrayEnum = arrayEnum;
    -    return this;
    -  }
    -
    -  public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) {
    -    if (this.arrayEnum == null) {
    -      this.arrayEnum = new ArrayList<ArrayEnumEnum>();
    -    }
    -    this.arrayEnum.add(arrayEnumItem);
    -    return this;
    -  }
    -
    -   /**
    -   * Get arrayEnum
    -   * @return arrayEnum
    -  **/
    -  @ApiModelProperty(value = "")
    -  public List<ArrayEnumEnum> getArrayEnum() {
    -    return arrayEnum;
    -  }
    -
    -  public void setArrayEnum(List<ArrayEnumEnum> arrayEnum) {
    -    this.arrayEnum = arrayEnum;
    -  }
    -
    -
    -  @Override
    -  public boolean equals(java.lang.Object o) {
    -  if (this == o) {
    -    return true;
    -  }
    -  if (o == null || getClass() != o.getClass()) {
    -    return false;
    -  }
    -    EnumArrays enumArrays = (EnumArrays) o;
    -    return ObjectUtils.equals(this.justSymbol, enumArrays.justSymbol) &&
    -    ObjectUtils.equals(this.arrayEnum, enumArrays.arrayEnum);
    -  }
    -
    -  @Override
    -  public int hashCode() {
    -    return ObjectUtils.hashCodeMulti(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(java.lang.Object o) {
    -    if (o == null) {
    -      return "null";
    -    }
    -    return o.toString().replace("\n", "\n    ");
    -  }
    -
    -}
    -
    
  • samples/client/petstore/java/jersey2-java6/src/main/java/io/swagger/client/model/EnumClass.java+0 58 removed
    @@ -1,58 +0,0 @@
    -/*
    - * Swagger 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: \" \\
    - *
    - * OpenAPI spec version: 1.0.0
    - * Contact: apiteam@swagger.io
    - *
    - * NOTE: This class is auto generated by the swagger code generator program.
    - * https://github.com/swagger-api/swagger-codegen.git
    - * Do not edit the class manually.
    - */
    -
    -
    -package io.swagger.client.model;
    -
    -import org.apache.commons.lang3.ObjectUtils;
    -
    -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 text) {
    -    for (EnumClass b : EnumClass.values()) {
    -      if (String.valueOf(b.value).equals(text)) {
    -        return b;
    -      }
    -    }
    -    return null;
    -  }
    -}
    -
    
  • samples/client/petstore/java/jersey2-java6/src/main/java/io/swagger/client/model/EnumTest.java+0 327 removed
    @@ -1,327 +0,0 @@
    -/*
    - * Swagger 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: \" \\
    - *
    - * OpenAPI spec version: 1.0.0
    - * Contact: apiteam@swagger.io
    - *
    - * NOTE: This class is auto generated by the swagger code generator program.
    - * https://github.com/swagger-api/swagger-codegen.git
    - * Do not edit the class manually.
    - */
    -
    -
    -package io.swagger.client.model;
    -
    -import org.apache.commons.lang3.ObjectUtils;
    -import com.fasterxml.jackson.annotation.JsonProperty;
    -import com.fasterxml.jackson.annotation.JsonCreator;
    -import com.fasterxml.jackson.annotation.JsonValue;
    -import io.swagger.annotations.ApiModel;
    -import io.swagger.annotations.ApiModelProperty;
    -import io.swagger.client.model.OuterEnum;
    -
    -/**
    - * EnumTest
    - */
    -
    -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 text) {
    -      for (EnumStringEnum b : EnumStringEnum.values()) {
    -        if (String.valueOf(b.value).equals(text)) {
    -          return b;
    -        }
    -      }
    -      return null;
    -    }
    -  }
    -
    -  @JsonProperty("enum_string")
    -  private EnumStringEnum enumString = null;
    -
    -  /**
    -   * 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 text) {
    -      for (EnumStringRequiredEnum b : EnumStringRequiredEnum.values()) {
    -        if (String.valueOf(b.value).equals(text)) {
    -          return b;
    -        }
    -      }
    -      return null;
    -    }
    -  }
    -
    -  @JsonProperty("enum_string_required")
    -  private EnumStringRequiredEnum enumStringRequired = null;
    -
    -  /**
    -   * 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(String text) {
    -      for (EnumIntegerEnum b : EnumIntegerEnum.values()) {
    -        if (String.valueOf(b.value).equals(text)) {
    -          return b;
    -        }
    -      }
    -      return null;
    -    }
    -  }
    -
    -  @JsonProperty("enum_integer")
    -  private EnumIntegerEnum enumInteger = null;
    -
    -  /**
    -   * 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(String text) {
    -      for (EnumNumberEnum b : EnumNumberEnum.values()) {
    -        if (String.valueOf(b.value).equals(text)) {
    -          return b;
    -        }
    -      }
    -      return null;
    -    }
    -  }
    -
    -  @JsonProperty("enum_number")
    -  private EnumNumberEnum enumNumber = null;
    -
    -  @JsonProperty("outerEnum")
    -  private OuterEnum outerEnum = null;
    -
    -  public EnumTest enumString(EnumStringEnum enumString) {
    -    this.enumString = enumString;
    -    return this;
    -  }
    -
    -   /**
    -   * Get enumString
    -   * @return enumString
    -  **/
    -  @ApiModelProperty(value = "")
    -  public EnumStringEnum getEnumString() {
    -    return enumString;
    -  }
    -
    -  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 = "")
    -  public EnumStringRequiredEnum getEnumStringRequired() {
    -    return enumStringRequired;
    -  }
    -
    -  public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) {
    -    this.enumStringRequired = enumStringRequired;
    -  }
    -
    -  public EnumTest enumInteger(EnumIntegerEnum enumInteger) {
    -    this.enumInteger = enumInteger;
    -    return this;
    -  }
    -
    -   /**
    -   * Get enumInteger
    -   * @return enumInteger
    -  **/
    -  @ApiModelProperty(value = "")
    -  public EnumIntegerEnum getEnumInteger() {
    -    return enumInteger;
    -  }
    -
    -  public void setEnumInteger(EnumIntegerEnum enumInteger) {
    -    this.enumInteger = enumInteger;
    -  }
    -
    -  public EnumTest enumNumber(EnumNumberEnum enumNumber) {
    -    this.enumNumber = enumNumber;
    -    return this;
    -  }
    -
    -   /**
    -   * Get enumNumber
    -   * @return enumNumber
    -  **/
    -  @ApiModelProperty(value = "")
    -  public EnumNumberEnum getEnumNumber() {
    -    return enumNumber;
    -  }
    -
    -  public void setEnumNumber(EnumNumberEnum enumNumber) {
    -    this.enumNumber = enumNumber;
    -  }
    -
    -  public EnumTest outerEnum(OuterEnum outerEnum) {
    -    this.outerEnum = outerEnum;
    -    return this;
    -  }
    -
    -   /**
    -   * Get outerEnum
    -   * @return outerEnum
    -  **/
    -  @ApiModelProperty(value = "")
    -  public OuterEnum getOuterEnum() {
    -    return outerEnum;
    -  }
    -
    -  public void setOuterEnum(OuterEnum outerEnum) {
    -    this.outerEnum = outerEnum;
    -  }
    -
    -
    -  @Override
    -  public boolean equals(java.lang.Object o) {
    -  if (this == o) {
    -    return true;
    -  }
    -  if (o == null || getClass() != o.getClass()) {
    -    return false;
    -  }
    -    EnumTest enumTest = (EnumTest) o;
    -    return ObjectUtils.equals(this.enumString, enumTest.enumString) &&
    -    ObjectUtils.equals(this.enumStringRequired, enumTest.enumStringRequired) &&
    -    ObjectUtils.equals(this.enumInteger, enumTest.enumInteger) &&
    -    ObjectUtils.equals(this.enumNumber, enumTest.enumNumber) &&
    -    ObjectUtils.equals(this.outerEnum, enumTest.outerEnum);
    -  }
    -
    -  @Override
    -  public int hashCode() {
    -    return ObjectUtils.hashCodeMulti(enumString, enumStringRequired, enumInteger, enumNumber, outerEnum);
    -  }
    -
    -
    -  @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("}");
    -    return sb.toString();
    -  }
    -
    -  /**
    -   * Convert the given object to string with each line indented by 4 spaces
    -   * (except the first line).
    -   */
    -  private String toIndentedString(java.lang.Object o) {
    -    if (o == null) {
    -      return "null";
    -    }
    -    return o.toString().replace("\n", "\n    ");
    -  }
    -
    -}
    -
    
  • samples/client/petstore/java/jersey2-java6/src/main/java/io/swagger/client/model/FormatTest.java+0 380 removed
    @@ -1,380 +0,0 @@
    -/*
    - * Swagger 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: \" \\
    - *
    - * OpenAPI spec version: 1.0.0
    - * Contact: apiteam@swagger.io
    - *
    - * NOTE: This class is auto generated by the swagger code generator program.
    - * https://github.com/swagger-api/swagger-codegen.git
    - * Do not edit the class manually.
    - */
    -
    -
    -package io.swagger.client.model;
    -
    -import org.apache.commons.lang3.ObjectUtils;
    -import com.fasterxml.jackson.annotation.JsonProperty;
    -import com.fasterxml.jackson.annotation.JsonCreator;
    -import com.fasterxml.jackson.annotation.JsonValue;
    -import io.swagger.annotations.ApiModel;
    -import io.swagger.annotations.ApiModelProperty;
    -import java.math.BigDecimal;
    -import java.util.UUID;
    -import org.threeten.bp.LocalDate;
    -import org.threeten.bp.OffsetDateTime;
    -
    -/**
    - * FormatTest
    - */
    -
    -public class FormatTest {
    -  @JsonProperty("integer")
    -  private Integer integer = null;
    -
    -  @JsonProperty("int32")
    -  private Integer int32 = null;
    -
    -  @JsonProperty("int64")
    -  private Long int64 = null;
    -
    -  @JsonProperty("number")
    -  private BigDecimal number = null;
    -
    -  @JsonProperty("float")
    -  private Float _float = null;
    -
    -  @JsonProperty("double")
    -  private Double _double = null;
    -
    -  @JsonProperty("string")
    -  private String string = null;
    -
    -  @JsonProperty("byte")
    -  private byte[] _byte = null;
    -
    -  @JsonProperty("binary")
    -  private byte[] binary = null;
    -
    -  @JsonProperty("date")
    -  private LocalDate date = null;
    -
    -  @JsonProperty("dateTime")
    -  private OffsetDateTime dateTime = null;
    -
    -  @JsonProperty("uuid")
    -  private UUID uuid = null;
    -
    -  @JsonProperty("password")
    -  private String password = null;
    -
    -  public FormatTest integer(Integer integer) {
    -    this.integer = integer;
    -    return this;
    -  }
    -
    -   /**
    -   * Get integer
    -   * minimum: 10
    -   * maximum: 100
    -   * @return integer
    -  **/
    -  @ApiModelProperty(value = "")
    -  public Integer getInteger() {
    -    return integer;
    -  }
    -
    -  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
    -  **/
    -  @ApiModelProperty(value = "")
    -  public Integer getInt32() {
    -    return int32;
    -  }
    -
    -  public void setInt32(Integer int32) {
    -    this.int32 = int32;
    -  }
    -
    -  public FormatTest int64(Long int64) {
    -    this.int64 = int64;
    -    return this;
    -  }
    -
    -   /**
    -   * Get int64
    -   * @return int64
    -  **/
    -  @ApiModelProperty(value = "")
    -  public Long getInt64() {
    -    return int64;
    -  }
    -
    -  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 = "")
    -  public BigDecimal getNumber() {
    -    return number;
    -  }
    -
    -  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
    -  **/
    -  @ApiModelProperty(value = "")
    -  public Float getFloat() {
    -    return _float;
    -  }
    -
    -  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
    -  **/
    -  @ApiModelProperty(value = "")
    -  public Double getDouble() {
    -    return _double;
    -  }
    -
    -  public void setDouble(Double _double) {
    -    this._double = _double;
    -  }
    -
    -  public FormatTest string(String string) {
    -    this.string = string;
    -    return this;
    -  }
    -
    -   /**
    -   * Get string
    -   * @return string
    -  **/
    -  @ApiModelProperty(value = "")
    -  public String getString() {
    -    return string;
    -  }
    -
    -  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 = "")
    -  public byte[] getByte() {
    -    return _byte;
    -  }
    -
    -  public void setByte(byte[] _byte) {
    -    this._byte = _byte;
    -  }
    -
    -  public FormatTest binary(byte[] binary) {
    -    this.binary = binary;
    -    return this;
    -  }
    -
    -   /**
    -   * Get binary
    -   * @return binary
    -  **/
    -  @ApiModelProperty(value = "")
    -  public byte[] getBinary() {
    -    return binary;
    -  }
    -
    -  public void setBinary(byte[] binary) {
    -    this.binary = binary;
    -  }
    -
    -  public FormatTest date(LocalDate date) {
    -    this.date = date;
    -    return this;
    -  }
    -
    -   /**
    -   * Get date
    -   * @return date
    -  **/
    -  @ApiModelProperty(required = true, value = "")
    -  public LocalDate getDate() {
    -    return date;
    -  }
    -
    -  public void setDate(LocalDate date) {
    -    this.date = date;
    -  }
    -
    -  public FormatTest dateTime(OffsetDateTime dateTime) {
    -    this.dateTime = dateTime;
    -    return this;
    -  }
    -
    -   /**
    -   * Get dateTime
    -   * @return dateTime
    -  **/
    -  @ApiModelProperty(value = "")
    -  public OffsetDateTime getDateTime() {
    -    return dateTime;
    -  }
    -
    -  public void setDateTime(OffsetDateTime dateTime) {
    -    this.dateTime = dateTime;
    -  }
    -
    -  public FormatTest uuid(UUID uuid) {
    -    this.uuid = uuid;
    -    return this;
    -  }
    -
    -   /**
    -   * Get uuid
    -   * @return uuid
    -  **/
    -  @ApiModelProperty(value = "")
    -  public UUID getUuid() {
    -    return uuid;
    -  }
    -
    -  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 = "")
    -  public String getPassword() {
    -    return password;
    -  }
    -
    -  public void setPassword(String password) {
    -    this.password = password;
    -  }
    -
    -
    -  @Override
    -  public boolean equals(java.lang.Object o) {
    -  if (this == o) {
    -    return true;
    -  }
    -  if (o == null || getClass() != o.getClass()) {
    -    return false;
    -  }
    -    FormatTest formatTest = (FormatTest) o;
    -    return ObjectUtils.equals(this.integer, formatTest.integer) &&
    -    ObjectUtils.equals(this.int32, formatTest.int32) &&
    -    ObjectUtils.equals(this.int64, formatTest.int64) &&
    -    ObjectUtils.equals(this.number, formatTest.number) &&
    -    ObjectUtils.equals(this._float, formatTest._float) &&
    -    ObjectUtils.equals(this._double, formatTest._double) &&
    -    ObjectUtils.equals(this.string, formatTest.string) &&
    -    ObjectUtils.equals(this._byte, formatTest._byte) &&
    -    ObjectUtils.equals(this.binary, formatTest.binary) &&
    -    ObjectUtils.equals(this.date, formatTest.date) &&
    -    ObjectUtils.equals(this.dateTime, formatTest.dateTime) &&
    -    ObjectUtils.equals(this.uuid, formatTest.uuid) &&
    -    ObjectUtils.equals(this.password, formatTest.password);
    -  }
    -
    -  @Override
    -  public int hashCode() {
    -    return ObjectUtils.hashCodeMulti(integer, int32, int64, number, _float, _double, string, _byte, binary, date, dateTime, uuid, password);
    -  }
    -
    -
    -  @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("    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("}");
    -    return sb.toString();
    -  }
    -
    -  /**
    -   * Convert the given object to string with each line indented by 4 spaces
    -   * (except the first line).
    -   */
    -  private String toIndentedString(java.lang.Object o) {
    -    if (o == null) {
    -      return "null";
    -    }
    -    return o.toString().replace("\n", "\n    ");
    -  }
    -
    -}
    -
    
  • samples/client/petstore/java/jersey2-java6/src/main/java/io/swagger/client/model/HasOnlyReadOnly.java+0 95 removed
    @@ -1,95 +0,0 @@
    -/*
    - * Swagger 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: \" \\
    - *
    - * OpenAPI spec version: 1.0.0
    - * Contact: apiteam@swagger.io
    - *
    - * NOTE: This class is auto generated by the swagger code generator program.
    - * https://github.com/swagger-api/swagger-codegen.git
    - * Do not edit the class manually.
    - */
    -
    -
    -package io.swagger.client.model;
    -
    -import org.apache.commons.lang3.ObjectUtils;
    -import com.fasterxml.jackson.annotation.JsonProperty;
    -import com.fasterxml.jackson.annotation.JsonCreator;
    -import com.fasterxml.jackson.annotation.JsonValue;
    -import io.swagger.annotations.ApiModel;
    -import io.swagger.annotations.ApiModelProperty;
    -
    -/**
    - * HasOnlyReadOnly
    - */
    -
    -public class HasOnlyReadOnly {
    -  @JsonProperty("bar")
    -  private String bar = null;
    -
    -  @JsonProperty("foo")
    -  private String foo = null;
    -
    -   /**
    -   * Get bar
    -   * @return bar
    -  **/
    -  @ApiModelProperty(value = "")
    -  public String getBar() {
    -    return bar;
    -  }
    -
    -   /**
    -   * Get foo
    -   * @return foo
    -  **/
    -  @ApiModelProperty(value = "")
    -  public String getFoo() {
    -    return foo;
    -  }
    -
    -
    -  @Override
    -  public boolean equals(java.lang.Object o) {
    -  if (this == o) {
    -    return true;
    -  }
    -  if (o == null || getClass() != o.getClass()) {
    -    return false;
    -  }
    -    HasOnlyReadOnly hasOnlyReadOnly = (HasOnlyReadOnly) o;
    -    return ObjectUtils.equals(this.bar, hasOnlyReadOnly.bar) &&
    -    ObjectUtils.equals(this.foo, hasOnlyReadOnly.foo);
    -  }
    -
    -  @Override
    -  public int hashCode() {
    -    return ObjectUtils.hashCodeMulti(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(java.lang.Object o) {
    -    if (o == null) {
    -      return "null";
    -    }
    -    return o.toString().replace("\n", "\n    ");
    -  }
    -
    -}
    -
    
  • samples/client/petstore/java/jersey2-java6/src/main/java/io/swagger/client/model/Ints.java+0 67 removed
    @@ -1,67 +0,0 @@
    -/*
    - * Swagger 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: \" \\
    - *
    - * OpenAPI spec version: 1.0.0
    - * Contact: apiteam@swagger.io
    - *
    - * NOTE: This class is auto generated by the swagger code generator program.
    - * https://github.com/swagger-api/swagger-codegen.git
    - * Do not edit the class manually.
    - */
    -
    -
    -package io.swagger.client.model;
    -
    -import org.apache.commons.lang3.ObjectUtils;
    -import io.swagger.annotations.ApiModel;
    -
    -import com.fasterxml.jackson.annotation.JsonCreator;
    -import com.fasterxml.jackson.annotation.JsonValue;
    -
    -/**
    - * True or False indicator
    - */
    -public enum Ints {
    -  
    -  NUMBER_0(0),
    -  
    -  NUMBER_1(1),
    -  
    -  NUMBER_2(2),
    -  
    -  NUMBER_3(3),
    -  
    -  NUMBER_4(4),
    -  
    -  NUMBER_5(5),
    -  
    -  NUMBER_6(6);
    -
    -  private Integer value;
    -
    -  Ints(Integer value) {
    -    this.value = value;
    -  }
    -
    -  @JsonValue
    -  public Integer getValue() {
    -    return value;
    -  }
    -
    -  @Override
    -  public String toString() {
    -    return String.valueOf(value);
    -  }
    -
    -  @JsonCreator
    -  public static Ints fromValue(String text) {
    -    for (Ints b : Ints.values()) {
    -      if (String.valueOf(b.value).equals(text)) {
    -        return b;
    -      }
    -    }
    -    return null;
    -  }
    -}
    -
    
  • samples/client/petstore/java/jersey2-java6/src/main/java/io/swagger/client/model/MapTest.java+0 167 removed
    @@ -1,167 +0,0 @@
    -/*
    - * Swagger 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: \" \\
    - *
    - * OpenAPI spec version: 1.0.0
    - * Contact: apiteam@swagger.io
    - *
    - * NOTE: This class is auto generated by the swagger code generator program.
    - * https://github.com/swagger-api/swagger-codegen.git
    - * Do not edit the class manually.
    - */
    -
    -
    -package io.swagger.client.model;
    -
    -import org.apache.commons.lang3.ObjectUtils;
    -import com.fasterxml.jackson.annotation.JsonProperty;
    -import com.fasterxml.jackson.annotation.JsonCreator;
    -import com.fasterxml.jackson.annotation.JsonValue;
    -import io.swagger.annotations.ApiModel;
    -import io.swagger.annotations.ApiModelProperty;
    -import java.util.HashMap;
    -import java.util.List;
    -import java.util.Map;
    -
    -/**
    - * MapTest
    - */
    -
    -public class MapTest {
    -  @JsonProperty("map_map_of_string")
    -  private Map<String, Map<String, String>> 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 text) {
    -      for (InnerEnum b : InnerEnum.values()) {
    -        if (String.valueOf(b.value).equals(text)) {
    -          return b;
    -        }
    -      }
    -      return null;
    -    }
    -  }
    -
    -  @JsonProperty("map_of_enum_string")
    -  private Map<String, InnerEnum> mapOfEnumString = null;
    -
    -  public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
    -    this.mapMapOfString = mapMapOfString;
    -    return this;
    -  }
    -
    -  public MapTest putMapMapOfStringItem(String key, Map<String, String> mapMapOfStringItem) {
    -    if (this.mapMapOfString == null) {
    -      this.mapMapOfString = new HashMap<String, Map<String, String>>();
    -    }
    -    this.mapMapOfString.put(key, mapMapOfStringItem);
    -    return this;
    -  }
    -
    -   /**
    -   * Get mapMapOfString
    -   * @return mapMapOfString
    -  **/
    -  @ApiModelProperty(value = "")
    -  public Map<String, Map<String, String>> getMapMapOfString() {
    -    return mapMapOfString;
    -  }
    -
    -  public void setMapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
    -    this.mapMapOfString = mapMapOfString;
    -  }
    -
    -  public MapTest mapOfEnumString(Map<String, InnerEnum> mapOfEnumString) {
    -    this.mapOfEnumString = mapOfEnumString;
    -    return this;
    -  }
    -
    -  public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) {
    -    if (this.mapOfEnumString == null) {
    -      this.mapOfEnumString = new HashMap<String, InnerEnum>();
    -    }
    -    this.mapOfEnumString.put(key, mapOfEnumStringItem);
    -    return this;
    -  }
    -
    -   /**
    -   * Get mapOfEnumString
    -   * @return mapOfEnumString
    -  **/
    -  @ApiModelProperty(value = "")
    -  public Map<String, InnerEnum> getMapOfEnumString() {
    -    return mapOfEnumString;
    -  }
    -
    -  public void setMapOfEnumString(Map<String, InnerEnum> mapOfEnumString) {
    -    this.mapOfEnumString = mapOfEnumString;
    -  }
    -
    -
    -  @Override
    -  public boolean equals(java.lang.Object o) {
    -  if (this == o) {
    -    return true;
    -  }
    -  if (o == null || getClass() != o.getClass()) {
    -    return false;
    -  }
    -    MapTest mapTest = (MapTest) o;
    -    return ObjectUtils.equals(this.mapMapOfString, mapTest.mapMapOfString) &&
    -    ObjectUtils.equals(this.mapOfEnumString, mapTest.mapOfEnumString);
    -  }
    -
    -  @Override
    -  public int hashCode() {
    -    return ObjectUtils.hashCodeMulti(mapMapOfString, mapOfEnumString);
    -  }
    -
    -
    -  @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("}");
    -    return sb.toString();
    -  }
    -
    -  /**
    -   * Convert the given object to string with each line indented by 4 spaces
    -   * (except the first line).
    -   */
    -  private String toIndentedString(java.lang.Object o) {
    -    if (o == null) {
    -      return "null";
    -    }
    -    return o.toString().replace("\n", "\n    ");
    -  }
    -
    -}
    -
    
  • samples/client/petstore/java/jersey2-java6/src/main/java/io/swagger/client/model/MixedPropertiesAndAdditionalPropertiesClass.java+0 150 removed
    @@ -1,150 +0,0 @@
    -/*
    - * Swagger 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: \" \\
    - *
    - * OpenAPI spec version: 1.0.0
    - * Contact: apiteam@swagger.io
    - *
    - * NOTE: This class is auto generated by the swagger code generator program.
    - * https://github.com/swagger-api/swagger-codegen.git
    - * Do not edit the class manually.
    - */
    -
    -
    -package io.swagger.client.model;
    -
    -import org.apache.commons.lang3.ObjectUtils;
    -import com.fasterxml.jackson.annotation.JsonProperty;
    -import com.fasterxml.jackson.annotation.JsonCreator;
    -import com.fasterxml.jackson.annotation.JsonValue;
    -import io.swagger.annotations.ApiModel;
    -import io.swagger.annotations.ApiModelProperty;
    -import io.swagger.client.model.Animal;
    -import java.util.HashMap;
    -import java.util.List;
    -import java.util.Map;
    -import java.util.UUID;
    -import org.threeten.bp.OffsetDateTime;
    -
    -/**
    - * MixedPropertiesAndAdditionalPropertiesClass
    - */
    -
    -public class MixedPropertiesAndAdditionalPropertiesClass {
    -  @JsonProperty("uuid")
    -  private UUID uuid = null;
    -
    -  @JsonProperty("dateTime")
    -  private OffsetDateTime dateTime = null;
    -
    -  @JsonProperty("map")
    -  private Map<String, Animal> map = null;
    -
    -  public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) {
    -    this.uuid = uuid;
    -    return this;
    -  }
    -
    -   /**
    -   * Get uuid
    -   * @return uuid
    -  **/
    -  @ApiModelProperty(value = "")
    -  public UUID getUuid() {
    -    return uuid;
    -  }
    -
    -  public void setUuid(UUID uuid) {
    -    this.uuid = uuid;
    -  }
    -
    -  public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) {
    -    this.dateTime = dateTime;
    -    return this;
    -  }
    -
    -   /**
    -   * Get dateTime
    -   * @return dateTime
    -  **/
    -  @ApiModelProperty(value = "")
    -  public OffsetDateTime getDateTime() {
    -    return dateTime;
    -  }
    -
    -  public void setDateTime(OffsetDateTime dateTime) {
    -    this.dateTime = dateTime;
    -  }
    -
    -  public MixedPropertiesAndAdditionalPropertiesClass map(Map<String, Animal> map) {
    -    this.map = map;
    -    return this;
    -  }
    -
    -  public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal mapItem) {
    -    if (this.map == null) {
    -      this.map = new HashMap<String, Animal>();
    -    }
    -    this.map.put(key, mapItem);
    -    return this;
    -  }
    -
    -   /**
    -   * Get map
    -   * @return map
    -  **/
    -  @ApiModelProperty(value = "")
    -  public Map<String, Animal> getMap() {
    -    return map;
    -  }
    -
    -  public void setMap(Map<String, Animal> map) {
    -    this.map = map;
    -  }
    -
    -
    -  @Override
    -  public boolean equals(java.lang.Object o) {
    -  if (this == o) {
    -    return true;
    -  }
    -  if (o == null || getClass() != o.getClass()) {
    -    return false;
    -  }
    -    MixedPropertiesAndAdditionalPropertiesClass mixedPropertiesAndAdditionalPropertiesClass = (MixedPropertiesAndAdditionalPropertiesClass) o;
    -    return ObjectUtils.equals(this.uuid, mixedPropertiesAndAdditionalPropertiesClass.uuid) &&
    -    ObjectUtils.equals(this.dateTime, mixedPropertiesAndAdditionalPropertiesClass.dateTime) &&
    -    ObjectUtils.equals(this.map, mixedPropertiesAndAdditionalPropertiesClass.map);
    -  }
    -
    -  @Override
    -  public int hashCode() {
    -    return ObjectUtils.hashCodeMulti(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(java.lang.Object o) {
    -    if (o == null) {
    -      return "null";
    -    }
    -    return o.toString().replace("\n", "\n    ");
    -  }
    -
    -}
    -
    
  • samples/client/petstore/java/jersey2-java6/src/main/java/io/swagger/client/model/Model200Response.java+0 114 removed
    @@ -1,114 +0,0 @@
    -/*
    - * Swagger 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: \" \\
    - *
    - * OpenAPI spec version: 1.0.0
    - * Contact: apiteam@swagger.io
    - *
    - * NOTE: This class is auto generated by the swagger code generator program.
    - * https://github.com/swagger-api/swagger-codegen.git
    - * Do not edit the class manually.
    - */
    -
    -
    -package io.swagger.client.model;
    -
    -import org.apache.commons.lang3.ObjectUtils;
    -import com.fasterxml.jackson.annotation.JsonProperty;
    -import com.fasterxml.jackson.annotation.JsonCreator;
    -import com.fasterxml.jackson.annotation.JsonValue;
    -import io.swagger.annotations.ApiModel;
    -import io.swagger.annotations.ApiModelProperty;
    -
    -/**
    - * Model for testing model name starting with number
    - */
    -@ApiModel(description = "Model for testing model name starting with number")
    -
    -public class Model200Response {
    -  @JsonProperty("name")
    -  private Integer name = null;
    -
    -  @JsonProperty("class")
    -  private String propertyClass = null;
    -
    -  public Model200Response name(Integer name) {
    -    this.name = name;
    -    return this;
    -  }
    -
    -   /**
    -   * Get name
    -   * @return name
    -  **/
    -  @ApiModelProperty(value = "")
    -  public Integer getName() {
    -    return name;
    -  }
    -
    -  public void setName(Integer name) {
    -    this.name = name;
    -  }
    -
    -  public Model200Response propertyClass(String propertyClass) {
    -    this.propertyClass = propertyClass;
    -    return this;
    -  }
    -
    -   /**
    -   * Get propertyClass
    -   * @return propertyClass
    -  **/
    -  @ApiModelProperty(value = "")
    -  public String getPropertyClass() {
    -    return propertyClass;
    -  }
    -
    -  public void setPropertyClass(String propertyClass) {
    -    this.propertyClass = propertyClass;
    -  }
    -
    -
    -  @Override
    -  public boolean equals(java.lang.Object o) {
    -  if (this == o) {
    -    return true;
    -  }
    -  if (o == null || getClass() != o.getClass()) {
    -    return false;
    -  }
    -    Model200Response _200Response = (Model200Response) o;
    -    return ObjectUtils.equals(this.name, _200Response.name) &&
    -    ObjectUtils.equals(this.propertyClass, _200Response.propertyClass);
    -  }
    -
    -  @Override
    -  public int hashCode() {
    -    return ObjectUtils.hashCodeMulti(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(java.lang.Object o) {
    -    if (o == null) {
    -      return "null";
    -    }
    -    return o.toString().replace("\n", "\n    ");
    -  }
    -
    -}
    -
    
  • samples/client/petstore/java/jersey2-java6/src/main/java/io/swagger/client/model/ModelApiResponse.java+0 136 removed
    @@ -1,136 +0,0 @@
    -/*
    - * Swagger 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: \" \\
    - *
    - * OpenAPI spec version: 1.0.0
    - * Contact: apiteam@swagger.io
    - *
    - * NOTE: This class is auto generated by the swagger code generator program.
    - * https://github.com/swagger-api/swagger-codegen.git
    - * Do not edit the class manually.
    - */
    -
    -
    -package io.swagger.client.model;
    -
    -import org.apache.commons.lang3.ObjectUtils;
    -import com.fasterxml.jackson.annotation.JsonProperty;
    -import com.fasterxml.jackson.annotation.JsonCreator;
    -import com.fasterxml.jackson.annotation.JsonValue;
    -import io.swagger.annotations.ApiModel;
    -import io.swagger.annotations.ApiModelProperty;
    -
    -/**
    - * ModelApiResponse
    - */
    -
    -public class ModelApiResponse {
    -  @JsonProperty("code")
    -  private Integer code = null;
    -
    -  @JsonProperty("type")
    -  private String type = null;
    -
    -  @JsonProperty("message")
    -  private String message = null;
    -
    -  public ModelApiResponse code(Integer code) {
    -    this.code = code;
    -    return this;
    -  }
    -
    -   /**
    -   * Get code
    -   * @return code
    -  **/
    -  @ApiModelProperty(value = "")
    -  public Integer getCode() {
    -    return code;
    -  }
    -
    -  public void setCode(Integer code) {
    -    this.code = code;
    -  }
    -
    -  public ModelApiResponse type(String type) {
    -    this.type = type;
    -    return this;
    -  }
    -
    -   /**
    -   * Get type
    -   * @return type
    -  **/
    -  @ApiModelProperty(value = "")
    -  public String getType() {
    -    return type;
    -  }
    -
    -  public void setType(String type) {
    -    this.type = type;
    -  }
    -
    -  public ModelApiResponse message(String message) {
    -    this.message = message;
    -    return this;
    -  }
    -
    -   /**
    -   * Get message
    -   * @return message
    -  **/
    -  @ApiModelProperty(value = "")
    -  public String getMessage() {
    -    return message;
    -  }
    -
    -  public void setMessage(String message) {
    -    this.message = message;
    -  }
    -
    -
    -  @Override
    -  public boolean equals(java.lang.Object o) {
    -  if (this == o) {
    -    return true;
    -  }
    -  if (o == null || getClass() != o.getClass()) {
    -    return false;
    -  }
    -    ModelApiResponse _apiResponse = (ModelApiResponse) o;
    -    return ObjectUtils.equals(this.code, _apiResponse.code) &&
    -    ObjectUtils.equals(this.type, _apiResponse.type) &&
    -    ObjectUtils.equals(this.message, _apiResponse.message);
    -  }
    -
    -  @Override
    -  public int hashCode() {
    -    return ObjectUtils.hashCodeMulti(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(java.lang.Object o) {
    -    if (o == null) {
    -      return "null";
    -    }
    -    return o.toString().replace("\n", "\n    ");
    -  }
    -
    -}
    -
    
  • samples/client/petstore/java/jersey2-java6/src/main/java/io/swagger/client/model/ModelBoolean.java+0 57 removed
    @@ -1,57 +0,0 @@
    -/*
    - * Swagger 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: \" \\
    - *
    - * OpenAPI spec version: 1.0.0
    - * Contact: apiteam@swagger.io
    - *
    - * NOTE: This class is auto generated by the swagger code generator program.
    - * https://github.com/swagger-api/swagger-codegen.git
    - * Do not edit the class manually.
    - */
    -
    -
    -package io.swagger.client.model;
    -
    -import org.apache.commons.lang3.ObjectUtils;
    -import io.swagger.annotations.ApiModel;
    -
    -import com.fasterxml.jackson.annotation.JsonCreator;
    -import com.fasterxml.jackson.annotation.JsonValue;
    -
    -/**
    - * True or False indicator
    - */
    -public enum ModelBoolean {
    -  
    -  TRUE(true),
    -  
    -  FALSE(false);
    -
    -  private Boolean value;
    -
    -  ModelBoolean(Boolean value) {
    -    this.value = value;
    -  }
    -
    -  @JsonValue
    -  public Boolean getValue() {
    -    return value;
    -  }
    -
    -  @Override
    -  public String toString() {
    -    return String.valueOf(value);
    -  }
    -
    -  @JsonCreator
    -  public static ModelBoolean fromValue(String text) {
    -    for (ModelBoolean b : ModelBoolean.values()) {
    -      if (String.valueOf(b.value).equals(text)) {
    -        return b;
    -      }
    -    }
    -    return null;
    -  }
    -}
    -
    
  • samples/client/petstore/java/jersey2-java6/src/main/java/io/swagger/client/model/ModelList.java+0 90 removed
    @@ -1,90 +0,0 @@
    -/*
    - * Swagger 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: \" \\
    - *
    - * OpenAPI spec version: 1.0.0
    - * Contact: apiteam@swagger.io
    - *
    - * NOTE: This class is auto generated by the swagger code generator program.
    - * https://github.com/swagger-api/swagger-codegen.git
    - * Do not edit the class manually.
    - */
    -
    -
    -package io.swagger.client.model;
    -
    -import org.apache.commons.lang3.ObjectUtils;
    -import com.fasterxml.jackson.annotation.JsonProperty;
    -import com.fasterxml.jackson.annotation.JsonCreator;
    -import com.fasterxml.jackson.annotation.JsonValue;
    -import io.swagger.annotations.ApiModel;
    -import io.swagger.annotations.ApiModelProperty;
    -
    -/**
    - * ModelList
    - */
    -
    -public class ModelList {
    -  @JsonProperty("123-list")
    -  private String _123List = null;
    -
    -  public ModelList _123List(String _123List) {
    -    this._123List = _123List;
    -    return this;
    -  }
    -
    -   /**
    -   * Get _123List
    -   * @return _123List
    -  **/
    -  @ApiModelProperty(value = "")
    -  public String get123List() {
    -    return _123List;
    -  }
    -
    -  public void set123List(String _123List) {
    -    this._123List = _123List;
    -  }
    -
    -
    -  @Override
    -  public boolean equals(java.lang.Object o) {
    -  if (this == o) {
    -    return true;
    -  }
    -  if (o == null || getClass() != o.getClass()) {
    -    return false;
    -  }
    -    ModelList _list = (ModelList) o;
    -    return ObjectUtils.equals(this._123List, _list._123List);
    -  }
    -
    -  @Override
    -  public int hashCode() {
    -    return ObjectUtils.hashCodeMulti(_123List);
    -  }
    -
    -
    -  @Override
    -  public String toString() {
    -    StringBuilder sb = new StringBuilder();
    -    sb.append("class ModelList {\n");
    -    
    -    sb.append("    _123List: ").append(toIndentedString(_123List)).append("\n");
    -    sb.append("}");
    -    return sb.toString();
    -  }
    -
    -  /**
    -   * Convert the given object to string with each line indented by 4 spaces
    -   * (except the first line).
    -   */
    -  private String toIndentedString(java.lang.Object o) {
    -    if (o == null) {
    -      return "null";
    -    }
    -    return o.toString().replace("\n", "\n    ");
    -  }
    -
    -}
    -
    
  • samples/client/petstore/java/jersey2-java6/src/main/java/io/swagger/client/model/ModelReturn.java+0 91 removed
    @@ -1,91 +0,0 @@
    -/*
    - * Swagger 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: \" \\
    - *
    - * OpenAPI spec version: 1.0.0
    - * Contact: apiteam@swagger.io
    - *
    - * NOTE: This class is auto generated by the swagger code generator program.
    - * https://github.com/swagger-api/swagger-codegen.git
    - * Do not edit the class manually.
    - */
    -
    -
    -package io.swagger.client.model;
    -
    -import org.apache.commons.lang3.ObjectUtils;
    -import com.fasterxml.jackson.annotation.JsonProperty;
    -import com.fasterxml.jackson.annotation.JsonCreator;
    -import com.fasterxml.jackson.annotation.JsonValue;
    -import io.swagger.annotations.ApiModel;
    -import io.swagger.annotations.ApiModelProperty;
    -
    -/**
    - * Model for testing reserved words
    - */
    -@ApiModel(description = "Model for testing reserved words")
    -
    -public class ModelReturn {
    -  @JsonProperty("return")
    -  private Integer _return = null;
    -
    -  public ModelReturn _return(Integer _return) {
    -    this._return = _return;
    -    return this;
    -  }
    -
    -   /**
    -   * Get _return
    -   * @return _return
    -  **/
    -  @ApiModelProperty(value = "")
    -  public Integer getReturn() {
    -    return _return;
    -  }
    -
    -  public void setReturn(Integer _return) {
    -    this._return = _return;
    -  }
    -
    -
    -  @Override
    -  public boolean equals(java.lang.Object o) {
    -  if (this == o) {
    -    return true;
    -  }
    -  if (o == null || getClass() != o.getClass()) {
    -    return false;
    -  }
    -    ModelReturn _return = (ModelReturn) o;
    -    return ObjectUtils.equals(this._return, _return._return);
    -  }
    -
    -  @Override
    -  public int hashCode() {
    -    return ObjectUtils.hashCodeMulti(_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(java.lang.Object o) {
    -    if (o == null) {
    -      return "null";
    -    }
    -    return o.toString().replace("\n", "\n    ");
    -  }
    -
    -}
    -
    
  • samples/client/petstore/java/jersey2-java6/src/main/java/io/swagger/client/model/Name.java+0 142 removed
    @@ -1,142 +0,0 @@
    -/*
    - * Swagger 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: \" \\
    - *
    - * OpenAPI spec version: 1.0.0
    - * Contact: apiteam@swagger.io
    - *
    - * NOTE: This class is auto generated by the swagger code generator program.
    - * https://github.com/swagger-api/swagger-codegen.git
    - * Do not edit the class manually.
    - */
    -
    -
    -package io.swagger.client.model;
    -
    -import org.apache.commons.lang3.ObjectUtils;
    -import com.fasterxml.jackson.annotation.JsonProperty;
    -import com.fasterxml.jackson.annotation.JsonCreator;
    -import com.fasterxml.jackson.annotation.JsonValue;
    -import io.swagger.annotations.ApiModel;
    -import io.swagger.annotations.ApiModelProperty;
    -
    -/**
    - * Model for testing model name same as property name
    - */
    -@ApiModel(description = "Model for testing model name same as property name")
    -
    -public class Name {
    -  @JsonProperty("name")
    -  private Integer name = null;
    -
    -  @JsonProperty("snake_case")
    -  private Integer snakeCase = null;
    -
    -  @JsonProperty("property")
    -  private String property = null;
    -
    -  @JsonProperty("123Number")
    -  private Integer _123Number = null;
    -
    -  public Name name(Integer name) {
    -    this.name = name;
    -    return this;
    -  }
    -
    -   /**
    -   * Get name
    -   * @return name
    -  **/
    -  @ApiModelProperty(required = true, value = "")
    -  public Integer getName() {
    -    return name;
    -  }
    -
    -  public void setName(Integer name) {
    -    this.name = name;
    -  }
    -
    -   /**
    -   * Get snakeCase
    -   * @return snakeCase
    -  **/
    -  @ApiModelProperty(value = "")
    -  public Integer getSnakeCase() {
    -    return snakeCase;
    -  }
    -
    -  public Name property(String property) {
    -    this.property = property;
    -    return this;
    -  }
    -
    -   /**
    -   * Get property
    -   * @return property
    -  **/
    -  @ApiModelProperty(value = "")
    -  public String getProperty() {
    -    return property;
    -  }
    -
    -  public void setProperty(String property) {
    -    this.property = property;
    -  }
    -
    -   /**
    -   * Get _123Number
    -   * @return _123Number
    -  **/
    -  @ApiModelProperty(value = "")
    -  public Integer get123Number() {
    -    return _123Number;
    -  }
    -
    -
    -  @Override
    -  public boolean equals(java.lang.Object o) {
    -  if (this == o) {
    -    return true;
    -  }
    -  if (o == null || getClass() != o.getClass()) {
    -    return false;
    -  }
    -    Name name = (Name) o;
    -    return ObjectUtils.equals(this.name, name.name) &&
    -    ObjectUtils.equals(this.snakeCase, name.snakeCase) &&
    -    ObjectUtils.equals(this.property, name.property) &&
    -    ObjectUtils.equals(this._123Number, name._123Number);
    -  }
    -
    -  @Override
    -  public int hashCode() {
    -    return ObjectUtils.hashCodeMulti(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(java.lang.Object o) {
    -    if (o == null) {
    -      return "null";
    -    }
    -    return o.toString().replace("\n", "\n    ");
    -  }
    -
    -}
    -
    
  • samples/client/petstore/java/jersey2-java6/src/main/java/io/swagger/client/model/NumberOnly.java+0 91 removed
    @@ -1,91 +0,0 @@
    -/*
    - * Swagger 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: \" \\
    - *
    - * OpenAPI spec version: 1.0.0
    - * Contact: apiteam@swagger.io
    - *
    - * NOTE: This class is auto generated by the swagger code generator program.
    - * https://github.com/swagger-api/swagger-codegen.git
    - * Do not edit the class manually.
    - */
    -
    -
    -package io.swagger.client.model;
    -
    -import org.apache.commons.lang3.ObjectUtils;
    -import com.fasterxml.jackson.annotation.JsonProperty;
    -import com.fasterxml.jackson.annotation.JsonCreator;
    -import com.fasterxml.jackson.annotation.JsonValue;
    -import io.swagger.annotations.ApiModel;
    -import io.swagger.annotations.ApiModelProperty;
    -import java.math.BigDecimal;
    -
    -/**
    - * NumberOnly
    - */
    -
    -public class NumberOnly {
    -  @JsonProperty("JustNumber")
    -  private BigDecimal justNumber = null;
    -
    -  public NumberOnly justNumber(BigDecimal justNumber) {
    -    this.justNumber = justNumber;
    -    return this;
    -  }
    -
    -   /**
    -   * Get justNumber
    -   * @return justNumber
    -  **/
    -  @ApiModelProperty(value = "")
    -  public BigDecimal getJustNumber() {
    -    return justNumber;
    -  }
    -
    -  public void setJustNumber(BigDecimal justNumber) {
    -    this.justNumber = justNumber;
    -  }
    -
    -
    -  @Override
    -  public boolean equals(java.lang.Object o) {
    -  if (this == o) {
    -    return true;
    -  }
    -  if (o == null || getClass() != o.getClass()) {
    -    return false;
    -  }
    -    NumberOnly numberOnly = (NumberOnly) o;
    -    return ObjectUtils.equals(this.justNumber, numberOnly.justNumber);
    -  }
    -
    -  @Override
    -  public int hashCode() {
    -    return ObjectUtils.hashCodeMulti(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(java.lang.Object o) {
    -    if (o == null) {
    -      return "null";
    -    }
    -    return o.toString().replace("\n", "\n    ");
    -  }
    -
    -}
    -
    
  • samples/client/petstore/java/jersey2-java6/src/main/java/io/swagger/client/model/Numbers.java+0 62 removed
    @@ -1,62 +0,0 @@
    -/*
    - * Swagger 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: \" \\
    - *
    - * OpenAPI spec version: 1.0.0
    - * Contact: apiteam@swagger.io
    - *
    - * NOTE: This class is auto generated by the swagger code generator program.
    - * https://github.com/swagger-api/swagger-codegen.git
    - * Do not edit the class manually.
    - */
    -
    -
    -package io.swagger.client.model;
    -
    -import org.apache.commons.lang3.ObjectUtils;
    -import io.swagger.annotations.ApiModel;
    -import java.math.BigDecimal;
    -
    -import com.fasterxml.jackson.annotation.JsonCreator;
    -import com.fasterxml.jackson.annotation.JsonValue;
    -
    -/**
    - * some number
    - */
    -public enum Numbers {
    -  
    -  NUMBER_7(new BigDecimal(7)),
    -  
    -  NUMBER_8(new BigDecimal(8)),
    -  
    -  NUMBER_9(new BigDecimal(9)),
    -  
    -  NUMBER_10(new BigDecimal(10));
    -
    -  private BigDecimal value;
    -
    -  Numbers(BigDecimal value) {
    -    this.value = value;
    -  }
    -
    -  @JsonValue
    -  public BigDecimal getValue() {
    -    return value;
    -  }
    -
    -  @Override
    -  public String toString() {
    -    return String.valueOf(value);
    -  }
    -
    -  @JsonCreator
    -  public static Numbers fromValue(String text) {
    -    for (Numbers b : Numbers.values()) {
    -      if (String.valueOf(b.value).equals(text)) {
    -        return b;
    -      }
    -    }
    -    return null;
    -  }
    -}
    -
    
  • samples/client/petstore/java/jersey2-java6/src/main/java/io/swagger/client/model/Order.java+0 243 removed
    @@ -1,243 +0,0 @@
    -/*
    - * Swagger 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: \" \\
    - *
    - * OpenAPI spec version: 1.0.0
    - * Contact: apiteam@swagger.io
    - *
    - * NOTE: This class is auto generated by the swagger code generator program.
    - * https://github.com/swagger-api/swagger-codegen.git
    - * Do not edit the class manually.
    - */
    -
    -
    -package io.swagger.client.model;
    -
    -import org.apache.commons.lang3.ObjectUtils;
    -import com.fasterxml.jackson.annotation.JsonProperty;
    -import com.fasterxml.jackson.annotation.JsonCreator;
    -import com.fasterxml.jackson.annotation.JsonValue;
    -import io.swagger.annotations.ApiModel;
    -import io.swagger.annotations.ApiModelProperty;
    -import org.threeten.bp.OffsetDateTime;
    -
    -/**
    - * Order
    - */
    -
    -public class Order {
    -  @JsonProperty("id")
    -  private Long id = null;
    -
    -  @JsonProperty("petId")
    -  private Long petId = null;
    -
    -  @JsonProperty("quantity")
    -  private Integer quantity = null;
    -
    -  @JsonProperty("shipDate")
    -  private OffsetDateTime shipDate = null;
    -
    -  /**
    -   * 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 text) {
    -      for (StatusEnum b : StatusEnum.values()) {
    -        if (String.valueOf(b.value).equals(text)) {
    -          return b;
    -        }
    -      }
    -      return null;
    -    }
    -  }
    -
    -  @JsonProperty("status")
    -  private StatusEnum status = null;
    -
    -  @JsonProperty("complete")
    -  private Boolean complete = false;
    -
    -  public Order id(Long id) {
    -    this.id = id;
    -    return this;
    -  }
    -
    -   /**
    -   * Get id
    -   * @return id
    -  **/
    -  @ApiModelProperty(value = "")
    -  public Long getId() {
    -    return id;
    -  }
    -
    -  public void setId(Long id) {
    -    this.id = id;
    -  }
    -
    -  public Order petId(Long petId) {
    -    this.petId = petId;
    -    return this;
    -  }
    -
    -   /**
    -   * Get petId
    -   * @return petId
    -  **/
    -  @ApiModelProperty(value = "")
    -  public Long getPetId() {
    -    return petId;
    -  }
    -
    -  public void setPetId(Long petId) {
    -    this.petId = petId;
    -  }
    -
    -  public Order quantity(Integer quantity) {
    -    this.quantity = quantity;
    -    return this;
    -  }
    -
    -   /**
    -   * Get quantity
    -   * @return quantity
    -  **/
    -  @ApiModelProperty(value = "")
    -  public Integer getQuantity() {
    -    return quantity;
    -  }
    -
    -  public void setQuantity(Integer quantity) {
    -    this.quantity = quantity;
    -  }
    -
    -  public Order shipDate(OffsetDateTime shipDate) {
    -    this.shipDate = shipDate;
    -    return this;
    -  }
    -
    -   /**
    -   * Get shipDate
    -   * @return shipDate
    -  **/
    -  @ApiModelProperty(value = "")
    -  public OffsetDateTime getShipDate() {
    -    return shipDate;
    -  }
    -
    -  public void setShipDate(OffsetDateTime shipDate) {
    -    this.shipDate = shipDate;
    -  }
    -
    -  public Order status(StatusEnum status) {
    -    this.status = status;
    -    return this;
    -  }
    -
    -   /**
    -   * Order Status
    -   * @return status
    -  **/
    -  @ApiModelProperty(value = "Order Status")
    -  public StatusEnum getStatus() {
    -    return status;
    -  }
    -
    -  public void setStatus(StatusEnum status) {
    -    this.status = status;
    -  }
    -
    -  public Order complete(Boolean complete) {
    -    this.complete = complete;
    -    return this;
    -  }
    -
    -   /**
    -   * Get complete
    -   * @return complete
    -  **/
    -  @ApiModelProperty(value = "")
    -  public Boolean isComplete() {
    -    return complete;
    -  }
    -
    -  public void setComplete(Boolean complete) {
    -    this.complete = complete;
    -  }
    -
    -
    -  @Override
    -  public boolean equals(java.lang.Object o) {
    -  if (this == o) {
    -    return true;
    -  }
    -  if (o == null || getClass() != o.getClass()) {
    -    return false;
    -  }
    -    Order order = (Order) o;
    -    return ObjectUtils.equals(this.id, order.id) &&
    -    ObjectUtils.equals(this.petId, order.petId) &&
    -    ObjectUtils.equals(this.quantity, order.quantity) &&
    -    ObjectUtils.equals(this.shipDate, order.shipDate) &&
    -    ObjectUtils.equals(this.status, order.status) &&
    -    ObjectUtils.equals(this.complete, order.complete);
    -  }
    -
    -  @Override
    -  public int hashCode() {
    -    return ObjectUtils.hashCodeMulti(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(java.lang.Object o) {
    -    if (o == null) {
    -      return "null";
    -    }
    -    return o.toString().replace("\n", "\n    ");
    -  }
    -
    -}
    -
    
  • samples/client/petstore/java/jersey2-java6/src/main/java/io/swagger/client/model/OuterComposite.java+0 137 removed
    @@ -1,137 +0,0 @@
    -/*
    - * Swagger 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: \" \\
    - *
    - * OpenAPI spec version: 1.0.0
    - * Contact: apiteam@swagger.io
    - *
    - * NOTE: This class is auto generated by the swagger code generator program.
    - * https://github.com/swagger-api/swagger-codegen.git
    - * Do not edit the class manually.
    - */
    -
    -
    -package io.swagger.client.model;
    -
    -import org.apache.commons.lang3.ObjectUtils;
    -import com.fasterxml.jackson.annotation.JsonProperty;
    -import com.fasterxml.jackson.annotation.JsonCreator;
    -import com.fasterxml.jackson.annotation.JsonValue;
    -import io.swagger.annotations.ApiModel;
    -import io.swagger.annotations.ApiModelProperty;
    -import java.math.BigDecimal;
    -
    -/**
    - * OuterComposite
    - */
    -
    -public class OuterComposite {
    -  @JsonProperty("my_number")
    -  private BigDecimal myNumber = null;
    -
    -  @JsonProperty("my_string")
    -  private String myString = null;
    -
    -  @JsonProperty("my_boolean")
    -  private Boolean myBoolean = null;
    -
    -  public OuterComposite myNumber(BigDecimal myNumber) {
    -    this.myNumber = myNumber;
    -    return this;
    -  }
    -
    -   /**
    -   * Get myNumber
    -   * @return myNumber
    -  **/
    -  @ApiModelProperty(value = "")
    -  public BigDecimal getMyNumber() {
    -    return myNumber;
    -  }
    -
    -  public void setMyNumber(BigDecimal myNumber) {
    -    this.myNumber = myNumber;
    -  }
    -
    -  public OuterComposite myString(String myString) {
    -    this.myString = myString;
    -    return this;
    -  }
    -
    -   /**
    -   * Get myString
    -   * @return myString
    -  **/
    -  @ApiModelProperty(value = "")
    -  public String getMyString() {
    -    return myString;
    -  }
    -
    -  public void setMyString(String myString) {
    -    this.myString = myString;
    -  }
    -
    -  public OuterComposite myBoolean(Boolean myBoolean) {
    -    this.myBoolean = myBoolean;
    -    return this;
    -  }
    -
    -   /**
    -   * Get myBoolean
    -   * @return myBoolean
    -  **/
    -  @ApiModelProperty(value = "")
    -  public Boolean getMyBoolean() {
    -    return myBoolean;
    -  }
    -
    -  public void setMyBoolean(Boolean myBoolean) {
    -    this.myBoolean = myBoolean;
    -  }
    -
    -
    -  @Override
    -  public boolean equals(java.lang.Object o) {
    -  if (this == o) {
    -    return true;
    -  }
    -  if (o == null || getClass() != o.getClass()) {
    -    return false;
    -  }
    -    OuterComposite outerComposite = (OuterComposite) o;
    -    return ObjectUtils.equals(this.myNumber, outerComposite.myNumber) &&
    -    ObjectUtils.equals(this.myString, outerComposite.myString) &&
    -    ObjectUtils.equals(this.myBoolean, outerComposite.myBoolean);
    -  }
    -
    -  @Override
    -  public int hashCode() {
    -    return ObjectUtils.hashCodeMulti(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(java.lang.Object o) {
    -    if (o == null) {
    -      return "null";
    -    }
    -    return o.toString().replace("\n", "\n    ");
    -  }
    -
    -}
    -
    
  • samples/client/petstore/java/jersey2-java6/src/main/java/io/swagger/client/model/OuterEnum.java+0 58 removed
    @@ -1,58 +0,0 @@
    -/*
    - * Swagger 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: \" \\
    - *
    - * OpenAPI spec version: 1.0.0
    - * Contact: apiteam@swagger.io
    - *
    - * NOTE: This class is auto generated by the swagger code generator program.
    - * https://github.com/swagger-api/swagger-codegen.git
    - * Do not edit the class manually.
    - */
    -
    -
    -package io.swagger.client.model;
    -
    -import org.apache.commons.lang3.ObjectUtils;
    -
    -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 text) {
    -    for (OuterEnum b : OuterEnum.values()) {
    -      if (String.valueOf(b.value).equals(text)) {
    -        return b;
    -      }
    -    }
    -    return null;
    -  }
    -}
    -
    
  • samples/client/petstore/java/jersey2-java6/src/main/java/io/swagger/client/model/Pet.java+0 259 removed
    @@ -1,259 +0,0 @@
    -/*
    - * Swagger 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: \" \\
    - *
    - * OpenAPI spec version: 1.0.0
    - * Contact: apiteam@swagger.io
    - *
    - * NOTE: This class is auto generated by the swagger code generator program.
    - * https://github.com/swagger-api/swagger-codegen.git
    - * Do not edit the class manually.
    - */
    -
    -
    -package io.swagger.client.model;
    -
    -import org.apache.commons.lang3.ObjectUtils;
    -import com.fasterxml.jackson.annotation.JsonProperty;
    -import com.fasterxml.jackson.annotation.JsonCreator;
    -import com.fasterxml.jackson.annotation.JsonValue;
    -import io.swagger.annotations.ApiModel;
    -import io.swagger.annotations.ApiModelProperty;
    -import io.swagger.client.model.Category;
    -import io.swagger.client.model.Tag;
    -import java.util.ArrayList;
    -import java.util.List;
    -
    -/**
    - * Pet
    - */
    -
    -public class Pet {
    -  @JsonProperty("id")
    -  private Long id = null;
    -
    -  @JsonProperty("category")
    -  private Category category = null;
    -
    -  @JsonProperty("name")
    -  private String name = null;
    -
    -  @JsonProperty("photoUrls")
    -  private List<String> photoUrls = new ArrayList<String>();
    -
    -  @JsonProperty("tags")
    -  private List<Tag> 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 text) {
    -      for (StatusEnum b : StatusEnum.values()) {
    -        if (String.valueOf(b.value).equals(text)) {
    -          return b;
    -        }
    -      }
    -      return null;
    -    }
    -  }
    -
    -  @JsonProperty("status")
    -  private StatusEnum status = null;
    -
    -  public Pet id(Long id) {
    -    this.id = id;
    -    return this;
    -  }
    -
    -   /**
    -   * Get id
    -   * @return id
    -  **/
    -  @ApiModelProperty(value = "")
    -  public Long getId() {
    -    return id;
    -  }
    -
    -  public void setId(Long id) {
    -    this.id = id;
    -  }
    -
    -  public Pet category(Category category) {
    -    this.category = category;
    -    return this;
    -  }
    -
    -   /**
    -   * Get category
    -   * @return category
    -  **/
    -  @ApiModelProperty(value = "")
    -  public Category getCategory() {
    -    return category;
    -  }
    -
    -  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 = "")
    -  public String getName() {
    -    return name;
    -  }
    -
    -  public void setName(String name) {
    -    this.name = name;
    -  }
    -
    -  public Pet photoUrls(List<String> 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 = "")
    -  public List<String> getPhotoUrls() {
    -    return photoUrls;
    -  }
    -
    -  public void setPhotoUrls(List<String> photoUrls) {
    -    this.photoUrls = photoUrls;
    -  }
    -
    -  public Pet tags(List<Tag> tags) {
    -    this.tags = tags;
    -    return this;
    -  }
    -
    -  public Pet addTagsItem(Tag tagsItem) {
    -    if (this.tags == null) {
    -      this.tags = new ArrayList<Tag>();
    -    }
    -    this.tags.add(tagsItem);
    -    return this;
    -  }
    -
    -   /**
    -   * Get tags
    -   * @return tags
    -  **/
    -  @ApiModelProperty(value = "")
    -  public List<Tag> getTags() {
    -    return tags;
    -  }
    -
    -  public void setTags(List<Tag> tags) {
    -    this.tags = tags;
    -  }
    -
    -  public Pet status(StatusEnum status) {
    -    this.status = status;
    -    return this;
    -  }
    -
    -   /**
    -   * pet status in the store
    -   * @return status
    -  **/
    -  @ApiModelProperty(value = "pet status in the store")
    -  public StatusEnum getStatus() {
    -    return status;
    -  }
    -
    -  public void setStatus(StatusEnum status) {
    -    this.status = status;
    -  }
    -
    -
    -  @Override
    -  public boolean equals(java.lang.Object o) {
    -  if (this == o) {
    -    return true;
    -  }
    -  if (o == null || getClass() != o.getClass()) {
    -    return false;
    -  }
    -    Pet pet = (Pet) o;
    -    return ObjectUtils.equals(this.id, pet.id) &&
    -    ObjectUtils.equals(this.category, pet.category) &&
    -    ObjectUtils.equals(this.name, pet.name) &&
    -    ObjectUtils.equals(this.photoUrls, pet.photoUrls) &&
    -    ObjectUtils.equals(this.tags, pet.tags) &&
    -    ObjectUtils.equals(this.status, pet.status);
    -  }
    -
    -  @Override
    -  public int hashCode() {
    -    return ObjectUtils.hashCodeMulti(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(java.lang.Object o) {
    -    if (o == null) {
    -      return "null";
    -    }
    -    return o.toString().replace("\n", "\n    ");
    -  }
    -
    -}
    -
    
  • samples/client/petstore/java/jersey2-java6/src/main/java/io/swagger/client/model/ReadOnlyFirst.java+0 104 removed
    @@ -1,104 +0,0 @@
    -/*
    - * Swagger 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: \" \\
    - *
    - * OpenAPI spec version: 1.0.0
    - * Contact: apiteam@swagger.io
    - *
    - * NOTE: This class is auto generated by the swagger code generator program.
    - * https://github.com/swagger-api/swagger-codegen.git
    - * Do not edit the class manually.
    - */
    -
    -
    -package io.swagger.client.model;
    -
    -import org.apache.commons.lang3.ObjectUtils;
    -import com.fasterxml.jackson.annotation.JsonProperty;
    -import com.fasterxml.jackson.annotation.JsonCreator;
    -import com.fasterxml.jackson.annotation.JsonValue;
    -import io.swagger.annotations.ApiModel;
    -import io.swagger.annotations.ApiModelProperty;
    -
    -/**
    - * ReadOnlyFirst
    - */
    -
    -public class ReadOnlyFirst {
    -  @JsonProperty("bar")
    -  private String bar = null;
    -
    -  @JsonProperty("baz")
    -  private String baz = null;
    -
    -   /**
    -   * Get bar
    -   * @return bar
    -  **/
    -  @ApiModelProperty(value = "")
    -  public String getBar() {
    -    return bar;
    -  }
    -
    -  public ReadOnlyFirst baz(String baz) {
    -    this.baz = baz;
    -    return this;
    -  }
    -
    -   /**
    -   * Get baz
    -   * @return baz
    -  **/
    -  @ApiModelProperty(value = "")
    -  public String getBaz() {
    -    return baz;
    -  }
    -
    -  public void setBaz(String baz) {
    -    this.baz = baz;
    -  }
    -
    -
    -  @Override
    -  public boolean equals(java.lang.Object o) {
    -  if (this == o) {
    -    return true;
    -  }
    -  if (o == null || getClass() != o.getClass()) {
    -    return false;
    -  }
    -    ReadOnlyFirst readOnlyFirst = (ReadOnlyFirst) o;
    -    return ObjectUtils.equals(this.bar, readOnlyFirst.bar) &&
    -    ObjectUtils.equals(this.baz, readOnlyFirst.baz);
    -  }
    -
    -  @Override
    -  public int hashCode() {
    -    return ObjectUtils.hashCodeMulti(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(java.lang.Object o) {
    -    if (o == null) {
    -      return "null";
    -    }
    -    return o.toString().replace("\n", "\n    ");
    -  }
    -
    -}
    -
    
  • samples/client/petstore/java/jersey2-java6/src/main/java/io/swagger/client/model/SpecialModelName.java+0 90 removed
    @@ -1,90 +0,0 @@
    -/*
    - * Swagger 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: \" \\
    - *
    - * OpenAPI spec version: 1.0.0
    - * Contact: apiteam@swagger.io
    - *
    - * NOTE: This class is auto generated by the swagger code generator program.
    - * https://github.com/swagger-api/swagger-codegen.git
    - * Do not edit the class manually.
    - */
    -
    -
    -package io.swagger.client.model;
    -
    -import org.apache.commons.lang3.ObjectUtils;
    -import com.fasterxml.jackson.annotation.JsonProperty;
    -import com.fasterxml.jackson.annotation.JsonCreator;
    -import com.fasterxml.jackson.annotation.JsonValue;
    -import io.swagger.annotations.ApiModel;
    -import io.swagger.annotations.ApiModelProperty;
    -
    -/**
    - * SpecialModelName
    - */
    -
    -public class SpecialModelName {
    -  @JsonProperty("$special[property.name]")
    -  private Long specialPropertyName = null;
    -
    -  public SpecialModelName specialPropertyName(Long specialPropertyName) {
    -    this.specialPropertyName = specialPropertyName;
    -    return this;
    -  }
    -
    -   /**
    -   * Get specialPropertyName
    -   * @return specialPropertyName
    -  **/
    -  @ApiModelProperty(value = "")
    -  public Long getSpecialPropertyName() {
    -    return specialPropertyName;
    -  }
    -
    -  public void setSpecialPropertyName(Long specialPropertyName) {
    -    this.specialPropertyName = specialPropertyName;
    -  }
    -
    -
    -  @Override
    -  public boolean equals(java.lang.Object o) {
    -  if (this == o) {
    -    return true;
    -  }
    -  if (o == null || getClass() != o.getClass()) {
    -    return false;
    -  }
    -    SpecialModelName specialModelName = (SpecialModelName) o;
    -    return ObjectUtils.equals(this.specialPropertyName, specialModelName.specialPropertyName);
    -  }
    -
    -  @Override
    -  public int hashCode() {
    -    return ObjectUtils.hashCodeMulti(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(java.lang.Object o) {
    -    if (o == null) {
    -      return "null";
    -    }
    -    return o.toString().replace("\n", "\n    ");
    -  }
    -
    -}
    -
    
  • samples/client/petstore/java/jersey2-java6/src/main/java/io/swagger/client/model/Tag.java+0 113 removed
    @@ -1,113 +0,0 @@
    -/*
    - * Swagger 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: \" \\
    - *
    - * OpenAPI spec version: 1.0.0
    - * Contact: apiteam@swagger.io
    - *
    - * NOTE: This class is auto generated by the swagger code generator program.
    - * https://github.com/swagger-api/swagger-codegen.git
    - * Do not edit the class manually.
    - */
    -
    -
    -package io.swagger.client.model;
    -
    -import org.apache.commons.lang3.ObjectUtils;
    -import com.fasterxml.jackson.annotation.JsonProperty;
    -import com.fasterxml.jackson.annotation.JsonCreator;
    -import com.fasterxml.jackson.annotation.JsonValue;
    -import io.swagger.annotations.ApiModel;
    -import io.swagger.annotations.ApiModelProperty;
    -
    -/**
    - * Tag
    - */
    -
    -public class Tag {
    -  @JsonProperty("id")
    -  private Long id = null;
    -
    -  @JsonProperty("name")
    -  private String name = null;
    -
    -  public Tag id(Long id) {
    -    this.id = id;
    -    return this;
    -  }
    -
    -   /**
    -   * Get id
    -   * @return id
    -  **/
    -  @ApiModelProperty(value = "")
    -  public Long getId() {
    -    return id;
    -  }
    -
    -  public void setId(Long id) {
    -    this.id = id;
    -  }
    -
    -  public Tag name(String name) {
    -    this.name = name;
    -    return this;
    -  }
    -
    -   /**
    -   * Get name
    -   * @return name
    -  **/
    -  @ApiModelProperty(value = "")
    -  public String getName() {
    -    return name;
    -  }
    -
    -  public void setName(String name) {
    -    this.name = name;
    -  }
    -
    -
    -  @Override
    -  public boolean equals(java.lang.Object o) {
    -  if (this == o) {
    -    return true;
    -  }
    -  if (o == null || getClass() != o.getClass()) {
    -    return false;
    -  }
    -    Tag tag = (Tag) o;
    -    return ObjectUtils.equals(this.id, tag.id) &&
    -    ObjectUtils.equals(this.name, tag.name);
    -  }
    -
    -  @Override
    -  public int hashCode() {
    -    return ObjectUtils.hashCodeMulti(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(java.lang.Object o) {
    -    if (o == null) {
    -      return "null";
    -    }
    -    return o.toString().replace("\n", "\n    ");
    -  }
    -
    -}
    -
    
  • samples/client/petstore/java/jersey2-java6/src/main/java/io/swagger/client/model/User.java+0 251 removed
    @@ -1,251 +0,0 @@
    -/*
    - * Swagger 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: \" \\
    - *
    - * OpenAPI spec version: 1.0.0
    - * Contact: apiteam@swagger.io
    - *
    - * NOTE: This class is auto generated by the swagger code generator program.
    - * https://github.com/swagger-api/swagger-codegen.git
    - * Do not edit the class manually.
    - */
    -
    -
    -package io.swagger.client.model;
    -
    -import org.apache.commons.lang3.ObjectUtils;
    -import com.fasterxml.jackson.annotation.JsonProperty;
    -import com.fasterxml.jackson.annotation.JsonCreator;
    -import com.fasterxml.jackson.annotation.JsonValue;
    -import io.swagger.annotations.ApiModel;
    -import io.swagger.annotations.ApiModelProperty;
    -
    -/**
    - * User
    - */
    -
    -public class User {
    -  @JsonProperty("id")
    -  private Long id = null;
    -
    -  @JsonProperty("username")
    -  private String username = null;
    -
    -  @JsonProperty("firstName")
    -  private String firstName = null;
    -
    -  @JsonProperty("lastName")
    -  private String lastName = null;
    -
    -  @JsonProperty("email")
    -  private String email = null;
    -
    -  @JsonProperty("password")
    -  private String password = null;
    -
    -  @JsonProperty("phone")
    -  private String phone = null;
    -
    -  @JsonProperty("userStatus")
    -  private Integer userStatus = null;
    -
    -  public User id(Long id) {
    -    this.id = id;
    -    return this;
    -  }
    -
    -   /**
    -   * Get id
    -   * @return id
    -  **/
    -  @ApiModelProperty(value = "")
    -  public Long getId() {
    -    return id;
    -  }
    -
    -  public void setId(Long id) {
    -    this.id = id;
    -  }
    -
    -  public User username(String username) {
    -    this.username = username;
    -    return this;
    -  }
    -
    -   /**
    -   * Get username
    -   * @return username
    -  **/
    -  @ApiModelProperty(value = "")
    -  public String getUsername() {
    -    return username;
    -  }
    -
    -  public void setUsername(String username) {
    -    this.username = username;
    -  }
    -
    -  public User firstName(String firstName) {
    -    this.firstName = firstName;
    -    return this;
    -  }
    -
    -   /**
    -   * Get firstName
    -   * @return firstName
    -  **/
    -  @ApiModelProperty(value = "")
    -  public String getFirstName() {
    -    return firstName;
    -  }
    -
    -  public void setFirstName(String firstName) {
    -    this.firstName = firstName;
    -  }
    -
    -  public User lastName(String lastName) {
    -    this.lastName = lastName;
    -    return this;
    -  }
    -
    -   /**
    -   * Get lastName
    -   * @return lastName
    -  **/
    -  @ApiModelProperty(value = "")
    -  public String getLastName() {
    -    return lastName;
    -  }
    -
    -  public void setLastName(String lastName) {
    -    this.lastName = lastName;
    -  }
    -
    -  public User email(String email) {
    -    this.email = email;
    -    return this;
    -  }
    -
    -   /**
    -   * Get email
    -   * @return email
    -  **/
    -  @ApiModelProperty(value = "")
    -  public String getEmail() {
    -    return email;
    -  }
    -
    -  public void setEmail(String email) {
    -    this.email = email;
    -  }
    -
    -  public User password(String password) {
    -    this.password = password;
    -    return this;
    -  }
    -
    -   /**
    -   * Get password
    -   * @return password
    -  **/
    -  @ApiModelProperty(value = "")
    -  public String getPassword() {
    -    return password;
    -  }
    -
    -  public void setPassword(String password) {
    -    this.password = password;
    -  }
    -
    -  public User phone(String phone) {
    -    this.phone = phone;
    -    return this;
    -  }
    -
    -   /**
    -   * Get phone
    -   * @return phone
    -  **/
    -  @ApiModelProperty(value = "")
    -  public String getPhone() {
    -    return phone;
    -  }
    -
    -  public void setPhone(String phone) {
    -    this.phone = phone;
    -  }
    -
    -  public User userStatus(Integer userStatus) {
    -    this.userStatus = userStatus;
    -    return this;
    -  }
    -
    -   /**
    -   * User Status
    -   * @return userStatus
    -  **/
    -  @ApiModelProperty(value = "User Status")
    -  public Integer getUserStatus() {
    -    return userStatus;
    -  }
    -
    -  public void setUserStatus(Integer userStatus) {
    -    this.userStatus = userStatus;
    -  }
    -
    -
    -  @Override
    -  public boolean equals(java.lang.Object o) {
    -  if (this == o) {
    -    return true;
    -  }
    -  if (o == null || getClass() != o.getClass()) {
    -    return false;
    -  }
    -    User user = (User) o;
    -    return ObjectUtils.equals(this.id, user.id) &&
    -    ObjectUtils.equals(this.username, user.username) &&
    -    ObjectUtils.equals(this.firstName, user.firstName) &&
    -    ObjectUtils.equals(this.lastName, user.lastName) &&
    -    ObjectUtils.equals(this.email, user.email) &&
    -    ObjectUtils.equals(this.password, user.password) &&
    -    ObjectUtils.equals(this.phone, user.phone) &&
    -    ObjectUtils.equals(this.userStatus, user.userStatus);
    -  }
    -
    -  @Override
    -  public int hashCode() {
    -    return ObjectUtils.hashCodeMulti(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(java.lang.Object o) {
    -    if (o == null) {
    -      return "null";
    -    }
    -    return o.toString().replace("\n", "\n    ");
    -  }
    -
    -}
    -
    
  • samples/client/petstore/java/jersey2-java6/src/main/java/io/swagger/client/Pair.java+0 52 removed
    @@ -1,52 +0,0 @@
    -/*
    - * Swagger 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: \" \\
    - *
    - * OpenAPI spec version: 1.0.0
    - * Contact: apiteam@swagger.io
    - *
    - * NOTE: This class is auto generated by the swagger code generator program.
    - * https://github.com/swagger-api/swagger-codegen.git
    - * Do not edit the class manually.
    - */
    -
    -
    -package io.swagger.client;
    -
    -
    -public class Pair {
    -    private String name = "";
    -    private String value = "";
    -
    -    public Pair (String name, String value) {
    -        setName(name);
    -        setValue(value);
    -    }
    -
    -    private void setName(String name) {
    -        if (!isValidString(name)) return;
    -
    -        this.name = name;
    -    }
    -
    -    private void setValue(String value) {
    -        if (!isValidString(value)) return;
    -
    -        this.value = value;
    -    }
    -
    -    public String getName() {
    -        return this.name;
    -    }
    -
    -    public String getValue() {
    -        return this.value;
    -    }
    -
    -    private boolean isValidString(String arg) {
    -        if (arg == null) return false;
    -        if (arg.trim().isEmpty()) return false;
    -
    -        return true;
    -    }
    -}
    
  • samples/client/petstore/java/jersey2-java6/src/main/java/io/swagger/client/RFC3339DateFormat.java+0 32 removed
    @@ -1,32 +0,0 @@
    -/*
    - * Swagger 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: \" \\
    - *
    - * OpenAPI spec version: 1.0.0
    - * Contact: apiteam@swagger.io
    - *
    - * NOTE: This class is auto generated by the swagger code generator program.
    - * https://github.com/swagger-api/swagger-codegen.git
    - * Do not edit the class manually.
    - */
    -
    -package io.swagger.client;
    -
    -import com.fasterxml.jackson.databind.util.ISO8601DateFormat;
    -import com.fasterxml.jackson.databind.util.ISO8601Utils;
    -
    -import java.text.FieldPosition;
    -import java.util.Date;
    -
    -
    -public class RFC3339DateFormat extends ISO8601DateFormat {
    -
    -  // Same as ISO8601DateFormat but serializing milliseconds.
    -  @Override
    -  public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition) {
    -    String value = ISO8601Utils.format(date, true);
    -    toAppendTo.append(value);
    -    return toAppendTo;
    -  }
    -
    -}
    \ No newline at end of file
    
  • samples/client/petstore/java/jersey2-java6/src/main/java/io/swagger/client/StringUtil.java+0 55 removed
    @@ -1,55 +0,0 @@
    -/*
    - * Swagger 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: \" \\
    - *
    - * OpenAPI spec version: 1.0.0
    - * Contact: apiteam@swagger.io
    - *
    - * NOTE: This class is auto generated by the swagger code generator program.
    - * https://github.com/swagger-api/swagger-codegen.git
    - * Do not edit the class manually.
    - */
    -
    -
    -package io.swagger.client;
    -
    -
    -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.
    -   * <p>
    -   * Note: This might be replaced by utility method from commons-lang or guava someday
    -   * if one of those libraries is added as dependency.
    -   * </p>
    -   *
    -   * @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();
    -  }
    -}
    
  • samples/client/petstore/java/jersey2-java6/src/test/java/io/swagger/client/api/AnotherFakeApiTest.java+0 51 removed
    @@ -1,51 +0,0 @@
    -/*
    - * Swagger 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: \" \\
    - *
    - * OpenAPI spec version: 1.0.0
    - * Contact: apiteam@swagger.io
    - *
    - * NOTE: This class is auto generated by the swagger code generator program.
    - * https://github.com/swagger-api/swagger-codegen.git
    - * Do not edit the class manually.
    - */
    -
    -
    -package io.swagger.client.api;
    -
    -import io.swagger.client.ApiException;
    -import io.swagger.client.model.Client;
    -import org.junit.Test;
    -import org.junit.Ignore;
    -
    -import java.util.ArrayList;
    -import java.util.HashMap;
    -import java.util.List;
    -import java.util.Map;
    -
    -/**
    - * API tests for AnotherFakeApi
    - */
    -@Ignore
    -public class AnotherFakeApiTest {
    -
    -    private final AnotherFakeApi api = new AnotherFakeApi();
    -
    -    
    -    /**
    -     * To test special tags
    -     *
    -     * To test special tags
    -     *
    -     * @throws ApiException
    -     *          if the Api call fails
    -     */
    -    @Test
    -    public void testSpecialTagsTest() throws ApiException {
    -        Client body = null;
    -        Client response = api.testSpecialTags(body);
    -
    -        // TODO: test validations
    -    }
    -    
    -}
    
  • samples/client/petstore/java/jersey2-java6/src/test/java/io/swagger/client/api/FakeApiTest.java+0 204 removed
    @@ -1,204 +0,0 @@
    -/*
    - * Swagger 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: \" \\
    - *
    - * OpenAPI spec version: 1.0.0
    - * Contact: apiteam@swagger.io
    - *
    - * NOTE: This class is auto generated by the swagger code generator program.
    - * https://github.com/swagger-api/swagger-codegen.git
    - * Do not edit the class manually.
    - */
    -
    -
    -package io.swagger.client.api;
    -
    -import io.swagger.client.ApiException;
    -import java.math.BigDecimal;
    -import io.swagger.client.model.Client;
    -import org.threeten.bp.LocalDate;
    -import org.threeten.bp.OffsetDateTime;
    -import io.swagger.client.model.OuterComposite;
    -import org.junit.Test;
    -import org.junit.Ignore;
    -
    -import java.util.ArrayList;
    -import java.util.HashMap;
    -import java.util.List;
    -import java.util.Map;
    -
    -/**
    - * API tests for FakeApi
    - */
    -@Ignore
    -public class FakeApiTest {
    -
    -    private final FakeApi api = new FakeApi();
    -
    -    
    -    /**
    -     * 
    -     *
    -     * Test serialization of outer boolean types
    -     *
    -     * @throws ApiException
    -     *          if the Api call fails
    -     */
    -    @Test
    -    public void fakeOuterBooleanSerializeTest() throws ApiException {
    -        Boolean body = null;
    -        Boolean response = api.fakeOuterBooleanSerialize(body);
    -
    -        // TODO: test validations
    -    }
    -    
    -    /**
    -     * 
    -     *
    -     * Test serialization of object with outer number type
    -     *
    -     * @throws ApiException
    -     *          if the Api call fails
    -     */
    -    @Test
    -    public void fakeOuterCompositeSerializeTest() throws ApiException {
    -        OuterComposite body = null;
    -        OuterComposite response = api.fakeOuterCompositeSerialize(body);
    -
    -        // TODO: test validations
    -    }
    -    
    -    /**
    -     * 
    -     *
    -     * Test serialization of outer number types
    -     *
    -     * @throws ApiException
    -     *          if the Api call fails
    -     */
    -    @Test
    -    public void fakeOuterNumberSerializeTest() throws ApiException {
    -        BigDecimal body = null;
    -        BigDecimal response = api.fakeOuterNumberSerialize(body);
    -
    -        // TODO: test validations
    -    }
    -    
    -    /**
    -     * 
    -     *
    -     * Test serialization of outer string types
    -     *
    -     * @throws ApiException
    -     *          if the Api call fails
    -     */
    -    @Test
    -    public void fakeOuterStringSerializeTest() throws ApiException {
    -        String body = null;
    -        String response = api.fakeOuterStringSerialize(body);
    -
    -        // TODO: test validations
    -    }
    -    
    -    /**
    -     * To test \&quot;client\&quot; model
    -     *
    -     * To test \&quot;client\&quot; model
    -     *
    -     * @throws ApiException
    -     *          if the Api call fails
    -     */
    -    @Test
    -    public void testClientModelTest() throws ApiException {
    -        Client body = null;
    -        Client response = api.testClientModel(body);
    -
    -        // TODO: test validations
    -    }
    -    
    -    /**
    -     * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 
    -     *
    -     * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 
    -     *
    -     * @throws ApiException
    -     *          if the Api call fails
    -     */
    -    @Test
    -    public void testEndpointParametersTest() throws ApiException {
    -        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;
    -        byte[] 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
    -     *
    -     * @throws ApiException
    -     *          if the Api call fails
    -     */
    -    @Test
    -    public void testEnumParametersTest() throws ApiException {
    -        List<String> enumFormStringArray = null;
    -        String enumFormString = null;
    -        List<String> enumHeaderStringArray = null;
    -        String enumHeaderString = null;
    -        List<String> enumQueryStringArray = null;
    -        String enumQueryString = null;
    -        Integer enumQueryInteger = null;
    -        Double enumQueryDouble = null;
    -        api.testEnumParameters(enumFormStringArray, enumFormString, enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble);
    -
    -        // TODO: test validations
    -    }
    -    
    -    /**
    -     * test inline additionalProperties
    -     *
    -     * 
    -     *
    -     * @throws ApiException
    -     *          if the Api call fails
    -     */
    -    @Test
    -    public void testInlineAdditionalPropertiesTest() throws ApiException {
    -        Object param = null;
    -        api.testInlineAdditionalProperties(param);
    -
    -        // TODO: test validations
    -    }
    -    
    -    /**
    -     * test json serialization of form data
    -     *
    -     * 
    -     *
    -     * @throws ApiException
    -     *          if the Api call fails
    -     */
    -    @Test
    -    public void testJsonFormDataTest() throws ApiException {
    -        String param = null;
    -        String param2 = null;
    -        api.testJsonFormData(param, param2);
    -
    -        // TODO: test validations
    -    }
    -    
    -}
    
  • samples/client/petstore/java/jersey2-java6/src/test/java/io/swagger/client/api/FakeClassnameTags123ApiTest.java+0 51 removed
    @@ -1,51 +0,0 @@
    -/*
    - * Swagger 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: \" \\
    - *
    - * OpenAPI spec version: 1.0.0
    - * Contact: apiteam@swagger.io
    - *
    - * NOTE: This class is auto generated by the swagger code generator program.
    - * https://github.com/swagger-api/swagger-codegen.git
    - * Do not edit the class manually.
    - */
    -
    -
    -package io.swagger.client.api;
    -
    -import io.swagger.client.ApiException;
    -import io.swagger.client.model.Client;
    -import org.junit.Test;
    -import org.junit.Ignore;
    -
    -import java.util.ArrayList;
    -import java.util.HashMap;
    -import java.util.List;
    -import java.util.Map;
    -
    -/**
    - * API tests for FakeClassnameTags123Api
    - */
    -@Ignore
    -public class FakeClassnameTags123ApiTest {
    -
    -    private final FakeClassnameTags123Api api = new FakeClassnameTags123Api();
    -
    -    
    -    /**
    -     * To test class name in snake case
    -     *
    -     * 
    -     *
    -     * @throws ApiException
    -     *          if the Api call fails
    -     */
    -    @Test
    -    public void testClassnameTest() throws ApiException {
    -        Client body = null;
    -        Client response = api.testClassname(body);
    -
    -        // TODO: test validations
    -    }
    -    
    -}
    
  • samples/client/petstore/java/jersey2-java6/src/test/java/io/swagger/client/api/PetApiTest.java+0 170 removed
    @@ -1,170 +0,0 @@
    -/*
    - * Swagger 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: \" \\
    - *
    - * OpenAPI spec version: 1.0.0
    - * Contact: apiteam@swagger.io
    - *
    - * NOTE: This class is auto generated by the swagger code generator program.
    - * https://github.com/swagger-api/swagger-codegen.git
    - * Do not edit the class manually.
    - */
    -
    -
    -package io.swagger.client.api;
    -
    -import io.swagger.client.ApiException;
    -import java.io.File;
    -import io.swagger.client.model.ModelApiResponse;
    -import io.swagger.client.model.Pet;
    -import org.junit.Test;
    -import org.junit.Ignore;
    -
    -import java.util.ArrayList;
    -import java.util.HashMap;
    -import java.util.List;
    -import java.util.Map;
    -
    -/**
    - * API tests for PetApi
    - */
    -@Ignore
    -public class PetApiTest {
    -
    -    private final PetApi api = new PetApi();
    -
    -    
    -    /**
    -     * Add a new pet to the store
    -     *
    -     * 
    -     *
    -     * @throws ApiException
    -     *          if the Api call fails
    -     */
    -    @Test
    -    public void addPetTest() throws ApiException {
    -        Pet body = null;
    -        api.addPet(body);
    -
    -        // TODO: test validations
    -    }
    -    
    -    /**
    -     * Deletes a pet
    -     *
    -     * 
    -     *
    -     * @throws ApiException
    -     *          if the Api call fails
    -     */
    -    @Test
    -    public void deletePetTest() throws ApiException {
    -        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
    -     *
    -     * @throws ApiException
    -     *          if the Api call fails
    -     */
    -    @Test
    -    public void findPetsByStatusTest() throws ApiException {
    -        List<String> status = null;
    -        List<Pet> response = api.findPetsByStatus(status);
    -
    -        // TODO: test validations
    -    }
    -    
    -    /**
    -     * Finds Pets by tags
    -     *
    -     * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
    -     *
    -     * @throws ApiException
    -     *          if the Api call fails
    -     */
    -    @Test
    -    public void findPetsByTagsTest() throws ApiException {
    -        List<String> tags = null;
    -        List<Pet> response = api.findPetsByTags(tags);
    -
    -        // TODO: test validations
    -    }
    -    
    -    /**
    -     * Find pet by ID
    -     *
    -     * Returns a single pet
    -     *
    -     * @throws ApiException
    -     *          if the Api call fails
    -     */
    -    @Test
    -    public void getPetByIdTest() throws ApiException {
    -        Long petId = null;
    -        Pet response = api.getPetById(petId);
    -
    -        // TODO: test validations
    -    }
    -    
    -    /**
    -     * Update an existing pet
    -     *
    -     * 
    -     *
    -     * @throws ApiException
    -     *          if the Api call fails
    -     */
    -    @Test
    -    public void updatePetTest() throws ApiException {
    -        Pet body = null;
    -        api.updatePet(body);
    -
    -        // TODO: test validations
    -    }
    -    
    -    /**
    -     * Updates a pet in the store with form data
    -     *
    -     * 
    -     *
    -     * @throws ApiException
    -     *          if the Api call fails
    -     */
    -    @Test
    -    public void updatePetWithFormTest() throws ApiException {
    -        Long petId = null;
    -        String name = null;
    -        String status = null;
    -        api.updatePetWithForm(petId, name, status);
    -
    -        // TODO: test validations
    -    }
    -    
    -    /**
    -     * uploads an image
    -     *
    -     * 
    -     *
    -     * @throws ApiException
    -     *          if the Api call fails
    -     */
    -    @Test
    -    public void uploadFileTest() throws ApiException {
    -        Long petId = null;
    -        String additionalMetadata = null;
    -        File file = null;
    -        ModelApiResponse response = api.uploadFile(petId, additionalMetadata, file);
    -
    -        // TODO: test validations
    -    }
    -    
    -}
    
  • samples/client/petstore/java/jersey2-java6/src/test/java/io/swagger/client/api/StoreApiTest.java+0 98 removed
    @@ -1,98 +0,0 @@
    -/*
    - * Swagger 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: \" \\
    - *
    - * OpenAPI spec version: 1.0.0
    - * Contact: apiteam@swagger.io
    - *
    - * NOTE: This class is auto generated by the swagger code generator program.
    - * https://github.com/swagger-api/swagger-codegen.git
    - * Do not edit the class manually.
    - */
    -
    -
    -package io.swagger.client.api;
    -
    -import io.swagger.client.ApiException;
    -import io.swagger.client.model.Order;
    -import org.junit.Test;
    -import org.junit.Ignore;
    -
    -import java.util.ArrayList;
    -import java.util.HashMap;
    -import java.util.List;
    -import java.util.Map;
    -
    -/**
    - * API tests for StoreApi
    - */
    -@Ignore
    -public class StoreApiTest {
    -
    -    private final StoreApi api = new StoreApi();
    -
    -    
    -    /**
    -     * Delete purchase order by ID
    -     *
    -     * For valid response try integer IDs with value &lt; 1000. Anything above 1000 or nonintegers will generate API errors
    -     *
    -     * @throws ApiException
    -     *          if the Api call fails
    -     */
    -    @Test
    -    public void deleteOrderTest() throws ApiException {
    -        String orderId = null;
    -        api.deleteOrder(orderId);
    -
    -        // TODO: test validations
    -    }
    -    
    -    /**
    -     * Returns pet inventories by status
    -     *
    -     * Returns a map of status codes to quantities
    -     *
    -     * @throws ApiException
    -     *          if the Api call fails
    -     */
    -    @Test
    -    public void getInventoryTest() throws ApiException {
    -        Map<String, Integer> response = api.getInventory();
    -
    -        // TODO: test validations
    -    }
    -    
    -    /**
    -     * Find purchase order by ID
    -     *
    -     * For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; 10. Other values will generated exceptions
    -     *
    -     * @throws ApiException
    -     *          if the Api call fails
    -     */
    -    @Test
    -    public void getOrderByIdTest() throws ApiException {
    -        Long orderId = null;
    -        Order response = api.getOrderById(orderId);
    -
    -        // TODO: test validations
    -    }
    -    
    -    /**
    -     * Place an order for a pet
    -     *
    -     * 
    -     *
    -     * @throws ApiException
    -     *          if the Api call fails
    -     */
    -    @Test
    -    public void placeOrderTest() throws ApiException {
    -        Order body = null;
    -        Order response = api.placeOrder(body);
    -
    -        // TODO: test validations
    -    }
    -    
    -}
    
  • samples/client/petstore/java/jersey2-java6/src/test/java/io/swagger/client/api/UserApiTest.java+0 164 removed
    @@ -1,164 +0,0 @@
    -/*
    - * Swagger 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: \" \\
    - *
    - * OpenAPI spec version: 1.0.0
    - * Contact: apiteam@swagger.io
    - *
    - * NOTE: This class is auto generated by the swagger code generator program.
    - * https://github.com/swagger-api/swagger-codegen.git
    - * Do not edit the class manually.
    - */
    -
    -
    -package io.swagger.client.api;
    -
    -import io.swagger.client.ApiException;
    -import io.swagger.client.model.User;
    -import org.junit.Test;
    -import org.junit.Ignore;
    -
    -import java.util.ArrayList;
    -import java.util.HashMap;
    -import java.util.List;
    -import java.util.Map;
    -
    -/**
    - * API tests for UserApi
    - */
    -@Ignore
    -public class UserApiTest {
    -
    -    private final UserApi api = new UserApi();
    -
    -    
    -    /**
    -     * Create user
    -     *
    -     * This can only be done by the logged in user.
    -     *
    -     * @throws ApiException
    -     *          if the Api call fails
    -     */
    -    @Test
    -    public void createUserTest() throws ApiException {
    -        User body = null;
    -        api.createUser(body);
    -
    -        // TODO: test validations
    -    }
    -    
    -    /**
    -     * Creates list of users with given input array
    -     *
    -     * 
    -     *
    -     * @throws ApiException
    -     *          if the Api call fails
    -     */
    -    @Test
    -    public void createUsersWithArrayInputTest() throws ApiException {
    -        List<User> body = null;
    -        api.createUsersWithArrayInput(body);
    -
    -        // TODO: test validations
    -    }
    -    
    -    /**
    -     * Creates list of users with given input array
    -     *
    -     * 
    -     *
    -     * @throws ApiException
    -     *          if the Api call fails
    -     */
    -    @Test
    -    public void createUsersWithListInputTest() throws ApiException {
    -        List<User> body = null;
    -        api.createUsersWithListInput(body);
    -
    -        // TODO: test validations
    -    }
    -    
    -    /**
    -     * Delete user
    -     *
    -     * This can only be done by the logged in user.
    -     *
    -     * @throws ApiException
    -     *          if the Api call fails
    -     */
    -    @Test
    -    public void deleteUserTest() throws ApiException {
    -        String username = null;
    -        api.deleteUser(username);
    -
    -        // TODO: test validations
    -    }
    -    
    -    /**
    -     * Get user by user name
    -     *
    -     * 
    -     *
    -     * @throws ApiException
    -     *          if the Api call fails
    -     */
    -    @Test
    -    public void getUserByNameTest() throws ApiException {
    -        String username = null;
    -        User response = api.getUserByName(username);
    -
    -        // TODO: test validations
    -    }
    -    
    -    /**
    -     * Logs user into the system
    -     *
    -     * 
    -     *
    -     * @throws ApiException
    -     *          if the Api call fails
    -     */
    -    @Test
    -    public void loginUserTest() throws ApiException {
    -        String username = null;
    -        String password = null;
    -        String response = api.loginUser(username, password);
    -
    -        // TODO: test validations
    -    }
    -    
    -    /**
    -     * Logs out current logged in user session
    -     *
    -     * 
    -     *
    -     * @throws ApiException
    -     *          if the Api call fails
    -     */
    -    @Test
    -    public void logoutUserTest() throws ApiException {
    -        api.logoutUser();
    -
    -        // TODO: test validations
    -    }
    -    
    -    /**
    -     * Updated user
    -     *
    -     * This can only be done by the logged in user.
    -     *
    -     * @throws ApiException
    -     *          if the Api call fails
    -     */
    -    @Test
    -    public void updateUserTest() throws ApiException {
    -        String username = null;
    -        User body = null;
    -        api.updateUser(username, body);
    -
    -        // TODO: test validations
    -    }
    -    
    -}
    
  • samples/client/petstore/java/jersey2-java6/.swagger-codegen-ignore+0 23 removed
    @@ -1,23 +0,0 @@
    -# Swagger Codegen Ignore
    -# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen
    -
    -# Use this file to prevent files from being overwritten by the generator.
    -# The patterns follow closely to .gitignore or .dockerignore.
    -
    -# As an example, the C# client generator defines ApiClient.cs.
    -# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line:
    -#ApiClient.cs
    -
    -# You can match any string of characters against a directory, file or extension with a single asterisk (*):
    -#foo/*/qux
    -# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
    -
    -# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
    -#foo/**/qux
    -# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
    -
    -# You can also negate patterns with an exclamation (!).
    -# For example, you can ignore all files in a docs folder with the file extension .md:
    -#docs/*.md
    -# Then explicitly reverse the ignore rule for a single file:
    -#!docs/README.md
    
  • samples/client/petstore/java/jersey2-java6/.swagger-codegen/VERSION+0 1 removed
    @@ -1 +0,0 @@
    -2.4.18-SNAPSHOT
    \ No newline at end of file
    
  • samples/client/petstore/java/jersey2-java6/.travis.yml+0 17 removed
    @@ -1,17 +0,0 @@
    -#
    -# Generated by: https://github.com/swagger-api/swagger-codegen.git
    -#
    -language: java
    -jdk:
    -  - oraclejdk8
    -  - oraclejdk7
    -before_install:
    -  # ensure gradlew has proper permission
    -  - chmod a+x ./gradlew
    -script:
    -  # test using maven
    -  - mvn test
    -  # uncomment below to test using gradle
    -  # - gradle test
    -  # uncomment below to test using sbt 
    -  # - sbt test
    
  • samples/client/petstore/java/jersey2-java8/src/main/java/io/swagger/client/ApiClient.java+4 3 modified
    @@ -24,6 +24,7 @@
     import java.io.InputStream;
     
     import java.nio.file.Files;
    +import java.nio.file.Paths;
     import java.nio.file.StandardCopyOption;
     import org.glassfish.jersey.logging.LoggingFeature;
     import java.util.Collection;
    @@ -291,7 +292,7 @@ public ApiClient setConnectTimeout(int connectionTimeout) {
       public int getReadTimeout() {
         return readTimeout;
       }
    -  
    +
       /**
        * Set the read timeout (in milliseconds).
        * A value of 0 means no timeout, otherwise values must be between 1 and
    @@ -617,9 +618,9 @@ public File prepareDownloadFile(Response response) throws IOException {
         }
     
         if (tempFolderPath == null)
    -      return File.createTempFile(prefix, suffix);
    +      return Files.createTempFile(prefix, suffix).toFile();
         else
    -      return File.createTempFile(prefix, suffix, new File(tempFolderPath));
    +      return Files.createTempFile(Paths.get(tempFolderPath), prefix, suffix).toFile();
       }
     
       /**
    
  • samples/client/petstore/java/jersey2/src/main/java/io/swagger/client/ApiClient.java+4 3 modified
    @@ -24,6 +24,7 @@
     import java.io.InputStream;
     
     import java.nio.file.Files;
    +import java.nio.file.Paths;
     import java.nio.file.StandardCopyOption;
     import org.glassfish.jersey.logging.LoggingFeature;
     import java.util.Collection;
    @@ -291,7 +292,7 @@ public ApiClient setConnectTimeout(int connectionTimeout) {
       public int getReadTimeout() {
         return readTimeout;
       }
    -  
    +
       /**
        * Set the read timeout (in milliseconds).
        * A value of 0 means no timeout, otherwise values must be between 1 and
    @@ -617,9 +618,9 @@ public File prepareDownloadFile(Response response) throws IOException {
         }
     
         if (tempFolderPath == null)
    -      return File.createTempFile(prefix, suffix);
    +      return Files.createTempFile(prefix, suffix).toFile();
         else
    -      return File.createTempFile(prefix, suffix, new File(tempFolderPath));
    +      return Files.createTempFile(Paths.get(tempFolderPath), prefix, suffix).toFile();
       }
     
       /**
    
  • samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/io/swagger/client/ApiClient.java+5 3 modified
    @@ -28,6 +28,8 @@
     import java.io.IOException;
     import java.io.InputStream;
     import java.io.UnsupportedEncodingException;
    +import java.nio.file.Files;
    +import java.nio.file.Paths;
     import java.lang.reflect.Type;
     import java.net.URLConnection;
     import java.net.URLEncoder;
    @@ -811,9 +813,9 @@ public File prepareDownloadFile(Response response) throws IOException {
             }
     
             if (tempFolderPath == null)
    -            return File.createTempFile(prefix, suffix);
    +            return Files.createTempFile(prefix, suffix).toFile();
             else
    -            return File.createTempFile(prefix, suffix, new File(tempFolderPath));
    +            return Files.createTempFile(Paths.get(tempFolderPath), prefix, suffix).toFile();
         }
     
         /**
    @@ -963,7 +965,7 @@ public Call buildCall(String path, String method, List<Pair> queryParams, List<P
          * @param formParams The form parameters
          * @param authNames The authentications to apply
          * @param progressRequestListener Progress request listener
    -     * @return The HTTP request 
    +     * @return The HTTP request
          * @throws ApiException If fail to serialize the request body object
          */
         public Request buildRequest(String path, String method, List<Pair> queryParams, List<Pair> collectionQueryParams, Object body, Map<String, String> headerParams, Map<String, Object> formParams, String[] authNames, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
    
  • samples/client/petstore/java/okhttp-gson/src/main/java/io/swagger/client/ApiClient.java+5 3 modified
    @@ -28,6 +28,8 @@
     import java.io.IOException;
     import java.io.InputStream;
     import java.io.UnsupportedEncodingException;
    +import java.nio.file.Files;
    +import java.nio.file.Paths;
     import java.lang.reflect.Type;
     import java.net.URLConnection;
     import java.net.URLEncoder;
    @@ -811,9 +813,9 @@ public File prepareDownloadFile(Response response) throws IOException {
             }
     
             if (tempFolderPath == null)
    -            return File.createTempFile(prefix, suffix);
    +            return Files.createTempFile(prefix, suffix).toFile();
             else
    -            return File.createTempFile(prefix, suffix, new File(tempFolderPath));
    +            return Files.createTempFile(Paths.get(tempFolderPath), prefix, suffix).toFile();
         }
     
         /**
    @@ -963,7 +965,7 @@ public Call buildCall(String path, String method, List<Pair> queryParams, List<P
          * @param formParams The form parameters
          * @param authNames The authentications to apply
          * @param progressRequestListener Progress request listener
    -     * @return The HTTP request 
    +     * @return The HTTP request
          * @throws ApiException If fail to serialize the request body object
          */
         public Request buildRequest(String path, String method, List<Pair> queryParams, List<Pair> collectionQueryParams, Object body, Map<String, String> headerParams, Map<String, Object> formParams, String[] authNames, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
    
  • samples/client/petstore/java/resteasy/src/main/java/io/swagger/client/ApiClient.java+4 3 modified
    @@ -8,6 +8,7 @@
     import java.io.UnsupportedEncodingException;
     import java.net.URLEncoder;
     import java.nio.file.Files;
    +import java.nio.file.Paths;
     import java.text.DateFormat;
     import java.text.SimpleDateFormat;
     import java.util.ArrayList;
    @@ -447,7 +448,7 @@ public String escapeString(String str) {
       public Entity<?> serialize(Object obj, Map<String, Object> formParams, String contentType) throws ApiException {
         Entity<?> entity = null;
         if (contentType.startsWith("multipart/form-data")) {
    -      MultipartFormDataOutput multipart = new MultipartFormDataOutput();  
    +      MultipartFormDataOutput multipart = new MultipartFormDataOutput();
           //MultiPart multiPart = new MultiPart();
           for (Entry<String, Object> param: formParams.entrySet()) {
             if (param.getValue() instanceof File) {
    @@ -547,9 +548,9 @@ public File prepareDownloadFile(Response response) throws IOException {
         }
     
         if (tempFolderPath == null)
    -      return File.createTempFile(prefix, suffix);
    +      return Files.createTempFile(prefix, suffix).toFile();
         else
    -      return File.createTempFile(prefix, suffix, new File(tempFolderPath));
    +      return Files.createTempFile(Paths.get(tempFolderPath), prefix, suffix).toFile();
       }
     
       /**
    
  • samples/client/petstore/java/retrofit2rx/src/test/java/io/swagger/client/api/PetApiTest.java+2 1 modified
    @@ -7,6 +7,7 @@
     import java.io.BufferedWriter;
     import java.io.File;
     import java.io.FileWriter;
    +import java.nio.file.Files;
     import java.util.ArrayList;
     import java.util.Arrays;
     import java.util.List;
    @@ -192,7 +193,7 @@ public void onError(Throwable e) {
     
         @Test
         public void testUploadFile() throws Exception {
    -        File file = File.createTempFile("test", "hello.txt");
    +        File file = Files.createTempFile("test", "hello.txt").toFile();
             BufferedWriter writer = new BufferedWriter(new FileWriter(file));
     
             writer.write("Hello world!");
    
  • samples/client/petstore/kotlin/src/main/kotlin/io/swagger/client/infrastructure/ApiClient.kt+8 7 modified
    @@ -3,6 +3,7 @@ package io.swagger.client.infrastructure
     import okhttp3.*
     import java.io.File
     import java.io.IOException
    +import java.nio.file.Files
     import java.util.regex.Pattern
     
     open class ApiClient(val baseUrl: String) {
    @@ -64,15 +65,15 @@ open class ApiClient(val baseUrl: String) {
     
         inline protected fun <reified T: Any?> responseBody(response: Response, mediaType: String = JsonMediaType): T? {
             if(response.body() == null) return null
    -        
    +
             if(T::class.java == java.io.File::class.java){
                 return downloadFileFromResponse(response) as T
             } else if(T::class == kotlin.Unit::class) {
                 return kotlin.Unit as T
             }
    -        
    +
             var contentType = response.headers().get("Content-Type")
    -        
    +
             if(contentType == null) {
                 contentType = JsonMediaType
             }
    @@ -85,7 +86,7 @@ open class ApiClient(val baseUrl: String) {
                 TODO("Fill in more types!")
             }
         }
    -    
    +
         fun isJsonMime(mime: String?): Boolean {
             val jsonMime = "(?i)^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$"
             return mime != null && (mime.matches(jsonMime.toRegex()) || mime == "*/*")
    @@ -162,7 +163,7 @@ open class ApiClient(val baseUrl: String) {
                 )
             }
         }
    -    
    +
         @Throws(IOException::class)
         fun downloadFileFromResponse(response: Response): File {
             val file = prepareDownloadFile(response)
    @@ -206,6 +207,6 @@ open class ApiClient(val baseUrl: String) {
                 prefix = "download-"
             }
     
    -        return File.createTempFile(prefix, suffix);
    +        return Files.createTempFile(prefix, suffix).toFile();
         }
    -}
    \ No newline at end of file
    +}
    
  • samples/client/petstore/kotlin-string/src/main/kotlin/io/swagger/client/infrastructure/ApiClient.kt+8 7 modified
    @@ -3,6 +3,7 @@ package io.swagger.client.infrastructure
     import okhttp3.*
     import java.io.File
     import java.io.IOException
    +import java.nio.file.Files;
     import java.util.regex.Pattern
     
     open class ApiClient(val baseUrl: String) {
    @@ -64,15 +65,15 @@ open class ApiClient(val baseUrl: String) {
     
         inline protected fun <reified T: Any?> responseBody(response: Response, mediaType: String = JsonMediaType): T? {
             if(response.body() == null) return null
    -        
    +
             if(T::class.java == java.io.File::class.java){
                 return downloadFileFromResponse(response) as T
             } else if(T::class == kotlin.Unit::class) {
                 return kotlin.Unit as T
             }
    -        
    +
             var contentType = response.headers().get("Content-Type")
    -        
    +
             if(contentType == null) {
                 contentType = JsonMediaType
             }
    @@ -85,7 +86,7 @@ open class ApiClient(val baseUrl: String) {
                 TODO("Fill in more types!")
             }
         }
    -    
    +
         fun isJsonMime(mime: String?): Boolean {
             val jsonMime = "(?i)^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$"
             return mime != null && (mime.matches(jsonMime.toRegex()) || mime == "*/*")
    @@ -162,7 +163,7 @@ open class ApiClient(val baseUrl: String) {
                 )
             }
         }
    -    
    +
         @Throws(IOException::class)
         fun downloadFileFromResponse(response: Response): File {
             val file = prepareDownloadFile(response)
    @@ -206,6 +207,6 @@ open class ApiClient(val baseUrl: String) {
                 prefix = "download-"
             }
     
    -        return File.createTempFile(prefix, suffix);
    +        return Files.createTempFile(prefix, suffix).toFile();
         }
    -}
    \ No newline at end of file
    +}
    
  • samples/client/petstore/kotlin-threetenbp/src/main/kotlin/io/swagger/client/infrastructure/ApiClient.kt+8 7 modified
    @@ -3,6 +3,7 @@ package io.swagger.client.infrastructure
     import okhttp3.*
     import java.io.File
     import java.io.IOException
    +import java.nio.file.Files;
     import java.util.regex.Pattern
     
     open class ApiClient(val baseUrl: String) {
    @@ -64,15 +65,15 @@ open class ApiClient(val baseUrl: String) {
     
         inline protected fun <reified T: Any?> responseBody(response: Response, mediaType: String = JsonMediaType): T? {
             if(response.body() == null) return null
    -        
    +
             if(T::class.java == java.io.File::class.java){
                 return downloadFileFromResponse(response) as T
             } else if(T::class == kotlin.Unit::class) {
                 return kotlin.Unit as T
             }
    -        
    +
             var contentType = response.headers().get("Content-Type")
    -        
    +
             if(contentType == null) {
                 contentType = JsonMediaType
             }
    @@ -85,7 +86,7 @@ open class ApiClient(val baseUrl: String) {
                 TODO("Fill in more types!")
             }
         }
    -    
    +
         fun isJsonMime(mime: String?): Boolean {
             val jsonMime = "(?i)^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$"
             return mime != null && (mime.matches(jsonMime.toRegex()) || mime == "*/*")
    @@ -162,7 +163,7 @@ open class ApiClient(val baseUrl: String) {
                 )
             }
         }
    -    
    +
         @Throws(IOException::class)
         fun downloadFileFromResponse(response: Response): File {
             val file = prepareDownloadFile(response)
    @@ -206,6 +207,6 @@ open class ApiClient(val baseUrl: String) {
                 prefix = "download-"
             }
     
    -        return File.createTempFile(prefix, suffix);
    +        return Files.createTempFile(prefix, suffix).toFile();
         }
    -}
    \ No newline at end of file
    +}
    
  • samples/client/petstore-security-test/java/okhttp-gson/src/main/java/io/swagger/client/ApiClient.java+6 4 modified
    @@ -1,6 +1,6 @@
     /*
      * Swagger Petstore *_/ ' \" =end -- \\r\\n \\n \\r
    - * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\  *_/ ' \" =end --       
    + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\  *_/ ' \" =end --
      *
      * OpenAPI spec version: 1.0.0 *_/ ' \" =end -- \\r\\n \\n \\r
      * Contact: apiteam@swagger.io *_/ ' \" =end -- \\r\\n \\n \\r
    @@ -28,6 +28,8 @@
     import java.io.IOException;
     import java.io.InputStream;
     import java.io.UnsupportedEncodingException;
    +import java.nio.file.Files;
    +import java.nio.file.Paths;
     import java.lang.reflect.Type;
     import java.net.URLConnection;
     import java.net.URLEncoder;
    @@ -809,9 +811,9 @@ public File prepareDownloadFile(Response response) throws IOException {
             }
     
             if (tempFolderPath == null)
    -            return File.createTempFile(prefix, suffix);
    +            return Files.createTempFile(prefix, suffix).toFile();
             else
    -            return File.createTempFile(prefix, suffix, new File(tempFolderPath));
    +            return Files.createTempFile(Paths.get(tempFolderPath), prefix, suffix).toFile();
         }
     
         /**
    @@ -961,7 +963,7 @@ public Call buildCall(String path, String method, List<Pair> queryParams, List<P
          * @param formParams The form parameters
          * @param authNames The authentications to apply
          * @param progressRequestListener Progress request listener
    -     * @return The HTTP request 
    +     * @return The HTTP request
          * @throws ApiException If fail to serialize the request body object
          */
         public Request buildRequest(String path, String method, List<Pair> queryParams, List<Pair> collectionQueryParams, Object body, Map<String, String> headerParams, Map<String, Object> formParams, String[] authNames, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
    
  • samples/server/petstore/finch/src/main/scala/io/swagger/apis/PetApi.scala+18 17 modified
    @@ -17,6 +17,7 @@ import com.twitter.util.Future
     import com.twitter.io.Buf
     import io.finch._, items._
     import java.io.File
    +import java.nio.file.Files
     import java.time._
     
     object PetApi {
    @@ -56,11 +57,11 @@ object PetApi {
         }
     
             /**
    -        * 
    +        *
             * @return An endpoint representing a Unit
             */
             private def addPet(da: DataAccessor): Endpoint[Unit] =
    -        post("pet" :: jsonBody[Pet]) { (body: Pet) => 
    +        post("pet" :: jsonBody[Pet]) { (body: Pet) =>
               da.Pet_addPet(body) match {
                 case Left(error) => checkError(error)
                 case Right(data) => Ok(data)
    @@ -70,11 +71,11 @@ object PetApi {
             }
     
             /**
    -        * 
    +        *
             * @return An endpoint representing a Unit
             */
             private def deletePet(da: DataAccessor): Endpoint[Unit] =
    -        delete("pet" :: long :: headerOption("api_key")) { (petId: Long, apiKey: Option[String]) => 
    +        delete("pet" :: long :: headerOption("api_key")) { (petId: Long, apiKey: Option[String]) =>
               da.Pet_deletePet(petId, apiKey) match {
                 case Left(error) => checkError(error)
                 case Right(data) => Ok(data)
    @@ -84,11 +85,11 @@ object PetApi {
             }
     
             /**
    -        * 
    +        *
             * @return An endpoint representing a Seq[Pet]
             */
             private def findPetsByStatus(da: DataAccessor): Endpoint[Seq[Pet]] =
    -        get("pet" :: "findByStatus" :: params("status")) { (status: Seq[String]) => 
    +        get("pet" :: "findByStatus" :: params("status")) { (status: Seq[String]) =>
               da.Pet_findPetsByStatus(status) match {
                 case Left(error) => checkError(error)
                 case Right(data) => Ok(data)
    @@ -98,11 +99,11 @@ object PetApi {
             }
     
             /**
    -        * 
    +        *
             * @return An endpoint representing a Seq[Pet]
             */
             private def findPetsByTags(da: DataAccessor): Endpoint[Seq[Pet]] =
    -        get("pet" :: "findByTags" :: params("tags")) { (tags: Seq[String]) => 
    +        get("pet" :: "findByTags" :: params("tags")) { (tags: Seq[String]) =>
               da.Pet_findPetsByTags(tags) match {
                 case Left(error) => checkError(error)
                 case Right(data) => Ok(data)
    @@ -112,11 +113,11 @@ object PetApi {
             }
     
             /**
    -        * 
    +        *
             * @return An endpoint representing a Pet
             */
             private def getPetById(da: DataAccessor): Endpoint[Pet] =
    -        get("pet" :: long :: header("api_key")) { (petId: Long, authParamapi_key: String) => 
    +        get("pet" :: long :: header("api_key")) { (petId: Long, authParamapi_key: String) =>
               da.Pet_getPetById(petId, authParamapi_key) match {
                 case Left(error) => checkError(error)
                 case Right(data) => Ok(data)
    @@ -126,11 +127,11 @@ object PetApi {
             }
     
             /**
    -        * 
    +        *
             * @return An endpoint representing a Unit
             */
             private def updatePet(da: DataAccessor): Endpoint[Unit] =
    -        put("pet" :: jsonBody[Pet]) { (body: Pet) => 
    +        put("pet" :: jsonBody[Pet]) { (body: Pet) =>
               da.Pet_updatePet(body) match {
                 case Left(error) => checkError(error)
                 case Right(data) => Ok(data)
    @@ -140,11 +141,11 @@ object PetApi {
             }
     
             /**
    -        * 
    +        *
             * @return An endpoint representing a Unit
             */
             private def updatePetWithForm(da: DataAccessor): Endpoint[Unit] =
    -        post("pet" :: long :: string :: string) { (petId: Long, name: Option[String], status: Option[String]) => 
    +        post("pet" :: long :: string :: string) { (petId: Long, name: Option[String], status: Option[String]) =>
               da.Pet_updatePetWithForm(petId, name, status) match {
                 case Left(error) => checkError(error)
                 case Right(data) => Ok(data)
    @@ -154,11 +155,11 @@ object PetApi {
             }
     
             /**
    -        * 
    +        *
             * @return An endpoint representing a ApiResponse
             */
             private def uploadFile(da: DataAccessor): Endpoint[ApiResponse] =
    -        post("pet" :: long :: "uploadImage" :: string :: fileUpload("file")) { (petId: Long, additionalMetadata: Option[String], file: FileUpload) => 
    +        post("pet" :: long :: "uploadImage" :: string :: fileUpload("file")) { (petId: Long, additionalMetadata: Option[String], file: FileUpload) =>
               da.Pet_uploadFile(petId, additionalMetadata, file) match {
                 case Left(error) => checkError(error)
                 case Right(data) => Ok(data)
    @@ -179,7 +180,7 @@ object PetApi {
         }
     
         private def bytesToFile(input: Array[Byte]): java.io.File = {
    -      val file = File.createTempFile("tmpPetApi", null)
    +      val file = Files.createTempFile("tmpPetApi", null).toFile()
           val output = new FileOutputStream(file)
           output.write(input)
           file
    
  • samples/server/petstore/finch/src/main/scala/io/swagger/apis/StoreApi.scala+10 9 modified
    @@ -15,6 +15,7 @@ import com.twitter.util.Future
     import com.twitter.io.Buf
     import io.finch._, items._
     import java.io.File
    +import java.nio.file.Files
     import java.time._
     
     object StoreApi {
    @@ -50,11 +51,11 @@ object StoreApi {
         }
     
             /**
    -        * 
    +        *
             * @return An endpoint representing a Unit
             */
             private def deleteOrder(da: DataAccessor): Endpoint[Unit] =
    -        delete("store" :: "order" :: string) { (orderId: String) => 
    +        delete("store" :: "order" :: string) { (orderId: String) =>
               da.Store_deleteOrder(orderId) match {
                 case Left(error) => checkError(error)
                 case Right(data) => Ok(data)
    @@ -64,11 +65,11 @@ object StoreApi {
             }
     
             /**
    -        * 
    +        *
             * @return An endpoint representing a Map[String, Int]
             */
             private def getInventory(da: DataAccessor): Endpoint[Map[String, Int]] =
    -        get("store" :: "inventory" :: header("api_key")) { 
    +        get("store" :: "inventory" :: header("api_key")) {
               da.Store_getInventory(authParamapi_key) match {
                 case Left(error) => checkError(error)
                 case Right(data) => Ok(data)
    @@ -78,11 +79,11 @@ object StoreApi {
             }
     
             /**
    -        * 
    +        *
             * @return An endpoint representing a Order
             */
             private def getOrderById(da: DataAccessor): Endpoint[Order] =
    -        get("store" :: "order" :: long) { (orderId: Long) => 
    +        get("store" :: "order" :: long) { (orderId: Long) =>
               da.Store_getOrderById(orderId) match {
                 case Left(error) => checkError(error)
                 case Right(data) => Ok(data)
    @@ -92,11 +93,11 @@ object StoreApi {
             }
     
             /**
    -        * 
    +        *
             * @return An endpoint representing a Order
             */
             private def placeOrder(da: DataAccessor): Endpoint[Order] =
    -        post("store" :: "order" :: jsonBody[Order]) { (body: Order) => 
    +        post("store" :: "order" :: jsonBody[Order]) { (body: Order) =>
               da.Store_placeOrder(body) match {
                 case Left(error) => checkError(error)
                 case Right(data) => Ok(data)
    @@ -117,7 +118,7 @@ object StoreApi {
         }
     
         private def bytesToFile(input: Array[Byte]): java.io.File = {
    -      val file = File.createTempFile("tmpStoreApi", null)
    +      val file = Files.createTempFile("tmpStoreApi", null).toFile()
           val output = new FileOutputStream(file)
           output.write(input)
           file
    
  • samples/server/petstore/finch/src/main/scala/io/swagger/apis/UserApi.scala+18 17 modified
    @@ -16,6 +16,7 @@ import com.twitter.util.Future
     import com.twitter.io.Buf
     import io.finch._, items._
     import java.io.File
    +import java.nio.file.Files
     import java.time._
     
     object UserApi {
    @@ -55,11 +56,11 @@ object UserApi {
         }
     
             /**
    -        * 
    +        *
             * @return An endpoint representing a Unit
             */
             private def createUser(da: DataAccessor): Endpoint[Unit] =
    -        post("user" :: jsonBody[User]) { (body: User) => 
    +        post("user" :: jsonBody[User]) { (body: User) =>
               da.User_createUser(body) match {
                 case Left(error) => checkError(error)
                 case Right(data) => Ok(data)
    @@ -69,11 +70,11 @@ object UserApi {
             }
     
             /**
    -        * 
    +        *
             * @return An endpoint representing a Unit
             */
             private def createUsersWithArrayInput(da: DataAccessor): Endpoint[Unit] =
    -        post("user" :: "createWithArray" :: jsonBody[Seq[User]]) { (body: Seq[User]) => 
    +        post("user" :: "createWithArray" :: jsonBody[Seq[User]]) { (body: Seq[User]) =>
               da.User_createUsersWithArrayInput(body) match {
                 case Left(error) => checkError(error)
                 case Right(data) => Ok(data)
    @@ -83,11 +84,11 @@ object UserApi {
             }
     
             /**
    -        * 
    +        *
             * @return An endpoint representing a Unit
             */
             private def createUsersWithListInput(da: DataAccessor): Endpoint[Unit] =
    -        post("user" :: "createWithList" :: jsonBody[Seq[User]]) { (body: Seq[User]) => 
    +        post("user" :: "createWithList" :: jsonBody[Seq[User]]) { (body: Seq[User]) =>
               da.User_createUsersWithListInput(body) match {
                 case Left(error) => checkError(error)
                 case Right(data) => Ok(data)
    @@ -97,11 +98,11 @@ object UserApi {
             }
     
             /**
    -        * 
    +        *
             * @return An endpoint representing a Unit
             */
             private def deleteUser(da: DataAccessor): Endpoint[Unit] =
    -        delete("user" :: string) { (username: String) => 
    +        delete("user" :: string) { (username: String) =>
               da.User_deleteUser(username) match {
                 case Left(error) => checkError(error)
                 case Right(data) => Ok(data)
    @@ -111,11 +112,11 @@ object UserApi {
             }
     
             /**
    -        * 
    +        *
             * @return An endpoint representing a User
             */
             private def getUserByName(da: DataAccessor): Endpoint[User] =
    -        get("user" :: string) { (username: String) => 
    +        get("user" :: string) { (username: String) =>
               da.User_getUserByName(username) match {
                 case Left(error) => checkError(error)
                 case Right(data) => Ok(data)
    @@ -125,11 +126,11 @@ object UserApi {
             }
     
             /**
    -        * 
    +        *
             * @return An endpoint representing a String
             */
             private def loginUser(da: DataAccessor): Endpoint[String] =
    -        get("user" :: "login" :: param("username") :: param("password")) { (username: String, password: String) => 
    +        get("user" :: "login" :: param("username") :: param("password")) { (username: String, password: String) =>
               da.User_loginUser(username, password) match {
                 case Left(error) => checkError(error)
                 case Right(data) => Ok(data)
    @@ -139,11 +140,11 @@ object UserApi {
             }
     
             /**
    -        * 
    +        *
             * @return An endpoint representing a Unit
             */
             private def logoutUser(da: DataAccessor): Endpoint[Unit] =
    -        get("user" :: "logout") { 
    +        get("user" :: "logout") {
               da.User_logoutUser() match {
                 case Left(error) => checkError(error)
                 case Right(data) => Ok(data)
    @@ -153,11 +154,11 @@ object UserApi {
             }
     
             /**
    -        * 
    +        *
             * @return An endpoint representing a Unit
             */
             private def updateUser(da: DataAccessor): Endpoint[Unit] =
    -        put("user" :: string :: jsonBody[User]) { (username: String, body: User) => 
    +        put("user" :: string :: jsonBody[User]) { (username: String, body: User) =>
               da.User_updateUser(username, body) match {
                 case Left(error) => checkError(error)
                 case Right(data) => Ok(data)
    @@ -178,7 +179,7 @@ object UserApi {
         }
     
         private def bytesToFile(input: Array[Byte]): java.io.File = {
    -      val file = File.createTempFile("tmpUserApi", null)
    +      val file = Files.createTempFile("tmpUserApi", null).toFile()
           val output = new FileOutputStream(file)
           output.write(input)
           file
    
  • samples/server/petstore/finch/src/main/scala/io/swagger/petstore/apis/PetApi.scala+18 17 modified
    @@ -18,6 +18,7 @@ import com.twitter.util.Future
     import com.twitter.io.Buf
     import io.finch._, items._
     import java.io.File
    +import java.nio.file.Files
     
     object PetApi {
         /**
    @@ -35,92 +36,92 @@ object PetApi {
                 uploadFile(da)
     
             /**
    -        * 
    +        *
             * @return And endpoint representing a Unit
             */
             private def addPet(da: DataAccessor): Endpoint[Unit] =
    -        post("pet"  :: jsonBody[Pet]) { (body: Pet) => 
    +        post("pet"  :: jsonBody[Pet]) { (body: Pet) =>
                     da.Pet_addPet(body)
                     NoContent[Unit]
             } handle {
               case e: Exception => BadRequest(e)
             }
     
             /**
    -        * 
    +        *
             * @return And endpoint representing a Unit
             */
             private def deletePet(da: DataAccessor): Endpoint[Unit] =
    -        delete("pet" :: long  :: string) { (petId: Long, apiKey: String) => 
    +        delete("pet" :: long  :: string) { (petId: Long, apiKey: String) =>
                     da.Pet_deletePet(petId, apiKey)
                     NoContent[Unit]
             } handle {
               case e: Exception => BadRequest(e)
             }
     
             /**
    -        * 
    +        *
             * @return And endpoint representing a Seq[Pet]
             */
             private def findPetsByStatus(da: DataAccessor): Endpoint[Seq[Pet]] =
    -        get("pet" :: "findByStatus"  :: params("status")) { (status: Seq[String]) => 
    +        get("pet" :: "findByStatus"  :: params("status")) { (status: Seq[String]) =>
                     Ok(da.Pet_findPetsByStatus(status))
             } handle {
               case e: Exception => BadRequest(e)
             }
     
             /**
    -        * 
    +        *
             * @return And endpoint representing a Seq[Pet]
             */
             private def findPetsByTags(da: DataAccessor): Endpoint[Seq[Pet]] =
    -        get("pet" :: "findByTags"  :: params("tags")) { (tags: Seq[String]) => 
    +        get("pet" :: "findByTags"  :: params("tags")) { (tags: Seq[String]) =>
                     Ok(da.Pet_findPetsByTags(tags))
             } handle {
               case e: Exception => BadRequest(e)
             }
     
             /**
    -        * 
    +        *
             * @return And endpoint representing a Pet
             */
             private def getPetById(da: DataAccessor): Endpoint[Pet] =
    -        get("pet" :: long ) { (petId: Long) => 
    +        get("pet" :: long ) { (petId: Long) =>
                     Ok(da.Pet_getPetById(petId))
             } handle {
               case e: Exception => BadRequest(e)
             }
     
             /**
    -        * 
    +        *
             * @return And endpoint representing a Unit
             */
             private def updatePet(da: DataAccessor): Endpoint[Unit] =
    -        put("pet"  :: jsonBody[Pet]) { (body: Pet) => 
    +        put("pet"  :: jsonBody[Pet]) { (body: Pet) =>
                     da.Pet_updatePet(body)
                     NoContent[Unit]
             } handle {
               case e: Exception => BadRequest(e)
             }
     
             /**
    -        * 
    +        *
             * @return And endpoint representing a Unit
             */
             private def updatePetWithForm(da: DataAccessor): Endpoint[Unit] =
    -        post("pet" :: long  :: string :: string) { (petId: Long, name: String, status: String) => 
    +        post("pet" :: long  :: string :: string) { (petId: Long, name: String, status: String) =>
                     da.Pet_updatePetWithForm(petId, name, status)
                     NoContent[Unit]
             } handle {
               case e: Exception => BadRequest(e)
             }
     
             /**
    -        * 
    +        *
             * @return And endpoint representing a ApiResponse
             */
             private def uploadFile(da: DataAccessor): Endpoint[ApiResponse] =
    -        post("pet" :: long :: "uploadImage"  :: string :: fileUpload("file")) { (petId: Long, additionalMetadata: String, file: FileUpload) => 
    +        post("pet" :: long :: "uploadImage"  :: string :: fileUpload("file")) { (petId: Long, additionalMetadata: String, file: FileUpload) =>
                     Ok(da.Pet_uploadFile(petId, additionalMetadata, file))
             } handle {
               case e: Exception => BadRequest(e)
    @@ -138,7 +139,7 @@ object PetApi {
         }
     
         private def bytesToFile(input: Array[Byte]): java.io.File = {
    -        val file = File.createTempFile("tmpPetApi", null)
    +        val file = Files.createTempFile("tmpPetApi", null).toFile()
             val output = new FileOutputStream(file)
             output.write(input)
             file
    
  • samples/server/petstore/finch/src/main/scala/io/swagger/petstore/apis/StoreApi.scala+10 9 modified
    @@ -16,6 +16,7 @@ import com.twitter.util.Future
     import com.twitter.io.Buf
     import io.finch._, items._
     import java.io.File
    +import java.nio.file.Files
     
     object StoreApi {
         /**
    @@ -29,45 +30,45 @@ object StoreApi {
                 placeOrder(da)
     
             /**
    -        * 
    +        *
             * @return And endpoint representing a Unit
             */
             private def deleteOrder(da: DataAccessor): Endpoint[Unit] =
    -        delete("store" :: "order" :: string ) { (orderId: String) => 
    +        delete("store" :: "order" :: string ) { (orderId: String) =>
                     da.Store_deleteOrder(orderId)
                     NoContent[Unit]
             } handle {
               case e: Exception => BadRequest(e)
             }
     
             /**
    -        * 
    +        *
             * @return And endpoint representing a Map[String, Int]
             */
             private def getInventory(da: DataAccessor): Endpoint[Map[String, Int]] =
    -        get("store" :: "inventory" ) { 
    +        get("store" :: "inventory" ) {
                     Ok(da.Store_getInventory())
             } handle {
               case e: Exception => BadRequest(e)
             }
     
             /**
    -        * 
    +        *
             * @return And endpoint representing a Order
             */
             private def getOrderById(da: DataAccessor): Endpoint[Order] =
    -        get("store" :: "order" :: long ) { (orderId: Long) => 
    +        get("store" :: "order" :: long ) { (orderId: Long) =>
                     Ok(da.Store_getOrderById(orderId))
             } handle {
               case e: Exception => BadRequest(e)
             }
     
             /**
    -        * 
    +        *
             * @return And endpoint representing a Order
             */
             private def placeOrder(da: DataAccessor): Endpoint[Order] =
    -        post("store" :: "order"  :: jsonBody[Order]) { (body: Order) => 
    +        post("store" :: "order"  :: jsonBody[Order]) { (body: Order) =>
                     Ok(da.Store_placeOrder(body))
             } handle {
               case e: Exception => BadRequest(e)
    @@ -85,7 +86,7 @@ object StoreApi {
         }
     
         private def bytesToFile(input: Array[Byte]): java.io.File = {
    -        val file = File.createTempFile("tmpStoreApi", null)
    +        val file = Files.createTempFile("tmpStoreApi", null).toFile()
             val output = new FileOutputStream(file)
             output.write(input)
             file
    
  • samples/server/petstore/finch/src/main/scala/io/swagger/petstore/apis/UserApi.scala+18 17 modified
    @@ -17,6 +17,7 @@ import com.twitter.util.Future
     import com.twitter.io.Buf
     import io.finch._, items._
     import java.io.File
    +import java.nio.file.Files
     
     object UserApi {
         /**
    @@ -34,93 +35,93 @@ object UserApi {
                 updateUser(da)
     
             /**
    -        * 
    +        *
             * @return And endpoint representing a Unit
             */
             private def createUser(da: DataAccessor): Endpoint[Unit] =
    -        post("user"  :: jsonBody[User]) { (body: User) => 
    +        post("user"  :: jsonBody[User]) { (body: User) =>
                     da.User_createUser(body)
                     NoContent[Unit]
             } handle {
               case e: Exception => BadRequest(e)
             }
     
             /**
    -        * 
    +        *
             * @return And endpoint representing a Unit
             */
             private def createUsersWithArrayInput(da: DataAccessor): Endpoint[Unit] =
    -        post("user" :: "createWithArray"  :: jsonBody[Seq[User]]) { (body: Seq[User]) => 
    +        post("user" :: "createWithArray"  :: jsonBody[Seq[User]]) { (body: Seq[User]) =>
                     da.User_createUsersWithArrayInput(body)
                     NoContent[Unit]
             } handle {
               case e: Exception => BadRequest(e)
             }
     
             /**
    -        * 
    +        *
             * @return And endpoint representing a Unit
             */
             private def createUsersWithListInput(da: DataAccessor): Endpoint[Unit] =
    -        post("user" :: "createWithList"  :: jsonBody[Seq[User]]) { (body: Seq[User]) => 
    +        post("user" :: "createWithList"  :: jsonBody[Seq[User]]) { (body: Seq[User]) =>
                     da.User_createUsersWithListInput(body)
                     NoContent[Unit]
             } handle {
               case e: Exception => BadRequest(e)
             }
     
             /**
    -        * 
    +        *
             * @return And endpoint representing a Unit
             */
             private def deleteUser(da: DataAccessor): Endpoint[Unit] =
    -        delete("user" :: string ) { (username: String) => 
    +        delete("user" :: string ) { (username: String) =>
                     da.User_deleteUser(username)
                     NoContent[Unit]
             } handle {
               case e: Exception => BadRequest(e)
             }
     
             /**
    -        * 
    +        *
             * @return And endpoint representing a User
             */
             private def getUserByName(da: DataAccessor): Endpoint[User] =
    -        get("user" :: string ) { (username: String) => 
    +        get("user" :: string ) { (username: String) =>
                     Ok(da.User_getUserByName(username))
             } handle {
               case e: Exception => BadRequest(e)
             }
     
             /**
    -        * 
    +        *
             * @return And endpoint representing a String
             */
             private def loginUser(da: DataAccessor): Endpoint[String] =
    -        get("user" :: "login"  :: string :: string) { (username: String, password: String) => 
    +        get("user" :: "login"  :: string :: string) { (username: String, password: String) =>
                     Ok(da.User_loginUser(username, password))
             } handle {
               case e: Exception => BadRequest(e)
             }
     
             /**
    -        * 
    +        *
             * @return And endpoint representing a Unit
             */
             private def logoutUser(da: DataAccessor): Endpoint[Unit] =
    -        get("user" :: "logout" ) { 
    +        get("user" :: "logout" ) {
                     da.User_logoutUser()
                     NoContent[Unit]
             } handle {
               case e: Exception => BadRequest(e)
             }
     
             /**
    -        * 
    +        *
             * @return And endpoint representing a Unit
             */
             private def updateUser(da: DataAccessor): Endpoint[Unit] =
    -        put("user" :: string  :: jsonBody[User]) { (username: String, body: User) => 
    +        put("user" :: string  :: jsonBody[User]) { (username: String, body: User) =>
                     da.User_updateUser(username, body)
                     NoContent[Unit]
             } handle {
    @@ -139,7 +140,7 @@ object UserApi {
         }
     
         private def bytesToFile(input: Array[Byte]): java.io.File = {
    -        val file = File.createTempFile("tmpUserApi", null)
    +        val file = Files.createTempFile("tmpUserApi", null).toFile()
             val output = new FileOutputStream(file)
             output.write(input)
             file
    

Vulnerability mechanics

Generated on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

4

News mentions

0

No linked articles in our index yet.