Update samples for java/jersey2-java6 (and fix artifact ID) (#5118)

* Update samples for java/jersey2-java6.

* Let the sample generation script set the right name for jersey2-java6.

This is the equivalent change to #5095, for jersey2-java6.

* Update samples for Java/Jersey2-java6.
This commit is contained in:
Paŭlo Ebermann 2017-03-23 08:22:14 +01:00 committed by wing328
parent 5f27fcab18
commit 9dc8cf3fa6
61 changed files with 707 additions and 1059 deletions

View File

@ -26,7 +26,7 @@ fi
# if you've executed sbt assembly previously it will use that instead. # 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" export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
ags="$@ generate -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" 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" echo "Removing files and folders under samples/client/petstore/java/jersey2/src/main"
rm -rf samples/client/petstore/java/jersey2-java6/src/main rm -rf samples/client/petstore/java/jersey2-java6/src/main

View File

@ -1,18 +1,6 @@
# #
# Generated by: https://github.com/swagger-api/swagger-codegen.git # Generated by: https://github.com/swagger-api/swagger-codegen.git
# #
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
language: java language: java
jdk: jdk:
- oraclejdk8 - oraclejdk8

View File

@ -82,7 +82,7 @@ if(hasProperty('target') && target == 'android') {
install { install {
repositories.mavenInstaller { repositories.mavenInstaller {
pom.artifactId = 'swagger-petstore-jersey2' pom.artifactId = 'swagger-petstore-jersey2-java6'
} }
} }

View File

@ -1,7 +1,7 @@
lazy val root = (project in file(".")). lazy val root = (project in file(".")).
settings( settings(
organization := "io.swagger", organization := "io.swagger",
name := "swagger-petstore-jersey2", name := "swagger-petstore-jersey2-java6",
version := "1.0.0", version := "1.0.0",
scalaVersion := "2.11.4", scalaVersion := "2.11.4",
scalacOptions ++= Seq("-feature"), scalacOptions ++= Seq("-feature"),

View File

@ -0,0 +1,15 @@
# 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]

View File

@ -0,0 +1,10 @@
# ClassModel
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**propertyClass** | **String** | | [optional]

View File

@ -7,6 +7,7 @@ Name | Type | Description | Notes
**enumString** | [**EnumStringEnum**](#EnumStringEnum) | | [optional] **enumString** | [**EnumStringEnum**](#EnumStringEnum) | | [optional]
**enumInteger** | [**EnumIntegerEnum**](#EnumIntegerEnum) | | [optional] **enumInteger** | [**EnumIntegerEnum**](#EnumIntegerEnum) | | [optional]
**enumNumber** | [**EnumNumberEnum**](#EnumNumberEnum) | | [optional] **enumNumber** | [**EnumNumberEnum**](#EnumNumberEnum) | | [optional]
**outerEnum** | [**OuterEnum**](OuterEnum.md) | | [optional]
<a name="EnumStringEnum"></a> <a name="EnumStringEnum"></a>

View File

@ -15,6 +15,8 @@ Method | HTTP request | Description
To test \&quot;client\&quot; model To test \&quot;client\&quot; model
To test \&quot;client\&quot; model
### Example ### Example
```java ```java
// Import classes: // Import classes:
@ -137,6 +139,8 @@ null (empty response body)
To test enum parameters To test enum parameters
To test enum parameters
### Example ### Example
```java ```java
// Import classes: // Import classes:
@ -151,7 +155,7 @@ List<String> enumHeaderStringArray = Arrays.asList("enumHeaderStringArray_exampl
String enumHeaderString = "-efg"; // String | Header parameter enum test (string) String enumHeaderString = "-efg"; // String | Header parameter enum test (string)
List<String> enumQueryStringArray = Arrays.asList("enumQueryStringArray_example"); // List<String> | Query parameter enum test (string array) List<String> enumQueryStringArray = Arrays.asList("enumQueryStringArray_example"); // List<String> | Query parameter enum test (string array)
String enumQueryString = "-efg"; // String | Query parameter enum test (string) String enumQueryString = "-efg"; // String | Query parameter enum test (string)
BigDecimal enumQueryInteger = new BigDecimal(); // BigDecimal | Query parameter enum test (double) Integer enumQueryInteger = 56; // Integer | Query parameter enum test (double)
Double enumQueryDouble = 3.4D; // Double | Query parameter enum test (double) Double enumQueryDouble = 3.4D; // Double | Query parameter enum test (double)
try { try {
apiInstance.testEnumParameters(enumFormStringArray, enumFormString, enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble); apiInstance.testEnumParameters(enumFormStringArray, enumFormString, enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble);
@ -171,8 +175,8 @@ Name | Type | Description | Notes
**enumHeaderString** | **String**| Header parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] **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: >, $] **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)] **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)]
**enumQueryInteger** | **BigDecimal**| Query parameter enum test (double) | [optional] **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, -2]
**enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional] **enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional] [enum: 1.1, -1.2]
### Return type ### Return type
@ -184,6 +188,6 @@ No authorization required
### HTTP request headers ### HTTP request headers
- **Content-Type**: application/json - **Content-Type**: */*
- **Accept**: application/json - **Accept**: */*

View File

@ -15,7 +15,7 @@ Name | Type | Description | Notes
**binary** | **byte[]** | | [optional] **binary** | **byte[]** | | [optional]
**date** | [**LocalDate**](LocalDate.md) | | **date** | [**LocalDate**](LocalDate.md) | |
**dateTime** | [**DateTime**](DateTime.md) | | [optional] **dateTime** | [**DateTime**](DateTime.md) | | [optional]
**uuid** | **String** | | [optional] **uuid** | [**UUID**](UUID.md) | | [optional]
**password** | **String** | | **password** | **String** | |

View File

@ -4,7 +4,7 @@
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**uuid** | **String** | | [optional] **uuid** | [**UUID**](UUID.md) | | [optional]
**dateTime** | [**DateTime**](DateTime.md) | | [optional] **dateTime** | [**DateTime**](DateTime.md) | | [optional]
**map** | [**Map&lt;String, Animal&gt;**](Animal.md) | | [optional] **map** | [**Map&lt;String, Animal&gt;**](Animal.md) | | [optional]

View File

@ -0,0 +1,14 @@
# OuterEnum
## Enum
* `PLACED` (value: `"placed"`)
* `APPROVED` (value: `"approved"`)
* `DELIVERED` (value: `"delivered"`)

View File

@ -1,431 +0,0 @@
<!-- ====================================================================== -->
<!-- -->
<!-- Generated by Maven Help Plugin on 2017-01-21T07:16:42 -->
<!-- See: http://maven.apache.org/plugins/maven-help-plugin/ -->
<!-- -->
<!-- ====================================================================== -->
<!-- ====================================================================== -->
<!-- -->
<!-- Effective POM for project -->
<!-- 'io.swagger:swagger-petstore-jersey2-java6:jar:1.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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>io.swagger</groupId>
<artifactId>swagger-petstore-jersey2-java6</artifactId>
<version>1.0.0</version>
<name>swagger-petstore-jersey2-java6</name>
<prerequisites>
<maven>2.2.0</maven>
</prerequisites>
<scm>
<connection>scm:git:git@github.com:swagger-api/swagger-mustache.git</connection>
<developerConnection>scm:git:git@github.com:swagger-api/swagger-codegen.git</developerConnection>
<url>https://github.com/swagger-api/swagger-codegen</url>
</scm>
<properties>
<commons_io_version>2.5</commons_io_version>
<commons_lang3_version>3.5</commons_lang3_version>
<jackson-version>2.7.5</jackson-version>
<jersey-version>2.22.2</jersey-version>
<jodatime-version>2.9.4</jodatime-version>
<junit-version>4.12</junit-version>
<maven-plugin-version>1.0.0</maven-plugin-version>
<swagger-core-version>1.5.9</swagger-core-version>
</properties>
<dependencies>
<dependency>
<groupId>io.swagger</groupId>
<artifactId>swagger-annotations</artifactId>
<version>1.5.9</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.glassfish.jersey.core</groupId>
<artifactId>jersey-client</artifactId>
<version>2.22.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.glassfish.jersey.media</groupId>
<artifactId>jersey-media-multipart</artifactId>
<version>2.22.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.glassfish.jersey.media</groupId>
<artifactId>jersey-media-json-jackson</artifactId>
<version>2.22.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>2.7.5</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>2.7.5</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.7.5</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-joda</artifactId>
<version>2.7.5</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
<version>2.9.4</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.brsanthu</groupId>
<artifactId>migbase64</artifactId>
<version>2.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.5</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.5</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
</dependencies>
<repositories>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>Central Repository</name>
<url>https://repo.maven.apache.org/maven2</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<releases>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>Central Repository</name>
<url>https://repo.maven.apache.org/maven2</url>
</pluginRepository>
</pluginRepositories>
<build>
<sourceDirectory>/Users/williamcheng/Code/jan2017/swagger-codegen/samples/client/petstore/java/jersey2-java6/src/main/java</sourceDirectory>
<scriptSourceDirectory>/Users/williamcheng/Code/jan2017/swagger-codegen/samples/client/petstore/java/jersey2-java6/src/main/scripts</scriptSourceDirectory>
<testSourceDirectory>/Users/williamcheng/Code/jan2017/swagger-codegen/samples/client/petstore/java/jersey2-java6/src/test/java</testSourceDirectory>
<outputDirectory>/Users/williamcheng/Code/jan2017/swagger-codegen/samples/client/petstore/java/jersey2-java6/target/classes</outputDirectory>
<testOutputDirectory>/Users/williamcheng/Code/jan2017/swagger-codegen/samples/client/petstore/java/jersey2-java6/target/test-classes</testOutputDirectory>
<resources>
<resource>
<directory>/Users/williamcheng/Code/jan2017/swagger-codegen/samples/client/petstore/java/jersey2-java6/src/main/resources</directory>
</resource>
</resources>
<testResources>
<testResource>
<directory>/Users/williamcheng/Code/jan2017/swagger-codegen/samples/client/petstore/java/jersey2-java6/src/test/resources</directory>
</testResource>
</testResources>
<directory>/Users/williamcheng/Code/jan2017/swagger-codegen/samples/client/petstore/java/jersey2-java6/target</directory>
<finalName>swagger-petstore-jersey2-java6-1.0.0</finalName>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.3</version>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.2-beta-5</version>
</plugin>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.8</version>
</plugin>
<plugin>
<artifactId>maven-release-plugin</artifactId>
<version>2.3.2</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.12</version>
<executions>
<execution>
<id>default-test</id>
<phase>test</phase>
<goals>
<goal>test</goal>
</goals>
<configuration>
<systemProperties>
<property>
<name>loggerPath</name>
<value>conf/log4j.properties</value>
</property>
</systemProperties>
<argLine>-Xms512m -Xmx1500m</argLine>
<parallel>methods</parallel>
<forkMode>pertest</forkMode>
</configuration>
</execution>
</executions>
<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>
<version>2.8</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>/Users/williamcheng/Code/jan2017/swagger-codegen/samples/client/petstore/java/jersey2-java6/target/lib</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>2.6</version>
<executions>
<execution>
<id>default-jar</id>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
<configuration />
</execution>
<execution>
<goals>
<goal>jar</goal>
<goal>test-jar</goal>
</goals>
<configuration />
</execution>
</executions>
<configuration />
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.12</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>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.5.1</version>
<executions>
<execution>
<id>default-compile</id>
<phase>compile</phase>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</execution>
<execution>
<id>default-testCompile</id>
<phase>test-compile</phase>
<goals>
<goal>testCompile</goal>
</goals>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</execution>
</executions>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.10.4</version>
</plugin>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>2.5</version>
<executions>
<execution>
<id>default-clean</id>
<phase>clean</phase>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>2.6</version>
<executions>
<execution>
<id>default-testResources</id>
<phase>process-test-resources</phase>
<goals>
<goal>testResources</goal>
</goals>
</execution>
<execution>
<id>default-resources</id>
<phase>process-resources</phase>
<goals>
<goal>resources</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-install-plugin</artifactId>
<version>2.4</version>
<executions>
<execution>
<id>default-install</id>
<phase>install</phase>
<goals>
<goal>install</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.7</version>
<executions>
<execution>
<id>default-deploy</id>
<phase>deploy</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-site-plugin</artifactId>
<version>3.3</version>
<executions>
<execution>
<id>default-site</id>
<phase>site</phase>
<goals>
<goal>site</goal>
</goals>
<configuration>
<outputDirectory>/Users/williamcheng/Code/jan2017/swagger-codegen/samples/client/petstore/java/jersey2-java6/target/site</outputDirectory>
<reportPlugins>
<reportPlugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
</reportPlugin>
</reportPlugins>
</configuration>
</execution>
<execution>
<id>default-deploy</id>
<phase>site-deploy</phase>
<goals>
<goal>deploy</goal>
</goals>
<configuration>
<outputDirectory>/Users/williamcheng/Code/jan2017/swagger-codegen/samples/client/petstore/java/jersey2-java6/target/site</outputDirectory>
<reportPlugins>
<reportPlugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
</reportPlugin>
</reportPlugins>
</configuration>
</execution>
</executions>
<configuration>
<outputDirectory>/Users/williamcheng/Code/jan2017/swagger-codegen/samples/client/petstore/java/jersey2-java6/target/site</outputDirectory>
<reportPlugins>
<reportPlugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
</reportPlugin>
</reportPlugins>
</configuration>
</plugin>
</plugins>
</build>
<reporting>
<outputDirectory>/Users/williamcheng/Code/jan2017/swagger-codegen/samples/client/petstore/java/jersey2-java6/target/site</outputDirectory>
</reporting>
</project>

View File

@ -6,8 +6,10 @@
<packaging>jar</packaging> <packaging>jar</packaging>
<name>swagger-petstore-jersey2-java6</name> <name>swagger-petstore-jersey2-java6</name>
<version>1.0.0</version> <version>1.0.0</version>
<url>https://github.com/swagger-api/swagger-codegen</url>
<description>Swagger Java</description>
<scm> <scm>
<connection>scm:git:git@github.com:swagger-api/swagger-mustache.git</connection> <connection>scm:git:git@github.com:swagger-api/swagger-codegen.git</connection>
<developerConnection>scm:git:git@github.com:swagger-api/swagger-codegen.git</developerConnection> <developerConnection>scm:git:git@github.com:swagger-api/swagger-codegen.git</developerConnection>
<url>https://github.com/swagger-api/swagger-codegen</url> <url>https://github.com/swagger-api/swagger-codegen</url>
</scm> </scm>
@ -15,6 +17,23 @@
<maven>2.2.0</maven> <maven>2.2.0</maven>
</prerequisites> </prerequisites>
<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> <build>
<plugins> <plugins>
<plugin> <plugin>
@ -108,9 +127,55 @@
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId> <artifactId>maven-javadoc-plugin</artifactId>
<version>2.10.4</version> <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> </plugin>
</plugins> </plugins>
</build> </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> <dependencies>
<dependency> <dependency>
<groupId>io.swagger</groupId> <groupId>io.swagger</groupId>
@ -189,7 +254,7 @@
</dependency> </dependency>
</dependencies> </dependencies>
<properties> <properties>
<swagger-core-version>1.5.9</swagger-core-version> <swagger-core-version>1.5.12</swagger-core-version>
<jersey-version>2.22.2</jersey-version> <jersey-version>2.22.2</jersey-version>
<jackson-version>2.7.5</jackson-version> <jackson-version>2.7.5</jackson-version>
<jodatime-version>2.9.4</jodatime-version> <jodatime-version>2.9.4</jodatime-version>

View File

@ -1 +1 @@
rootProject.name = "swagger-petstore-jersey2" rootProject.name = "swagger-petstore-jersey2-java6"

View File

@ -86,6 +86,7 @@ public class ApiClient {
/** /**
* Gets the JSON instance to do JSON serialization and deserialization. * Gets the JSON instance to do JSON serialization and deserialization.
* @return JSON
*/ */
public JSON getJSON() { public JSON getJSON() {
return json; return json;
@ -111,6 +112,7 @@ public class ApiClient {
/** /**
* Gets the status code of the previous request * Gets the status code of the previous request
* @return Status code
*/ */
public int getStatusCode() { public int getStatusCode() {
return statusCode; return statusCode;
@ -118,6 +120,7 @@ public class ApiClient {
/** /**
* Gets the response headers of the previous request * Gets the response headers of the previous request
* @return Response headers
*/ */
public Map<String, List<String>> getResponseHeaders() { public Map<String, List<String>> getResponseHeaders() {
return responseHeaders; return responseHeaders;
@ -125,6 +128,7 @@ public class ApiClient {
/** /**
* Get authentications (key: authentication name, value: authentication). * Get authentications (key: authentication name, value: authentication).
* @return Map of authentication object
*/ */
public Map<String, Authentication> getAuthentications() { public Map<String, Authentication> getAuthentications() {
return authentications; return authentications;
@ -142,6 +146,7 @@ public class ApiClient {
/** /**
* Helper method to set username for the first HTTP basic authentication. * Helper method to set username for the first HTTP basic authentication.
* @param username Username
*/ */
public void setUsername(String username) { public void setUsername(String username) {
for (Authentication auth : authentications.values()) { for (Authentication auth : authentications.values()) {
@ -155,6 +160,7 @@ public class ApiClient {
/** /**
* Helper method to set password for the first HTTP basic authentication. * Helper method to set password for the first HTTP basic authentication.
* @param password Password
*/ */
public void setPassword(String password) { public void setPassword(String password) {
for (Authentication auth : authentications.values()) { for (Authentication auth : authentications.values()) {
@ -168,6 +174,7 @@ public class ApiClient {
/** /**
* Helper method to set API key value for the first API key authentication. * Helper method to set API key value for the first API key authentication.
* @param apiKey API key
*/ */
public void setApiKey(String apiKey) { public void setApiKey(String apiKey) {
for (Authentication auth : authentications.values()) { for (Authentication auth : authentications.values()) {
@ -181,6 +188,7 @@ public class ApiClient {
/** /**
* Helper method to set API key prefix for the first API key authentication. * Helper method to set API key prefix for the first API key authentication.
* @param apiKeyPrefix API key prefix
*/ */
public void setApiKeyPrefix(String apiKeyPrefix) { public void setApiKeyPrefix(String apiKeyPrefix) {
for (Authentication auth : authentications.values()) { for (Authentication auth : authentications.values()) {
@ -194,6 +202,7 @@ public class ApiClient {
/** /**
* Helper method to set access token for the first OAuth2 authentication. * Helper method to set access token for the first OAuth2 authentication.
* @param accessToken Access token
*/ */
public void setAccessToken(String accessToken) { public void setAccessToken(String accessToken) {
for (Authentication auth : authentications.values()) { for (Authentication auth : authentications.values()) {
@ -207,6 +216,8 @@ public class ApiClient {
/** /**
* Set the User-Agent header's value (by adding to the default header map). * 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) { public ApiClient setUserAgent(String userAgent) {
addDefaultHeader("User-Agent", userAgent); addDefaultHeader("User-Agent", userAgent);
@ -218,6 +229,7 @@ public class ApiClient {
* *
* @param key The header's key * @param key The header's key
* @param value The header's value * @param value The header's value
* @return API client
*/ */
public ApiClient addDefaultHeader(String key, String value) { public ApiClient addDefaultHeader(String key, String value) {
defaultHeaderMap.put(key, value); defaultHeaderMap.put(key, value);
@ -226,6 +238,7 @@ public class ApiClient {
/** /**
* Check that whether debugging is enabled for this API client. * Check that whether debugging is enabled for this API client.
* @return True if debugging is switched on
*/ */
public boolean isDebugging() { public boolean isDebugging() {
return debugging; return debugging;
@ -235,6 +248,7 @@ public class ApiClient {
* Enable/disable debugging for this API client. * Enable/disable debugging for this API client.
* *
* @param debugging To enable (true) or disable (false) debugging * @param debugging To enable (true) or disable (false) debugging
* @return API client
*/ */
public ApiClient setDebugging(boolean debugging) { public ApiClient setDebugging(boolean debugging) {
this.debugging = debugging; this.debugging = debugging;
@ -248,12 +262,17 @@ public class ApiClient {
* with file response. The default value is <code>null</code>, i.e. using * with file response. The default value is <code>null</code>, i.e. using
* the system's default tempopary folder. * the system's default tempopary folder.
* *
* @see https://docs.oracle.com/javase/7/docs/api/java/io/File.html#createTempFile(java.lang.String,%20java.lang.String,%20java.io.File) * @return Temp folder path
*/ */
public String getTempFolderPath() { public String getTempFolderPath() {
return tempFolderPath; return tempFolderPath;
} }
/**
* Set temp folder path
* @param tempFolderPath Temp folder path
* @return API client
*/
public ApiClient setTempFolderPath(String tempFolderPath) { public ApiClient setTempFolderPath(String tempFolderPath) {
this.tempFolderPath = tempFolderPath; this.tempFolderPath = tempFolderPath;
return this; return this;
@ -261,6 +280,7 @@ public class ApiClient {
/** /**
* Connect timeout (in milliseconds). * Connect timeout (in milliseconds).
* @return Connection timeout
*/ */
public int getConnectTimeout() { public int getConnectTimeout() {
return connectionTimeout; return connectionTimeout;
@ -270,6 +290,8 @@ public class ApiClient {
* Set the connect timeout (in milliseconds). * Set the connect timeout (in milliseconds).
* A value of 0 means no timeout, otherwise values must be between 1 and * A value of 0 means no timeout, otherwise values must be between 1 and
* {@link Integer#MAX_VALUE}. * {@link Integer#MAX_VALUE}.
* @param connectionTimeout Connection timeout in milliseconds
* @return API client
*/ */
public ApiClient setConnectTimeout(int connectionTimeout) { public ApiClient setConnectTimeout(int connectionTimeout) {
this.connectionTimeout = connectionTimeout; this.connectionTimeout = connectionTimeout;
@ -279,6 +301,7 @@ public class ApiClient {
/** /**
* Get the date format used to parse/format date parameters. * Get the date format used to parse/format date parameters.
* @return Date format
*/ */
public DateFormat getDateFormat() { public DateFormat getDateFormat() {
return dateFormat; return dateFormat;
@ -286,6 +309,8 @@ public class ApiClient {
/** /**
* Set the date format used to parse/format date parameters. * Set the date format used to parse/format date parameters.
* @param dateFormat Date format
* @return API client
*/ */
public ApiClient setDateFormat(DateFormat dateFormat) { public ApiClient setDateFormat(DateFormat dateFormat) {
this.dateFormat = dateFormat; this.dateFormat = dateFormat;
@ -296,6 +321,8 @@ public class ApiClient {
/** /**
* Parse the given string into Date object. * Parse the given string into Date object.
* @param str String
* @return Date
*/ */
public Date parseDate(String str) { public Date parseDate(String str) {
try { try {
@ -307,6 +334,8 @@ public class ApiClient {
/** /**
* Format the given Date object into string. * Format the given Date object into string.
* @param date Date
* @return Date in string format
*/ */
public String formatDate(Date date) { public String formatDate(Date date) {
return dateFormat.format(date); return dateFormat.format(date);
@ -314,6 +343,8 @@ public class ApiClient {
/** /**
* Format the given parameter object into string. * Format the given parameter object into string.
* @param param Object
* @return Object in string format
*/ */
public String parameterToString(Object param) { public String parameterToString(Object param) {
if (param == null) { if (param == null) {
@ -324,7 +355,7 @@ public class ApiClient {
StringBuilder b = new StringBuilder(); StringBuilder b = new StringBuilder();
for(Object o : (Collection)param) { for(Object o : (Collection)param) {
if(b.length() > 0) { if(b.length() > 0) {
b.append(","); b.append(',');
} }
b.append(String.valueOf(o)); b.append(String.valueOf(o));
} }
@ -335,15 +366,19 @@ public class ApiClient {
} }
/* /*
Format to {@code Pair} objects. * 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){ public List<Pair> parameterToPairs(String collectionFormat, String name, Object value){
List<Pair> params = new ArrayList<Pair>(); List<Pair> params = new ArrayList<Pair>();
// preconditions // preconditions
if (name == null || name.isEmpty() || value == null) return params; if (name == null || name.isEmpty() || value == null) return params;
Collection valueCollection = null; Collection valueCollection;
if (value instanceof Collection) { if (value instanceof Collection) {
valueCollection = (Collection) value; valueCollection = (Collection) value;
} else { } else {
@ -355,11 +390,11 @@ public class ApiClient {
return params; return params;
} }
// get the collection format // get the collection format (default: csv)
collectionFormat = (collectionFormat == null || collectionFormat.isEmpty() ? "csv" : collectionFormat); // default: csv String format = (collectionFormat == null || collectionFormat.isEmpty() ? "csv" : collectionFormat);
// create the params based on the collection format // create the params based on the collection format
if (collectionFormat.equals("multi")) { if ("multi".equals(format)) {
for (Object item : valueCollection) { for (Object item : valueCollection) {
params.add(new Pair(name, parameterToString(item))); params.add(new Pair(name, parameterToString(item)));
} }
@ -369,13 +404,13 @@ public class ApiClient {
String delimiter = ","; String delimiter = ",";
if (collectionFormat.equals("csv")) { if ("csv".equals(format)) {
delimiter = ","; delimiter = ",";
} else if (collectionFormat.equals("ssv")) { } else if ("ssv".equals(format)) {
delimiter = " "; delimiter = " ";
} else if (collectionFormat.equals("tsv")) { } else if ("tsv".equals(format)) {
delimiter = "\t"; delimiter = "\t";
} else if (collectionFormat.equals("pipes")) { } else if ("pipes".equals(format)) {
delimiter = "|"; delimiter = "|";
} }
@ -396,6 +431,8 @@ public class ApiClient {
* application/json * application/json
* application/json; charset=UTF8 * application/json; charset=UTF8
* APPLICATION/JSON * APPLICATION/JSON
* @param mime MIME
* @return True if the MIME type is JSON
*/ */
public boolean isJsonMime(String mime) { public boolean isJsonMime(String mime) {
return mime != null && mime.matches("(?i)application\\/json(;.*)?"); return mime != null && mime.matches("(?i)application\\/json(;.*)?");
@ -445,6 +482,8 @@ public class ApiClient {
/** /**
* Escape the given string to be used as URL query value. * Escape the given string to be used as URL query value.
* @param str String
* @return Escaped string
*/ */
public String escapeString(String str) { public String escapeString(String str) {
try { try {
@ -457,9 +496,14 @@ public class ApiClient {
/** /**
* Serialize the given Java object into string entity according the given * Serialize the given Java object into string entity according the given
* Content-Type (only JSON is supported for now). * 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 { public Entity<?> serialize(Object obj, Map<String, Object> formParams, String contentType) throws ApiException {
Entity<?> entity = null; Entity<?> entity;
if (contentType.startsWith("multipart/form-data")) { if (contentType.startsWith("multipart/form-data")) {
MultiPart multiPart = new MultiPart(); MultiPart multiPart = new MultiPart();
for (Entry<String, Object> param: formParams.entrySet()) { for (Entry<String, Object> param: formParams.entrySet()) {
@ -489,7 +533,13 @@ public class ApiClient {
/** /**
* Deserialize response body to Java object according to the Content-Type. * 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 { public <T> T deserialize(Response response, GenericType<T> returnType) throws ApiException {
if (response == null || returnType == null) { if (response == null || returnType == null) {
return null; return null;
@ -498,9 +548,8 @@ public class ApiClient {
if ("byte[]".equals(returnType.toString())) { if ("byte[]".equals(returnType.toString())) {
// Handle binary response (byte array). // Handle binary response (byte array).
return (T) response.readEntity(byte[].class); return (T) response.readEntity(byte[].class);
} else if (returnType.equals(File.class)) { } else if (returnType.getRawType() == File.class) {
// Handle file downloading. // Handle file downloading.
@SuppressWarnings("unchecked")
T file = (T) downloadFileFromResponse(response); T file = (T) downloadFileFromResponse(response);
return file; return file;
} }
@ -517,6 +566,8 @@ public class ApiClient {
/** /**
* Download file from the given response. * 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 * @throws ApiException If fail to read file content from response and write to disk
*/ */
public File downloadFileFromResponse(Response response) throws ApiException { public File downloadFileFromResponse(Response response) throws ApiException {
@ -541,13 +592,13 @@ public class ApiClient {
filename = matcher.group(1); filename = matcher.group(1);
} }
String prefix = null; String prefix;
String suffix = null; String suffix = null;
if (filename == null) { if (filename == null) {
prefix = "download-"; prefix = "download-";
suffix = ""; suffix = "";
} else { } else {
int pos = filename.lastIndexOf("."); int pos = filename.lastIndexOf('.');
if (pos == -1) { if (pos == -1) {
prefix = filename + "-"; prefix = filename + "-";
} else { } else {
@ -568,6 +619,7 @@ public class ApiClient {
/** /**
* Invoke API by sending HTTP request with the given options. * Invoke API by sending HTTP request with the given options.
* *
* @param <T> Type
* @param path The sub-path of the HTTP URL * @param path The sub-path of the HTTP URL
* @param method The request method, one of "GET", "POST", "PUT", and "DELETE" * @param method The request method, one of "GET", "POST", "PUT", and "DELETE"
* @param queryParams The query parameters * @param queryParams The query parameters
@ -579,6 +631,7 @@ public class ApiClient {
* @param authNames The authentications to apply * @param authNames The authentications to apply
* @param returnType The return type into which to deserialize the response * @param returnType The return type into which to deserialize the response
* @return The response body in type of string * @return The response body in type of string
* @throws ApiException API exception
*/ */
public <T> 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 { public <T> 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); updateParamsForAuth(authNames, queryParams, headerParams);
@ -597,16 +650,17 @@ public class ApiClient {
Invocation.Builder invocationBuilder = target.request().accept(accept); Invocation.Builder invocationBuilder = target.request().accept(accept);
for (String key : headerParams.keySet()) { for (Entry<String, String> entry : headerParams.entrySet()) {
String value = headerParams.get(key); String value = entry.getValue();
if (value != null) { if (value != null) {
invocationBuilder = invocationBuilder.header(key, value); invocationBuilder = invocationBuilder.header(entry.getKey(), value);
} }
} }
for (String key : defaultHeaderMap.keySet()) { for (Entry<String, String> entry : defaultHeaderMap.entrySet()) {
String key = entry.getKey();
if (!headerParams.containsKey(key)) { if (!headerParams.containsKey(key)) {
String value = defaultHeaderMap.get(key); String value = entry.getValue();
if (value != null) { if (value != null) {
invocationBuilder = invocationBuilder.header(key, value); invocationBuilder = invocationBuilder.header(key, value);
} }
@ -615,7 +669,7 @@ public class ApiClient {
Entity<?> entity = serialize(body, formParams, contentType); Entity<?> entity = serialize(body, formParams, contentType);
Response response = null; Response response;
if ("GET".equals(method)) { if ("GET".equals(method)) {
response = invocationBuilder.get(); response = invocationBuilder.get();
@ -625,6 +679,8 @@ public class ApiClient {
response = invocationBuilder.put(entity); response = invocationBuilder.put(entity);
} else if ("DELETE".equals(method)) { } else if ("DELETE".equals(method)) {
response = invocationBuilder.delete(); response = invocationBuilder.delete();
} else if ("PATCH".equals(method)) {
response = invocationBuilder.header("X-HTTP-Method-Override", "PATCH").post(entity);
} else { } else {
throw new ApiException(500, "unknown method type " + method); throw new ApiException(500, "unknown method type " + method);
} }
@ -634,7 +690,7 @@ public class ApiClient {
if (response.getStatus() == Status.NO_CONTENT.getStatusCode()) { if (response.getStatus() == Status.NO_CONTENT.getStatusCode()) {
return null; return null;
} else if (response.getStatusInfo().getFamily().equals(Status.Family.SUCCESSFUL)) { } else if (response.getStatusInfo().getFamily() == Status.Family.SUCCESSFUL) {
if (returnType == null) if (returnType == null)
return null; return null;
else else
@ -660,6 +716,8 @@ public class ApiClient {
/** /**
* Build the Client used to make HTTP requests. * Build the Client used to make HTTP requests.
* @param debugging Debug setting
* @return Client
*/ */
private Client buildHttpClient(boolean debugging) { private Client buildHttpClient(boolean debugging) {
final ClientConfig clientConfig = new ClientConfig(); final ClientConfig clientConfig = new ClientConfig();

View File

@ -8,18 +8,6 @@
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git * https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually. * Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */

View File

@ -8,18 +8,6 @@
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git * https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually. * Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */

View File

@ -25,6 +25,7 @@ public class JSON implements ContextResolver<ObjectMapper> {
/** /**
* Set the date format for JSON (de)serialization with Date properties. * Set the date format for JSON (de)serialization with Date properties.
* @param dateFormat Date format
*/ */
public void setDateFormat(DateFormat dateFormat) { public void setDateFormat(DateFormat dateFormat) {
mapper.setDateFormat(dateFormat); mapper.setDateFormat(dateFormat);

View File

@ -8,18 +8,6 @@
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git * https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually. * Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */

View File

@ -8,18 +8,6 @@
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git * https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually. * Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
package io.swagger.client; package io.swagger.client;

View File

@ -8,18 +8,6 @@
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git * https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually. * Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */

View File

@ -7,10 +7,10 @@ import io.swagger.client.Pair;
import javax.ws.rs.core.GenericType; import javax.ws.rs.core.GenericType;
import io.swagger.client.model.Client;
import org.joda.time.LocalDate;
import org.joda.time.DateTime;
import java.math.BigDecimal; import java.math.BigDecimal;
import io.swagger.client.model.Client;
import org.joda.time.DateTime;
import org.joda.time.LocalDate;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
@ -39,7 +39,7 @@ public class FakeApi {
/** /**
* To test \&quot;client\&quot; model * To test \&quot;client\&quot; model
* * To test \&quot;client\&quot; model
* @param body client model (required) * @param body client model (required)
* @return Client * @return Client
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
@ -53,7 +53,7 @@ public class FakeApi {
} }
// create path and map variables // create path and map variables
String localVarPath = "/fake".replaceAll("\\{format\\}","json"); String localVarPath = "/fake";
// query params // query params
List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarQueryParams = new ArrayList<Pair>();
@ -121,7 +121,7 @@ public class FakeApi {
} }
// create path and map variables // create path and map variables
String localVarPath = "/fake".replaceAll("\\{format\\}","json"); String localVarPath = "/fake";
// query params // query params
List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarQueryParams = new ArrayList<Pair>();
@ -176,7 +176,7 @@ if (paramCallback != null)
} }
/** /**
* To test enum parameters * To test enum parameters
* * To test enum parameters
* @param enumFormStringArray Form parameter enum test (string array) (optional) * @param enumFormStringArray Form parameter enum test (string array) (optional)
* @param enumFormString Form parameter enum test (string) (optional, default to -efg) * @param enumFormString Form parameter enum test (string) (optional, default to -efg)
* @param enumHeaderStringArray Header parameter enum test (string array) (optional) * @param enumHeaderStringArray Header parameter enum test (string array) (optional)
@ -187,11 +187,11 @@ if (paramCallback != null)
* @param enumQueryDouble Query parameter enum test (double) (optional) * @param enumQueryDouble Query parameter enum test (double) (optional)
* @throws ApiException if fails to make API call * @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, BigDecimal enumQueryInteger, Double enumQueryDouble) throws ApiException { public void testEnumParameters(List<String> enumFormStringArray, String enumFormString, List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble) throws ApiException {
Object localVarPostBody = null; Object localVarPostBody = null;
// create path and map variables // create path and map variables
String localVarPath = "/fake".replaceAll("\\{format\\}","json"); String localVarPath = "/fake";
// query params // query params
List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarQueryParams = new ArrayList<Pair>();
@ -215,12 +215,12 @@ if (enumQueryDouble != null)
localVarFormParams.put("enum_query_double", enumQueryDouble); localVarFormParams.put("enum_query_double", enumQueryDouble);
final String[] localVarAccepts = { final String[] localVarAccepts = {
"application/json" "*/*"
}; };
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = { final String[] localVarContentTypes = {
"application/json" "*/*"
}; };
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);

View File

@ -7,9 +7,9 @@ import io.swagger.client.Pair;
import javax.ws.rs.core.GenericType; import javax.ws.rs.core.GenericType;
import io.swagger.client.model.Pet;
import java.io.File; import java.io.File;
import io.swagger.client.model.ModelApiResponse; import io.swagger.client.model.ModelApiResponse;
import io.swagger.client.model.Pet;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
@ -51,7 +51,7 @@ public class PetApi {
} }
// create path and map variables // create path and map variables
String localVarPath = "/pet".replaceAll("\\{format\\}","json"); String localVarPath = "/pet";
// query params // query params
List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarQueryParams = new ArrayList<Pair>();
@ -92,7 +92,7 @@ public class PetApi {
} }
// create path and map variables // create path and map variables
String localVarPath = "/pet/{petId}".replaceAll("\\{format\\}","json") String localVarPath = "/pet/{petId}"
.replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString())); .replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString()));
// query params // query params
@ -124,7 +124,7 @@ public class PetApi {
* Finds Pets by status * Finds Pets by status
* Multiple status values can be provided with comma separated strings * Multiple status values can be provided with comma separated strings
* @param status Status values that need to be considered for filter (required) * @param status Status values that need to be considered for filter (required)
* @return List<Pet> * @return List&lt;Pet&gt;
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
*/ */
public List<Pet> findPetsByStatus(List<String> status) throws ApiException { public List<Pet> findPetsByStatus(List<String> status) throws ApiException {
@ -136,7 +136,7 @@ public class PetApi {
} }
// create path and map variables // create path and map variables
String localVarPath = "/pet/findByStatus".replaceAll("\\{format\\}","json"); String localVarPath = "/pet/findByStatus";
// query params // query params
List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarQueryParams = new ArrayList<Pair>();
@ -166,7 +166,7 @@ public class PetApi {
* Finds Pets by tags * Finds Pets by tags
* Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
* @param tags Tags to filter by (required) * @param tags Tags to filter by (required)
* @return List<Pet> * @return List&lt;Pet&gt;
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
*/ */
public List<Pet> findPetsByTags(List<String> tags) throws ApiException { public List<Pet> findPetsByTags(List<String> tags) throws ApiException {
@ -178,7 +178,7 @@ public class PetApi {
} }
// create path and map variables // create path and map variables
String localVarPath = "/pet/findByTags".replaceAll("\\{format\\}","json"); String localVarPath = "/pet/findByTags";
// query params // query params
List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarQueryParams = new ArrayList<Pair>();
@ -220,7 +220,7 @@ public class PetApi {
} }
// create path and map variables // create path and map variables
String localVarPath = "/pet/{petId}".replaceAll("\\{format\\}","json") String localVarPath = "/pet/{petId}"
.replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString())); .replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString()));
// query params // query params
@ -261,7 +261,7 @@ public class PetApi {
} }
// create path and map variables // create path and map variables
String localVarPath = "/pet".replaceAll("\\{format\\}","json"); String localVarPath = "/pet";
// query params // query params
List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarQueryParams = new ArrayList<Pair>();
@ -303,7 +303,7 @@ public class PetApi {
} }
// create path and map variables // create path and map variables
String localVarPath = "/pet/{petId}".replaceAll("\\{format\\}","json") String localVarPath = "/pet/{petId}"
.replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString())); .replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString()));
// query params // query params
@ -351,7 +351,7 @@ if (status != null)
} }
// create path and map variables // create path and map variables
String localVarPath = "/pet/{petId}/uploadImage".replaceAll("\\{format\\}","json") String localVarPath = "/pet/{petId}/uploadImage"
.replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString())); .replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString()));
// query params // query params

View File

@ -49,7 +49,7 @@ public class StoreApi {
} }
// create path and map variables // create path and map variables
String localVarPath = "/store/order/{orderId}".replaceAll("\\{format\\}","json") String localVarPath = "/store/order/{orderId}"
.replaceAll("\\{" + "orderId" + "\\}", apiClient.escapeString(orderId.toString())); .replaceAll("\\{" + "orderId" + "\\}", apiClient.escapeString(orderId.toString()));
// query params // query params
@ -78,14 +78,14 @@ public class StoreApi {
/** /**
* Returns pet inventories by status * Returns pet inventories by status
* Returns a map of status codes to quantities * Returns a map of status codes to quantities
* @return Map<String, Integer> * @return Map&lt;String, Integer&gt;
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
*/ */
public Map<String, Integer> getInventory() throws ApiException { public Map<String, Integer> getInventory() throws ApiException {
Object localVarPostBody = null; Object localVarPostBody = null;
// create path and map variables // create path and map variables
String localVarPath = "/store/inventory".replaceAll("\\{format\\}","json"); String localVarPath = "/store/inventory";
// query params // query params
List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarQueryParams = new ArrayList<Pair>();
@ -126,7 +126,7 @@ public class StoreApi {
} }
// create path and map variables // create path and map variables
String localVarPath = "/store/order/{orderId}".replaceAll("\\{format\\}","json") String localVarPath = "/store/order/{orderId}"
.replaceAll("\\{" + "orderId" + "\\}", apiClient.escapeString(orderId.toString())); .replaceAll("\\{" + "orderId" + "\\}", apiClient.escapeString(orderId.toString()));
// query params // query params
@ -168,7 +168,7 @@ public class StoreApi {
} }
// create path and map variables // create path and map variables
String localVarPath = "/store/order".replaceAll("\\{format\\}","json"); String localVarPath = "/store/order";
// query params // query params
List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarQueryParams = new ArrayList<Pair>();

View File

@ -49,7 +49,7 @@ public class UserApi {
} }
// create path and map variables // create path and map variables
String localVarPath = "/user".replaceAll("\\{format\\}","json"); String localVarPath = "/user";
// query params // query params
List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarQueryParams = new ArrayList<Pair>();
@ -89,7 +89,7 @@ public class UserApi {
} }
// create path and map variables // create path and map variables
String localVarPath = "/user/createWithArray".replaceAll("\\{format\\}","json"); String localVarPath = "/user/createWithArray";
// query params // query params
List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarQueryParams = new ArrayList<Pair>();
@ -129,7 +129,7 @@ public class UserApi {
} }
// create path and map variables // create path and map variables
String localVarPath = "/user/createWithList".replaceAll("\\{format\\}","json"); String localVarPath = "/user/createWithList";
// query params // query params
List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarQueryParams = new ArrayList<Pair>();
@ -169,7 +169,7 @@ public class UserApi {
} }
// create path and map variables // create path and map variables
String localVarPath = "/user/{username}".replaceAll("\\{format\\}","json") String localVarPath = "/user/{username}"
.replaceAll("\\{" + "username" + "\\}", apiClient.escapeString(username.toString())); .replaceAll("\\{" + "username" + "\\}", apiClient.escapeString(username.toString()));
// query params // query params
@ -211,7 +211,7 @@ public class UserApi {
} }
// create path and map variables // create path and map variables
String localVarPath = "/user/{username}".replaceAll("\\{format\\}","json") String localVarPath = "/user/{username}"
.replaceAll("\\{" + "username" + "\\}", apiClient.escapeString(username.toString())); .replaceAll("\\{" + "username" + "\\}", apiClient.escapeString(username.toString()));
// query params // query params
@ -259,7 +259,7 @@ public class UserApi {
} }
// create path and map variables // create path and map variables
String localVarPath = "/user/login".replaceAll("\\{format\\}","json"); String localVarPath = "/user/login";
// query params // query params
List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarQueryParams = new ArrayList<Pair>();
@ -295,7 +295,7 @@ public class UserApi {
Object localVarPostBody = null; Object localVarPostBody = null;
// create path and map variables // create path and map variables
String localVarPath = "/user/logout".replaceAll("\\{format\\}","json"); String localVarPath = "/user/logout";
// query params // query params
List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarQueryParams = new ArrayList<Pair>();
@ -341,7 +341,7 @@ public class UserApi {
} }
// create path and map variables // create path and map variables
String localVarPath = "/user/{username}".replaceAll("\\{format\\}","json") String localVarPath = "/user/{username}"
.replaceAll("\\{" + "username" + "\\}", apiClient.escapeString(username.toString())); .replaceAll("\\{" + "username" + "\\}", apiClient.escapeString(username.toString()));
// query params // query params

View File

@ -8,18 +8,6 @@
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git * https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually. * Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */

View File

@ -8,18 +8,6 @@
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git * https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually. * Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */

View File

@ -8,18 +8,6 @@
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git * https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually. * Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */

View File

@ -8,18 +8,6 @@
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git * https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually. * Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */

View File

@ -8,18 +8,6 @@
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git * https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually. * Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */

View File

@ -8,18 +8,6 @@
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git * https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually. * Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
@ -59,7 +47,7 @@ public class AdditionalPropertiesClass {
* Get mapProperty * Get mapProperty
* @return mapProperty * @return mapProperty
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public Map<String, String> getMapProperty() { public Map<String, String> getMapProperty() {
return mapProperty; return mapProperty;
} }
@ -82,7 +70,7 @@ public class AdditionalPropertiesClass {
* Get mapOfMapProperty * Get mapOfMapProperty
* @return mapOfMapProperty * @return mapOfMapProperty
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public Map<String, Map<String, String>> getMapOfMapProperty() { public Map<String, Map<String, String>> getMapOfMapProperty() {
return mapOfMapProperty; return mapOfMapProperty;
} }

View File

@ -8,18 +8,6 @@
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git * https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually. * Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
@ -28,12 +16,19 @@ package io.swagger.client.model;
import org.apache.commons.lang3.ObjectUtils; import org.apache.commons.lang3.ObjectUtils;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
/** /**
* Animal * 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 { public class Animal {
@JsonProperty("className") @JsonProperty("className")
@ -51,7 +46,7 @@ public class Animal {
* Get className * Get className
* @return className * @return className
**/ **/
@ApiModelProperty(example = "null", required = true, value = "") @ApiModelProperty(required = true, value = "")
public String getClassName() { public String getClassName() {
return className; return className;
} }
@ -69,7 +64,7 @@ public class Animal {
* Get color * Get color
* @return color * @return color
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public String getColor() { public String getColor() {
return color; return color;
} }

View File

@ -8,18 +8,6 @@
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git * https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually. * Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */

View File

@ -8,18 +8,6 @@
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git * https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually. * Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
@ -56,7 +44,7 @@ public class ArrayOfArrayOfNumberOnly {
* Get arrayArrayNumber * Get arrayArrayNumber
* @return arrayArrayNumber * @return arrayArrayNumber
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public List<List<BigDecimal>> getArrayArrayNumber() { public List<List<BigDecimal>> getArrayArrayNumber() {
return arrayArrayNumber; return arrayArrayNumber;
} }

View File

@ -8,18 +8,6 @@
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git * https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually. * Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
@ -56,7 +44,7 @@ public class ArrayOfNumberOnly {
* Get arrayNumber * Get arrayNumber
* @return arrayNumber * @return arrayNumber
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public List<BigDecimal> getArrayNumber() { public List<BigDecimal> getArrayNumber() {
return arrayNumber; return arrayNumber;
} }

View File

@ -8,18 +8,6 @@
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git * https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually. * Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
@ -62,7 +50,7 @@ public class ArrayTest {
* Get arrayOfString * Get arrayOfString
* @return arrayOfString * @return arrayOfString
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public List<String> getArrayOfString() { public List<String> getArrayOfString() {
return arrayOfString; return arrayOfString;
} }
@ -85,7 +73,7 @@ public class ArrayTest {
* Get arrayArrayOfInteger * Get arrayArrayOfInteger
* @return arrayArrayOfInteger * @return arrayArrayOfInteger
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public List<List<Long>> getArrayArrayOfInteger() { public List<List<Long>> getArrayArrayOfInteger() {
return arrayArrayOfInteger; return arrayArrayOfInteger;
} }
@ -108,7 +96,7 @@ public class ArrayTest {
* Get arrayArrayOfModel * Get arrayArrayOfModel
* @return arrayArrayOfModel * @return arrayArrayOfModel
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public List<List<ReadOnlyFirst>> getArrayArrayOfModel() { public List<List<ReadOnlyFirst>> getArrayArrayOfModel() {
return arrayArrayOfModel; return arrayArrayOfModel;
} }

View File

@ -0,0 +1,204 @@
/*
* 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 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 ");
}
}

View File

@ -8,18 +8,6 @@
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git * https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually. * Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
@ -49,7 +37,7 @@ public class Cat extends Animal {
* Get declawed * Get declawed
* @return declawed * @return declawed
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public Boolean getDeclawed() { public Boolean getDeclawed() {
return declawed; return declawed;
} }

View File

@ -8,18 +8,6 @@
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git * https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually. * Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
@ -51,7 +39,7 @@ public class Category {
* Get id * Get id
* @return id * @return id
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public Long getId() { public Long getId() {
return id; return id;
} }
@ -69,7 +57,7 @@ public class Category {
* Get name * Get name
* @return name * @return name
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public String getName() { public String getName() {
return name; return name;
} }

View File

@ -0,0 +1,90 @@
/*
* 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 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 ");
}
}

View File

@ -8,18 +8,6 @@
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git * https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually. * Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
@ -48,7 +36,7 @@ public class Client {
* Get client * Get client
* @return client * @return client
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public String getClient() { public String getClient() {
return client; return client;
} }

View File

@ -8,18 +8,6 @@
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git * https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually. * Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
@ -49,7 +37,7 @@ public class Dog extends Animal {
* Get breed * Get breed
* @return breed * @return breed
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public String getBreed() { public String getBreed() {
return breed; return breed;
} }

View File

@ -8,18 +8,6 @@
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git * https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually. * Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
@ -113,7 +101,7 @@ public class EnumArrays {
* Get justSymbol * Get justSymbol
* @return justSymbol * @return justSymbol
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public JustSymbolEnum getJustSymbol() { public JustSymbolEnum getJustSymbol() {
return justSymbol; return justSymbol;
} }
@ -136,7 +124,7 @@ public class EnumArrays {
* Get arrayEnum * Get arrayEnum
* @return arrayEnum * @return arrayEnum
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public List<ArrayEnumEnum> getArrayEnum() { public List<ArrayEnumEnum> getArrayEnum() {
return arrayEnum; return arrayEnum;
} }

View File

@ -8,18 +8,6 @@
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git * https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually. * Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */

View File

@ -8,18 +8,6 @@
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git * https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually. * Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
@ -30,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import io.swagger.client.model.OuterEnum;
/** /**
* EnumTest * EnumTest
@ -137,6 +126,9 @@ public class EnumTest {
@JsonProperty("enum_number") @JsonProperty("enum_number")
private EnumNumberEnum enumNumber = null; private EnumNumberEnum enumNumber = null;
@JsonProperty("outerEnum")
private OuterEnum outerEnum = null;
public EnumTest enumString(EnumStringEnum enumString) { public EnumTest enumString(EnumStringEnum enumString) {
this.enumString = enumString; this.enumString = enumString;
return this; return this;
@ -146,7 +138,7 @@ public class EnumTest {
* Get enumString * Get enumString
* @return enumString * @return enumString
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public EnumStringEnum getEnumString() { public EnumStringEnum getEnumString() {
return enumString; return enumString;
} }
@ -164,7 +156,7 @@ public class EnumTest {
* Get enumInteger * Get enumInteger
* @return enumInteger * @return enumInteger
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public EnumIntegerEnum getEnumInteger() { public EnumIntegerEnum getEnumInteger() {
return enumInteger; return enumInteger;
} }
@ -182,7 +174,7 @@ public class EnumTest {
* Get enumNumber * Get enumNumber
* @return enumNumber * @return enumNumber
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public EnumNumberEnum getEnumNumber() { public EnumNumberEnum getEnumNumber() {
return enumNumber; return enumNumber;
} }
@ -191,6 +183,24 @@ public class EnumTest {
this.enumNumber = 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 @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
@ -203,12 +213,13 @@ public class EnumTest {
EnumTest enumTest = (EnumTest) o; EnumTest enumTest = (EnumTest) o;
return ObjectUtils.equals(this.enumString, enumTest.enumString) && return ObjectUtils.equals(this.enumString, enumTest.enumString) &&
ObjectUtils.equals(this.enumInteger, enumTest.enumInteger) && ObjectUtils.equals(this.enumInteger, enumTest.enumInteger) &&
ObjectUtils.equals(this.enumNumber, enumTest.enumNumber); ObjectUtils.equals(this.enumNumber, enumTest.enumNumber) &&
ObjectUtils.equals(this.outerEnum, enumTest.outerEnum);
} }
@Override @Override
public int hashCode() { public int hashCode() {
return ObjectUtils.hashCodeMulti(enumString, enumInteger, enumNumber); return ObjectUtils.hashCodeMulti(enumString, enumInteger, enumNumber, outerEnum);
} }
@ -220,6 +231,7 @@ public class EnumTest {
sb.append(" enumString: ").append(toIndentedString(enumString)).append("\n"); sb.append(" enumString: ").append(toIndentedString(enumString)).append("\n");
sb.append(" enumInteger: ").append(toIndentedString(enumInteger)).append("\n"); sb.append(" enumInteger: ").append(toIndentedString(enumInteger)).append("\n");
sb.append(" enumNumber: ").append(toIndentedString(enumNumber)).append("\n"); sb.append(" enumNumber: ").append(toIndentedString(enumNumber)).append("\n");
sb.append(" outerEnum: ").append(toIndentedString(outerEnum)).append("\n");
sb.append("}"); sb.append("}");
return sb.toString(); return sb.toString();
} }

View File

@ -8,18 +8,6 @@
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git * https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually. * Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
@ -31,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.UUID;
import org.joda.time.DateTime; import org.joda.time.DateTime;
import org.joda.time.LocalDate; import org.joda.time.LocalDate;
@ -73,7 +62,7 @@ public class FormatTest {
private DateTime dateTime = null; private DateTime dateTime = null;
@JsonProperty("uuid") @JsonProperty("uuid")
private String uuid = null; private UUID uuid = null;
@JsonProperty("password") @JsonProperty("password")
private String password = null; private String password = null;
@ -85,11 +74,11 @@ public class FormatTest {
/** /**
* Get integer * Get integer
* minimum: 10.0 * minimum: 10
* maximum: 100.0 * maximum: 100
* @return integer * @return integer
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public Integer getInteger() { public Integer getInteger() {
return integer; return integer;
} }
@ -105,11 +94,11 @@ public class FormatTest {
/** /**
* Get int32 * Get int32
* minimum: 20.0 * minimum: 20
* maximum: 200.0 * maximum: 200
* @return int32 * @return int32
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public Integer getInt32() { public Integer getInt32() {
return int32; return int32;
} }
@ -127,7 +116,7 @@ public class FormatTest {
* Get int64 * Get int64
* @return int64 * @return int64
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public Long getInt64() { public Long getInt64() {
return int64; return int64;
} }
@ -147,7 +136,7 @@ public class FormatTest {
* maximum: 543.2 * maximum: 543.2
* @return number * @return number
**/ **/
@ApiModelProperty(example = "null", required = true, value = "") @ApiModelProperty(required = true, value = "")
public BigDecimal getNumber() { public BigDecimal getNumber() {
return number; return number;
} }
@ -167,7 +156,7 @@ public class FormatTest {
* maximum: 987.6 * maximum: 987.6
* @return _float * @return _float
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public Float getFloat() { public Float getFloat() {
return _float; return _float;
} }
@ -187,7 +176,7 @@ public class FormatTest {
* maximum: 123.4 * maximum: 123.4
* @return _double * @return _double
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public Double getDouble() { public Double getDouble() {
return _double; return _double;
} }
@ -205,7 +194,7 @@ public class FormatTest {
* Get string * Get string
* @return string * @return string
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public String getString() { public String getString() {
return string; return string;
} }
@ -223,7 +212,7 @@ public class FormatTest {
* Get _byte * Get _byte
* @return _byte * @return _byte
**/ **/
@ApiModelProperty(example = "null", required = true, value = "") @ApiModelProperty(required = true, value = "")
public byte[] getByte() { public byte[] getByte() {
return _byte; return _byte;
} }
@ -241,7 +230,7 @@ public class FormatTest {
* Get binary * Get binary
* @return binary * @return binary
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public byte[] getBinary() { public byte[] getBinary() {
return binary; return binary;
} }
@ -259,7 +248,7 @@ public class FormatTest {
* Get date * Get date
* @return date * @return date
**/ **/
@ApiModelProperty(example = "null", required = true, value = "") @ApiModelProperty(required = true, value = "")
public LocalDate getDate() { public LocalDate getDate() {
return date; return date;
} }
@ -277,7 +266,7 @@ public class FormatTest {
* Get dateTime * Get dateTime
* @return dateTime * @return dateTime
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public DateTime getDateTime() { public DateTime getDateTime() {
return dateTime; return dateTime;
} }
@ -286,7 +275,7 @@ public class FormatTest {
this.dateTime = dateTime; this.dateTime = dateTime;
} }
public FormatTest uuid(String uuid) { public FormatTest uuid(UUID uuid) {
this.uuid = uuid; this.uuid = uuid;
return this; return this;
} }
@ -295,12 +284,12 @@ public class FormatTest {
* Get uuid * Get uuid
* @return uuid * @return uuid
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public String getUuid() { public UUID getUuid() {
return uuid; return uuid;
} }
public void setUuid(String uuid) { public void setUuid(UUID uuid) {
this.uuid = uuid; this.uuid = uuid;
} }
@ -313,7 +302,7 @@ public class FormatTest {
* Get password * Get password
* @return password * @return password
**/ **/
@ApiModelProperty(example = "null", required = true, value = "") @ApiModelProperty(required = true, value = "")
public String getPassword() { public String getPassword() {
return password; return password;
} }

View File

@ -8,18 +8,6 @@
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git * https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually. * Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
@ -46,7 +34,7 @@ public class HasOnlyReadOnly {
* Get bar * Get bar
* @return bar * @return bar
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public String getBar() { public String getBar() {
return bar; return bar;
} }
@ -55,7 +43,7 @@ public class HasOnlyReadOnly {
* Get foo * Get foo
* @return foo * @return foo
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public String getFoo() { public String getFoo() {
return foo; return foo;
} }

View File

@ -8,18 +8,6 @@
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git * https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually. * Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
@ -89,7 +77,7 @@ public class MapTest {
* Get mapMapOfString * Get mapMapOfString
* @return mapMapOfString * @return mapMapOfString
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public Map<String, Map<String, String>> getMapMapOfString() { public Map<String, Map<String, String>> getMapMapOfString() {
return mapMapOfString; return mapMapOfString;
} }
@ -112,7 +100,7 @@ public class MapTest {
* Get mapOfEnumString * Get mapOfEnumString
* @return mapOfEnumString * @return mapOfEnumString
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public Map<String, InnerEnum> getMapOfEnumString() { public Map<String, InnerEnum> getMapOfEnumString() {
return mapOfEnumString; return mapOfEnumString;
} }

View File

@ -8,18 +8,6 @@
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git * https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually. * Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
@ -34,6 +22,7 @@ import io.swagger.client.model.Animal;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.UUID;
import org.joda.time.DateTime; import org.joda.time.DateTime;
/** /**
@ -42,7 +31,7 @@ import org.joda.time.DateTime;
public class MixedPropertiesAndAdditionalPropertiesClass { public class MixedPropertiesAndAdditionalPropertiesClass {
@JsonProperty("uuid") @JsonProperty("uuid")
private String uuid = null; private UUID uuid = null;
@JsonProperty("dateTime") @JsonProperty("dateTime")
private DateTime dateTime = null; private DateTime dateTime = null;
@ -50,7 +39,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
@JsonProperty("map") @JsonProperty("map")
private Map<String, Animal> map = new HashMap<String, Animal>(); private Map<String, Animal> map = new HashMap<String, Animal>();
public MixedPropertiesAndAdditionalPropertiesClass uuid(String uuid) { public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) {
this.uuid = uuid; this.uuid = uuid;
return this; return this;
} }
@ -59,12 +48,12 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
* Get uuid * Get uuid
* @return uuid * @return uuid
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public String getUuid() { public UUID getUuid() {
return uuid; return uuid;
} }
public void setUuid(String uuid) { public void setUuid(UUID uuid) {
this.uuid = uuid; this.uuid = uuid;
} }
@ -77,7 +66,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
* Get dateTime * Get dateTime
* @return dateTime * @return dateTime
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public DateTime getDateTime() { public DateTime getDateTime() {
return dateTime; return dateTime;
} }
@ -100,7 +89,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
* Get map * Get map
* @return map * @return map
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public Map<String, Animal> getMap() { public Map<String, Animal> getMap() {
return map; return map;
} }

View File

@ -8,18 +8,6 @@
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git * https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually. * Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
@ -52,7 +40,7 @@ public class Model200Response {
* Get name * Get name
* @return name * @return name
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public Integer getName() { public Integer getName() {
return name; return name;
} }
@ -70,7 +58,7 @@ public class Model200Response {
* Get propertyClass * Get propertyClass
* @return propertyClass * @return propertyClass
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public String getPropertyClass() { public String getPropertyClass() {
return propertyClass; return propertyClass;
} }

View File

@ -8,18 +8,6 @@
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git * https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually. * Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
@ -54,7 +42,7 @@ public class ModelApiResponse {
* Get code * Get code
* @return code * @return code
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public Integer getCode() { public Integer getCode() {
return code; return code;
} }
@ -72,7 +60,7 @@ public class ModelApiResponse {
* Get type * Get type
* @return type * @return type
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public String getType() { public String getType() {
return type; return type;
} }
@ -90,7 +78,7 @@ public class ModelApiResponse {
* Get message * Get message
* @return message * @return message
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public String getMessage() { public String getMessage() {
return message; return message;
} }

View File

@ -8,18 +8,6 @@
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git * https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually. * Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
@ -49,7 +37,7 @@ public class ModelReturn {
* Get _return * Get _return
* @return _return * @return _return
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public Integer getReturn() { public Integer getReturn() {
return _return; return _return;
} }

View File

@ -8,18 +8,6 @@
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git * https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually. * Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
@ -58,7 +46,7 @@ public class Name {
* Get name * Get name
* @return name * @return name
**/ **/
@ApiModelProperty(example = "null", required = true, value = "") @ApiModelProperty(required = true, value = "")
public Integer getName() { public Integer getName() {
return name; return name;
} }
@ -71,7 +59,7 @@ public class Name {
* Get snakeCase * Get snakeCase
* @return snakeCase * @return snakeCase
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public Integer getSnakeCase() { public Integer getSnakeCase() {
return snakeCase; return snakeCase;
} }
@ -85,7 +73,7 @@ public class Name {
* Get property * Get property
* @return property * @return property
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public String getProperty() { public String getProperty() {
return property; return property;
} }
@ -98,7 +86,7 @@ public class Name {
* Get _123Number * Get _123Number
* @return _123Number * @return _123Number
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public Integer get123Number() { public Integer get123Number() {
return _123Number; return _123Number;
} }

View File

@ -8,18 +8,6 @@
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git * https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually. * Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
@ -49,7 +37,7 @@ public class NumberOnly {
* Get justNumber * Get justNumber
* @return justNumber * @return justNumber
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public BigDecimal getJustNumber() { public BigDecimal getJustNumber() {
return justNumber; return justNumber;
} }

View File

@ -8,18 +8,6 @@
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git * https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually. * Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
@ -96,7 +84,7 @@ public class Order {
* Get id * Get id
* @return id * @return id
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public Long getId() { public Long getId() {
return id; return id;
} }
@ -114,7 +102,7 @@ public class Order {
* Get petId * Get petId
* @return petId * @return petId
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public Long getPetId() { public Long getPetId() {
return petId; return petId;
} }
@ -132,7 +120,7 @@ public class Order {
* Get quantity * Get quantity
* @return quantity * @return quantity
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public Integer getQuantity() { public Integer getQuantity() {
return quantity; return quantity;
} }
@ -150,7 +138,7 @@ public class Order {
* Get shipDate * Get shipDate
* @return shipDate * @return shipDate
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public DateTime getShipDate() { public DateTime getShipDate() {
return shipDate; return shipDate;
} }
@ -168,7 +156,7 @@ public class Order {
* Order Status * Order Status
* @return status * @return status
**/ **/
@ApiModelProperty(example = "null", value = "Order Status") @ApiModelProperty(value = "Order Status")
public StatusEnum getStatus() { public StatusEnum getStatus() {
return status; return status;
} }
@ -186,7 +174,7 @@ public class Order {
* Get complete * Get complete
* @return complete * @return complete
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public Boolean getComplete() { public Boolean getComplete() {
return complete; return complete;
} }

View File

@ -0,0 +1,52 @@
/*
* 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;
/**
* Gets or Sets OuterEnum
*/
public enum OuterEnum {
PLACED("placed"),
APPROVED("approved"),
DELIVERED("delivered");
private String value;
OuterEnum(String value) {
this.value = 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;
}
}

View File

@ -8,18 +8,6 @@
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git * https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually. * Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
@ -99,7 +87,7 @@ public class Pet {
* Get id * Get id
* @return id * @return id
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public Long getId() { public Long getId() {
return id; return id;
} }
@ -117,7 +105,7 @@ public class Pet {
* Get category * Get category
* @return category * @return category
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public Category getCategory() { public Category getCategory() {
return category; return category;
} }
@ -158,7 +146,7 @@ public class Pet {
* Get photoUrls * Get photoUrls
* @return photoUrls * @return photoUrls
**/ **/
@ApiModelProperty(example = "null", required = true, value = "") @ApiModelProperty(required = true, value = "")
public List<String> getPhotoUrls() { public List<String> getPhotoUrls() {
return photoUrls; return photoUrls;
} }
@ -181,7 +169,7 @@ public class Pet {
* Get tags * Get tags
* @return tags * @return tags
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public List<Tag> getTags() { public List<Tag> getTags() {
return tags; return tags;
} }
@ -199,7 +187,7 @@ public class Pet {
* pet status in the store * pet status in the store
* @return status * @return status
**/ **/
@ApiModelProperty(example = "null", value = "pet status in the store") @ApiModelProperty(value = "pet status in the store")
public StatusEnum getStatus() { public StatusEnum getStatus() {
return status; return status;
} }

View File

@ -8,18 +8,6 @@
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git * https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually. * Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
@ -46,7 +34,7 @@ public class ReadOnlyFirst {
* Get bar * Get bar
* @return bar * @return bar
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public String getBar() { public String getBar() {
return bar; return bar;
} }
@ -60,7 +48,7 @@ public class ReadOnlyFirst {
* Get baz * Get baz
* @return baz * @return baz
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public String getBaz() { public String getBaz() {
return baz; return baz;
} }

View File

@ -8,18 +8,6 @@
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git * https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually. * Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
@ -48,7 +36,7 @@ public class SpecialModelName {
* Get specialPropertyName * Get specialPropertyName
* @return specialPropertyName * @return specialPropertyName
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public Long getSpecialPropertyName() { public Long getSpecialPropertyName() {
return specialPropertyName; return specialPropertyName;
} }

View File

@ -8,18 +8,6 @@
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git * https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually. * Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
@ -51,7 +39,7 @@ public class Tag {
* Get id * Get id
* @return id * @return id
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public Long getId() { public Long getId() {
return id; return id;
} }
@ -69,7 +57,7 @@ public class Tag {
* Get name * Get name
* @return name * @return name
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public String getName() { public String getName() {
return name; return name;
} }

View File

@ -8,18 +8,6 @@
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git * https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually. * Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
@ -69,7 +57,7 @@ public class User {
* Get id * Get id
* @return id * @return id
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public Long getId() { public Long getId() {
return id; return id;
} }
@ -87,7 +75,7 @@ public class User {
* Get username * Get username
* @return username * @return username
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public String getUsername() { public String getUsername() {
return username; return username;
} }
@ -105,7 +93,7 @@ public class User {
* Get firstName * Get firstName
* @return firstName * @return firstName
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public String getFirstName() { public String getFirstName() {
return firstName; return firstName;
} }
@ -123,7 +111,7 @@ public class User {
* Get lastName * Get lastName
* @return lastName * @return lastName
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public String getLastName() { public String getLastName() {
return lastName; return lastName;
} }
@ -141,7 +129,7 @@ public class User {
* Get email * Get email
* @return email * @return email
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public String getEmail() { public String getEmail() {
return email; return email;
} }
@ -159,7 +147,7 @@ public class User {
* Get password * Get password
* @return password * @return password
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public String getPassword() { public String getPassword() {
return password; return password;
} }
@ -177,7 +165,7 @@ public class User {
* Get phone * Get phone
* @return phone * @return phone
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public String getPhone() { public String getPhone() {
return phone; return phone;
} }
@ -195,7 +183,7 @@ public class User {
* User Status * User Status
* @return userStatus * @return userStatus
**/ **/
@ApiModelProperty(example = "null", value = "User Status") @ApiModelProperty(value = "User Status")
public Integer getUserStatus() { public Integer getUserStatus() {
return userStatus; return userStatus;
} }