diff --git a/bin/java-petstore-feign.json b/bin/java-petstore-feign.json
index 5502ee3bbad..a131d93d1e1 100644
--- a/bin/java-petstore-feign.json
+++ b/bin/java-petstore-feign.json
@@ -1,4 +1,5 @@
{
"library": "feign",
+ "java8": true,
"artifactId": "swagger-petstore-feign"
}
diff --git a/bin/java-petstore-feign.sh b/bin/java-petstore-feign.sh
index 160dbb46b1b..f1173d85a95 100755
--- a/bin/java-petstore-feign.sh
+++ b/bin/java-petstore-feign.sh
@@ -26,7 +26,7 @@ fi
# if you've executed sbt assembly previously it will use that instead.
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
-ags="$@ generate -t modules/swagger-codegen/src/main/resources/Java/libraries/feign -i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l java -c bin/java-petstore-feign.json -o samples/client/petstore/java/feign -DhideGenerationTimestamp=true"
+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-feign.json -o samples/client/petstore/java/feign -DhideGenerationTimestamp=true"
echo "Removing files and folders under samples/client/petstore/java/feign/src/main"
rm -rf samples/client/petstore/java/feign/src/main
diff --git a/bin/java-petstore-google-api-client.sh b/bin/java-petstore-google-api-client.sh
index 09c9e14139a..14c9fe19b5a 100755
--- a/bin/java-petstore-google-api-client.sh
+++ b/bin/java-petstore-google-api-client.sh
@@ -26,9 +26,10 @@ fi
# if you've executed sbt assembly previously it will use that instead.
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
-ags="$@ generate -t modules/swagger-codegen/src/main/resources/Java/libraries/google-api-client -i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l java -c bin/java-petstore-google-api-client.json -o samples/client/petstore/java/google-api-client -DhideGenerationTimestamp=true"
+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-google-api-client.json -o samples/client/petstore/java/google-api-client -DhideGenerationTimestamp=true"
echo "Removing files and folders under samples/client/petstore/java/google-api-client/src/main"
rm -rf samples/client/petstore/java/google-api-client/src/main
find samples/client/petstore/java/google-api-client -maxdepth 1 -type f ! -name "README.md" -exec rm {} +
-java $JAVA_OPTS -jar $executable $ags
+# TODO: uncomment the java commmand when the issue with this script is fixed, see https://github.com/swagger-api/swagger-codegen-generators/issues/52
+# java $JAVA_OPTS -jar $executable $ags
diff --git a/bin/java-petstore-jersey1.sh b/bin/java-petstore-jersey1.sh
index 7ba472365e1..27aa0f826ba 100755
--- a/bin/java-petstore-jersey1.sh
+++ b/bin/java-petstore-jersey1.sh
@@ -26,7 +26,7 @@ fi
# if you've executed sbt assembly previously it will use that instead.
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
-ags="$@ generate -t modules/swagger-codegen/src/main/resources/Java -i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l java -o samples/client/petstore/java/jersey1 -DhideGenerationTimestamp=true --library=jersey1"
+ags="$@ generate -i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l java -o samples/client/petstore/java/jersey1 -DhideGenerationTimestamp=true --library=jersey1"
echo "Removing files and folders under samples/client/petstore/java/jersey1/src/main"
rm -rf samples/client/petstore/java/jersey1/src/main
diff --git a/bin/java-petstore-jersey2-java6.sh b/bin/java-petstore-jersey2-java6.sh
index 8ab7c2c7ef4..3ce176f263e 100755
--- a/bin/java-petstore-jersey2-java6.sh
+++ b/bin/java-petstore-jersey2-java6.sh
@@ -31,4 +31,5 @@ ags="$@ generate --artifact-id swagger-petstore-jersey2-java6 -i modules/swagger
echo "Removing files and folders under samples/client/petstore/java/jersey2/src/main"
rm -rf samples/client/petstore/java/jersey2-java6/src/main
find samples/client/petstore/java/jersey2-java6 -maxdepth 1 -type f ! -name "README.md" -exec rm {} +
-java $JAVA_OPTS -jar $executable $ags
+# TODO: uncomment the java commmand when the issue with this script is fixed, see https://github.com/swagger-api/swagger-codegen-generators/issues/52
+# java $JAVA_OPTS -jar $executable $ags
diff --git a/bin/java-petstore-okhttp-gson-parcelable.sh b/bin/java-petstore-okhttp-gson-parcelable.sh
index 60a0908fe93..53fafacf06c 100755
--- a/bin/java-petstore-okhttp-gson-parcelable.sh
+++ b/bin/java-petstore-okhttp-gson-parcelable.sh
@@ -26,8 +26,9 @@ fi
# if you've executed sbt assembly previously it will use that instead.
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
-ags="$@ generate -t modules/swagger-codegen/src/main/resources/Java/libraries/okhttp-gson -i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l java -c bin/java-petstore-okhttp-gson.json -o samples/client/petstore/java/okhttp-gson-parcelableModel -DhideGenerationTimestamp=true,parcelableModel=true"
+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-okhttp-gson.json -o samples/client/petstore/java/okhttp-gson-parcelableModel -DhideGenerationTimestamp=true,parcelableModel=true"
rm -rf samples/client/petstore/java/okhttp-gson-parcelableModel/src/main
find samples/client/petstore/java/okhttp-gson-parcelableModel -maxdepth 1 -type f ! -name "README.md" -exec rm {} +
-java $JAVA_OPTS -jar $executable $ags
+# TODO: uncomment the java commmand when the issue with this script is fixed, see https://github.com/swagger-api/swagger-codegen-generators/issues/52
+# java $JAVA_OPTS -jar $executable $ags
diff --git a/bin/java-petstore-okhttp-gson.sh b/bin/java-petstore-okhttp-gson.sh
index ef57de98775..48808cf7223 100755
--- a/bin/java-petstore-okhttp-gson.sh
+++ b/bin/java-petstore-okhttp-gson.sh
@@ -26,8 +26,9 @@ fi
# if you've executed sbt assembly previously it will use that instead.
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
-ags="$@ generate -t modules/swagger-codegen/src/main/resources/Java/libraries/okhttp-gson -i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l java -c bin/java-petstore-okhttp-gson.json -o samples/client/petstore/java/okhttp-gson -DhideGenerationTimestamp=true"
+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-okhttp-gson.json -o samples/client/petstore/java/okhttp-gson -DhideGenerationTimestamp=true"
rm -rf samples/client/petstore/java/okhttp-gson/src/main
find samples/client/petstore/java/okhttp-gson -maxdepth 1 -type f ! -name "README.md" -exec rm {} +
-java $JAVA_OPTS -jar $executable $ags
+# TODO: uncomment the java commmand when the issue with this script is fixed, see https://github.com/swagger-api/swagger-codegen-generators/issues/52
+# java $JAVA_OPTS -jar $executable $ags
diff --git a/bin/java-petstore-retrofit2.sh b/bin/java-petstore-retrofit2.sh
index 30cb805c3ec..1433002400d 100755
--- a/bin/java-petstore-retrofit2.sh
+++ b/bin/java-petstore-retrofit2.sh
@@ -26,7 +26,7 @@ fi
# if you've executed sbt assembly previously it will use that instead.
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
-ags="$@ generate -t modules/swagger-codegen/src/main/resources/Java/libraries/retrofit2 -i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l java -c bin/java-petstore-retrofit2.json -o samples/client/petstore/java/retrofit2 -DhideGenerationTimestamp=true"
+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-retrofit2.json -o samples/client/petstore/java/retrofit2 -DhideGenerationTimestamp=true"
echo "Removing files and folders under samples/client/petstore/java/retrofit2/src/main"
rm -rf samples/client/petstore/java/retrofit2/src/main
diff --git a/bin/java-petstore-retrofit2rx.sh b/bin/java-petstore-retrofit2rx.sh
index 4b9c6512b10..04da0496b8c 100755
--- a/bin/java-petstore-retrofit2rx.sh
+++ b/bin/java-petstore-retrofit2rx.sh
@@ -26,7 +26,7 @@ fi
# if you've executed sbt assembly previously it will use that instead.
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
-ags="$@ generate -t modules/swagger-codegen/src/main/resources/Java/libraries/retrofit2 -i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l java -c bin/java-petstore-retrofit2rx.json -o samples/client/petstore/java/retrofit2rx -DuseRxJava=true,hideGenerationTimestamp=true"
+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-retrofit2rx.json -o samples/client/petstore/java/retrofit2rx -DuseRxJava=true,hideGenerationTimestamp=true"
echo "Removing files and folders under samples/client/petstore/java/retrofit2rx/src/main"
rm -rf samples/client/petstore/java/retrofit2rx/src/main
diff --git a/bin/java-petstore-retrofit2rx2.sh b/bin/java-petstore-retrofit2rx2.sh
index 145d5a994fe..c8f30f8d3c3 100755
--- a/bin/java-petstore-retrofit2rx2.sh
+++ b/bin/java-petstore-retrofit2rx2.sh
@@ -26,7 +26,7 @@ fi
# if you've executed sbt assembly previously it will use that instead.
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
-ags="$@ generate -t modules/swagger-codegen/src/main/resources/Java/libraries/retrofit2 -i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l java -c bin/java-petstore-retrofit2rx2.json -o samples/client/petstore/java/retrofit2rx2 -DuseRxJava2=true,hideGenerationTimestamp=true"
+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-retrofit2rx2.json -o samples/client/petstore/java/retrofit2rx2 -DuseRxJava2=true,hideGenerationTimestamp=true"
echo "Removing files and folders under samples/client/petstore/java/retrofit2rx2/src/main"
rm -rf samples/client/petstore/java/retrofit2rx2/src/main
diff --git a/bin/java-petstore-vertx.sh b/bin/java-petstore-vertx.sh
index a2e9d9baa9a..9995d749acf 100755
--- a/bin/java-petstore-vertx.sh
+++ b/bin/java-petstore-vertx.sh
@@ -26,7 +26,7 @@ fi
# if you've executed sbt assembly previously it will use that instead.
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
-ags="$@ generate -t modules/swagger-codegen/src/main/resources/Java/libraries/vertx -i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l java -c bin/java-petstore-vertx.json -o samples/client/petstore/java/vertx -DhideGenerationTimestamp=true"
+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-vertx.json -o samples/client/petstore/java/vertx -DhideGenerationTimestamp=true"
echo "Removing files and folders under samples/client/petstore/java/vertx/src/main"
rm -rf samples/client/petstore/java/vertx/src/main
diff --git a/samples/client/petstore/java/feign/.swagger-codegen/VERSION b/samples/client/petstore/java/feign/.swagger-codegen/VERSION
index 50794f17f1a..096bf47efe3 100644
--- a/samples/client/petstore/java/feign/.swagger-codegen/VERSION
+++ b/samples/client/petstore/java/feign/.swagger-codegen/VERSION
@@ -1 +1 @@
-2.3.1-SNAPSHOT
\ No newline at end of file
+3.0.0-SNAPSHOT
\ No newline at end of file
diff --git a/samples/client/petstore/java/feign/README.md b/samples/client/petstore/java/feign/README.md
index d5d447e2865..debee3090f7 100644
--- a/samples/client/petstore/java/feign/README.md
+++ b/samples/client/petstore/java/feign/README.md
@@ -34,7 +34,7 @@ After the client library is installed/deployed, you can use it in your Maven pro
## Recommendation
-It's recommended to create an instance of `ApiClient` per thread in a multithreaded environment to avoid any potential issue.
+It's recommended to create an instance of `ApiClient` per thread in a multithreaded environment to avoid any potential issues.
## Author
diff --git a/samples/client/petstore/java/feign/build.gradle b/samples/client/petstore/java/feign/build.gradle
index bacb0517115..358023ebef4 100644
--- a/samples/client/petstore/java/feign/build.gradle
+++ b/samples/client/petstore/java/feign/build.gradle
@@ -32,8 +32,11 @@ if(hasProperty('target') && target == 'android') {
targetSdkVersion 25
}
compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_7
- targetCompatibility JavaVersion.VERSION_1_7
+
+ sourceCompatibility JavaVersion.VERSION_1_8
+ targetCompatibility JavaVersion.VERSION_1_8
+
+
}
// Rename the aar correctly
@@ -78,8 +81,8 @@ if(hasProperty('target') && target == 'android') {
apply plugin: 'java'
apply plugin: 'maven'
- sourceCompatibility = JavaVersion.VERSION_1_7
- targetCompatibility = JavaVersion.VERSION_1_7
+ sourceCompatibility = JavaVersion.VERSION_1_8
+ targetCompatibility = JavaVersion.VERSION_1_8
install {
repositories.mavenInstaller {
@@ -96,23 +99,31 @@ if(hasProperty('target') && target == 'android') {
ext {
swagger_annotations_version = "1.5.9"
jackson_version = "2.8.7"
+
threepane_version = "2.6.4"
+
feign_version = "9.4.0"
feign_form_version = "2.1.0"
junit_version = "4.12"
- oltu_version = "1.0.1"
+ oltu_version = "1.0.2"
}
dependencies {
compile "io.swagger:swagger-annotations:$swagger_annotations_version"
- compile "io.github.openfeign:feign-core:$feign_version"
- compile "io.github.openfeign:feign-jackson:$feign_version"
- compile "io.github.openfeign:feign-slf4j:$feign_version"
+ compile "com.netflix.feign:feign-core:$feign_version"
+ compile "com.netflix.feign:feign-jackson:$feign_version"
+ compile "com.netflix.feign:feign-slf4j:$feign_version"
compile "io.github.openfeign.form:feign-form:$feign_form_version"
compile "com.fasterxml.jackson.core:jackson-core:$jackson_version"
compile "com.fasterxml.jackson.core:jackson-annotations:$jackson_version"
compile "com.fasterxml.jackson.core:jackson-databind:$jackson_version"
+
+
+ compile "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:$jackson_version"
+
+
compile "com.github.joschi.jackson:jackson-datatype-threetenbp:$threepane_version"
+
compile "org.apache.oltu.oauth2:org.apache.oltu.oauth2.client:$oltu_version"
compile "com.brsanthu:migbase64:2.2"
testCompile "junit:junit:$junit_version"
diff --git a/samples/client/petstore/java/feign/build.sbt b/samples/client/petstore/java/feign/build.sbt
index fac8ce229a7..532f1054f57 100644
--- a/samples/client/petstore/java/feign/build.sbt
+++ b/samples/client/petstore/java/feign/build.sbt
@@ -10,15 +10,15 @@ lazy val root = (project in file(".")).
resolvers += Resolver.mavenLocal,
libraryDependencies ++= Seq(
"io.swagger" % "swagger-annotations" % "1.5.9" % "compile",
- "io.github.openfeign" % "feign-core" % "9.4.0" % "compile",
- "io.github.openfeign" % "feign-jackson" % "9.4.0" % "compile",
- "io.github.openfeign" % "feign-slf4j" % "9.4.0" % "compile",
+ "com.netflix.feign" % "feign-core" % "9.4.0" % "compile",
+ "com.netflix.feign" % "feign-jackson" % "9.4.0" % "compile",
+ "com.netflix.feign" % "feign-slf4j" % "9.4.0" % "compile",
"io.github.openfeign.form" % "feign-form" % "2.1.0" % "compile",
"com.fasterxml.jackson.core" % "jackson-core" % "2.8.7" % "compile",
"com.fasterxml.jackson.core" % "jackson-annotations" % "2.8.7" % "compile",
"com.fasterxml.jackson.core" % "jackson-databind" % "2.8.7" % "compile",
- "com.fasterxml.jackson.datatype" % "jackson-datatype-joda" % "2.8.7" % "compile",
- "org.apache.oltu.oauth2" % "org.apache.oltu.oauth2.client" % "1.0.1" % "compile",
+ "com.fasterxml.jackson.datatype" % "jackson-datatype-jsr310" % "2.8.7" % "compile",
+ "org.apache.oltu.oauth2" % "org.apache.oltu.oauth2.client" % "1.0.2" % "compile",
"com.brsanthu" % "migbase64" % "2.2" % "compile",
"junit" % "junit" % "4.12" % "test",
"com.novocode" % "junit-interface" % "0.10" % "test"
diff --git a/samples/client/petstore/java/feign/docs/AdditionalPropertiesClass.md b/samples/client/petstore/java/feign/docs/AdditionalPropertiesClass.md
deleted file mode 100644
index 0437c4dd8cc..00000000000
--- a/samples/client/petstore/java/feign/docs/AdditionalPropertiesClass.md
+++ /dev/null
@@ -1,11 +0,0 @@
-
-# AdditionalPropertiesClass
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**mapProperty** | **Map<String, String>** | | [optional]
-**mapOfMapProperty** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
-
-
-
diff --git a/samples/client/petstore/java/feign/docs/Animal.md b/samples/client/petstore/java/feign/docs/Animal.md
deleted file mode 100644
index b3f325c3524..00000000000
--- a/samples/client/petstore/java/feign/docs/Animal.md
+++ /dev/null
@@ -1,11 +0,0 @@
-
-# Animal
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**className** | **String** | |
-**color** | **String** | | [optional]
-
-
-
diff --git a/samples/client/petstore/java/feign/docs/AnimalFarm.md b/samples/client/petstore/java/feign/docs/AnimalFarm.md
deleted file mode 100644
index c7c7f1ddcce..00000000000
--- a/samples/client/petstore/java/feign/docs/AnimalFarm.md
+++ /dev/null
@@ -1,9 +0,0 @@
-
-# AnimalFarm
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-
-
-
diff --git a/samples/client/petstore/java/feign/docs/ArrayOfArrayOfNumberOnly.md b/samples/client/petstore/java/feign/docs/ArrayOfArrayOfNumberOnly.md
deleted file mode 100644
index 77292549927..00000000000
--- a/samples/client/petstore/java/feign/docs/ArrayOfArrayOfNumberOnly.md
+++ /dev/null
@@ -1,10 +0,0 @@
-
-# ArrayOfArrayOfNumberOnly
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**arrayArrayNumber** | [**List<List<BigDecimal>>**](List.md) | | [optional]
-
-
-
diff --git a/samples/client/petstore/java/feign/docs/ArrayOfNumberOnly.md b/samples/client/petstore/java/feign/docs/ArrayOfNumberOnly.md
deleted file mode 100644
index e8cc4cd36dc..00000000000
--- a/samples/client/petstore/java/feign/docs/ArrayOfNumberOnly.md
+++ /dev/null
@@ -1,10 +0,0 @@
-
-# ArrayOfNumberOnly
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**arrayNumber** | [**List<BigDecimal>**](BigDecimal.md) | | [optional]
-
-
-
diff --git a/samples/client/petstore/java/feign/docs/ArrayTest.md b/samples/client/petstore/java/feign/docs/ArrayTest.md
deleted file mode 100644
index 9feee16427f..00000000000
--- a/samples/client/petstore/java/feign/docs/ArrayTest.md
+++ /dev/null
@@ -1,12 +0,0 @@
-
-# ArrayTest
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**arrayOfString** | **List<String>** | | [optional]
-**arrayArrayOfInteger** | [**List<List<Long>>**](List.md) | | [optional]
-**arrayArrayOfModel** | [**List<List<ReadOnlyFirst>>**](List.md) | | [optional]
-
-
-
diff --git a/samples/client/petstore/java/feign/docs/Cat.md b/samples/client/petstore/java/feign/docs/Cat.md
deleted file mode 100644
index be6e56fa8ce..00000000000
--- a/samples/client/petstore/java/feign/docs/Cat.md
+++ /dev/null
@@ -1,12 +0,0 @@
-
-# Cat
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**className** | **String** | |
-**color** | **String** | | [optional]
-**declawed** | **Boolean** | | [optional]
-
-
-
diff --git a/samples/client/petstore/java/feign/docs/Category.md b/samples/client/petstore/java/feign/docs/Category.md
deleted file mode 100644
index e2df0803278..00000000000
--- a/samples/client/petstore/java/feign/docs/Category.md
+++ /dev/null
@@ -1,11 +0,0 @@
-
-# Category
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**id** | **Long** | | [optional]
-**name** | **String** | | [optional]
-
-
-
diff --git a/samples/client/petstore/java/feign/docs/Dog.md b/samples/client/petstore/java/feign/docs/Dog.md
deleted file mode 100644
index 71a7dbe809e..00000000000
--- a/samples/client/petstore/java/feign/docs/Dog.md
+++ /dev/null
@@ -1,12 +0,0 @@
-
-# Dog
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**className** | **String** | |
-**color** | **String** | | [optional]
-**breed** | **String** | | [optional]
-
-
-
diff --git a/samples/client/petstore/java/feign/docs/EnumClass.md b/samples/client/petstore/java/feign/docs/EnumClass.md
deleted file mode 100644
index c746edc3cb1..00000000000
--- a/samples/client/petstore/java/feign/docs/EnumClass.md
+++ /dev/null
@@ -1,14 +0,0 @@
-
-# EnumClass
-
-## Enum
-
-
-* `_ABC` (value: `"_abc"`)
-
-* `_EFG` (value: `"-efg"`)
-
-* `_XYZ_` (value: `"(xyz)"`)
-
-
-
diff --git a/samples/client/petstore/java/feign/docs/EnumTest.md b/samples/client/petstore/java/feign/docs/EnumTest.md
deleted file mode 100644
index deb1951c552..00000000000
--- a/samples/client/petstore/java/feign/docs/EnumTest.md
+++ /dev/null
@@ -1,36 +0,0 @@
-
-# EnumTest
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**enumString** | [**EnumStringEnum**](#EnumStringEnum) | | [optional]
-**enumInteger** | [**EnumIntegerEnum**](#EnumIntegerEnum) | | [optional]
-**enumNumber** | [**EnumNumberEnum**](#EnumNumberEnum) | | [optional]
-
-
-
-## Enum: EnumStringEnum
-Name | Value
----- | -----
-UPPER | "UPPER"
-LOWER | "lower"
-
-
-
-## Enum: EnumIntegerEnum
-Name | Value
----- | -----
-NUMBER_1 | 1
-NUMBER_MINUS_1 | -1
-
-
-
-## Enum: EnumNumberEnum
-Name | Value
----- | -----
-NUMBER_1_DOT_1 | 1.1
-NUMBER_MINUS_1_DOT_2 | -1.2
-
-
-
diff --git a/samples/client/petstore/java/feign/docs/FakeApi.md b/samples/client/petstore/java/feign/docs/FakeApi.md
deleted file mode 100644
index 21a4db7c377..00000000000
--- a/samples/client/petstore/java/feign/docs/FakeApi.md
+++ /dev/null
@@ -1,122 +0,0 @@
-# FakeApi
-
-All URIs are relative to *http://petstore.swagger.io/v2*
-
-Method | HTTP request | Description
-------------- | ------------- | -------------
-[**testEndpointParameters**](FakeApi.md#testEndpointParameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
-[**testEnumQueryParameters**](FakeApi.md#testEnumQueryParameters) | **GET** /fake | To test enum query parameters
-
-
-
-# **testEndpointParameters**
-> testEndpointParameters(number, _double, string, _byte, integer, int32, int64, _float, binary, date, dateTime, password)
-
-Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
-
-Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
-
-### Example
-```java
-// Import classes:
-//import io.swagger.client.ApiException;
-//import io.swagger.client.api.FakeApi;
-
-
-FakeApi apiInstance = new FakeApi();
-BigDecimal number = new BigDecimal(); // BigDecimal | None
-Double _double = 3.4D; // Double | None
-String string = "string_example"; // String | None
-byte[] _byte = B; // byte[] | None
-Integer integer = 56; // Integer | None
-Integer int32 = 56; // Integer | None
-Long int64 = 789L; // Long | None
-Float _float = 3.4F; // Float | None
-byte[] binary = B; // byte[] | None
-LocalDate date = new LocalDate(); // LocalDate | None
-DateTime dateTime = new DateTime(); // DateTime | None
-String password = "password_example"; // String | None
-try {
- apiInstance.testEndpointParameters(number, _double, string, _byte, integer, int32, int64, _float, binary, date, dateTime, password);
-} catch (ApiException e) {
- System.err.println("Exception when calling FakeApi#testEndpointParameters");
- e.printStackTrace();
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **number** | **BigDecimal**| None |
- **_double** | **Double**| None |
- **string** | **String**| None |
- **_byte** | **byte[]**| None |
- **integer** | **Integer**| None | [optional]
- **int32** | **Integer**| None | [optional]
- **int64** | **Long**| None | [optional]
- **_float** | **Float**| None | [optional]
- **binary** | **byte[]**| None | [optional]
- **date** | **LocalDate**| None | [optional]
- **dateTime** | **DateTime**| None | [optional]
- **password** | **String**| None | [optional]
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: application/xml; charset=utf-8, application/json; charset=utf-8
- - **Accept**: application/xml; charset=utf-8, application/json; charset=utf-8
-
-
-# **testEnumQueryParameters**
-> testEnumQueryParameters(enumQueryString, enumQueryInteger, enumQueryDouble)
-
-To test enum query parameters
-
-### Example
-```java
-// Import classes:
-//import io.swagger.client.ApiException;
-//import io.swagger.client.api.FakeApi;
-
-
-FakeApi apiInstance = new FakeApi();
-String enumQueryString = "-efg"; // String | Query parameter enum test (string)
-BigDecimal enumQueryInteger = new BigDecimal(); // BigDecimal | Query parameter enum test (double)
-Double enumQueryDouble = 3.4D; // Double | Query parameter enum test (double)
-try {
- apiInstance.testEnumQueryParameters(enumQueryString, enumQueryInteger, enumQueryDouble);
-} catch (ApiException e) {
- System.err.println("Exception when calling FakeApi#testEnumQueryParameters");
- e.printStackTrace();
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)]
- **enumQueryInteger** | **BigDecimal**| Query parameter enum test (double) | [optional]
- **enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional]
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: application/json
-
diff --git a/samples/client/petstore/java/feign/docs/FormatTest.md b/samples/client/petstore/java/feign/docs/FormatTest.md
deleted file mode 100644
index 44de7d9511a..00000000000
--- a/samples/client/petstore/java/feign/docs/FormatTest.md
+++ /dev/null
@@ -1,22 +0,0 @@
-
-# FormatTest
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**integer** | **Integer** | | [optional]
-**int32** | **Integer** | | [optional]
-**int64** | **Long** | | [optional]
-**number** | [**BigDecimal**](BigDecimal.md) | |
-**_float** | **Float** | | [optional]
-**_double** | **Double** | | [optional]
-**string** | **String** | | [optional]
-**_byte** | **byte[]** | |
-**binary** | **byte[]** | | [optional]
-**date** | [**LocalDate**](LocalDate.md) | |
-**dateTime** | [**DateTime**](DateTime.md) | | [optional]
-**uuid** | **String** | | [optional]
-**password** | **String** | |
-
-
-
diff --git a/samples/client/petstore/java/feign/docs/HasOnlyReadOnly.md b/samples/client/petstore/java/feign/docs/HasOnlyReadOnly.md
deleted file mode 100644
index c1d0aac5672..00000000000
--- a/samples/client/petstore/java/feign/docs/HasOnlyReadOnly.md
+++ /dev/null
@@ -1,11 +0,0 @@
-
-# HasOnlyReadOnly
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**bar** | **String** | | [optional]
-**foo** | **String** | | [optional]
-
-
-
diff --git a/samples/client/petstore/java/feign/docs/MapTest.md b/samples/client/petstore/java/feign/docs/MapTest.md
deleted file mode 100644
index c671e97ffbc..00000000000
--- a/samples/client/petstore/java/feign/docs/MapTest.md
+++ /dev/null
@@ -1,17 +0,0 @@
-
-# MapTest
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
-**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
-
-
-
-## Enum: Map<String, InnerEnum>
-Name | Value
----- | -----
-
-
-
diff --git a/samples/client/petstore/java/feign/docs/MixedPropertiesAndAdditionalPropertiesClass.md b/samples/client/petstore/java/feign/docs/MixedPropertiesAndAdditionalPropertiesClass.md
deleted file mode 100644
index e3487bcc501..00000000000
--- a/samples/client/petstore/java/feign/docs/MixedPropertiesAndAdditionalPropertiesClass.md
+++ /dev/null
@@ -1,12 +0,0 @@
-
-# MixedPropertiesAndAdditionalPropertiesClass
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**uuid** | **String** | | [optional]
-**dateTime** | [**DateTime**](DateTime.md) | | [optional]
-**map** | [**Map<String, Animal>**](Animal.md) | | [optional]
-
-
-
diff --git a/samples/client/petstore/java/feign/docs/Model200Response.md b/samples/client/petstore/java/feign/docs/Model200Response.md
deleted file mode 100644
index b47618b28cc..00000000000
--- a/samples/client/petstore/java/feign/docs/Model200Response.md
+++ /dev/null
@@ -1,11 +0,0 @@
-
-# Model200Response
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**name** | **Integer** | | [optional]
-**PropertyClass** | **String** | | [optional]
-
-
-
diff --git a/samples/client/petstore/java/feign/docs/ModelApiResponse.md b/samples/client/petstore/java/feign/docs/ModelApiResponse.md
deleted file mode 100644
index 3eec8686cc9..00000000000
--- a/samples/client/petstore/java/feign/docs/ModelApiResponse.md
+++ /dev/null
@@ -1,12 +0,0 @@
-
-# ModelApiResponse
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**code** | **Integer** | | [optional]
-**type** | **String** | | [optional]
-**message** | **String** | | [optional]
-
-
-
diff --git a/samples/client/petstore/java/feign/docs/ModelReturn.md b/samples/client/petstore/java/feign/docs/ModelReturn.md
deleted file mode 100644
index a679b04953e..00000000000
--- a/samples/client/petstore/java/feign/docs/ModelReturn.md
+++ /dev/null
@@ -1,10 +0,0 @@
-
-# ModelReturn
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**_return** | **Integer** | | [optional]
-
-
-
diff --git a/samples/client/petstore/java/feign/docs/Name.md b/samples/client/petstore/java/feign/docs/Name.md
deleted file mode 100644
index ce2fb4dee50..00000000000
--- a/samples/client/petstore/java/feign/docs/Name.md
+++ /dev/null
@@ -1,13 +0,0 @@
-
-# Name
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**name** | **Integer** | |
-**snakeCase** | **Integer** | | [optional]
-**property** | **String** | | [optional]
-**_123Number** | **Integer** | | [optional]
-
-
-
diff --git a/samples/client/petstore/java/feign/docs/NumberOnly.md b/samples/client/petstore/java/feign/docs/NumberOnly.md
deleted file mode 100644
index a3feac7fadc..00000000000
--- a/samples/client/petstore/java/feign/docs/NumberOnly.md
+++ /dev/null
@@ -1,10 +0,0 @@
-
-# NumberOnly
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**justNumber** | [**BigDecimal**](BigDecimal.md) | | [optional]
-
-
-
diff --git a/samples/client/petstore/java/feign/docs/Order.md b/samples/client/petstore/java/feign/docs/Order.md
deleted file mode 100644
index a1089f5384e..00000000000
--- a/samples/client/petstore/java/feign/docs/Order.md
+++ /dev/null
@@ -1,24 +0,0 @@
-
-# Order
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**id** | **Long** | | [optional]
-**petId** | **Long** | | [optional]
-**quantity** | **Integer** | | [optional]
-**shipDate** | [**DateTime**](DateTime.md) | | [optional]
-**status** | [**StatusEnum**](#StatusEnum) | Order Status | [optional]
-**complete** | **Boolean** | | [optional]
-
-
-
-## Enum: StatusEnum
-Name | Value
----- | -----
-PLACED | "placed"
-APPROVED | "approved"
-DELIVERED | "delivered"
-
-
-
diff --git a/samples/client/petstore/java/feign/docs/Pet.md b/samples/client/petstore/java/feign/docs/Pet.md
deleted file mode 100644
index 5b63109ef92..00000000000
--- a/samples/client/petstore/java/feign/docs/Pet.md
+++ /dev/null
@@ -1,24 +0,0 @@
-
-# Pet
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**id** | **Long** | | [optional]
-**category** | [**Category**](Category.md) | | [optional]
-**name** | **String** | |
-**photoUrls** | **List<String>** | |
-**tags** | [**List<Tag>**](Tag.md) | | [optional]
-**status** | [**StatusEnum**](#StatusEnum) | pet status in the store | [optional]
-
-
-
-## Enum: StatusEnum
-Name | Value
----- | -----
-AVAILABLE | "available"
-PENDING | "pending"
-SOLD | "sold"
-
-
-
diff --git a/samples/client/petstore/java/feign/docs/PetApi.md b/samples/client/petstore/java/feign/docs/PetApi.md
deleted file mode 100644
index e0314e20e51..00000000000
--- a/samples/client/petstore/java/feign/docs/PetApi.md
+++ /dev/null
@@ -1,448 +0,0 @@
-# PetApi
-
-All URIs are relative to *http://petstore.swagger.io/v2*
-
-Method | HTTP request | Description
-------------- | ------------- | -------------
-[**addPet**](PetApi.md#addPet) | **POST** /pet | Add a new pet to the store
-[**deletePet**](PetApi.md#deletePet) | **DELETE** /pet/{petId} | Deletes a pet
-[**findPetsByStatus**](PetApi.md#findPetsByStatus) | **GET** /pet/findByStatus | Finds Pets by status
-[**findPetsByTags**](PetApi.md#findPetsByTags) | **GET** /pet/findByTags | Finds Pets by tags
-[**getPetById**](PetApi.md#getPetById) | **GET** /pet/{petId} | Find pet by ID
-[**updatePet**](PetApi.md#updatePet) | **PUT** /pet | Update an existing pet
-[**updatePetWithForm**](PetApi.md#updatePetWithForm) | **POST** /pet/{petId} | Updates a pet in the store with form data
-[**uploadFile**](PetApi.md#uploadFile) | **POST** /pet/{petId}/uploadImage | uploads an image
-
-
-
-# **addPet**
-> addPet(body)
-
-Add a new pet to the store
-
-
-
-### Example
-```java
-// Import classes:
-//import io.swagger.client.ApiClient;
-//import io.swagger.client.ApiException;
-//import io.swagger.client.Configuration;
-//import io.swagger.client.auth.*;
-//import io.swagger.client.api.PetApi;
-
-ApiClient defaultClient = Configuration.getDefaultApiClient();
-
-// Configure OAuth2 access token for authorization: petstore_auth
-OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
-petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
-
-PetApi apiInstance = new PetApi();
-Pet body = new Pet(); // Pet | Pet object that needs to be added to the store
-try {
- apiInstance.addPet(body);
-} catch (ApiException e) {
- System.err.println("Exception when calling PetApi#addPet");
- e.printStackTrace();
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-[petstore_auth](../README.md#petstore_auth)
-
-### HTTP request headers
-
- - **Content-Type**: application/json, application/xml
- - **Accept**: application/xml, application/json
-
-
-# **deletePet**
-> deletePet(petId, apiKey)
-
-Deletes a pet
-
-
-
-### Example
-```java
-// Import classes:
-//import io.swagger.client.ApiClient;
-//import io.swagger.client.ApiException;
-//import io.swagger.client.Configuration;
-//import io.swagger.client.auth.*;
-//import io.swagger.client.api.PetApi;
-
-ApiClient defaultClient = Configuration.getDefaultApiClient();
-
-// Configure OAuth2 access token for authorization: petstore_auth
-OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
-petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
-
-PetApi apiInstance = new PetApi();
-Long petId = 789L; // Long | Pet id to delete
-String apiKey = "apiKey_example"; // String |
-try {
- apiInstance.deletePet(petId, apiKey);
-} catch (ApiException e) {
- System.err.println("Exception when calling PetApi#deletePet");
- e.printStackTrace();
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **petId** | **Long**| Pet id to delete |
- **apiKey** | **String**| | [optional]
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-[petstore_auth](../README.md#petstore_auth)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
-
-
-# **findPetsByStatus**
-> List<Pet> findPetsByStatus(status)
-
-Finds Pets by status
-
-Multiple status values can be provided with comma separated strings
-
-### Example
-```java
-// Import classes:
-//import io.swagger.client.ApiClient;
-//import io.swagger.client.ApiException;
-//import io.swagger.client.Configuration;
-//import io.swagger.client.auth.*;
-//import io.swagger.client.api.PetApi;
-
-ApiClient defaultClient = Configuration.getDefaultApiClient();
-
-// Configure OAuth2 access token for authorization: petstore_auth
-OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
-petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
-
-PetApi apiInstance = new PetApi();
-List status = Arrays.asList("status_example"); // List | Status values that need to be considered for filter
-try {
- List result = apiInstance.findPetsByStatus(status);
- System.out.println(result);
-} catch (ApiException e) {
- System.err.println("Exception when calling PetApi#findPetsByStatus");
- e.printStackTrace();
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **status** | [**List<String>**](String.md)| Status values that need to be considered for filter |
-
-### Return type
-
-[**List<Pet>**](Pet.md)
-
-### Authorization
-
-[petstore_auth](../README.md#petstore_auth)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
-
-
-# **findPetsByTags**
-> List<Pet> findPetsByTags(tags)
-
-Finds Pets by tags
-
-Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
-
-### Example
-```java
-// Import classes:
-//import io.swagger.client.ApiClient;
-//import io.swagger.client.ApiException;
-//import io.swagger.client.Configuration;
-//import io.swagger.client.auth.*;
-//import io.swagger.client.api.PetApi;
-
-ApiClient defaultClient = Configuration.getDefaultApiClient();
-
-// Configure OAuth2 access token for authorization: petstore_auth
-OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
-petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
-
-PetApi apiInstance = new PetApi();
-List tags = Arrays.asList("tags_example"); // List | Tags to filter by
-try {
- List result = apiInstance.findPetsByTags(tags);
- System.out.println(result);
-} catch (ApiException e) {
- System.err.println("Exception when calling PetApi#findPetsByTags");
- e.printStackTrace();
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **tags** | [**List<String>**](String.md)| Tags to filter by |
-
-### Return type
-
-[**List<Pet>**](Pet.md)
-
-### Authorization
-
-[petstore_auth](../README.md#petstore_auth)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
-
-
-# **getPetById**
-> Pet getPetById(petId)
-
-Find pet by ID
-
-Returns a single pet
-
-### Example
-```java
-// Import classes:
-//import io.swagger.client.ApiClient;
-//import io.swagger.client.ApiException;
-//import io.swagger.client.Configuration;
-//import io.swagger.client.auth.*;
-//import io.swagger.client.api.PetApi;
-
-ApiClient defaultClient = Configuration.getDefaultApiClient();
-
-// Configure API key authorization: api_key
-ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
-api_key.setApiKey("YOUR API KEY");
-// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-//api_key.setApiKeyPrefix("Token");
-
-PetApi apiInstance = new PetApi();
-Long petId = 789L; // Long | ID of pet to return
-try {
- Pet result = apiInstance.getPetById(petId);
- System.out.println(result);
-} catch (ApiException e) {
- System.err.println("Exception when calling PetApi#getPetById");
- e.printStackTrace();
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **petId** | **Long**| ID of pet to return |
-
-### Return type
-
-[**Pet**](Pet.md)
-
-### Authorization
-
-[api_key](../README.md#api_key)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
-
-
-# **updatePet**
-> updatePet(body)
-
-Update an existing pet
-
-
-
-### Example
-```java
-// Import classes:
-//import io.swagger.client.ApiClient;
-//import io.swagger.client.ApiException;
-//import io.swagger.client.Configuration;
-//import io.swagger.client.auth.*;
-//import io.swagger.client.api.PetApi;
-
-ApiClient defaultClient = Configuration.getDefaultApiClient();
-
-// Configure OAuth2 access token for authorization: petstore_auth
-OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
-petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
-
-PetApi apiInstance = new PetApi();
-Pet body = new Pet(); // Pet | Pet object that needs to be added to the store
-try {
- apiInstance.updatePet(body);
-} catch (ApiException e) {
- System.err.println("Exception when calling PetApi#updatePet");
- e.printStackTrace();
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-[petstore_auth](../README.md#petstore_auth)
-
-### HTTP request headers
-
- - **Content-Type**: application/json, application/xml
- - **Accept**: application/xml, application/json
-
-
-# **updatePetWithForm**
-> updatePetWithForm(petId, name, status)
-
-Updates a pet in the store with form data
-
-
-
-### Example
-```java
-// Import classes:
-//import io.swagger.client.ApiClient;
-//import io.swagger.client.ApiException;
-//import io.swagger.client.Configuration;
-//import io.swagger.client.auth.*;
-//import io.swagger.client.api.PetApi;
-
-ApiClient defaultClient = Configuration.getDefaultApiClient();
-
-// Configure OAuth2 access token for authorization: petstore_auth
-OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
-petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
-
-PetApi apiInstance = new PetApi();
-Long petId = 789L; // Long | ID of pet that needs to be updated
-String name = "name_example"; // String | Updated name of the pet
-String status = "status_example"; // String | Updated status of the pet
-try {
- apiInstance.updatePetWithForm(petId, name, status);
-} catch (ApiException e) {
- System.err.println("Exception when calling PetApi#updatePetWithForm");
- e.printStackTrace();
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **petId** | **Long**| ID of pet that needs to be updated |
- **name** | **String**| Updated name of the pet | [optional]
- **status** | **String**| Updated status of the pet | [optional]
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-[petstore_auth](../README.md#petstore_auth)
-
-### HTTP request headers
-
- - **Content-Type**: application/x-www-form-urlencoded
- - **Accept**: application/xml, application/json
-
-
-# **uploadFile**
-> ModelApiResponse uploadFile(petId, additionalMetadata, file)
-
-uploads an image
-
-
-
-### Example
-```java
-// Import classes:
-//import io.swagger.client.ApiClient;
-//import io.swagger.client.ApiException;
-//import io.swagger.client.Configuration;
-//import io.swagger.client.auth.*;
-//import io.swagger.client.api.PetApi;
-
-ApiClient defaultClient = Configuration.getDefaultApiClient();
-
-// Configure OAuth2 access token for authorization: petstore_auth
-OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
-petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
-
-PetApi apiInstance = new PetApi();
-Long petId = 789L; // Long | ID of pet to update
-String additionalMetadata = "additionalMetadata_example"; // String | Additional data to pass to server
-File file = new File("/path/to/file.txt"); // File | file to upload
-try {
- ModelApiResponse result = apiInstance.uploadFile(petId, additionalMetadata, file);
- System.out.println(result);
-} catch (ApiException e) {
- System.err.println("Exception when calling PetApi#uploadFile");
- e.printStackTrace();
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **petId** | **Long**| ID of pet to update |
- **additionalMetadata** | **String**| Additional data to pass to server | [optional]
- **file** | **File**| file to upload | [optional]
-
-### Return type
-
-[**ModelApiResponse**](ModelApiResponse.md)
-
-### Authorization
-
-[petstore_auth](../README.md#petstore_auth)
-
-### HTTP request headers
-
- - **Content-Type**: multipart/form-data
- - **Accept**: application/json
-
diff --git a/samples/client/petstore/java/feign/docs/ReadOnlyFirst.md b/samples/client/petstore/java/feign/docs/ReadOnlyFirst.md
deleted file mode 100644
index 426b7cde95a..00000000000
--- a/samples/client/petstore/java/feign/docs/ReadOnlyFirst.md
+++ /dev/null
@@ -1,11 +0,0 @@
-
-# ReadOnlyFirst
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**bar** | **String** | | [optional]
-**baz** | **String** | | [optional]
-
-
-
diff --git a/samples/client/petstore/java/feign/docs/SpecialModelName.md b/samples/client/petstore/java/feign/docs/SpecialModelName.md
deleted file mode 100644
index c2c6117c552..00000000000
--- a/samples/client/petstore/java/feign/docs/SpecialModelName.md
+++ /dev/null
@@ -1,10 +0,0 @@
-
-# SpecialModelName
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**specialPropertyName** | **Long** | | [optional]
-
-
-
diff --git a/samples/client/petstore/java/feign/docs/StoreApi.md b/samples/client/petstore/java/feign/docs/StoreApi.md
deleted file mode 100644
index 0b30791725a..00000000000
--- a/samples/client/petstore/java/feign/docs/StoreApi.md
+++ /dev/null
@@ -1,197 +0,0 @@
-# StoreApi
-
-All URIs are relative to *http://petstore.swagger.io/v2*
-
-Method | HTTP request | Description
-------------- | ------------- | -------------
-[**deleteOrder**](StoreApi.md#deleteOrder) | **DELETE** /store/order/{orderId} | Delete purchase order by ID
-[**getInventory**](StoreApi.md#getInventory) | **GET** /store/inventory | Returns pet inventories by status
-[**getOrderById**](StoreApi.md#getOrderById) | **GET** /store/order/{orderId} | Find purchase order by ID
-[**placeOrder**](StoreApi.md#placeOrder) | **POST** /store/order | Place an order for a pet
-
-
-
-# **deleteOrder**
-> deleteOrder(orderId)
-
-Delete purchase order by ID
-
-For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
-
-### Example
-```java
-// Import classes:
-//import io.swagger.client.ApiException;
-//import io.swagger.client.api.StoreApi;
-
-
-StoreApi apiInstance = new StoreApi();
-String orderId = "orderId_example"; // String | ID of the order that needs to be deleted
-try {
- apiInstance.deleteOrder(orderId);
-} catch (ApiException e) {
- System.err.println("Exception when calling StoreApi#deleteOrder");
- e.printStackTrace();
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **orderId** | **String**| ID of the order that needs to be deleted |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
-
-
-# **getInventory**
-> Map<String, Integer> getInventory()
-
-Returns pet inventories by status
-
-Returns a map of status codes to quantities
-
-### Example
-```java
-// Import classes:
-//import io.swagger.client.ApiClient;
-//import io.swagger.client.ApiException;
-//import io.swagger.client.Configuration;
-//import io.swagger.client.auth.*;
-//import io.swagger.client.api.StoreApi;
-
-ApiClient defaultClient = Configuration.getDefaultApiClient();
-
-// Configure API key authorization: api_key
-ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
-api_key.setApiKey("YOUR API KEY");
-// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-//api_key.setApiKeyPrefix("Token");
-
-StoreApi apiInstance = new StoreApi();
-try {
- Map result = apiInstance.getInventory();
- System.out.println(result);
-} catch (ApiException e) {
- System.err.println("Exception when calling StoreApi#getInventory");
- e.printStackTrace();
-}
-```
-
-### Parameters
-This endpoint does not need any parameter.
-
-### Return type
-
-[**Map<String, Integer>**](Map.md)
-
-### Authorization
-
-[api_key](../README.md#api_key)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/json
-
-
-# **getOrderById**
-> Order getOrderById(orderId)
-
-Find purchase order by ID
-
-For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
-
-### Example
-```java
-// Import classes:
-//import io.swagger.client.ApiException;
-//import io.swagger.client.api.StoreApi;
-
-
-StoreApi apiInstance = new StoreApi();
-Long orderId = 789L; // Long | ID of pet that needs to be fetched
-try {
- Order result = apiInstance.getOrderById(orderId);
- System.out.println(result);
-} catch (ApiException e) {
- System.err.println("Exception when calling StoreApi#getOrderById");
- e.printStackTrace();
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **orderId** | **Long**| ID of pet that needs to be fetched |
-
-### Return type
-
-[**Order**](Order.md)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
-
-
-# **placeOrder**
-> Order placeOrder(body)
-
-Place an order for a pet
-
-
-
-### Example
-```java
-// Import classes:
-//import io.swagger.client.ApiException;
-//import io.swagger.client.api.StoreApi;
-
-
-StoreApi apiInstance = new StoreApi();
-Order body = new Order(); // Order | order placed for purchasing the pet
-try {
- Order result = apiInstance.placeOrder(body);
- System.out.println(result);
-} catch (ApiException e) {
- System.err.println("Exception when calling StoreApi#placeOrder");
- e.printStackTrace();
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **body** | [**Order**](Order.md)| order placed for purchasing the pet |
-
-### Return type
-
-[**Order**](Order.md)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
-
diff --git a/samples/client/petstore/java/feign/docs/Tag.md b/samples/client/petstore/java/feign/docs/Tag.md
deleted file mode 100644
index de6814b55d5..00000000000
--- a/samples/client/petstore/java/feign/docs/Tag.md
+++ /dev/null
@@ -1,11 +0,0 @@
-
-# Tag
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**id** | **Long** | | [optional]
-**name** | **String** | | [optional]
-
-
-
diff --git a/samples/client/petstore/java/feign/docs/User.md b/samples/client/petstore/java/feign/docs/User.md
deleted file mode 100644
index 8b6753dd284..00000000000
--- a/samples/client/petstore/java/feign/docs/User.md
+++ /dev/null
@@ -1,17 +0,0 @@
-
-# User
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**id** | **Long** | | [optional]
-**username** | **String** | | [optional]
-**firstName** | **String** | | [optional]
-**lastName** | **String** | | [optional]
-**email** | **String** | | [optional]
-**password** | **String** | | [optional]
-**phone** | **String** | | [optional]
-**userStatus** | **Integer** | User Status | [optional]
-
-
-
diff --git a/samples/client/petstore/java/feign/docs/UserApi.md b/samples/client/petstore/java/feign/docs/UserApi.md
deleted file mode 100644
index 8cdc15992ee..00000000000
--- a/samples/client/petstore/java/feign/docs/UserApi.md
+++ /dev/null
@@ -1,370 +0,0 @@
-# UserApi
-
-All URIs are relative to *http://petstore.swagger.io/v2*
-
-Method | HTTP request | Description
-------------- | ------------- | -------------
-[**createUser**](UserApi.md#createUser) | **POST** /user | Create user
-[**createUsersWithArrayInput**](UserApi.md#createUsersWithArrayInput) | **POST** /user/createWithArray | Creates list of users with given input array
-[**createUsersWithListInput**](UserApi.md#createUsersWithListInput) | **POST** /user/createWithList | Creates list of users with given input array
-[**deleteUser**](UserApi.md#deleteUser) | **DELETE** /user/{username} | Delete user
-[**getUserByName**](UserApi.md#getUserByName) | **GET** /user/{username} | Get user by user name
-[**loginUser**](UserApi.md#loginUser) | **GET** /user/login | Logs user into the system
-[**logoutUser**](UserApi.md#logoutUser) | **GET** /user/logout | Logs out current logged in user session
-[**updateUser**](UserApi.md#updateUser) | **PUT** /user/{username} | Updated user
-
-
-
-# **createUser**
-> createUser(body)
-
-Create user
-
-This can only be done by the logged in user.
-
-### Example
-```java
-// Import classes:
-//import io.swagger.client.ApiException;
-//import io.swagger.client.api.UserApi;
-
-
-UserApi apiInstance = new UserApi();
-User body = new User(); // User | Created user object
-try {
- apiInstance.createUser(body);
-} catch (ApiException e) {
- System.err.println("Exception when calling UserApi#createUser");
- e.printStackTrace();
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **body** | [**User**](User.md)| Created user object |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
-
-
-# **createUsersWithArrayInput**
-> createUsersWithArrayInput(body)
-
-Creates list of users with given input array
-
-
-
-### Example
-```java
-// Import classes:
-//import io.swagger.client.ApiException;
-//import io.swagger.client.api.UserApi;
-
-
-UserApi apiInstance = new UserApi();
-List body = Arrays.asList(new User()); // List | List of user object
-try {
- apiInstance.createUsersWithArrayInput(body);
-} catch (ApiException e) {
- System.err.println("Exception when calling UserApi#createUsersWithArrayInput");
- e.printStackTrace();
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **body** | [**List<User>**](User.md)| List of user object |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
-
-
-# **createUsersWithListInput**
-> createUsersWithListInput(body)
-
-Creates list of users with given input array
-
-
-
-### Example
-```java
-// Import classes:
-//import io.swagger.client.ApiException;
-//import io.swagger.client.api.UserApi;
-
-
-UserApi apiInstance = new UserApi();
-List body = Arrays.asList(new User()); // List | List of user object
-try {
- apiInstance.createUsersWithListInput(body);
-} catch (ApiException e) {
- System.err.println("Exception when calling UserApi#createUsersWithListInput");
- e.printStackTrace();
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **body** | [**List<User>**](User.md)| List of user object |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
-
-
-# **deleteUser**
-> deleteUser(username)
-
-Delete user
-
-This can only be done by the logged in user.
-
-### Example
-```java
-// Import classes:
-//import io.swagger.client.ApiException;
-//import io.swagger.client.api.UserApi;
-
-
-UserApi apiInstance = new UserApi();
-String username = "username_example"; // String | The name that needs to be deleted
-try {
- apiInstance.deleteUser(username);
-} catch (ApiException e) {
- System.err.println("Exception when calling UserApi#deleteUser");
- e.printStackTrace();
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **username** | **String**| The name that needs to be deleted |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
-
-
-# **getUserByName**
-> User getUserByName(username)
-
-Get user by user name
-
-
-
-### Example
-```java
-// Import classes:
-//import io.swagger.client.ApiException;
-//import io.swagger.client.api.UserApi;
-
-
-UserApi apiInstance = new UserApi();
-String username = "username_example"; // String | The name that needs to be fetched. Use user1 for testing.
-try {
- User result = apiInstance.getUserByName(username);
- System.out.println(result);
-} catch (ApiException e) {
- System.err.println("Exception when calling UserApi#getUserByName");
- e.printStackTrace();
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **username** | **String**| The name that needs to be fetched. Use user1 for testing. |
-
-### Return type
-
-[**User**](User.md)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
-
-
-# **loginUser**
-> String loginUser(username, password)
-
-Logs user into the system
-
-
-
-### Example
-```java
-// Import classes:
-//import io.swagger.client.ApiException;
-//import io.swagger.client.api.UserApi;
-
-
-UserApi apiInstance = new UserApi();
-String username = "username_example"; // String | The user name for login
-String password = "password_example"; // String | The password for login in clear text
-try {
- String result = apiInstance.loginUser(username, password);
- System.out.println(result);
-} catch (ApiException e) {
- System.err.println("Exception when calling UserApi#loginUser");
- e.printStackTrace();
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **username** | **String**| The user name for login |
- **password** | **String**| The password for login in clear text |
-
-### Return type
-
-**String**
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
-
-
-# **logoutUser**
-> logoutUser()
-
-Logs out current logged in user session
-
-
-
-### Example
-```java
-// Import classes:
-//import io.swagger.client.ApiException;
-//import io.swagger.client.api.UserApi;
-
-
-UserApi apiInstance = new UserApi();
-try {
- apiInstance.logoutUser();
-} catch (ApiException e) {
- System.err.println("Exception when calling UserApi#logoutUser");
- e.printStackTrace();
-}
-```
-
-### Parameters
-This endpoint does not need any parameter.
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
-
-
-# **updateUser**
-> updateUser(username, body)
-
-Updated user
-
-This can only be done by the logged in user.
-
-### Example
-```java
-// Import classes:
-//import io.swagger.client.ApiException;
-//import io.swagger.client.api.UserApi;
-
-
-UserApi apiInstance = new UserApi();
-String username = "username_example"; // String | name that need to be deleted
-User body = new User(); // User | Updated user object
-try {
- apiInstance.updateUser(username, body);
-} catch (ApiException e) {
- System.err.println("Exception when calling UserApi#updateUser");
- e.printStackTrace();
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **username** | **String**| name that need to be deleted |
- **body** | [**User**](User.md)| Updated user object |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
-
diff --git a/samples/client/petstore/java/feign/git_push.sh b/samples/client/petstore/java/feign/git_push.sh
index ae01b182ae9..ed374619b13 100644
--- a/samples/client/petstore/java/feign/git_push.sh
+++ b/samples/client/petstore/java/feign/git_push.sh
@@ -36,7 +36,7 @@ git_remote=`git remote`
if [ "$git_remote" = "" ]; then # git remote not defined
if [ "$GIT_TOKEN" = "" ]; then
- echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
+ echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git crediential in your environment."
git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
else
git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
diff --git a/samples/client/petstore/java/feign/gradle/wrapper/gradle-wrapper.jar b/samples/client/petstore/java/feign/gradle/wrapper/gradle-wrapper.jar
index 2c6137b8789..e69de29bb2d 100644
Binary files a/samples/client/petstore/java/feign/gradle/wrapper/gradle-wrapper.jar and b/samples/client/petstore/java/feign/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/samples/client/petstore/java/feign/pom.xml b/samples/client/petstore/java/feign/pom.xml
index c363308fa3b..24b520a8850 100644
--- a/samples/client/petstore/java/feign/pom.xml
+++ b/samples/client/petstore/java/feign/pom.xml
@@ -1,279 +1,272 @@
- 4.0.0
- io.swagger
- swagger-petstore-feign
- jar
- swagger-petstore-feign
- 1.0.0
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ 4.0.0
+ io.swagger
+ swagger-petstore-feign
+ jar
+ swagger-petstore-feign
+ 1.0.0
+ https://github.com/swagger-api/swagger-codegen
+ Swagger Java
+
+ scm:git:git@github.com:swagger-api/swagger-codegen.git
+ scm:git:git@github.com:swagger-api/swagger-codegen.githttps://github.com/swagger-api/swagger-codegen
- Swagger Java
-
- scm:git:git@github.com:swagger-api/swagger-codegen.git
- scm:git:git@github.com:swagger-api/swagger-codegen.git
- https://github.com/swagger-api/swagger-codegen
-
+
+
+ 2.2.0
+
-
-
- Unlicense
- http://www.apache.org/licenses/LICENSE-2.0.html
- repo
-
-
+
+
+ Unlicense
+ http://www.apache.org/licenses/LICENSE-2.0.html
+ repo
+
+
-
-
- Swagger
- apiteam@swagger.io
- Swagger
- http://swagger.io
-
-
+
+
+ Swagger
+ apiteam@swagger.io
+ Swagger
+ http://swagger.io
+
+
-
-
-
- org.apache.maven.plugins
- maven-enforcer-plugin
- 3.0.0-M1
-
-
- enforce-maven
-
- enforce
-
-
-
-
- 2.2.0
-
-
-
-
-
-
-
- org.apache.maven.plugins
- maven-surefire-plugin
- 2.12
-
-
-
- loggerPath
- conf/log4j.properties
-
-
- -Xms512m -Xmx1500m
- methods
- pertest
-
-
-
- maven-dependency-plugin
-
-
- package
-
- copy-dependencies
-
-
- ${project.build.directory}/lib
-
-
-
-
+
+
+
+ org.apache.maven.plugins
+ maven-surefire-plugin
+ 2.12
+
+
+
+ loggerPath
+ conf/log4j.properties
+
+
+ -Xms512m -Xmx1500m
+ methods
+ pertest
+
+
+
+ maven-dependency-plugin
+
+
+ package
+
+ copy-dependencies
+
+
+ ${project.build.directory}/lib
+
+
+
+
-
-
- org.apache.maven.plugins
- maven-jar-plugin
- 2.2
-
-
-
- jar
- test-jar
-
-
-
-
-
-
+
+
+ org.apache.maven.plugins
+ maven-jar-plugin
+ 2.2
+
+
+
+ jar
+ test-jar
+
+
+
+
+
+
-
- org.codehaus.mojo
- build-helper-maven-plugin
-
-
- add_sources
- generate-sources
-
- add-source
-
-
-
-
- src/main/java
-
-
-
-
- add_test_sources
- generate-test-sources
-
- add-test-source
-
-
-
-
- src/test/java
-
-
-
-
-
-
- org.apache.maven.plugins
- maven-javadoc-plugin
- 2.10.4
-
-
- attach-javadocs
-
- jar
-
-
-
-
-
- org.apache.maven.plugins
- maven-source-plugin
- 2.2.1
-
-
- attach-sources
-
- jar-no-fork
-
-
-
-
-
-
+
+ org.codehaus.mojo
+ build-helper-maven-plugin
+
+
+ add_sources
+ generate-sources
+
+ add-source
+
+
+
+ src/main/java
+
+
+
+
+ add_test_sources
+ generate-test-sources
+
+ add-test-source
+
+
+
+ src/test/java
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-javadoc-plugin
+ 2.10.4
+
+
+ attach-javadocs
+
+ jar
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-source-plugin
+ 2.2.1
+
+
+ attach-sources
+
+ jar-no-fork
+
+
+
+
+
+
-
-
- sign-artifacts
-
-
-
- org.apache.maven.plugins
- maven-gpg-plugin
- 1.5
-
-
- sign-artifacts
- verify
-
- sign
-
-
-
-
-
-
-
-
+
+
+ sign-artifacts
+
+
+
+ org.apache.maven.plugins
+ maven-gpg-plugin
+ 1.5
+
+
+ sign-artifacts
+ verify
+
+ sign
+
+
+
+
+
+
+
+
-
-
- io.swagger
- swagger-annotations
- ${swagger-core-version}
-
+
+
+ io.swagger
+ swagger-annotations
+ ${swagger-core-version}
+
-
-
- io.github.openfeign
- feign-core
- ${feign-version}
-
-
- io.github.openfeign
- feign-jackson
- ${feign-version}
-
-
- io.github.openfeign
- feign-slf4j
- ${feign-version}
-
-
- io.github.openfeign.form
- feign-form
- ${feign-form-version}
-
+
+
+ io.github.openfeign
+ feign-core
+ ${feign-version}
+
+
+ io.github.openfeign
+ feign-jackson
+ ${feign-version}
+
+
+ io.github.openfeign
+ feign-slf4j
+ ${feign-version}
+
+
+ io.github.openfeign.form
+ feign-form
+ ${feign-form-version}
+
-
-
- com.fasterxml.jackson.core
- jackson-core
- ${jackson-version}
-
-
- com.fasterxml.jackson.core
- jackson-annotations
- ${jackson-version}
-
-
- com.fasterxml.jackson.core
- jackson-databind
- ${jackson-version}
-
-
- com.github.joschi.jackson
- jackson-datatype-threetenbp
- ${jackson-threetenbp-version}
-
-
- org.apache.oltu.oauth2
- org.apache.oltu.oauth2.client
- ${oltu-version}
-
+
+
+ com.fasterxml.jackson.core
+ jackson-core
+ ${jackson-version}
+
+
+ com.fasterxml.jackson.core
+ jackson-annotations
+ ${jackson-version}
+
+
+ com.fasterxml.jackson.core
+ jackson-databind
+ ${jackson-version}
+
+
+
+
+
+ com.fasterxml.jackson.datatype
+ jackson-datatype-jsr310
+ ${jackson-version}
+
+
+
+
+ com.github.joschi.jackson
+ jackson-datatype-threetenbp
+ ${jackson-threetenbp-version}
+
+
+
+ org.apache.oltu.oauth2
+ org.apache.oltu.oauth2.client
+ ${oltu-version}
+
-
-
- junit
- junit
- ${junit-version}
- test
-
-
- com.squareup.okhttp3
- mockwebserver
- 3.6.0
- test
-
-
- org.assertj
- assertj-core
- 1.7.1
- test
-
-
-
- UTF-8
- 1.7
- ${java.version}
- ${java.version}
- 1.5.15
- 9.4.0
- 2.1.0
- 2.8.9
- 2.6.4
- 4.12
- 1.0.0
- 1.0.1
-
+
+
+ junit
+ junit
+ ${junit-version}
+ test
+
+
+ com.squareup.okhttp3
+ mockwebserver
+ 3.6.0
+ test
+
+
+ org.assertj
+ assertj-core
+ 1.7.1
+ test
+
+
+
+ 1.8
+ ${java.version}
+ ${java.version}
+ 1.5.15
+ 9.4.0
+ 2.1.0
+ 2.8.9
+
+ 2.6.4
+
+ 4.12
+ 1.0.0
+ 1.0.2
+
diff --git a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/ApiClient.java b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/ApiClient.java
index 8fea4ac0ad9..3143f935f5c 100644
--- a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/ApiClient.java
+++ b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/ApiClient.java
@@ -5,13 +5,21 @@
import org.apache.oltu.oauth2.client.request.OAuthClientRequest.AuthenticationRequestBuilder;
import org.apache.oltu.oauth2.client.request.OAuthClientRequest.TokenRequestBuilder;
+
import org.threeten.bp.*;
+
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
+
+
+import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
+
+
import com.fasterxml.jackson.datatype.threetenbp.ThreeTenModule;
+
import feign.Feign;
import feign.RequestInterceptor;
import feign.form.FormEncoder;
@@ -42,19 +50,38 @@ public ApiClient() {
public ApiClient(String[] authNames) {
this();
for(String authName : authNames) {
+
RequestInterceptor auth;
if ("api_key".equals(authName)) {
+
+
auth = new ApiKeyAuth("header", "api_key");
+
+
} else if ("api_key_query".equals(authName)) {
+
+
auth = new ApiKeyAuth("query", "api_key_query");
+
+
} else if ("http_basic_test".equals(authName)) {
+
auth = new HttpBasicAuth();
+
+
+
} else if ("petstore_auth".equals(authName)) {
- auth = new OAuth(OAuthFlow.implicit, "http://petstore.swagger.io/api/oauth/dialog", "", "write:pets, read:pets");
+
+
+
+ auth = new OAuth(OAuthFlow.implicit, "http://petstore.swagger.io/api/oauth/dialog", "", "");
+
} else {
throw new RuntimeException("auth name \"" + authName + "\" not found in available auth names");
}
addAuthorization(authName, auth);
+
+
}
}
@@ -138,11 +165,17 @@ private ObjectMapper createObjectMapper() {
objectMapper.disable(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE);
objectMapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS);
objectMapper.setDateFormat(new RFC3339DateFormat());
+
+
+ objectMapper.registerModule(new JavaTimeModule());
+
+
ThreeTenModule module = new ThreeTenModule();
module.addDeserializer(Instant.class, CustomInstantDeserializer.INSTANT);
module.addDeserializer(OffsetDateTime.class, CustomInstantDeserializer.OFFSET_DATE_TIME);
module.addDeserializer(ZonedDateTime.class, CustomInstantDeserializer.ZONED_DATE_TIME);
objectMapper.registerModule(module);
+
return objectMapper;
}
diff --git a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/api/AnotherFakeApi.java b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/api/AnotherFakeApi.java
index 6cef5dde04d..24bca18072a 100644
--- a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/api/AnotherFakeApi.java
+++ b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/api/AnotherFakeApi.java
@@ -3,12 +3,16 @@
import io.swagger.client.ApiClient;
import io.swagger.client.EncodingUtils;
+
import io.swagger.client.model.Client;
+
+
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
+
import feign.*;
@@ -18,13 +22,21 @@ public interface AnotherFakeApi extends ApiClient.Api {
/**
* To test special tags
* To test special tags
- * @param body client model (required)
+
+ * @param client client model (required)
+
+
* @return Client
+
+
*/
@RequestLine("PATCH /another-fake/dummy")
@Headers({
"Content-Type: application/json",
"Accept: application/json",
})
- Client testSpecialTags(Client body);
+ Client testSpecialTags(Client client);
+
+
+
}
diff --git a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/api/FakeApi.java b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/api/FakeApi.java
index 613e8a22fe6..258669033ee 100644
--- a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/api/FakeApi.java
+++ b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/api/FakeApi.java
@@ -3,16 +3,18 @@
import io.swagger.client.ApiClient;
import io.swagger.client.EncodingUtils;
+
import java.math.BigDecimal;
import io.swagger.client.model.Client;
-import org.threeten.bp.LocalDate;
-import org.threeten.bp.OffsetDateTime;
import io.swagger.client.model.OuterComposite;
+
+
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
+
import feign.*;
@@ -22,114 +24,144 @@ public interface FakeApi extends ApiClient.Api {
/**
*
* Test serialization of outer boolean types
+
* @param body Input boolean as post body (optional)
+
+
* @return Boolean
+
+
*/
@RequestLine("POST /fake/outer/boolean")
@Headers({
- "Content-Type: application/json",
- "Accept: application/json",
+ "Content-Type: */*",
+ "Accept: */*",
})
Boolean fakeOuterBooleanSerialize(Boolean body);
-
+
+
/**
*
* Test serialization of object with outer number type
- * @param body Input composite as post body (optional)
+
+ * @param outercomposite Input composite as post body (optional)
+
+
* @return OuterComposite
+
+
*/
@RequestLine("POST /fake/outer/composite")
@Headers({
- "Content-Type: application/json",
- "Accept: application/json",
+ "Content-Type: */*",
+ "Accept: */*",
})
- OuterComposite fakeOuterCompositeSerialize(OuterComposite body);
-
+ OuterComposite fakeOuterCompositeSerialize(OuterComposite outercomposite);
+
+
/**
*
* Test serialization of outer number types
+
* @param body Input number as post body (optional)
+
+
* @return BigDecimal
+
+
*/
@RequestLine("POST /fake/outer/number")
@Headers({
- "Content-Type: application/json",
- "Accept: application/json",
+ "Content-Type: */*",
+ "Accept: */*",
})
BigDecimal fakeOuterNumberSerialize(BigDecimal body);
-
+
+
/**
*
* Test serialization of outer string types
+
* @param body Input string as post body (optional)
+
+
* @return String
+
+
*/
@RequestLine("POST /fake/outer/string")
@Headers({
- "Content-Type: application/json",
- "Accept: application/json",
+ "Content-Type: */*",
+ "Accept: */*",
})
String fakeOuterStringSerialize(String body);
-
+
+
/**
* To test \"client\" model
* To test \"client\" model
- * @param body client model (required)
+
+ * @param client client model (required)
+
+
* @return Client
+
+
*/
@RequestLine("PATCH /fake")
@Headers({
"Content-Type: application/json",
"Accept: application/json",
})
- Client testClientModel(Client body);
-
+ Client testClientModel(Client client);
+
+
/**
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
- * @param number None (required)
- * @param _double None (required)
- * @param patternWithoutDelimiter None (required)
- * @param _byte None (required)
- * @param integer None (optional)
- * @param int32 None (optional)
- * @param int64 None (optional)
- * @param _float None (optional)
- * @param string None (optional)
- * @param binary None (optional)
- * @param date None (optional)
- * @param dateTime None (optional)
- * @param password None (optional)
- * @param paramCallback None (optional)
+
+ * @param body (required)
+
+
+
*/
@RequestLine("POST /fake")
@Headers({
"Content-Type: application/xml; charset=utf-8",
- "Accept: application/xml; charset=utf-8,application/json; charset=utf-8",
+ "Accept: ",
})
- void testEndpointParameters(@Param("number") BigDecimal number, @Param("_double") Double _double, @Param("patternWithoutDelimiter") String patternWithoutDelimiter, @Param("_byte") byte[] _byte, @Param("integer") Integer integer, @Param("int32") Integer int32, @Param("int64") Long int64, @Param("_float") Float _float, @Param("string") String string, @Param("binary") byte[] binary, @Param("date") LocalDate date, @Param("dateTime") OffsetDateTime dateTime, @Param("password") String password, @Param("paramCallback") String paramCallback);
-
+ void testEndpointParameters(Object body);
+
+
/**
* To test enum parameters
* To test enum parameters
- * @param enumFormStringArray Form parameter enum test (string array) (optional)
- * @param enumFormString Form parameter enum test (string) (optional, default to -efg)
+
+ * @param body (optional)
+
* @param enumHeaderStringArray Header parameter enum test (string array) (optional)
- * @param enumHeaderString Header parameter enum test (string) (optional, default to -efg)
+
+ * @param enumHeaderString Header parameter enum test (string) (optional)
+
* @param enumQueryStringArray Query parameter enum test (string array) (optional)
- * @param enumQueryString Query parameter enum test (string) (optional, default to -efg)
+
+ * @param enumQueryString Query parameter enum test (string) (optional)
+
* @param enumQueryInteger Query parameter enum test (double) (optional)
- * @param enumQueryDouble Query parameter enum test (double) (optional)
+
+
+
*/
@RequestLine("GET /fake?enum_query_string_array={enumQueryStringArray}&enum_query_string={enumQueryString}&enum_query_integer={enumQueryInteger}")
@Headers({
- "Content-Type: */*",
- "Accept: */*",
+ "Content-Type: ",
+ "Accept: ",
"enum_header_string_array: {enumHeaderStringArray}",
"enum_header_string: {enumHeaderString}"
})
- void testEnumParameters(@Param("enumFormStringArray") List enumFormStringArray, @Param("enumFormString") String enumFormString, @Param("enumHeaderStringArray") List enumHeaderStringArray, @Param("enumHeaderString") String enumHeaderString, @Param("enumQueryStringArray") List enumQueryStringArray, @Param("enumQueryString") String enumQueryString, @Param("enumQueryInteger") Integer enumQueryInteger, @Param("enumQueryDouble") Double enumQueryDouble);
+ void testEnumParameters(Object body, @Param("enumHeaderStringArray") List enumHeaderStringArray, @Param("enumHeaderString") String enumHeaderString, @Param("enumQueryStringArray") List enumQueryStringArray, @Param("enumQueryString") String enumQueryString, @Param("enumQueryInteger") Integer enumQueryInteger);
+
/**
* To test enum parameters
@@ -139,70 +171,115 @@ public interface FakeApi extends ApiClient.Api {
* is convenient for services with optional query parameters, especially when
* used with the {@link TestEnumParametersQueryParams} class that allows for
* building up this map in a fluent style.
- * @param enumFormStringArray Form parameter enum test (string array) (optional)
- * @param enumFormString Form parameter enum test (string) (optional, default to -efg)
+
+
+ * @param body (optional)
+
+
+
* @param enumHeaderStringArray Header parameter enum test (string array) (optional)
- * @param enumHeaderString Header parameter enum test (string) (optional, default to -efg)
- * @param enumQueryDouble Query parameter enum test (double) (optional)
+
+
+
+ * @param enumHeaderString Header parameter enum test (string) (optional)
+
+
+
+
+
+
+
+
* @param queryParams Map of query parameters as name-value pairs
*
The following elements may be specified in the query map:
*
+
*
enumQueryStringArray - Query parameter enum test (string array) (optional)
- *
enumQueryString - Query parameter enum test (string) (optional, default to -efg)
+
+ *
enumQueryString - Query parameter enum test (string) (optional)
+
*
enumQueryInteger - Query parameter enum test (double) (optional)
+
*
+
+
*/
@RequestLine("GET /fake?enum_query_string_array={enumQueryStringArray}&enum_query_string={enumQueryString}&enum_query_integer={enumQueryInteger}")
@Headers({
- "Content-Type: */*",
- "Accept: */*",
+ "Content-Type: ",
+ "Accept: ",
"enum_header_string_array: {enumHeaderStringArray}",
"enum_header_string: {enumHeaderString}"
})
- void testEnumParameters(@Param("enumFormStringArray") List enumFormStringArray, @Param("enumFormString") String enumFormString, @Param("enumHeaderStringArray") List enumHeaderStringArray, @Param("enumHeaderString") String enumHeaderString, @Param("enumQueryDouble") Double enumQueryDouble, @QueryMap(encoded=true) Map queryParams);
+ void testEnumParameters(Object body, @Param("enumHeaderStringArray") List enumHeaderStringArray, @Param("enumHeaderString") String enumHeaderString, @QueryMap(encoded=true) Map queryParams);
/**
* A convenience class for generating query parameters for the
* testEnumParameters method in a fluent style.
*/
public static class TestEnumParametersQueryParams extends HashMap {
+
public TestEnumParametersQueryParams enumQueryStringArray(final List value) {
- put("enum_query_string_array", EncodingUtils.encodeCollection(value, "csv"));
+
+
+ put("enum_query_string_array", EncodingUtils.encode(value));
+
return this;
}
+
public TestEnumParametersQueryParams enumQueryString(final String value) {
+
+
put("enum_query_string", EncodingUtils.encode(value));
+
return this;
}
+
public TestEnumParametersQueryParams enumQueryInteger(final Integer value) {
+
+
put("enum_query_integer", EncodingUtils.encode(value));
+
return this;
}
+
}
-
+
+
/**
* test inline additionalProperties
*
- * @param param request body (required)
+
+ * @param body request body (required)
+
+
+
*/
@RequestLine("POST /fake/inline-additionalProperties")
@Headers({
"Content-Type: application/json",
- "Accept: application/json",
+ "Accept: ",
})
- void testInlineAdditionalProperties(Object param);
-
+ void testInlineAdditionalProperties(Map body);
+
+
/**
* test json serialization of form data
*
- * @param param field1 (required)
- * @param param2 field2 (required)
+
+ * @param body (required)
+
+
+
*/
@RequestLine("GET /fake/jsonFormData")
@Headers({
- "Content-Type: application/json",
- "Accept: application/json",
+ "Content-Type: ",
+ "Accept: ",
})
- void testJsonFormData(@Param("param") String param, @Param("param2") String param2);
+ void testJsonFormData(Object body);
+
+
+
}
diff --git a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/api/FakeClassnameTags123Api.java
index de12108b769..25b3d6fb494 100644
--- a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/api/FakeClassnameTags123Api.java
+++ b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/api/FakeClassnameTags123Api.java
@@ -3,12 +3,16 @@
import io.swagger.client.ApiClient;
import io.swagger.client.EncodingUtils;
+
import io.swagger.client.model.Client;
+
+
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
+
import feign.*;
@@ -18,13 +22,21 @@ public interface FakeClassnameTags123Api extends ApiClient.Api {
/**
* To test class name in snake case
*
- * @param body client model (required)
+
+ * @param client client model (required)
+
+
* @return Client
+
+
*/
@RequestLine("PATCH /fake_classname_test")
@Headers({
"Content-Type: application/json",
"Accept: application/json",
})
- Client testClassname(Client body);
+ Client testClassname(Client client);
+
+
+
}
diff --git a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/api/PetApi.java b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/api/PetApi.java
index 70fbb3b6710..f82cfad6c65 100644
--- a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/api/PetApi.java
+++ b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/api/PetApi.java
@@ -3,14 +3,17 @@
import io.swagger.client.ApiClient;
import io.swagger.client.EncodingUtils;
-import java.io.File;
+
import io.swagger.client.model.ModelApiResponse;
import io.swagger.client.model.Pet;
+
+
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
+
import feign.*;
@@ -20,39 +23,58 @@ public interface PetApi extends ApiClient.Api {
/**
* Add a new pet to the store
*
- * @param body Pet object that needs to be added to the store (required)
+
+ * @param pet Pet object that needs to be added to the store (required)
+
+
+
*/
@RequestLine("POST /pet")
@Headers({
"Content-Type: application/json",
- "Accept: application/json",
+ "Accept: ",
})
- void addPet(Pet body);
-
+ void addPet(Pet pet);
+
+
/**
* Deletes a pet
*
+
* @param petId Pet id to delete (required)
+
* @param apiKey (optional)
+
+
+
*/
@RequestLine("DELETE /pet/{petId}")
@Headers({
- "Accept: application/json",
+ "Content-Type: application/json",
+ "Accept: ",
"api_key: {apiKey}"
})
- void deletePet(@Param("petId") Long petId, @Param("apiKey") String apiKey);
-
+ void deletePet(@Param("petId") Integer petId, @Param("apiKey") String apiKey);
+
+
/**
* Finds Pets by status
* Multiple status values can be provided with comma separated strings
+
* @param status Status values that need to be considered for filter (required)
+
+
* @return List<Pet>
+
+
*/
@RequestLine("GET /pet/findByStatus?status={status}")
@Headers({
+ "Content-Type: ",
"Accept: application/json",
})
List findPetsByStatus(@Param("status") List status);
+
/**
* Finds Pets by status
@@ -62,15 +84,24 @@ public interface PetApi extends ApiClient.Api {
* is convenient for services with optional query parameters, especially when
* used with the {@link FindPetsByStatusQueryParams} class that allows for
* building up this map in a fluent style.
+
+
+
* @param queryParams Map of query parameters as name-value pairs
*
The following elements may be specified in the query map:
*
+
*
status - Status values that need to be considered for filter (required)
+
*
+
* @return List<Pet>
+
+
*/
@RequestLine("GET /pet/findByStatus?status={status}")
@Headers({
+ "Content-Type: ",
"Accept: application/json",
})
List findPetsByStatus(@QueryMap(encoded=true) Map queryParams);
@@ -80,23 +111,36 @@ public interface PetApi extends ApiClient.Api {
* findPetsByStatus method in a fluent style.
*/
public static class FindPetsByStatusQueryParams extends HashMap {
+
public FindPetsByStatusQueryParams status(final List value) {
- put("status", EncodingUtils.encodeCollection(value, "csv"));
+
+
+ put("status", EncodingUtils.encode(value));
+
return this;
}
+
}
-
+
+
/**
* Finds Pets by tags
* Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
+
* @param tags Tags to filter by (required)
+
+
* @return List<Pet>
+
+
*/
@RequestLine("GET /pet/findByTags?tags={tags}")
@Headers({
+ "Content-Type: ",
"Accept: application/json",
})
List findPetsByTags(@Param("tags") List tags);
+
/**
* Finds Pets by tags
@@ -106,15 +150,24 @@ public FindPetsByStatusQueryParams status(final List value) {
* is convenient for services with optional query parameters, especially when
* used with the {@link FindPetsByTagsQueryParams} class that allows for
* building up this map in a fluent style.
+
+
+
* @param queryParams Map of query parameters as name-value pairs
*
The following elements may be specified in the query map:
*
+
*
tags - Tags to filter by (required)
+
*
+
* @return List<Pet>
+
+
*/
@RequestLine("GET /pet/findByTags?tags={tags}")
@Headers({
+ "Content-Type: ",
"Accept: application/json",
})
List findPetsByTags(@QueryMap(encoded=true) Map queryParams);
@@ -124,62 +177,93 @@ public FindPetsByStatusQueryParams status(final List value) {
* findPetsByTags method in a fluent style.
*/
public static class FindPetsByTagsQueryParams extends HashMap {
+
public FindPetsByTagsQueryParams tags(final List value) {
- put("tags", EncodingUtils.encodeCollection(value, "csv"));
+
+
+ put("tags", EncodingUtils.encode(value));
+
return this;
}
+
}
-
+
+
/**
* Find pet by ID
* Returns a single pet
+
* @param petId ID of pet to return (required)
+
+
* @return Pet
+
+
*/
@RequestLine("GET /pet/{petId}")
@Headers({
+ "Content-Type: ",
"Accept: application/json",
})
- Pet getPetById(@Param("petId") Long petId);
-
+ Pet getPetById(@Param("petId") Integer petId);
+
+
/**
* Update an existing pet
*
- * @param body Pet object that needs to be added to the store (required)
+
+ * @param pet Pet object that needs to be added to the store (required)
+
+
+
*/
@RequestLine("PUT /pet")
@Headers({
"Content-Type: application/json",
- "Accept: application/json",
+ "Accept: ",
})
- void updatePet(Pet body);
-
+ void updatePet(Pet pet);
+
+
/**
* Updates a pet in the store with form data
*
+
* @param petId ID of pet that needs to be updated (required)
- * @param name Updated name of the pet (optional)
- * @param status Updated status of the pet (optional)
+
+ * @param body (optional)
+
+
+
*/
@RequestLine("POST /pet/{petId}")
@Headers({
"Content-Type: application/x-www-form-urlencoded",
- "Accept: application/json",
+ "Accept: ",
})
- void updatePetWithForm(@Param("petId") Long petId, @Param("name") String name, @Param("status") String status);
-
+ void updatePetWithForm(@Param("petId") Integer petId, Object body);
+
+
/**
* uploads an image
*
+
* @param petId ID of pet to update (required)
- * @param additionalMetadata Additional data to pass to server (optional)
- * @param file file to upload (optional)
+
+ * @param body (optional)
+
+
* @return ModelApiResponse
+
+
*/
@RequestLine("POST /pet/{petId}/uploadImage")
@Headers({
"Content-Type: multipart/form-data",
"Accept: application/json",
})
- ModelApiResponse uploadFile(@Param("petId") Long petId, @Param("additionalMetadata") String additionalMetadata, @Param("file") File file);
+ ModelApiResponse uploadFile(@Param("petId") Integer petId, Object body);
+
+
+
}
diff --git a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/api/StoreApi.java b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/api/StoreApi.java
index 42aaf047b73..a571174d592 100644
--- a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/api/StoreApi.java
+++ b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/api/StoreApi.java
@@ -3,12 +3,16 @@
import io.swagger.client.ApiClient;
import io.swagger.client.EncodingUtils;
+
import io.swagger.client.model.Order;
+
+
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
+
import feign.*;
@@ -18,47 +22,74 @@ public interface StoreApi extends ApiClient.Api {
/**
* Delete purchase order by ID
* For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
+
* @param orderId ID of the order that needs to be deleted (required)
+
+
+
*/
@RequestLine("DELETE /store/order/{orderId}")
@Headers({
- "Accept: application/json",
+ "Content-Type: application/json",
+ "Accept: ",
})
void deleteOrder(@Param("orderId") String orderId);
-
+
+
/**
* Returns pet inventories by status
* Returns a map of status codes to quantities
+
+
* @return Map<String, Integer>
+
+
*/
@RequestLine("GET /store/inventory")
@Headers({
+ "Content-Type: ",
"Accept: application/json",
})
Map getInventory();
-
+
+
/**
* Find purchase order by ID
* For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
+
* @param orderId ID of pet that needs to be fetched (required)
+
+
* @return Order
+
+
*/
@RequestLine("GET /store/order/{orderId}")
@Headers({
+ "Content-Type: ",
"Accept: application/json",
})
- Order getOrderById(@Param("orderId") Long orderId);
-
+ Order getOrderById(@Param("orderId") Integer orderId);
+
+
/**
* Place an order for a pet
*
- * @param body order placed for purchasing the pet (required)
+
+ * @param order order placed for purchasing the pet (required)
+
+
* @return Order
+
+
*/
@RequestLine("POST /store/order")
@Headers({
- "Content-Type: application/json",
+ "Content-Type: */*",
"Accept: application/json",
})
- Order placeOrder(Order body);
+ Order placeOrder(Order order);
+
+
+
}
diff --git a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/api/UserApi.java b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/api/UserApi.java
index 3a6c3288195..8c17d0b245b 100644
--- a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/api/UserApi.java
+++ b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/api/UserApi.java
@@ -3,12 +3,16 @@
import io.swagger.client.ApiClient;
import io.swagger.client.EncodingUtils;
+
import io.swagger.client.model.User;
+
+
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
+
import feign.*;
@@ -18,74 +22,110 @@ public interface UserApi extends ApiClient.Api {
/**
* Create user
* This can only be done by the logged in user.
- * @param body Created user object (required)
+
+ * @param user Created user object (required)
+
+
+
*/
@RequestLine("POST /user")
@Headers({
- "Content-Type: application/json",
- "Accept: application/json",
+ "Content-Type: */*",
+ "Accept: ",
})
- void createUser(User body);
-
+ void createUser(User user);
+
+
/**
* Creates list of users with given input array
*
+
* @param body List of user object (required)
+
+
+
*/
@RequestLine("POST /user/createWithArray")
@Headers({
- "Content-Type: application/json",
- "Accept: application/json",
+ "Content-Type: */*",
+ "Accept: ",
})
void createUsersWithArrayInput(List body);
-
+
+
/**
* Creates list of users with given input array
*
+
* @param body List of user object (required)
+
+
+
*/
@RequestLine("POST /user/createWithList")
@Headers({
- "Content-Type: application/json",
- "Accept: application/json",
+ "Content-Type: */*",
+ "Accept: ",
})
void createUsersWithListInput(List body);
-
+
+
/**
* Delete user
* This can only be done by the logged in user.
+
* @param username The name that needs to be deleted (required)
+
+
+
*/
@RequestLine("DELETE /user/{username}")
@Headers({
- "Accept: application/json",
+ "Content-Type: application/json",
+ "Accept: ",
})
void deleteUser(@Param("username") String username);
-
+
+
/**
* Get user by user name
*
+
* @param username The name that needs to be fetched. Use user1 for testing. (required)
+
+
* @return User
+
+
*/
@RequestLine("GET /user/{username}")
@Headers({
+ "Content-Type: ",
"Accept: application/json",
})
User getUserByName(@Param("username") String username);
-
+
+
/**
* Logs user into the system
*
+
* @param username The user name for login (required)
+
* @param password The password for login in clear text (required)
+
+
* @return String
+
+
*/
@RequestLine("GET /user/login?username={username}&password={password}")
@Headers({
+ "Content-Type: ",
"Accept: application/json",
})
String loginUser(@Param("username") String username, @Param("password") String password);
+
/**
* Logs user into the system
@@ -95,16 +135,28 @@ public interface UserApi extends ApiClient.Api {
* is convenient for services with optional query parameters, especially when
* used with the {@link LoginUserQueryParams} class that allows for
* building up this map in a fluent style.
+
+
+
+
+
* @param queryParams Map of query parameters as name-value pairs
*
The following elements may be specified in the query map:
*
+
*
username - The user name for login (required)
+
*
password - The password for login in clear text (required)
+
*
+
* @return String
+
+
*/
@RequestLine("GET /user/login?username={username}&password={password}")
@Headers({
+ "Content-Type: ",
"Accept: application/json",
})
String loginUser(@QueryMap(encoded=true) Map queryParams);
@@ -114,36 +166,59 @@ public interface UserApi extends ApiClient.Api {
* loginUser method in a fluent style.
*/
public static class LoginUserQueryParams extends HashMap {
+
public LoginUserQueryParams username(final String value) {
+
+
put("username", EncodingUtils.encode(value));
+
return this;
}
+
public LoginUserQueryParams password(final String value) {
+
+
put("password", EncodingUtils.encode(value));
+
return this;
}
+
}
-
+
+
/**
* Logs out current logged in user session
*
+
+
+
*/
@RequestLine("GET /user/logout")
@Headers({
- "Accept: application/json",
+ "Content-Type: ",
+ "Accept: ",
})
void logoutUser();
-
+
+
/**
* Updated user
* This can only be done by the logged in user.
+
+ * @param user Updated user object (required)
+
* @param username name that need to be deleted (required)
- * @param body Updated user object (required)
+
+
+
*/
@RequestLine("PUT /user/{username}")
@Headers({
- "Content-Type: application/json",
- "Accept: application/json",
+ "Content-Type: */*",
+ "Accept: ",
})
- void updateUser(@Param("username") String username, User body);
+ void updateUser(User user, @Param("username") String username);
+
+
+
}
diff --git a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/auth/OAuth.java b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/auth/OAuth.java
index 2653474747d..125a6ca7d12 100644
--- a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/auth/OAuth.java
+++ b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/auth/OAuth.java
@@ -1,9 +1,11 @@
package io.swagger.client.auth;
import java.io.IOException;
+import java.util.ArrayList;
import java.util.Collection;
import java.util.Map;
import java.util.Map.Entry;
+import java.util.stream.Collectors;
import org.apache.oltu.oauth2.client.HttpClient;
import org.apache.oltu.oauth2.client.OAuthClient;
@@ -186,6 +188,10 @@ public T execute(OAuthClientRequest request, Map
body,
contentType,
feignResponse.status(),
+ feignResponse.headers().entrySet().stream().collect(Collectors.toMap(
+ Map.Entry::getKey,
+ e -> new ArrayList<>(e.getValue())
+ )),
responseClass
);
}
diff --git a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/AdditionalPropertiesClass.java
index 7fe69e168fd..946f6319432 100644
--- a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/AdditionalPropertiesClass.java
+++ b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/AdditionalPropertiesClass.java
@@ -28,65 +28,65 @@
*/
public class AdditionalPropertiesClass {
+
@JsonProperty("map_property")
private Map mapProperty = null;
-
+
@JsonProperty("map_of_map_property")
private Map> mapOfMapProperty = null;
-
+
public AdditionalPropertiesClass mapProperty(Map mapProperty) {
this.mapProperty = mapProperty;
return this;
}
public AdditionalPropertiesClass putMapPropertyItem(String key, String mapPropertyItem) {
+
if (this.mapProperty == null) {
- this.mapProperty = new HashMap();
+ this.mapProperty = new HashMap<>();
}
+
this.mapProperty.put(key, mapPropertyItem);
return this;
}
-
- /**
- * Get mapProperty
- * @return mapProperty
+ /**
+ * Get mapProperty
+ * @return mapProperty
**/
@ApiModelProperty(value = "")
public Map getMapProperty() {
return mapProperty;
}
-
public void setMapProperty(Map mapProperty) {
this.mapProperty = mapProperty;
}
-
+
public AdditionalPropertiesClass mapOfMapProperty(Map> mapOfMapProperty) {
this.mapOfMapProperty = mapOfMapProperty;
return this;
}
public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map mapOfMapPropertyItem) {
+
if (this.mapOfMapProperty == null) {
- this.mapOfMapProperty = new HashMap>();
+ this.mapOfMapProperty = new HashMap<>();
}
+
this.mapOfMapProperty.put(key, mapOfMapPropertyItem);
return this;
}
-
- /**
- * Get mapOfMapProperty
- * @return mapOfMapProperty
+ /**
+ * Get mapOfMapProperty
+ * @return mapOfMapProperty
**/
@ApiModelProperty(value = "")
public Map> getMapOfMapProperty() {
return mapOfMapProperty;
}
-
public void setMapOfMapProperty(Map> mapOfMapProperty) {
this.mapOfMapProperty = mapOfMapProperty;
}
-
-
+
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
@@ -104,8 +104,7 @@ public boolean equals(java.lang.Object o) {
public int hashCode() {
return Objects.hash(mapProperty, mapOfMapProperty);
}
-
-
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
@@ -128,5 +127,8 @@ private String toIndentedString(java.lang.Object o) {
return o.toString().replace("\n", "\n ");
}
+
}
+
+
diff --git a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Animal.java b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Animal.java
index 590f36c0ae0..ddd1f98533f 100644
--- a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Animal.java
+++ b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Animal.java
@@ -25,56 +25,60 @@
/**
* Animal
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "className", visible = true )
+
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "Discriminator{propertyName='className', mapping=null}", visible = true )
@JsonSubTypes({
+
@JsonSubTypes.Type(value = Dog.class, name = "Dog"),
+
@JsonSubTypes.Type(value = Cat.class, name = "Cat"),
+
})
public class Animal {
+
@JsonProperty("className")
private String className = null;
-
+
@JsonProperty("color")
private String color = "red";
-
+
public Animal className(String className) {
this.className = className;
return this;
}
- /**
- * Get className
- * @return className
+
+ /**
+ * Get className
+ * @return className
**/
@ApiModelProperty(required = true, value = "")
public String getClassName() {
return className;
}
-
public void setClassName(String className) {
this.className = className;
}
-
+
public Animal color(String color) {
this.color = color;
return this;
}
- /**
- * Get color
- * @return color
+
+ /**
+ * Get color
+ * @return color
**/
@ApiModelProperty(value = "")
public String getColor() {
return color;
}
-
public void setColor(String color) {
this.color = color;
}
-
-
+
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
@@ -92,8 +96,7 @@ public boolean equals(java.lang.Object o) {
public int hashCode() {
return Objects.hash(className, color);
}
-
-
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
@@ -116,5 +119,8 @@ private String toIndentedString(java.lang.Object o) {
return o.toString().replace("\n", "\n ");
}
+
}
+
+
diff --git a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/AnimalFarm.java b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/AnimalFarm.java
deleted file mode 100644
index 0b1d6a74cc6..00000000000
--- a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/AnimalFarm.java
+++ /dev/null
@@ -1,65 +0,0 @@
-/*
- * Swagger Petstore
- * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
- *
- * OpenAPI spec version: 1.0.0
- * Contact: apiteam@swagger.io
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
-
-package io.swagger.client.model;
-
-import java.util.Objects;
-import io.swagger.client.model.Animal;
-import java.util.ArrayList;
-import java.util.List;
-
-/**
- * AnimalFarm
- */
-
-public class AnimalFarm extends ArrayList {
-
- @Override
- public boolean equals(java.lang.Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- return super.equals(o);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(super.hashCode());
- }
-
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class AnimalFarm {\n");
- sb.append(" ").append(toIndentedString(super.toString())).append("\n");
- sb.append("}");
- return sb.toString();
- }
-
- /**
- * Convert the given object to string with each line indented by 4 spaces
- * (except the first line).
- */
- private String toIndentedString(java.lang.Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
-}
-
diff --git a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/ArrayOfArrayOfNumberOnly.java
index b7e59a030a4..3e850a94aa5 100644
--- a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/ArrayOfArrayOfNumberOnly.java
+++ b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/ArrayOfArrayOfNumberOnly.java
@@ -28,36 +28,37 @@
*/
public class ArrayOfArrayOfNumberOnly {
+
@JsonProperty("ArrayArrayNumber")
private List> arrayArrayNumber = null;
-
+
public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) {
this.arrayArrayNumber = arrayArrayNumber;
return this;
}
public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayArrayNumberItem) {
+
if (this.arrayArrayNumber == null) {
- this.arrayArrayNumber = new ArrayList>();
+ this.arrayArrayNumber = new ArrayList<>();
}
+
this.arrayArrayNumber.add(arrayArrayNumberItem);
return this;
}
-
- /**
- * Get arrayArrayNumber
- * @return arrayArrayNumber
+
+ /**
+ * Get arrayArrayNumber
+ * @return arrayArrayNumber
**/
@ApiModelProperty(value = "")
public List> getArrayArrayNumber() {
return arrayArrayNumber;
}
-
public void setArrayArrayNumber(List> arrayArrayNumber) {
this.arrayArrayNumber = arrayArrayNumber;
}
-
-
+
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
@@ -74,8 +75,7 @@ public boolean equals(java.lang.Object o) {
public int hashCode() {
return Objects.hash(arrayArrayNumber);
}
-
-
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
@@ -97,5 +97,8 @@ private String toIndentedString(java.lang.Object o) {
return o.toString().replace("\n", "\n ");
}
+
}
+
+
diff --git a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/ArrayOfNumberOnly.java
index fdfeb6856f3..8882f76ab46 100644
--- a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/ArrayOfNumberOnly.java
+++ b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/ArrayOfNumberOnly.java
@@ -28,36 +28,37 @@
*/
public class ArrayOfNumberOnly {
+
@JsonProperty("ArrayNumber")
private List arrayNumber = null;
-
+
public ArrayOfNumberOnly arrayNumber(List arrayNumber) {
this.arrayNumber = arrayNumber;
return this;
}
public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) {
+
if (this.arrayNumber == null) {
- this.arrayNumber = new ArrayList();
+ this.arrayNumber = new ArrayList<>();
}
+
this.arrayNumber.add(arrayNumberItem);
return this;
}
-
- /**
- * Get arrayNumber
- * @return arrayNumber
+
+ /**
+ * Get arrayNumber
+ * @return arrayNumber
**/
@ApiModelProperty(value = "")
public List getArrayNumber() {
return arrayNumber;
}
-
public void setArrayNumber(List arrayNumber) {
this.arrayNumber = arrayNumber;
}
-
-
+
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
@@ -74,8 +75,7 @@ public boolean equals(java.lang.Object o) {
public int hashCode() {
return Objects.hash(arrayNumber);
}
-
-
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
@@ -97,5 +97,8 @@ private String toIndentedString(java.lang.Object o) {
return o.toString().replace("\n", "\n ");
}
+
}
+
+
diff --git a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/ArrayTest.java b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/ArrayTest.java
index 62665c2536a..8b4867aebff 100644
--- a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/ArrayTest.java
+++ b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/ArrayTest.java
@@ -28,94 +28,97 @@
*/
public class ArrayTest {
+
@JsonProperty("array_of_string")
private List arrayOfString = null;
-
+
@JsonProperty("array_array_of_integer")
private List> arrayArrayOfInteger = null;
-
+
@JsonProperty("array_array_of_model")
private List> arrayArrayOfModel = null;
-
+
public ArrayTest arrayOfString(List arrayOfString) {
this.arrayOfString = arrayOfString;
return this;
}
public ArrayTest addArrayOfStringItem(String arrayOfStringItem) {
+
if (this.arrayOfString == null) {
- this.arrayOfString = new ArrayList();
+ this.arrayOfString = new ArrayList<>();
}
+
this.arrayOfString.add(arrayOfStringItem);
return this;
}
-
- /**
- * Get arrayOfString
- * @return arrayOfString
+
+ /**
+ * Get arrayOfString
+ * @return arrayOfString
**/
@ApiModelProperty(value = "")
public List getArrayOfString() {
return arrayOfString;
}
-
public void setArrayOfString(List arrayOfString) {
this.arrayOfString = arrayOfString;
}
-
+
public ArrayTest arrayArrayOfInteger(List> arrayArrayOfInteger) {
this.arrayArrayOfInteger = arrayArrayOfInteger;
return this;
}
public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) {
+
if (this.arrayArrayOfInteger == null) {
- this.arrayArrayOfInteger = new ArrayList>();
+ this.arrayArrayOfInteger = new ArrayList<>();
}
+
this.arrayArrayOfInteger.add(arrayArrayOfIntegerItem);
return this;
}
-
- /**
- * Get arrayArrayOfInteger
- * @return arrayArrayOfInteger
+
+ /**
+ * Get arrayArrayOfInteger
+ * @return arrayArrayOfInteger
**/
@ApiModelProperty(value = "")
public List> getArrayArrayOfInteger() {
return arrayArrayOfInteger;
}
-
public void setArrayArrayOfInteger(List> arrayArrayOfInteger) {
this.arrayArrayOfInteger = arrayArrayOfInteger;
}
-
+
public ArrayTest arrayArrayOfModel(List> arrayArrayOfModel) {
this.arrayArrayOfModel = arrayArrayOfModel;
return this;
}
public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelItem) {
+
if (this.arrayArrayOfModel == null) {
- this.arrayArrayOfModel = new ArrayList>();
+ this.arrayArrayOfModel = new ArrayList<>();
}
+
this.arrayArrayOfModel.add(arrayArrayOfModelItem);
return this;
}
-
- /**
- * Get arrayArrayOfModel
- * @return arrayArrayOfModel
+
+ /**
+ * Get arrayArrayOfModel
+ * @return arrayArrayOfModel
**/
@ApiModelProperty(value = "")
public List> getArrayArrayOfModel() {
return arrayArrayOfModel;
}
-
public void setArrayArrayOfModel(List> arrayArrayOfModel) {
this.arrayArrayOfModel = arrayArrayOfModel;
}
-
-
+
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
@@ -134,8 +137,7 @@ public boolean equals(java.lang.Object o) {
public int hashCode() {
return Objects.hash(arrayOfString, arrayArrayOfInteger, arrayArrayOfModel);
}
-
-
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
@@ -159,5 +161,8 @@ private String toIndentedString(java.lang.Object o) {
return o.toString().replace("\n", "\n ");
}
+
}
+
+
diff --git a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Capitalization.java b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Capitalization.java
index a72b0a72f46..f534657b4ca 100644
--- a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Capitalization.java
+++ b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Capitalization.java
@@ -25,133 +25,133 @@
*/
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
+
+ /**
+ * 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
+
+ /**
+ * 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
+
+ /**
+ * 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
+
+ /**
+ * 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
+
+ /**
+ * 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
+
+ /**
+ * 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) {
@@ -173,8 +173,7 @@ public boolean equals(java.lang.Object o) {
public int hashCode() {
return Objects.hash(smallCamel, capitalCamel, smallSnake, capitalSnake, scAETHFlowPoints, ATT_NAME);
}
-
-
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
@@ -201,5 +200,8 @@ private String toIndentedString(java.lang.Object o) {
return o.toString().replace("\n", "\n ");
}
+
}
+
+
diff --git a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Cat.java b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Cat.java
index b882da0ad90..d6e94912f06 100644
--- a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Cat.java
+++ b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Cat.java
@@ -26,28 +26,70 @@
*/
public class Cat extends Animal {
+
+ @JsonProperty("className")
+ private String className = null;
+
+ @JsonProperty("color")
+ private String color = "red";
+
@JsonProperty("declawed")
private Boolean declawed = null;
+
+ public Cat className(String className) {
+ this.className = className;
+ return this;
+ }
+
+
+ /**
+ * Get className
+ * @return className
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public String getClassName() {
+ return className;
+ }
+ public void setClassName(String className) {
+ this.className = className;
+ }
+
+ public Cat color(String color) {
+ this.color = color;
+ return this;
+ }
+
+ /**
+ * Get color
+ * @return color
+ **/
+ @ApiModelProperty(value = "")
+ public String getColor() {
+ return color;
+ }
+ public void setColor(String color) {
+ this.color = color;
+ }
+
public Cat declawed(Boolean declawed) {
this.declawed = declawed;
return this;
}
- /**
- * Get declawed
- * @return declawed
+
+ /**
+ * Get declawed
+ * @return declawed
**/
@ApiModelProperty(value = "")
public Boolean isDeclawed() {
return declawed;
}
-
public void setDeclawed(Boolean declawed) {
this.declawed = declawed;
}
-
-
+
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
@@ -57,21 +99,24 @@ public boolean equals(java.lang.Object o) {
return false;
}
Cat cat = (Cat) o;
- return Objects.equals(this.declawed, cat.declawed) &&
+ return Objects.equals(this.className, cat.className) &&
+ Objects.equals(this.color, cat.color) &&
+ Objects.equals(this.declawed, cat.declawed) &&
super.equals(o);
}
@Override
public int hashCode() {
- return Objects.hash(declawed, super.hashCode());
+ return Objects.hash(className, color, declawed, super.hashCode());
}
-
-
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Cat {\n");
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
+ sb.append(" className: ").append(toIndentedString(className)).append("\n");
+ sb.append(" color: ").append(toIndentedString(color)).append("\n");
sb.append(" declawed: ").append(toIndentedString(declawed)).append("\n");
sb.append("}");
return sb.toString();
@@ -88,5 +133,8 @@ private String toIndentedString(java.lang.Object o) {
return o.toString().replace("\n", "\n ");
}
+
}
+
+
diff --git a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Category.java b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Category.java
index 464f4375c4b..5ef89bf53cf 100644
--- a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Category.java
+++ b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Category.java
@@ -25,49 +25,49 @@
*/
public class Category {
+
@JsonProperty("id")
private Long id = null;
-
+
@JsonProperty("name")
private String name = null;
-
+
public Category id(Long id) {
this.id = id;
return this;
}
- /**
- * Get id
- * @return id
+
+ /**
+ * Get id
+ * @return id
**/
@ApiModelProperty(value = "")
public Long getId() {
return id;
}
-
public void setId(Long id) {
this.id = id;
}
-
+
public Category name(String name) {
this.name = name;
return this;
}
- /**
- * Get name
- * @return name
+
+ /**
+ * Get name
+ * @return name
**/
@ApiModelProperty(value = "")
public String getName() {
return name;
}
-
public void setName(String name) {
this.name = name;
}
-
-
+
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
@@ -85,8 +85,7 @@ public boolean equals(java.lang.Object o) {
public int hashCode() {
return Objects.hash(id, name);
}
-
-
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
@@ -109,5 +108,8 @@ private String toIndentedString(java.lang.Object o) {
return o.toString().replace("\n", "\n ");
}
+
}
+
+
diff --git a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/ClassModel.java b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/ClassModel.java
index 4f764fde68d..887733b7310 100644
--- a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/ClassModel.java
+++ b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/ClassModel.java
@@ -22,32 +22,31 @@
/**
* Model for testing model with \"_class\" property
- */
-@ApiModel(description = "Model for testing model with \"_class\" 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
+
+ /**
+ * 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) {
@@ -64,8 +63,7 @@ public boolean equals(java.lang.Object o) {
public int hashCode() {
return Objects.hash(propertyClass);
}
-
-
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
@@ -87,5 +85,8 @@ private String toIndentedString(java.lang.Object o) {
return o.toString().replace("\n", "\n ");
}
+
}
+
+
diff --git a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Client.java b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Client.java
index a7c4253499c..6193700c6ca 100644
--- a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Client.java
+++ b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Client.java
@@ -25,28 +25,28 @@
*/
public class Client {
+
@JsonProperty("client")
private String client = null;
-
+
public Client client(String client) {
this.client = client;
return this;
}
- /**
- * Get client
- * @return client
+
+ /**
+ * Get client
+ * @return client
**/
@ApiModelProperty(value = "")
public String getClient() {
return client;
}
-
public void setClient(String client) {
this.client = client;
}
-
-
+
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
@@ -63,8 +63,7 @@ public boolean equals(java.lang.Object o) {
public int hashCode() {
return Objects.hash(client);
}
-
-
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
@@ -86,5 +85,8 @@ private String toIndentedString(java.lang.Object o) {
return o.toString().replace("\n", "\n ");
}
+
}
+
+
diff --git a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Dog.java b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Dog.java
index 7de179b2ade..bffa0917362 100644
--- a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Dog.java
+++ b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Dog.java
@@ -26,28 +26,70 @@
*/
public class Dog extends Animal {
+
+ @JsonProperty("className")
+ private String className = null;
+
+ @JsonProperty("color")
+ private String color = "red";
+
@JsonProperty("breed")
private String breed = null;
+
+ public Dog className(String className) {
+ this.className = className;
+ return this;
+ }
+
+
+ /**
+ * Get className
+ * @return className
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public String getClassName() {
+ return className;
+ }
+ public void setClassName(String className) {
+ this.className = className;
+ }
+
+ public Dog color(String color) {
+ this.color = color;
+ return this;
+ }
+
+ /**
+ * Get color
+ * @return color
+ **/
+ @ApiModelProperty(value = "")
+ public String getColor() {
+ return color;
+ }
+ public void setColor(String color) {
+ this.color = color;
+ }
+
public Dog breed(String breed) {
this.breed = breed;
return this;
}
- /**
- * Get breed
- * @return breed
+
+ /**
+ * Get breed
+ * @return breed
**/
@ApiModelProperty(value = "")
public String getBreed() {
return breed;
}
-
public void setBreed(String breed) {
this.breed = breed;
}
-
-
+
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
@@ -57,21 +99,24 @@ public boolean equals(java.lang.Object o) {
return false;
}
Dog dog = (Dog) o;
- return Objects.equals(this.breed, dog.breed) &&
+ return Objects.equals(this.className, dog.className) &&
+ Objects.equals(this.color, dog.color) &&
+ Objects.equals(this.breed, dog.breed) &&
super.equals(o);
}
@Override
public int hashCode() {
- return Objects.hash(breed, super.hashCode());
+ return Objects.hash(className, color, breed, super.hashCode());
}
-
-
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Dog {\n");
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
+ sb.append(" className: ").append(toIndentedString(className)).append("\n");
+ sb.append(" color: ").append(toIndentedString(color)).append("\n");
sb.append(" breed: ").append(toIndentedString(breed)).append("\n");
sb.append("}");
return sb.toString();
@@ -88,5 +133,8 @@ private String toIndentedString(java.lang.Object o) {
return o.toString().replace("\n", "\n ");
}
+
}
+
+
diff --git a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/EnumArrays.java b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/EnumArrays.java
index 12caa480285..c46a90c300a 100644
--- a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/EnumArrays.java
+++ b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/EnumArrays.java
@@ -27,12 +27,13 @@
*/
public class EnumArrays {
- /**
+
+ /**
* Gets or Sets justSymbol
*/
public enum JustSymbolEnum {
- GREATER_THAN_OR_EQUAL_TO(">="),
+ GREATER_THAN_OR_EQUAL_TO(">="),
DOLLAR("$");
private String value;
@@ -40,8 +41,9 @@ public enum JustSymbolEnum {
JustSymbolEnum(String value) {
this.value = value;
}
-
+
@JsonValue
+
public String getValue() {
return value;
}
@@ -50,8 +52,9 @@ public String getValue() {
public String toString() {
return String.valueOf(value);
}
-
+
@JsonCreator
+
public static JustSymbolEnum fromValue(String text) {
for (JustSymbolEnum b : JustSymbolEnum.values()) {
if (String.valueOf(b.value).equals(text)) {
@@ -60,17 +63,20 @@ public static JustSymbolEnum fromValue(String text) {
}
return null;
}
+
}
-
+
+
@JsonProperty("just_symbol")
private JustSymbolEnum justSymbol = null;
-
- /**
+
+
+ /**
* Gets or Sets arrayEnum
*/
public enum ArrayEnumEnum {
- FISH("fish"),
+ FISH("fish"),
CRAB("crab");
private String value;
@@ -78,8 +84,9 @@ public enum ArrayEnumEnum {
ArrayEnumEnum(String value) {
this.value = value;
}
-
+
@JsonValue
+
public String getValue() {
return value;
}
@@ -88,8 +95,9 @@ public String getValue() {
public String toString() {
return String.valueOf(value);
}
-
+
@JsonCreator
+
public static ArrayEnumEnum fromValue(String text) {
for (ArrayEnumEnum b : ArrayEnumEnum.values()) {
if (String.valueOf(b.value).equals(text)) {
@@ -98,56 +106,57 @@ public static ArrayEnumEnum fromValue(String text) {
}
return null;
}
+
}
-
+
@JsonProperty("array_enum")
private List arrayEnum = null;
-
+
public EnumArrays justSymbol(JustSymbolEnum justSymbol) {
this.justSymbol = justSymbol;
return this;
}
- /**
- * Get justSymbol
- * @return justSymbol
+
+ /**
+ * Get justSymbol
+ * @return justSymbol
**/
@ApiModelProperty(value = "")
public JustSymbolEnum getJustSymbol() {
return justSymbol;
}
-
public void setJustSymbol(JustSymbolEnum justSymbol) {
this.justSymbol = justSymbol;
}
-
+
public EnumArrays arrayEnum(List arrayEnum) {
this.arrayEnum = arrayEnum;
return this;
}
public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) {
+
if (this.arrayEnum == null) {
- this.arrayEnum = new ArrayList();
+ this.arrayEnum = new ArrayList<>();
}
+
this.arrayEnum.add(arrayEnumItem);
return this;
}
-
- /**
- * Get arrayEnum
- * @return arrayEnum
+
+ /**
+ * Get arrayEnum
+ * @return arrayEnum
**/
@ApiModelProperty(value = "")
public List getArrayEnum() {
return arrayEnum;
}
-
public void setArrayEnum(List arrayEnum) {
this.arrayEnum = arrayEnum;
}
-
-
+
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
@@ -165,8 +174,7 @@ public boolean equals(java.lang.Object o) {
public int hashCode() {
return Objects.hash(justSymbol, arrayEnum);
}
-
-
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
@@ -189,5 +197,8 @@ private String toIndentedString(java.lang.Object o) {
return o.toString().replace("\n", "\n ");
}
+
}
+
+
diff --git a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/EnumClass.java b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/EnumClass.java
index abbd7a56668..9414211ef6c 100644
--- a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/EnumClass.java
+++ b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/EnumClass.java
@@ -13,14 +13,17 @@
package io.swagger.client.model;
-import java.util.Objects;
+
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
+
+
/**
* Gets or Sets EnumClass
*/
+
public enum EnumClass {
_ABC("_abc"),
@@ -35,7 +38,9 @@ public enum EnumClass {
this.value = value;
}
+
@JsonValue
+
public String getValue() {
return value;
}
@@ -45,7 +50,9 @@ public String toString() {
return String.valueOf(value);
}
+
@JsonCreator
+
public static EnumClass fromValue(String text) {
for (EnumClass b : EnumClass.values()) {
if (String.valueOf(b.value).equals(text)) {
@@ -54,5 +61,8 @@ public static EnumClass fromValue(String text) {
}
return null;
}
+
}
+
+
diff --git a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/EnumTest.java b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/EnumTest.java
index 93d0da037b6..4634e7018db 100644
--- a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/EnumTest.java
+++ b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/EnumTest.java
@@ -26,14 +26,14 @@
*/
public class EnumTest {
- /**
+
+ /**
* Gets or Sets enumString
*/
public enum EnumStringEnum {
- UPPER("UPPER"),
+ UPPER("UPPER"),
LOWER("lower"),
-
EMPTY("");
private String value;
@@ -41,8 +41,9 @@ public enum EnumStringEnum {
EnumStringEnum(String value) {
this.value = value;
}
-
+
@JsonValue
+
public String getValue() {
return value;
}
@@ -51,8 +52,9 @@ public String getValue() {
public String toString() {
return String.valueOf(value);
}
-
+
@JsonCreator
+
public static EnumStringEnum fromValue(String text) {
for (EnumStringEnum b : EnumStringEnum.values()) {
if (String.valueOf(b.value).equals(text)) {
@@ -61,17 +63,19 @@ public static EnumStringEnum fromValue(String text) {
}
return null;
}
+
}
-
+
+
@JsonProperty("enum_string")
private EnumStringEnum enumString = null;
-
- /**
+
+ /**
* Gets or Sets enumInteger
*/
public enum EnumIntegerEnum {
- NUMBER_1(1),
+ NUMBER_1(1),
NUMBER_MINUS_1(-1);
private Integer value;
@@ -79,8 +83,9 @@ public enum EnumIntegerEnum {
EnumIntegerEnum(Integer value) {
this.value = value;
}
-
+
@JsonValue
+
public Integer getValue() {
return value;
}
@@ -89,8 +94,9 @@ public Integer getValue() {
public String toString() {
return String.valueOf(value);
}
-
+
@JsonCreator
+
public static EnumIntegerEnum fromValue(String text) {
for (EnumIntegerEnum b : EnumIntegerEnum.values()) {
if (String.valueOf(b.value).equals(text)) {
@@ -99,17 +105,19 @@ public static EnumIntegerEnum fromValue(String text) {
}
return null;
}
+
}
-
+
+
@JsonProperty("enum_integer")
private EnumIntegerEnum enumInteger = null;
-
- /**
+
+ /**
* Gets or Sets enumNumber
*/
public enum EnumNumberEnum {
- NUMBER_1_DOT_1(1.1),
+ NUMBER_1_DOT_1(1.1),
NUMBER_MINUS_1_DOT_2(-1.2);
private Double value;
@@ -117,8 +125,9 @@ public enum EnumNumberEnum {
EnumNumberEnum(Double value) {
this.value = value;
}
-
+
@JsonValue
+
public Double getValue() {
return value;
}
@@ -127,8 +136,9 @@ public Double getValue() {
public String toString() {
return String.valueOf(value);
}
-
+
@JsonCreator
+
public static EnumNumberEnum fromValue(String text) {
for (EnumNumberEnum b : EnumNumberEnum.values()) {
if (String.valueOf(b.value).equals(text)) {
@@ -137,87 +147,88 @@ public static EnumNumberEnum fromValue(String text) {
}
return null;
}
+
}
-
+
+
@JsonProperty("enum_number")
private EnumNumberEnum enumNumber = null;
-
+
@JsonProperty("outerEnum")
private OuterEnum outerEnum = null;
-
+
public EnumTest enumString(EnumStringEnum enumString) {
this.enumString = enumString;
return this;
}
- /**
- * Get enumString
- * @return enumString
+
+ /**
+ * Get enumString
+ * @return enumString
**/
@ApiModelProperty(value = "")
public EnumStringEnum getEnumString() {
return enumString;
}
-
public void setEnumString(EnumStringEnum enumString) {
this.enumString = enumString;
}
-
+
public EnumTest enumInteger(EnumIntegerEnum enumInteger) {
this.enumInteger = enumInteger;
return this;
}
- /**
- * Get enumInteger
- * @return enumInteger
+
+ /**
+ * Get enumInteger
+ * @return enumInteger
**/
@ApiModelProperty(value = "")
public EnumIntegerEnum getEnumInteger() {
return enumInteger;
}
-
public void setEnumInteger(EnumIntegerEnum enumInteger) {
this.enumInteger = enumInteger;
}
-
+
public EnumTest enumNumber(EnumNumberEnum enumNumber) {
this.enumNumber = enumNumber;
return this;
}
- /**
- * Get enumNumber
- * @return enumNumber
+
+ /**
+ * Get enumNumber
+ * @return enumNumber
**/
@ApiModelProperty(value = "")
public EnumNumberEnum getEnumNumber() {
return enumNumber;
}
-
public void setEnumNumber(EnumNumberEnum enumNumber) {
this.enumNumber = enumNumber;
}
-
+
public EnumTest outerEnum(OuterEnum outerEnum) {
this.outerEnum = outerEnum;
return this;
}
- /**
- * Get outerEnum
- * @return outerEnum
+
+ /**
+ * Get outerEnum
+ * @return outerEnum
**/
@ApiModelProperty(value = "")
public OuterEnum getOuterEnum() {
return outerEnum;
}
-
public void setOuterEnum(OuterEnum outerEnum) {
this.outerEnum = outerEnum;
}
-
-
+
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
@@ -237,8 +248,7 @@ public boolean equals(java.lang.Object o) {
public int hashCode() {
return Objects.hash(enumString, enumInteger, enumNumber, outerEnum);
}
-
-
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
@@ -263,5 +273,8 @@ private String toIndentedString(java.lang.Object o) {
return o.toString().replace("\n", "\n ");
}
+
}
+
+
diff --git a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/FormatTest.java b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/FormatTest.java
index 4118656d29e..df02f3998d4 100644
--- a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/FormatTest.java
+++ b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/FormatTest.java
@@ -29,290 +29,284 @@
*/
public class FormatTest {
+
@JsonProperty("integer")
private Integer integer = null;
-
+
@JsonProperty("int32")
private Integer int32 = null;
-
+
@JsonProperty("int64")
private Long int64 = null;
-
+
@JsonProperty("number")
private BigDecimal number = null;
-
+
@JsonProperty("float")
private Float _float = null;
-
+
@JsonProperty("double")
private Double _double = null;
-
+
@JsonProperty("string")
private String string = null;
-
+
@JsonProperty("byte")
- private byte[] _byte = null;
-
+ private String _byte = null;
+
@JsonProperty("binary")
- private byte[] binary = null;
-
+ private String binary = null;
+
@JsonProperty("date")
private LocalDate date = null;
-
+
@JsonProperty("dateTime")
private OffsetDateTime dateTime = null;
-
+
@JsonProperty("uuid")
private UUID uuid = null;
-
+
@JsonProperty("password")
private String password = null;
-
+
public FormatTest integer(Integer integer) {
this.integer = integer;
return this;
}
- /**
- * Get integer
- * minimum: 10
- * maximum: 100
- * @return integer
+
+ /**
+ * Get integer
+ * minimum: 10
+ * maximum: 100
+ * @return integer
**/
@ApiModelProperty(value = "")
public Integer getInteger() {
return integer;
}
-
public void setInteger(Integer integer) {
this.integer = integer;
}
-
+
public FormatTest int32(Integer int32) {
this.int32 = int32;
return this;
}
- /**
- * Get int32
- * minimum: 20
- * maximum: 200
- * @return int32
+
+ /**
+ * Get int32
+ * minimum: 20
+ * maximum: 200
+ * @return int32
**/
@ApiModelProperty(value = "")
public Integer getInt32() {
return int32;
}
-
public void setInt32(Integer int32) {
this.int32 = int32;
}
-
+
public FormatTest int64(Long int64) {
this.int64 = int64;
return this;
}
- /**
- * Get int64
- * @return int64
+
+ /**
+ * Get int64
+ * @return int64
**/
@ApiModelProperty(value = "")
public Long getInt64() {
return int64;
}
-
public void setInt64(Long int64) {
this.int64 = int64;
}
-
+
public FormatTest number(BigDecimal number) {
this.number = number;
return this;
}
- /**
- * Get number
- * minimum: 32.1
- * maximum: 543.2
- * @return number
+
+ /**
+ * Get number
+ * @return number
**/
@ApiModelProperty(required = true, value = "")
public BigDecimal getNumber() {
return number;
}
-
public void setNumber(BigDecimal number) {
this.number = number;
}
-
+
public FormatTest _float(Float _float) {
this._float = _float;
return this;
}
- /**
- * Get _float
- * minimum: 54.3
- * maximum: 987.6
- * @return _float
+
+ /**
+ * Get _float
+ * @return _float
**/
@ApiModelProperty(value = "")
public Float getFloat() {
return _float;
}
-
public void setFloat(Float _float) {
this._float = _float;
}
-
+
public FormatTest _double(Double _double) {
this._double = _double;
return this;
}
- /**
- * Get _double
- * minimum: 67.8
- * maximum: 123.4
- * @return _double
+
+ /**
+ * Get _double
+ * @return _double
**/
@ApiModelProperty(value = "")
public Double getDouble() {
return _double;
}
-
public void setDouble(Double _double) {
this._double = _double;
}
-
+
public FormatTest string(String string) {
this.string = string;
return this;
}
- /**
- * Get string
- * @return string
+
+ /**
+ * Get string
+ * @return string
**/
@ApiModelProperty(value = "")
public String getString() {
return string;
}
-
public void setString(String string) {
this.string = string;
}
-
- public FormatTest _byte(byte[] _byte) {
+
+ public FormatTest _byte(String _byte) {
this._byte = _byte;
return this;
}
- /**
- * Get _byte
- * @return _byte
+
+ /**
+ * Get _byte
+ * @return _byte
**/
@ApiModelProperty(required = true, value = "")
- public byte[] getByte() {
+ public String getByte() {
return _byte;
}
-
- public void setByte(byte[] _byte) {
+ public void setByte(String _byte) {
this._byte = _byte;
}
-
- public FormatTest binary(byte[] binary) {
+
+ public FormatTest binary(String binary) {
this.binary = binary;
return this;
}
- /**
- * Get binary
- * @return binary
+
+ /**
+ * Get binary
+ * @return binary
**/
@ApiModelProperty(value = "")
- public byte[] getBinary() {
+ public String getBinary() {
return binary;
}
-
- public void setBinary(byte[] binary) {
+ public void setBinary(String binary) {
this.binary = binary;
}
-
+
public FormatTest date(LocalDate date) {
this.date = date;
return this;
}
- /**
- * Get date
- * @return date
+
+ /**
+ * Get date
+ * @return date
**/
@ApiModelProperty(required = true, value = "")
public LocalDate getDate() {
return date;
}
-
public void setDate(LocalDate date) {
this.date = date;
}
-
+
public FormatTest dateTime(OffsetDateTime dateTime) {
this.dateTime = dateTime;
return this;
}
- /**
- * Get dateTime
- * @return dateTime
+
+ /**
+ * Get dateTime
+ * @return dateTime
**/
@ApiModelProperty(value = "")
public OffsetDateTime getDateTime() {
return dateTime;
}
-
public void setDateTime(OffsetDateTime dateTime) {
this.dateTime = dateTime;
}
-
+
public FormatTest uuid(UUID uuid) {
this.uuid = uuid;
return this;
}
- /**
- * Get uuid
- * @return uuid
+
+ /**
+ * Get uuid
+ * @return uuid
**/
@ApiModelProperty(value = "")
public UUID getUuid() {
return uuid;
}
-
public void setUuid(UUID uuid) {
this.uuid = uuid;
}
-
+
public FormatTest password(String password) {
this.password = password;
return this;
}
- /**
- * Get password
- * @return password
+
+ /**
+ * Get password
+ * @return password
**/
@ApiModelProperty(required = true, value = "")
public String getPassword() {
return password;
}
-
public void setPassword(String password) {
this.password = password;
}
-
-
+
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
@@ -341,8 +335,7 @@ public boolean equals(java.lang.Object o) {
public int hashCode() {
return Objects.hash(integer, int32, int64, number, _float, _double, string, _byte, binary, date, dateTime, uuid, password);
}
-
-
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
@@ -376,5 +369,8 @@ private String toIndentedString(java.lang.Object o) {
return o.toString().replace("\n", "\n ");
}
+
}
+
+
diff --git a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/HasOnlyReadOnly.java
index 6dc9f12c4b8..98a721fb9dc 100644
--- a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/HasOnlyReadOnly.java
+++ b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/HasOnlyReadOnly.java
@@ -25,31 +25,33 @@
*/
public class HasOnlyReadOnly {
+
@JsonProperty("bar")
private String bar = null;
-
+
@JsonProperty("foo")
private String foo = null;
-
- /**
- * Get bar
- * @return bar
+
+
+ /**
+ * Get bar
+ * @return bar
**/
@ApiModelProperty(value = "")
public String getBar() {
return bar;
}
-
- /**
- * Get foo
- * @return foo
+
+
+ /**
+ * Get foo
+ * @return foo
**/
@ApiModelProperty(value = "")
public String getFoo() {
return foo;
}
-
-
+
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
@@ -67,8 +69,7 @@ public boolean equals(java.lang.Object o) {
public int hashCode() {
return Objects.hash(bar, foo);
}
-
-
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
@@ -91,5 +92,8 @@ private String toIndentedString(java.lang.Object o) {
return o.toString().replace("\n", "\n ");
}
+
}
+
+
diff --git a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/MapTest.java b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/MapTest.java
index e6344a1df0f..cc0556cfb88 100644
--- a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/MapTest.java
+++ b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/MapTest.java
@@ -28,15 +28,17 @@
*/
public class MapTest {
+
@JsonProperty("map_map_of_string")
private Map> mapMapOfString = null;
-
- /**
+
+
+ /**
* Gets or Sets inner
*/
public enum InnerEnum {
- UPPER("UPPER"),
+ UPPER("UPPER"),
LOWER("lower");
private String value;
@@ -44,8 +46,9 @@ public enum InnerEnum {
InnerEnum(String value) {
this.value = value;
}
-
+
@JsonValue
+
public String getValue() {
return value;
}
@@ -54,8 +57,9 @@ public String getValue() {
public String toString() {
return String.valueOf(value);
}
-
+
@JsonCreator
+
public static InnerEnum fromValue(String text) {
for (InnerEnum b : InnerEnum.values()) {
if (String.valueOf(b.value).equals(text)) {
@@ -64,64 +68,64 @@ public static InnerEnum fromValue(String text) {
}
return null;
}
+
}
-
+
@JsonProperty("map_of_enum_string")
private Map mapOfEnumString = null;
-
+
public MapTest mapMapOfString(Map> mapMapOfString) {
this.mapMapOfString = mapMapOfString;
return this;
}
public MapTest putMapMapOfStringItem(String key, Map mapMapOfStringItem) {
+
if (this.mapMapOfString == null) {
- this.mapMapOfString = new HashMap>();
+ this.mapMapOfString = new HashMap<>();
}
+
this.mapMapOfString.put(key, mapMapOfStringItem);
return this;
}
-
- /**
- * Get mapMapOfString
- * @return mapMapOfString
+ /**
+ * Get mapMapOfString
+ * @return mapMapOfString
**/
@ApiModelProperty(value = "")
public Map> getMapMapOfString() {
return mapMapOfString;
}
-
public void setMapMapOfString(Map> mapMapOfString) {
this.mapMapOfString = mapMapOfString;
}
-
+
public MapTest mapOfEnumString(Map mapOfEnumString) {
this.mapOfEnumString = mapOfEnumString;
return this;
}
public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) {
+
if (this.mapOfEnumString == null) {
- this.mapOfEnumString = new HashMap();
+ this.mapOfEnumString = new HashMap<>();
}
+
this.mapOfEnumString.put(key, mapOfEnumStringItem);
return this;
}
-
- /**
- * Get mapOfEnumString
- * @return mapOfEnumString
+ /**
+ * Get mapOfEnumString
+ * @return mapOfEnumString
**/
@ApiModelProperty(value = "")
public Map getMapOfEnumString() {
return mapOfEnumString;
}
-
public void setMapOfEnumString(Map mapOfEnumString) {
this.mapOfEnumString = mapOfEnumString;
}
-
-
+
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
@@ -139,8 +143,7 @@ public boolean equals(java.lang.Object o) {
public int hashCode() {
return Objects.hash(mapMapOfString, mapOfEnumString);
}
-
-
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
@@ -163,5 +166,8 @@ private String toIndentedString(java.lang.Object o) {
return o.toString().replace("\n", "\n ");
}
+
}
+
+
diff --git a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/MixedPropertiesAndAdditionalPropertiesClass.java
index 29bfc7e8c08..85e25e354ee 100644
--- a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/MixedPropertiesAndAdditionalPropertiesClass.java
+++ b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/MixedPropertiesAndAdditionalPropertiesClass.java
@@ -31,78 +31,78 @@
*/
public class MixedPropertiesAndAdditionalPropertiesClass {
+
@JsonProperty("uuid")
private UUID uuid = null;
-
+
@JsonProperty("dateTime")
private OffsetDateTime dateTime = null;
-
+
@JsonProperty("map")
private Map map = null;
-
+
public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) {
this.uuid = uuid;
return this;
}
- /**
- * Get uuid
- * @return uuid
+
+ /**
+ * Get uuid
+ * @return uuid
**/
@ApiModelProperty(value = "")
public UUID getUuid() {
return uuid;
}
-
public void setUuid(UUID uuid) {
this.uuid = uuid;
}
-
+
public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) {
this.dateTime = dateTime;
return this;
}
- /**
- * Get dateTime
- * @return dateTime
+
+ /**
+ * Get dateTime
+ * @return dateTime
**/
@ApiModelProperty(value = "")
public OffsetDateTime getDateTime() {
return dateTime;
}
-
public void setDateTime(OffsetDateTime dateTime) {
this.dateTime = dateTime;
}
-
+
public MixedPropertiesAndAdditionalPropertiesClass map(Map map) {
this.map = map;
return this;
}
public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal mapItem) {
+
if (this.map == null) {
- this.map = new HashMap();
+ this.map = new HashMap<>();
}
+
this.map.put(key, mapItem);
return this;
}
-
- /**
- * Get map
- * @return map
+ /**
+ * Get map
+ * @return map
**/
@ApiModelProperty(value = "")
public Map getMap() {
return map;
}
-
public void setMap(Map map) {
this.map = map;
}
-
-
+
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
@@ -121,8 +121,7 @@ public boolean equals(java.lang.Object o) {
public int hashCode() {
return Objects.hash(uuid, dateTime, map);
}
-
-
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
@@ -146,5 +145,8 @@ private String toIndentedString(java.lang.Object o) {
return o.toString().replace("\n", "\n ");
}
+
}
+
+
diff --git a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Model200Response.java b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Model200Response.java
index 58624475e43..606b051c2ea 100644
--- a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Model200Response.java
+++ b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Model200Response.java
@@ -22,53 +22,52 @@
/**
* Model for testing model name starting with number
- */
-@ApiModel(description = "Model for testing model name starting with number")
+ */@ApiModel(description = "Model for testing model name starting with number")
public class Model200Response {
+
@JsonProperty("name")
private Integer name = null;
-
+
@JsonProperty("class")
private String propertyClass = null;
-
+
public Model200Response name(Integer name) {
this.name = name;
return this;
}
- /**
- * Get name
- * @return name
+
+ /**
+ * Get name
+ * @return name
**/
@ApiModelProperty(value = "")
public Integer getName() {
return name;
}
-
public void setName(Integer name) {
this.name = name;
}
-
+
public Model200Response propertyClass(String propertyClass) {
this.propertyClass = propertyClass;
return this;
}
- /**
- * Get propertyClass
- * @return propertyClass
+
+ /**
+ * 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) {
@@ -86,8 +85,7 @@ public boolean equals(java.lang.Object o) {
public int hashCode() {
return Objects.hash(name, propertyClass);
}
-
-
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
@@ -110,5 +108,8 @@ private String toIndentedString(java.lang.Object o) {
return o.toString().replace("\n", "\n ");
}
+
}
+
+
diff --git a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/ModelApiResponse.java b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/ModelApiResponse.java
index b010e53b48c..4002f3f632e 100644
--- a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/ModelApiResponse.java
+++ b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/ModelApiResponse.java
@@ -25,70 +25,70 @@
*/
public class ModelApiResponse {
+
@JsonProperty("code")
private Integer code = null;
-
+
@JsonProperty("type")
private String type = null;
-
+
@JsonProperty("message")
private String message = null;
-
+
public ModelApiResponse code(Integer code) {
this.code = code;
return this;
}
- /**
- * Get code
- * @return code
+
+ /**
+ * Get code
+ * @return code
**/
@ApiModelProperty(value = "")
public Integer getCode() {
return code;
}
-
public void setCode(Integer code) {
this.code = code;
}
-
+
public ModelApiResponse type(String type) {
this.type = type;
return this;
}
- /**
- * Get type
- * @return type
+
+ /**
+ * Get type
+ * @return type
**/
@ApiModelProperty(value = "")
public String getType() {
return type;
}
-
public void setType(String type) {
this.type = type;
}
-
+
public ModelApiResponse message(String message) {
this.message = message;
return this;
}
- /**
- * Get message
- * @return message
+
+ /**
+ * Get message
+ * @return message
**/
@ApiModelProperty(value = "")
public String getMessage() {
return message;
}
-
public void setMessage(String message) {
this.message = message;
}
-
-
+
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
@@ -107,8 +107,7 @@ public boolean equals(java.lang.Object o) {
public int hashCode() {
return Objects.hash(code, type, message);
}
-
-
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
@@ -132,5 +131,8 @@ private String toIndentedString(java.lang.Object o) {
return o.toString().replace("\n", "\n ");
}
+
}
+
+
diff --git a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/ModelReturn.java b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/ModelReturn.java
index 27d08557248..685e5ba93ac 100644
--- a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/ModelReturn.java
+++ b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/ModelReturn.java
@@ -22,32 +22,31 @@
/**
* Model for testing reserved words
- */
-@ApiModel(description = "Model for testing reserved words")
+ */@ApiModel(description = "Model for testing reserved words")
public class ModelReturn {
+
@JsonProperty("return")
private Integer _return = null;
-
+
public ModelReturn _return(Integer _return) {
this._return = _return;
return this;
}
- /**
- * Get _return
- * @return _return
+
+ /**
+ * Get _return
+ * @return _return
**/
@ApiModelProperty(value = "")
public Integer getReturn() {
return _return;
}
-
public void setReturn(Integer _return) {
this._return = _return;
}
-
-
+
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
@@ -64,8 +63,7 @@ public boolean equals(java.lang.Object o) {
public int hashCode() {
return Objects.hash(_return);
}
-
-
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
@@ -87,5 +85,8 @@ private String toIndentedString(java.lang.Object o) {
return o.toString().replace("\n", "\n ");
}
+
}
+
+
diff --git a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Name.java b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Name.java
index f2b9b1703bd..7c94ab233c2 100644
--- a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Name.java
+++ b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Name.java
@@ -22,77 +22,78 @@
/**
* Model for testing model name same as property name
- */
-@ApiModel(description = "Model for testing model name same as property name")
+ */@ApiModel(description = "Model for testing model name same as property name")
public class Name {
+
@JsonProperty("name")
private Integer name = null;
-
+
@JsonProperty("snake_case")
private Integer snakeCase = null;
-
+
@JsonProperty("property")
private String property = null;
-
+
@JsonProperty("123Number")
private Integer _123Number = null;
-
+
public Name name(Integer name) {
this.name = name;
return this;
}
- /**
- * Get name
- * @return name
+
+ /**
+ * Get name
+ * @return name
**/
@ApiModelProperty(required = true, value = "")
public Integer getName() {
return name;
}
-
public void setName(Integer name) {
this.name = name;
}
-
- /**
- * Get snakeCase
- * @return snakeCase
+
+
+ /**
+ * Get snakeCase
+ * @return snakeCase
**/
@ApiModelProperty(value = "")
public Integer getSnakeCase() {
return snakeCase;
}
-
+
public Name property(String property) {
this.property = property;
return this;
}
- /**
- * Get property
- * @return property
+
+ /**
+ * Get property
+ * @return property
**/
@ApiModelProperty(value = "")
public String getProperty() {
return property;
}
-
public void setProperty(String property) {
this.property = property;
}
-
- /**
- * Get _123Number
- * @return _123Number
+
+
+ /**
+ * Get _123Number
+ * @return _123Number
**/
@ApiModelProperty(value = "")
public Integer get123Number() {
return _123Number;
}
-
-
+
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
@@ -112,8 +113,7 @@ public boolean equals(java.lang.Object o) {
public int hashCode() {
return Objects.hash(name, snakeCase, property, _123Number);
}
-
-
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
@@ -138,5 +138,8 @@ private String toIndentedString(java.lang.Object o) {
return o.toString().replace("\n", "\n ");
}
+
}
+
+
diff --git a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/NumberOnly.java b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/NumberOnly.java
index ec93aba0531..dc53f9e50dc 100644
--- a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/NumberOnly.java
+++ b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/NumberOnly.java
@@ -26,28 +26,28 @@
*/
public class NumberOnly {
+
@JsonProperty("JustNumber")
private BigDecimal justNumber = null;
-
+
public NumberOnly justNumber(BigDecimal justNumber) {
this.justNumber = justNumber;
return this;
}
- /**
- * Get justNumber
- * @return justNumber
+
+ /**
+ * Get justNumber
+ * @return justNumber
**/
@ApiModelProperty(value = "")
public BigDecimal getJustNumber() {
return justNumber;
}
-
public void setJustNumber(BigDecimal justNumber) {
this.justNumber = justNumber;
}
-
-
+
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
@@ -64,8 +64,7 @@ public boolean equals(java.lang.Object o) {
public int hashCode() {
return Objects.hash(justNumber);
}
-
-
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
@@ -87,5 +86,8 @@ private String toIndentedString(java.lang.Object o) {
return o.toString().replace("\n", "\n ");
}
+
}
+
+
diff --git a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Order.java b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Order.java
index 6976ceb8fba..0a6d7ad0933 100644
--- a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Order.java
+++ b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Order.java
@@ -26,26 +26,26 @@
*/
public class Order {
+
@JsonProperty("id")
private Long id = null;
-
+
@JsonProperty("petId")
private Long petId = null;
-
+
@JsonProperty("quantity")
private Integer quantity = null;
-
+
@JsonProperty("shipDate")
private OffsetDateTime shipDate = null;
-
- /**
+
+ /**
* Order Status
*/
public enum StatusEnum {
- PLACED("placed"),
+ PLACED("placed"),
APPROVED("approved"),
-
DELIVERED("delivered");
private String value;
@@ -53,8 +53,9 @@ public enum StatusEnum {
StatusEnum(String value) {
this.value = value;
}
-
+
@JsonValue
+
public String getValue() {
return value;
}
@@ -63,8 +64,9 @@ public String getValue() {
public String toString() {
return String.valueOf(value);
}
-
+
@JsonCreator
+
public static StatusEnum fromValue(String text) {
for (StatusEnum b : StatusEnum.values()) {
if (String.valueOf(b.value).equals(text)) {
@@ -73,123 +75,124 @@ public static StatusEnum fromValue(String text) {
}
return null;
}
+
}
-
+
+
@JsonProperty("status")
private StatusEnum status = null;
-
+
@JsonProperty("complete")
private Boolean complete = false;
-
+
public Order id(Long id) {
this.id = id;
return this;
}
- /**
- * Get id
- * @return id
+
+ /**
+ * Get id
+ * @return id
**/
@ApiModelProperty(value = "")
public Long getId() {
return id;
}
-
public void setId(Long id) {
this.id = id;
}
-
+
public Order petId(Long petId) {
this.petId = petId;
return this;
}
- /**
- * Get petId
- * @return petId
+
+ /**
+ * Get petId
+ * @return petId
**/
@ApiModelProperty(value = "")
public Long getPetId() {
return petId;
}
-
public void setPetId(Long petId) {
this.petId = petId;
}
-
+
public Order quantity(Integer quantity) {
this.quantity = quantity;
return this;
}
- /**
- * Get quantity
- * @return quantity
+
+ /**
+ * Get quantity
+ * @return quantity
**/
@ApiModelProperty(value = "")
public Integer getQuantity() {
return quantity;
}
-
public void setQuantity(Integer quantity) {
this.quantity = quantity;
}
-
+
public Order shipDate(OffsetDateTime shipDate) {
this.shipDate = shipDate;
return this;
}
- /**
- * Get shipDate
- * @return shipDate
+
+ /**
+ * Get shipDate
+ * @return shipDate
**/
@ApiModelProperty(value = "")
public OffsetDateTime getShipDate() {
return shipDate;
}
-
public void setShipDate(OffsetDateTime shipDate) {
this.shipDate = shipDate;
}
-
+
public Order status(StatusEnum status) {
this.status = status;
return this;
}
- /**
- * Order Status
- * @return status
+
+ /**
+ * Order Status
+ * @return status
**/
@ApiModelProperty(value = "Order Status")
public StatusEnum getStatus() {
return status;
}
-
public void setStatus(StatusEnum status) {
this.status = status;
}
-
+
public Order complete(Boolean complete) {
this.complete = complete;
return this;
}
- /**
- * Get complete
- * @return complete
+
+ /**
+ * Get complete
+ * @return complete
**/
@ApiModelProperty(value = "")
public Boolean isComplete() {
return complete;
}
-
public void setComplete(Boolean complete) {
this.complete = complete;
}
-
-
+
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
@@ -211,8 +214,7 @@ public boolean equals(java.lang.Object o) {
public int hashCode() {
return Objects.hash(id, petId, quantity, shipDate, status, complete);
}
-
-
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
@@ -239,5 +241,8 @@ private String toIndentedString(java.lang.Object o) {
return o.toString().replace("\n", "\n ");
}
+
}
+
+
diff --git a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/OuterComposite.java b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/OuterComposite.java
index 02c16a99b70..8b957f45a14 100644
--- a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/OuterComposite.java
+++ b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/OuterComposite.java
@@ -26,70 +26,70 @@
*/
public class OuterComposite {
+
@JsonProperty("my_number")
private BigDecimal myNumber = null;
-
+
@JsonProperty("my_string")
private String myString = null;
-
+
@JsonProperty("my_boolean")
private Boolean myBoolean = null;
-
+
public OuterComposite myNumber(BigDecimal myNumber) {
this.myNumber = myNumber;
return this;
}
- /**
- * Get myNumber
- * @return myNumber
+
+ /**
+ * Get myNumber
+ * @return myNumber
**/
@ApiModelProperty(value = "")
public BigDecimal getMyNumber() {
return myNumber;
}
-
public void setMyNumber(BigDecimal myNumber) {
this.myNumber = myNumber;
}
-
+
public OuterComposite myString(String myString) {
this.myString = myString;
return this;
}
- /**
- * Get myString
- * @return myString
+
+ /**
+ * Get myString
+ * @return myString
**/
@ApiModelProperty(value = "")
public String getMyString() {
return myString;
}
-
public void setMyString(String myString) {
this.myString = myString;
}
-
+
public OuterComposite myBoolean(Boolean myBoolean) {
this.myBoolean = myBoolean;
return this;
}
- /**
- * Get myBoolean
- * @return myBoolean
+
+ /**
+ * Get myBoolean
+ * @return myBoolean
**/
@ApiModelProperty(value = "")
public Boolean getMyBoolean() {
return myBoolean;
}
-
public void setMyBoolean(Boolean myBoolean) {
this.myBoolean = myBoolean;
}
-
-
+
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
@@ -108,8 +108,7 @@ public boolean equals(java.lang.Object o) {
public int hashCode() {
return Objects.hash(myNumber, myString, myBoolean);
}
-
-
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
@@ -133,5 +132,8 @@ private String toIndentedString(java.lang.Object o) {
return o.toString().replace("\n", "\n ");
}
+
}
+
+
diff --git a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/OuterEnum.java b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/OuterEnum.java
index 948d80c2e6d..3390d473c7b 100644
--- a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/OuterEnum.java
+++ b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/OuterEnum.java
@@ -13,14 +13,17 @@
package io.swagger.client.model;
-import java.util.Objects;
+
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
+
+
/**
* Gets or Sets OuterEnum
*/
+
public enum OuterEnum {
PLACED("placed"),
@@ -35,7 +38,9 @@ public enum OuterEnum {
this.value = value;
}
+
@JsonValue
+
public String getValue() {
return value;
}
@@ -45,7 +50,9 @@ 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)) {
@@ -54,5 +61,8 @@ public static OuterEnum fromValue(String text) {
}
return null;
}
+
}
+
+
diff --git a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Pet.java b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Pet.java
index 4c351dec3e4..2bda9b34787 100644
--- a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Pet.java
+++ b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Pet.java
@@ -29,29 +29,29 @@
*/
public class Pet {
+
@JsonProperty("id")
private Long id = null;
-
+
@JsonProperty("category")
private Category category = null;
-
+
@JsonProperty("name")
private String name = null;
-
+
@JsonProperty("photoUrls")
- private List photoUrls = new ArrayList();
-
+ private List photoUrls = new ArrayList<>();
+
@JsonProperty("tags")
private List tags = null;
-
- /**
+
+ /**
* pet status in the store
*/
public enum StatusEnum {
- AVAILABLE("available"),
+ AVAILABLE("available"),
PENDING("pending"),
-
SOLD("sold");
private String value;
@@ -59,8 +59,9 @@ public enum StatusEnum {
StatusEnum(String value) {
this.value = value;
}
-
+
@JsonValue
+
public String getValue() {
return value;
}
@@ -69,8 +70,9 @@ public String getValue() {
public String toString() {
return String.valueOf(value);
}
-
+
@JsonCreator
+
public static StatusEnum fromValue(String text) {
for (StatusEnum b : StatusEnum.values()) {
if (String.valueOf(b.value).equals(text)) {
@@ -79,133 +81,135 @@ public static StatusEnum fromValue(String text) {
}
return null;
}
+
}
-
+
+
@JsonProperty("status")
private StatusEnum status = null;
-
+
public Pet id(Long id) {
this.id = id;
return this;
}
- /**
- * Get id
- * @return id
+
+ /**
+ * Get id
+ * @return id
**/
@ApiModelProperty(value = "")
public Long getId() {
return id;
}
-
public void setId(Long id) {
this.id = id;
}
-
+
public Pet category(Category category) {
this.category = category;
return this;
}
- /**
- * Get category
- * @return category
+
+ /**
+ * Get category
+ * @return category
**/
@ApiModelProperty(value = "")
public Category getCategory() {
return category;
}
-
public void setCategory(Category category) {
this.category = category;
}
-
+
public Pet name(String name) {
this.name = name;
return this;
}
- /**
- * Get name
- * @return name
+
+ /**
+ * Get name
+ * @return name
**/
@ApiModelProperty(example = "doggie", required = true, value = "")
public String getName() {
return name;
}
-
public void setName(String name) {
this.name = name;
}
-
+
public Pet photoUrls(List photoUrls) {
this.photoUrls = photoUrls;
return this;
}
public Pet addPhotoUrlsItem(String photoUrlsItem) {
+
this.photoUrls.add(photoUrlsItem);
return this;
}
-
- /**
- * Get photoUrls
- * @return photoUrls
+
+ /**
+ * Get photoUrls
+ * @return photoUrls
**/
@ApiModelProperty(required = true, value = "")
public List getPhotoUrls() {
return photoUrls;
}
-
public void setPhotoUrls(List photoUrls) {
this.photoUrls = photoUrls;
}
-
+
public Pet tags(List tags) {
this.tags = tags;
return this;
}
public Pet addTagsItem(Tag tagsItem) {
+
if (this.tags == null) {
- this.tags = new ArrayList();
+ this.tags = new ArrayList<>();
}
+
this.tags.add(tagsItem);
return this;
}
-
- /**
- * Get tags
- * @return tags
+
+ /**
+ * Get tags
+ * @return tags
**/
@ApiModelProperty(value = "")
public List getTags() {
return tags;
}
-
public void setTags(List tags) {
this.tags = tags;
}
-
+
public Pet status(StatusEnum status) {
this.status = status;
return this;
}
- /**
- * pet status in the store
- * @return status
+
+ /**
+ * pet status in the store
+ * @return status
**/
@ApiModelProperty(value = "pet status in the store")
public StatusEnum getStatus() {
return status;
}
-
public void setStatus(StatusEnum status) {
this.status = status;
}
-
-
+
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
@@ -227,8 +231,7 @@ public boolean equals(java.lang.Object o) {
public int hashCode() {
return Objects.hash(id, category, name, photoUrls, tags, status);
}
-
-
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
@@ -255,5 +258,8 @@ private String toIndentedString(java.lang.Object o) {
return o.toString().replace("\n", "\n ");
}
+
}
+
+
diff --git a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/ReadOnlyFirst.java
index 76f8a912f36..1532a30b9e9 100644
--- a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/ReadOnlyFirst.java
+++ b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/ReadOnlyFirst.java
@@ -25,40 +25,41 @@
*/
public class ReadOnlyFirst {
+
@JsonProperty("bar")
private String bar = null;
-
+
@JsonProperty("baz")
private String baz = null;
-
- /**
- * Get bar
- * @return bar
+
+
+ /**
+ * Get bar
+ * @return bar
**/
@ApiModelProperty(value = "")
public String getBar() {
return bar;
}
-
+
public ReadOnlyFirst baz(String baz) {
this.baz = baz;
return this;
}
- /**
- * Get baz
- * @return baz
+
+ /**
+ * Get baz
+ * @return baz
**/
@ApiModelProperty(value = "")
public String getBaz() {
return baz;
}
-
public void setBaz(String baz) {
this.baz = baz;
}
-
-
+
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
@@ -76,8 +77,7 @@ public boolean equals(java.lang.Object o) {
public int hashCode() {
return Objects.hash(bar, baz);
}
-
-
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
@@ -100,5 +100,8 @@ private String toIndentedString(java.lang.Object o) {
return o.toString().replace("\n", "\n ");
}
+
}
+
+
diff --git a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/SpecialModelName.java b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/SpecialModelName.java
index 784eb8baca8..38b54fd6c38 100644
--- a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/SpecialModelName.java
+++ b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/SpecialModelName.java
@@ -25,28 +25,28 @@
*/
public class SpecialModelName {
- @JsonProperty("$special[property.name]")
- private Long specialPropertyName = null;
- public SpecialModelName specialPropertyName(Long specialPropertyName) {
- this.specialPropertyName = specialPropertyName;
+ @JsonProperty("$special[property.name]")
+ private Long $specialPropertyName = null;
+
+ public SpecialModelName $specialPropertyName(Long $specialPropertyName) {
+ this.$specialPropertyName = $specialPropertyName;
return this;
}
- /**
- * Get specialPropertyName
- * @return specialPropertyName
+
+ /**
+ * Get $specialPropertyName
+ * @return $specialPropertyName
**/
@ApiModelProperty(value = "")
- public Long getSpecialPropertyName() {
- return specialPropertyName;
+ public Long get$SpecialPropertyName() {
+ return $specialPropertyName;
}
-
- public void setSpecialPropertyName(Long specialPropertyName) {
- this.specialPropertyName = specialPropertyName;
+ public void set$SpecialPropertyName(Long $specialPropertyName) {
+ this.$specialPropertyName = $specialPropertyName;
}
-
-
+
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
@@ -55,22 +55,21 @@ public boolean equals(java.lang.Object o) {
if (o == null || getClass() != o.getClass()) {
return false;
}
- SpecialModelName specialModelName = (SpecialModelName) o;
- return Objects.equals(this.specialPropertyName, specialModelName.specialPropertyName);
+ SpecialModelName $specialModelName = (SpecialModelName) o;
+ return Objects.equals(this.$specialPropertyName, $specialModelName.$specialPropertyName);
}
@Override
public int hashCode() {
- return Objects.hash(specialPropertyName);
+ return Objects.hash($specialPropertyName);
}
-
-
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class SpecialModelName {\n");
- sb.append(" specialPropertyName: ").append(toIndentedString(specialPropertyName)).append("\n");
+ sb.append(" $specialPropertyName: ").append(toIndentedString($specialPropertyName)).append("\n");
sb.append("}");
return sb.toString();
}
@@ -86,5 +85,8 @@ private String toIndentedString(java.lang.Object o) {
return o.toString().replace("\n", "\n ");
}
+
}
+
+
diff --git a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Tag.java b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Tag.java
index 1cf2f5bc5e6..2967322b174 100644
--- a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Tag.java
+++ b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Tag.java
@@ -25,49 +25,49 @@
*/
public class Tag {
+
@JsonProperty("id")
private Long id = null;
-
+
@JsonProperty("name")
private String name = null;
-
+
public Tag id(Long id) {
this.id = id;
return this;
}
- /**
- * Get id
- * @return id
+
+ /**
+ * Get id
+ * @return id
**/
@ApiModelProperty(value = "")
public Long getId() {
return id;
}
-
public void setId(Long id) {
this.id = id;
}
-
+
public Tag name(String name) {
this.name = name;
return this;
}
- /**
- * Get name
- * @return name
+
+ /**
+ * Get name
+ * @return name
**/
@ApiModelProperty(value = "")
public String getName() {
return name;
}
-
public void setName(String name) {
this.name = name;
}
-
-
+
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
@@ -85,8 +85,7 @@ public boolean equals(java.lang.Object o) {
public int hashCode() {
return Objects.hash(id, name);
}
-
-
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
@@ -109,5 +108,8 @@ private String toIndentedString(java.lang.Object o) {
return o.toString().replace("\n", "\n ");
}
+
}
+
+
diff --git a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/User.java b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/User.java
index de5bc439c5a..cb2f9f34084 100644
--- a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/User.java
+++ b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/User.java
@@ -25,175 +25,175 @@
*/
public class User {
+
@JsonProperty("id")
private Long id = null;
-
+
@JsonProperty("username")
private String username = null;
-
+
@JsonProperty("firstName")
private String firstName = null;
-
+
@JsonProperty("lastName")
private String lastName = null;
-
+
@JsonProperty("email")
private String email = null;
-
+
@JsonProperty("password")
private String password = null;
-
+
@JsonProperty("phone")
private String phone = null;
-
+
@JsonProperty("userStatus")
private Integer userStatus = null;
-
+
public User id(Long id) {
this.id = id;
return this;
}
- /**
- * Get id
- * @return id
+
+ /**
+ * Get id
+ * @return id
**/
@ApiModelProperty(value = "")
public Long getId() {
return id;
}
-
public void setId(Long id) {
this.id = id;
}
-
+
public User username(String username) {
this.username = username;
return this;
}
- /**
- * Get username
- * @return username
+
+ /**
+ * Get username
+ * @return username
**/
@ApiModelProperty(value = "")
public String getUsername() {
return username;
}
-
public void setUsername(String username) {
this.username = username;
}
-
+
public User firstName(String firstName) {
this.firstName = firstName;
return this;
}
- /**
- * Get firstName
- * @return firstName
+
+ /**
+ * Get firstName
+ * @return firstName
**/
@ApiModelProperty(value = "")
public String getFirstName() {
return firstName;
}
-
public void setFirstName(String firstName) {
this.firstName = firstName;
}
-
+
public User lastName(String lastName) {
this.lastName = lastName;
return this;
}
- /**
- * Get lastName
- * @return lastName
+
+ /**
+ * Get lastName
+ * @return lastName
**/
@ApiModelProperty(value = "")
public String getLastName() {
return lastName;
}
-
public void setLastName(String lastName) {
this.lastName = lastName;
}
-
+
public User email(String email) {
this.email = email;
return this;
}
- /**
- * Get email
- * @return email
+
+ /**
+ * Get email
+ * @return email
**/
@ApiModelProperty(value = "")
public String getEmail() {
return email;
}
-
public void setEmail(String email) {
this.email = email;
}
-
+
public User password(String password) {
this.password = password;
return this;
}
- /**
- * Get password
- * @return password
+
+ /**
+ * Get password
+ * @return password
**/
@ApiModelProperty(value = "")
public String getPassword() {
return password;
}
-
public void setPassword(String password) {
this.password = password;
}
-
+
public User phone(String phone) {
this.phone = phone;
return this;
}
- /**
- * Get phone
- * @return phone
+
+ /**
+ * Get phone
+ * @return phone
**/
@ApiModelProperty(value = "")
public String getPhone() {
return phone;
}
-
public void setPhone(String phone) {
this.phone = phone;
}
-
+
public User userStatus(Integer userStatus) {
this.userStatus = userStatus;
return this;
}
- /**
- * User Status
- * @return userStatus
+
+ /**
+ * User Status
+ * @return userStatus
**/
@ApiModelProperty(value = "User Status")
public Integer getUserStatus() {
return userStatus;
}
-
public void setUserStatus(Integer userStatus) {
this.userStatus = userStatus;
}
-
-
+
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
@@ -217,8 +217,7 @@ public boolean equals(java.lang.Object o) {
public int hashCode() {
return Objects.hash(id, username, firstName, lastName, email, password, phone, userStatus);
}
-
-
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
@@ -247,5 +246,8 @@ private String toIndentedString(java.lang.Object o) {
return o.toString().replace("\n", "\n ");
}
+
}
+
+
diff --git a/samples/client/petstore/java/feign/src/test/java/io/swagger/TestUtils.java b/samples/client/petstore/java/feign/src/test/java/io/swagger/TestUtils.java
deleted file mode 100644
index 7ddf142426e..00000000000
--- a/samples/client/petstore/java/feign/src/test/java/io/swagger/TestUtils.java
+++ /dev/null
@@ -1,17 +0,0 @@
-package io.swagger;
-
-import java.util.Random;
-import java.util.concurrent.atomic.AtomicLong;
-
-public class TestUtils {
- private static final AtomicLong atomicId = createAtomicId();
-
- public static long nextId() {
- return atomicId.getAndIncrement();
- }
-
- private static AtomicLong createAtomicId() {
- int baseId = new Random(System.currentTimeMillis()).nextInt(1000000) + 20000;
- return new AtomicLong((long) baseId);
- }
-}
diff --git a/samples/client/petstore/java/feign/src/test/java/io/swagger/client/StringUtilTest.java b/samples/client/petstore/java/feign/src/test/java/io/swagger/client/StringUtilTest.java
deleted file mode 100644
index c93908b8482..00000000000
--- a/samples/client/petstore/java/feign/src/test/java/io/swagger/client/StringUtilTest.java
+++ /dev/null
@@ -1,32 +0,0 @@
-package io.swagger.client;
-
-import org.junit.*;
-import static org.junit.Assert.*;
-
-public class StringUtilTest {
- @Test
- public void testContainsIgnoreCase() {
- assertTrue(StringUtil.containsIgnoreCase(new String[]{"abc"}, "abc"));
- assertTrue(StringUtil.containsIgnoreCase(new String[]{"abc"}, "ABC"));
- assertTrue(StringUtil.containsIgnoreCase(new String[]{"ABC"}, "abc"));
- assertTrue(StringUtil.containsIgnoreCase(new String[]{null, "abc"}, "ABC"));
- assertTrue(StringUtil.containsIgnoreCase(new String[]{null, "abc"}, null));
-
- assertFalse(StringUtil.containsIgnoreCase(new String[]{"abc"}, "def"));
- assertFalse(StringUtil.containsIgnoreCase(new String[]{}, "ABC"));
- assertFalse(StringUtil.containsIgnoreCase(new String[]{}, null));
- }
-
- @Test
- public void testJoin() {
- String[] array = {"aa", "bb", "cc"};
- assertEquals("aa,bb,cc", StringUtil.join(array, ","));
- assertEquals("aa, bb, cc", StringUtil.join(array, ", "));
- assertEquals("aabbcc", StringUtil.join(array, ""));
- assertEquals("aa bb cc", StringUtil.join(array, " "));
- assertEquals("aa\nbb\ncc", StringUtil.join(array, "\n"));
-
- assertEquals("", StringUtil.join(new String[]{}, ","));
- assertEquals("abc", StringUtil.join(new String[]{"abc"}, ","));
- }
-}
\ No newline at end of file
diff --git a/samples/client/petstore/java/feign/src/test/java/io/swagger/client/api/AnotherFakeApiTest.java b/samples/client/petstore/java/feign/src/test/java/io/swagger/client/api/AnotherFakeApiTest.java
index 05d765039a2..037a03f4917 100644
--- a/samples/client/petstore/java/feign/src/test/java/io/swagger/client/api/AnotherFakeApiTest.java
+++ b/samples/client/petstore/java/feign/src/test/java/io/swagger/client/api/AnotherFakeApiTest.java
@@ -2,14 +2,17 @@
import io.swagger.client.ApiClient;
import io.swagger.client.model.Client;
+
import org.junit.Before;
import org.junit.Test;
+
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
+
/**
* API tests for AnotherFakeApi
*/
@@ -30,11 +33,14 @@ public void setup() {
*/
@Test
public void testSpecialTagsTest() {
- Client body = null;
- // Client response = api.testSpecialTags(body);
+
+ Client client = null;
+
+ // Client response = api.testSpecialTags(client);
// TODO: test validations
}
+
}
diff --git a/samples/client/petstore/java/feign/src/test/java/io/swagger/client/api/FakeApiTest.java b/samples/client/petstore/java/feign/src/test/java/io/swagger/client/api/FakeApiTest.java
index bc6cb13b3b2..d1b77955b06 100644
--- a/samples/client/petstore/java/feign/src/test/java/io/swagger/client/api/FakeApiTest.java
+++ b/samples/client/petstore/java/feign/src/test/java/io/swagger/client/api/FakeApiTest.java
@@ -3,17 +3,18 @@
import io.swagger.client.ApiClient;
import java.math.BigDecimal;
import io.swagger.client.model.Client;
-import org.threeten.bp.LocalDate;
-import org.threeten.bp.OffsetDateTime;
import io.swagger.client.model.OuterComposite;
+
import org.junit.Before;
import org.junit.Test;
+
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
+
/**
* API tests for FakeApi
*/
@@ -34,12 +35,15 @@ public void setup() {
*/
@Test
public void fakeOuterBooleanSerializeTest() {
+
Boolean body = null;
+
// Boolean response = api.fakeOuterBooleanSerialize(body);
// TODO: test validations
}
+
/**
*
@@ -48,12 +52,15 @@ public void fakeOuterBooleanSerializeTest() {
*/
@Test
public void fakeOuterCompositeSerializeTest() {
- OuterComposite body = null;
- // OuterComposite response = api.fakeOuterCompositeSerialize(body);
+
+ OuterComposite outercomposite = null;
+
+ // OuterComposite response = api.fakeOuterCompositeSerialize(outercomposite);
// TODO: test validations
}
+
/**
*
@@ -62,12 +69,15 @@ public void fakeOuterCompositeSerializeTest() {
*/
@Test
public void fakeOuterNumberSerializeTest() {
+
BigDecimal body = null;
+
// BigDecimal response = api.fakeOuterNumberSerialize(body);
// TODO: test validations
}
+
/**
*
@@ -76,12 +86,15 @@ public void fakeOuterNumberSerializeTest() {
*/
@Test
public void fakeOuterStringSerializeTest() {
+
String body = null;
+
// String response = api.fakeOuterStringSerialize(body);
// TODO: test validations
}
+
/**
* To test \"client\" model
@@ -90,12 +103,15 @@ public void fakeOuterStringSerializeTest() {
*/
@Test
public void testClientModelTest() {
- Client body = null;
- // Client response = api.testClientModel(body);
+
+ Client client = null;
+
+ // Client response = api.testClientModel(client);
// TODO: test validations
}
+
/**
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
@@ -104,25 +120,15 @@ public void testClientModelTest() {
*/
@Test
public void testEndpointParametersTest() {
- BigDecimal number = null;
- Double _double = null;
- String patternWithoutDelimiter = null;
- byte[] _byte = null;
- Integer integer = null;
- Integer int32 = null;
- Long int64 = null;
- Float _float = null;
- String string = null;
- byte[] binary = null;
- LocalDate date = null;
- OffsetDateTime dateTime = null;
- String password = null;
- String paramCallback = null;
- // api.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback);
+
+ Object body = null;
+
+ // api.testEndpointParameters(body);
// TODO: test validations
}
+
/**
* To test enum parameters
@@ -131,19 +137,25 @@ public void testEndpointParametersTest() {
*/
@Test
public void testEnumParametersTest() {
- List enumFormStringArray = null;
- String enumFormString = null;
+
+ Object body = null;
+
List enumHeaderStringArray = null;
+
String enumHeaderString = null;
+
List enumQueryStringArray = null;
+
String enumQueryString = null;
+
Integer enumQueryInteger = null;
- Double enumQueryDouble = null;
- // api.testEnumParameters(enumFormStringArray, enumFormString, enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble);
+
+ // api.testEnumParameters(body, enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger);
// TODO: test validations
}
+
/**
* To test enum parameters
*
@@ -154,18 +166,71 @@ public void testEnumParametersTest() {
*/
@Test
public void testEnumParametersTestQueryMap() {
- List enumFormStringArray = null;
- String enumFormString = null;
+
+
+ Object body = null;
+
+
+
List enumHeaderStringArray = null;
+
+
+
String enumHeaderString = null;
- Double enumQueryDouble = null;
+
+
+
+
+
+
+
+
FakeApi.TestEnumParametersQueryParams queryParams = new FakeApi.TestEnumParametersQueryParams()
+
.enumQueryStringArray(null)
+
.enumQueryString(null)
+
.enumQueryInteger(null);
- // api.testEnumParameters(enumFormStringArray, enumFormString, enumHeaderStringArray, enumHeaderString, enumQueryDouble, queryParams);
+
+ // api.testEnumParameters(body, enumHeaderStringArray, enumHeaderString, queryParams);
// TODO: test validations
}
+
+
+ /**
+ * test inline additionalProperties
+ *
+ *
+ */
+ @Test
+ public void testInlineAdditionalPropertiesTest() {
+
+ Map body = null;
+
+ // api.testInlineAdditionalProperties(body);
+
+ // TODO: test validations
+ }
+
+
+
+ /**
+ * test json serialization of form data
+ *
+ *
+ */
+ @Test
+ public void testJsonFormDataTest() {
+
+ Object body = null;
+
+ // api.testJsonFormData(body);
+
+ // TODO: test validations
+ }
+
+
}
diff --git a/samples/client/petstore/java/feign/src/test/java/io/swagger/client/api/FakeClassnameTags123ApiTest.java b/samples/client/petstore/java/feign/src/test/java/io/swagger/client/api/FakeClassnameTags123ApiTest.java
index 77930522c3c..0fb476a4575 100644
--- a/samples/client/petstore/java/feign/src/test/java/io/swagger/client/api/FakeClassnameTags123ApiTest.java
+++ b/samples/client/petstore/java/feign/src/test/java/io/swagger/client/api/FakeClassnameTags123ApiTest.java
@@ -2,14 +2,17 @@
import io.swagger.client.ApiClient;
import io.swagger.client.model.Client;
+
import org.junit.Before;
import org.junit.Test;
+
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
+
/**
* API tests for FakeClassnameTags123Api
*/
@@ -30,10 +33,14 @@ public void setup() {
*/
@Test
public void testClassnameTest() {
- Client body = null;
- // Client response = api.testClassname(body);
+
+ Client client = null;
+
+ // Client response = api.testClassname(client);
// TODO: test validations
}
+
+
}
diff --git a/samples/client/petstore/java/feign/src/test/java/io/swagger/client/api/PetApiTest.java b/samples/client/petstore/java/feign/src/test/java/io/swagger/client/api/PetApiTest.java
index c27524de1f6..895f720be8d 100644
--- a/samples/client/petstore/java/feign/src/test/java/io/swagger/client/api/PetApiTest.java
+++ b/samples/client/petstore/java/feign/src/test/java/io/swagger/client/api/PetApiTest.java
@@ -1,251 +1,216 @@
package io.swagger.client.api;
-import io.swagger.TestUtils;
-
import io.swagger.client.ApiClient;
-import io.swagger.client.model.*;
+import io.swagger.client.model.ModelApiResponse;
+import io.swagger.client.model.Pet;
+
+import org.junit.Before;
+import org.junit.Test;
+
-import java.io.BufferedWriter;
-import java.io.File;
-import java.io.FileWriter;
import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.Collections;
+import java.util.HashMap;
import java.util.List;
+import java.util.Map;
-import okhttp3.mockwebserver.MockResponse;
-import okhttp3.mockwebserver.MockWebServer;
-import okhttp3.mockwebserver.RecordedRequest;
-import org.junit.*;
-import static org.assertj.core.api.Assertions.assertThat;
-import static org.junit.Assert.*;
+/**
+ * API tests for PetApi
+ */
public class PetApiTest {
- ApiClient apiClient;
- PetApi api;
- MockWebServer localServer;
- ApiClient localClient;
+
+ private PetApi api;
@Before
public void setup() {
- apiClient = new ApiClient();
- api = apiClient.buildClient(PetApi.class);
- localServer = new MockWebServer();
- localClient = new ApiClient();
+ api = new ApiClient().buildClient(PetApi.class);
}
+
+ /**
+ * Add a new pet to the store
+ *
+ *
+ */
@Test
- public void testApiClient() {
- // the default api client is used
- assertEquals("http://petstore.swagger.io:80/v2", apiClient.getBasePath());
+ public void addPetTest() {
+
+ Pet pet = null;
+
+ // api.addPet(pet);
- ApiClient newClient = new ApiClient();
- newClient.setBasePath("http://example.com");
-
- assertEquals("http://example.com", newClient.getBasePath());
+ // TODO: test validations
}
+
+
+ /**
+ * Deletes a pet
+ *
+ *
+ */
@Test
- public void testCreateAndGetPet() throws Exception {
- Pet pet = createRandomPet();
- api.addPet(pet);
-
- Pet fetched = api.getPetById(pet.getId());
- assertNotNull(fetched);
- assertEquals(pet.getId(), fetched.getId());
- assertNotNull(fetched.getCategory());
- assertEquals(fetched.getCategory().getName(), pet.getCategory().getName());
+ public void deletePetTest() {
+
+ Integer petId = null;
+
+ String apiKey = null;
+
+ // api.deletePet(petId, apiKey);
+
+ // TODO: test validations
}
+
+
+ /**
+ * Finds Pets by status
+ *
+ * Multiple status values can be provided with comma separated strings
+ */
@Test
- public void testUpdatePet() throws Exception {
- Pet pet = createRandomPet();
- pet.setName("programmer");
-
- api.updatePet(pet);
+ public void findPetsByStatusTest() {
+
+ List status = null;
+
+ // List response = api.findPetsByStatus(status);
- Pet fetched = api.getPetById(pet.getId());
- assertNotNull(fetched);
- assertEquals(pet.getId(), fetched.getId());
- assertNotNull(fetched.getCategory());
- assertEquals(fetched.getCategory().getName(), pet.getCategory().getName());
+ // TODO: test validations
}
+
+ /**
+ * Finds Pets by status
+ *
+ * Multiple status values can be provided with comma separated strings
+ *
+ * This tests the overload of the method that uses a Map for query parameters instead of
+ * listing them out individually.
+ */
@Test
- public void testFindPetsByStatus() throws Exception {
- Pet pet = createRandomPet();
- pet.setName("programmer");
- pet.setStatus(Pet.StatusEnum.AVAILABLE);
-
- api.updatePet(pet);
-
- List pets = api.findPetsByStatus(Collections.singletonList("available"));
- assertNotNull(pets);
-
- boolean found = false;
- for (Pet fetched : pets) {
- if (fetched.getId().equals(pet.getId())) {
- found = true;
- break;
- }
- }
-
- assertTrue(found);
-
+ public void findPetsByStatusTestQueryMap() {
+
+
+
PetApi.FindPetsByStatusQueryParams queryParams = new PetApi.FindPetsByStatusQueryParams()
- .status(Arrays.asList(new String[]{"available"}));
- pets = api.findPetsByStatus(queryParams);
- assertNotNull(pets);
-
- found = false;
- for (Pet fetched : pets) {
- if (fetched.getId().equals(pet.getId())) {
- found = true;
- break;
- }
- }
-
- assertTrue(found);
- }
+
+ .status(null);
+
+ // List response = api.findPetsByStatus(queryParams);
+ // TODO: test validations
+ }
+
+
+ /**
+ * Finds Pets by tags
+ *
+ * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
+ */
@Test
- public void testFindPetsByTags() throws Exception {
- Pet pet = createRandomPet();
- pet.setName("monster");
- pet.setStatus(Pet.StatusEnum.AVAILABLE);
-
- List tags = new ArrayList<>();
- Tag tag1 = new Tag();
- tag1.setName("friendly");
- tags.add(tag1);
- pet.setTags(tags);
-
- api.updatePet(pet);
-
- List pets = api.findPetsByTags(Collections.singletonList("friendly"));
- assertNotNull(pets);
-
- boolean found = false;
- for (Pet fetched : pets) {
- if (fetched.getId().equals(pet.getId())) {
- found = true;
- break;
- }
- }
- assertTrue(found);
+ public void findPetsByTagsTest() {
+
+ List tags = null;
+
+ // List response = api.findPetsByTags(tags);
- PetApi.FindPetsByTagsQueryParams queryParams = new PetApi.FindPetsByTagsQueryParams()
- .tags(Arrays.asList(new String[]{"friendly"}));
- pets = api.findPetsByTags(queryParams);
- assertNotNull(pets);
-
- found = false;
- for (Pet fetched : pets) {
- if (fetched.getId().equals(pet.getId())) {
- found = true;
- break;
- }
- }
- assertTrue(found);
+ // TODO: test validations
}
+
+ /**
+ * Finds Pets by tags
+ *
+ * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
+ *
+ * This tests the overload of the method that uses a Map for query parameters instead of
+ * listing them out individually.
+ */
@Test
- public void testUpdatePetWithForm() throws Exception {
- Pet pet = createRandomPet();
- pet.setName("frank");
- api.addPet(pet);
-
- Pet fetched = api.getPetById(pet.getId());
-
- api.updatePetWithForm(fetched.getId(), "furt", null);
- Pet updated = api.getPetById(fetched.getId());
+ public void findPetsByTagsTestQueryMap() {
+
+
+
+ PetApi.FindPetsByTagsQueryParams queryParams = new PetApi.FindPetsByTagsQueryParams()
+
+ .tags(null);
+
+ // List response = api.findPetsByTags(queryParams);
- assertEquals(updated.getName(), "furt");
+ // TODO: test validations
}
-
+
+
+ /**
+ * Find pet by ID
+ *
+ * Returns a single pet
+ */
@Test
- public void testDeletePet() throws Exception {
- Pet pet = createRandomPet();
- api.addPet(pet);
-
- Pet fetched = api.getPetById(pet.getId());
- api.deletePet(fetched.getId(), null);
-
- try {
- api.getPetById(fetched.getId());
- fail("expected an error");
- } catch (Exception e) {
-// assertEquals(404, e.getCode());
- }
+ public void getPetByIdTest() {
+
+ Integer petId = null;
+
+ // Pet response = api.getPetById(petId);
+
+ // TODO: test validations
}
+
+
+ /**
+ * Update an existing pet
+ *
+ *
+ */
@Test
- public void testUploadFile() throws Exception {
- Pet pet = createRandomPet();
- api.addPet(pet);
+ public void updatePetTest() {
+
+ Pet pet = null;
+
+ // api.updatePet(pet);
- File file = new File("hello.txt");
- BufferedWriter writer = new BufferedWriter(new FileWriter(file));
- writer.write("Hello world!");
- writer.close();
-
- api.uploadFile(pet.getId(), "a test file", new File(file.getAbsolutePath()));
+ // TODO: test validations
}
+
+
+ /**
+ * Updates a pet in the store with form data
+ *
+ *
+ */
@Test
- public void testEqualsAndHashCode() {
- Pet pet1 = new Pet();
- Pet pet2 = new Pet();
- assertTrue(pet1.equals(pet2));
- assertTrue(pet2.equals(pet1));
- assertTrue(pet1.hashCode() == pet2.hashCode());
- assertTrue(pet1.equals(pet1));
- assertTrue(pet1.hashCode() == pet1.hashCode());
-
- pet2.setName("really-happy");
- pet2.setPhotoUrls(Arrays.asList("http://foo.bar.com/1", "http://foo.bar.com/2"));
- assertFalse(pet1.equals(pet2));
- assertFalse(pet2.equals(pet1));
- assertFalse(pet1.hashCode() == (pet2.hashCode()));
- assertTrue(pet2.equals(pet2));
- assertTrue(pet2.hashCode() == pet2.hashCode());
-
- pet1.setName("really-happy");
- pet1.setPhotoUrls(Arrays.asList("http://foo.bar.com/1", "http://foo.bar.com/2"));
- assertTrue(pet1.equals(pet2));
- assertTrue(pet2.equals(pet1));
- assertTrue(pet1.hashCode() == pet2.hashCode());
- assertTrue(pet1.equals(pet1));
- assertTrue(pet1.hashCode() == pet1.hashCode());
+ public void updatePetWithFormTest() {
+
+ Integer petId = null;
+
+ Object body = null;
+
+ // api.updatePetWithForm(petId, body);
+
+ // TODO: test validations
}
+
+
+ /**
+ * uploads an image
+ *
+ *
+ */
@Test
- public void testCSVDelimitedArray() throws Exception {
- localServer.enqueue(new MockResponse().setBody("[{\"id\":5,\"name\":\"rocky\"}]"));
- localServer.start();
- PetApi api = localClient.setBasePath(localServer.url("/").toString()).buildClient(PetApi.class);
- PetApi.FindPetsByTagsQueryParams queryParams = new PetApi.FindPetsByTagsQueryParams()
- .tags(Arrays.asList("friendly","energetic"));
- List pets = api.findPetsByTags(queryParams);
- assertNotNull(pets);
- RecordedRequest request = localServer.takeRequest();
- assertThat(request.getPath()).contains("tags=friendly,energetic");
- localServer.shutdown();
+ public void uploadFileTest() {
+
+ Integer petId = null;
+
+ Object body = null;
+
+ // ModelApiResponse response = api.uploadFile(petId, body);
+
+ // TODO: test validations
}
- private Pet createRandomPet() {
- Pet pet = new Pet();
- pet.setId(TestUtils.nextId());
- pet.setName("gorilla");
-
- Category category = new Category();
- category.setName("really-happy");
-
- pet.setCategory(category);
- pet.setStatus(Pet.StatusEnum.AVAILABLE);
- List photos = Arrays.asList("http://foo.bar.com/1", "http://foo.bar.com/2");
- pet.setPhotoUrls(photos);
-
- return pet;
- }
+
+
}
diff --git a/samples/client/petstore/java/feign/src/test/java/io/swagger/client/api/StoreApiTest.java b/samples/client/petstore/java/feign/src/test/java/io/swagger/client/api/StoreApiTest.java
index 5492695f8aa..7d20b408550 100644
--- a/samples/client/petstore/java/feign/src/test/java/io/swagger/client/api/StoreApiTest.java
+++ b/samples/client/petstore/java/feign/src/test/java/io/swagger/client/api/StoreApiTest.java
@@ -1,82 +1,95 @@
package io.swagger.client.api;
-import feign.FeignException;
+import io.swagger.client.ApiClient;
+import io.swagger.client.model.Order;
-import io.swagger.TestUtils;
+import org.junit.Before;
+import org.junit.Test;
-import io.swagger.client.ApiClient;
-import io.swagger.client.model.*;
-import java.lang.reflect.Field;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
import java.util.Map;
-import org.junit.*;
-import org.threeten.bp.OffsetDateTime;
-
-import static org.junit.Assert.*;
+/**
+ * API tests for StoreApi
+ */
public class StoreApiTest {
+
private StoreApi api;
@Before
public void setup() {
- ApiClient apiClient = new ApiClient();
- api = apiClient.buildClient(StoreApi.class);
+ api = new ApiClient().buildClient(StoreApi.class);
}
+
+ /**
+ * Delete purchase order by ID
+ *
+ * For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
+ */
@Test
- public void testGetInventory() throws Exception {
- Map inventory = api.getInventory();
- assertTrue(inventory.keySet().size() > 0);
+ public void deleteOrderTest() {
+
+ String orderId = null;
+
+ // api.deleteOrder(orderId);
+
+ // TODO: test validations
}
+
+
+ /**
+ * Returns pet inventories by status
+ *
+ * Returns a map of status codes to quantities
+ */
@Test
- public void testPlaceOrder() throws Exception {
- Order order = createOrder();
- api.placeOrder(order);
-
- Order fetched = api.getOrderById(order.getId());
- assertEquals(order.getId(), fetched.getId());
- assertEquals(order.getPetId(), fetched.getPetId());
- assertEquals(order.getQuantity(), fetched.getQuantity());
- assertTrue(order.getShipDate().isEqual(fetched.getShipDate()));
+ public void getInventoryTest() {
+
+ // Map response = api.getInventory();
+
+ // TODO: test validations
}
+
+
+ /**
+ * Find purchase order by ID
+ *
+ * For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
+ */
@Test
- public void testDeleteOrder() throws Exception {
- Order order = createOrder();
- api.placeOrder(order);
+ public void getOrderByIdTest() {
+
+ Integer orderId = null;
+
+ // Order response = api.getOrderById(orderId);
- Order fetched = api.getOrderById(order.getId());
- assertEquals(fetched.getId(), order.getId());
+ // TODO: test validations
+ }
- api.deleteOrder(order.getId().toString());
+
+
+ /**
+ * Place an order for a pet
+ *
+ *
+ */
+ @Test
+ public void placeOrderTest() {
+
+ Order order = null;
+
+ // Order response = api.placeOrder(order);
- try {
- api.getOrderById(order.getId());
- fail("expected an error");
- } catch (FeignException e) {
- assertTrue(e.getMessage().startsWith("status 404 "));
- }
+ // TODO: test validations
}
- private Order createOrder() {
- Order order = new Order();
- order.setPetId(200L);
- order.setQuantity(13);
- //Ensure 3 fractional digits because of a bug in the petstore server
- order.setShipDate(OffsetDateTime.now().withNano(123000000));
- order.setStatus(Order.StatusEnum.PLACED);
- order.setComplete(true);
-
- try {
- Field idField = Order.class.getDeclaredField("id");
- idField.setAccessible(true);
- idField.set(order, TestUtils.nextId());
- } catch (Exception e) {
- throw new RuntimeException(e);
- }
-
- return order;
- }
+
+
}
diff --git a/samples/client/petstore/java/feign/src/test/java/io/swagger/client/api/UserApiTest.java b/samples/client/petstore/java/feign/src/test/java/io/swagger/client/api/UserApiTest.java
index d1c9b67f722..24bf0a5fe01 100644
--- a/samples/client/petstore/java/feign/src/test/java/io/swagger/client/api/UserApiTest.java
+++ b/samples/client/petstore/java/feign/src/test/java/io/swagger/client/api/UserApiTest.java
@@ -1,93 +1,193 @@
package io.swagger.client.api;
-import io.swagger.TestUtils;
-
import io.swagger.client.ApiClient;
-import io.swagger.client.model.*;
+import io.swagger.client.model.User;
+
+import org.junit.Before;
+import org.junit.Test;
+
-import java.util.Arrays;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
-import org.junit.*;
-import static org.junit.Assert.*;
+/**
+ * API tests for UserApi
+ */
public class UserApiTest {
+
private UserApi api;
@Before
public void setup() {
- ApiClient apiClient = new ApiClient();
- api = apiClient.buildClient(UserApi.class);
+ api = new ApiClient().buildClient(UserApi.class);
}
+
+ /**
+ * Create user
+ *
+ * This can only be done by the logged in user.
+ */
@Test
- public void testCreateUser() throws Exception {
- User user = createUser();
-
- api.createUser(user);
+ public void createUserTest() {
+
+ User user = null;
+
+ // api.createUser(user);
- User fetched = api.getUserByName(user.getUsername());
- assertEquals(user.getId(), fetched.getId());
+ // TODO: test validations
}
+
+
+ /**
+ * Creates list of users with given input array
+ *
+ *
+ */
@Test
- public void testCreateUsersWithArray() throws Exception {
- User user1 = createUser();
- user1.setUsername("user" + user1.getId());
- User user2 = createUser();
- user2.setUsername("user" + user2.getId());
+ public void createUsersWithArrayInputTest() {
+
+ List body = null;
+
+ // api.createUsersWithArrayInput(body);
- api.createUsersWithArrayInput(Arrays.asList(user1, user2));
-
- User fetched = api.getUserByName(user1.getUsername());
- assertEquals(user1.getId(), fetched.getId());
+ // TODO: test validations
}
+
+
+ /**
+ * Creates list of users with given input array
+ *
+ *
+ */
@Test
- public void testCreateUsersWithList() throws Exception {
- User user1 = createUser();
- user1.setUsername("user" + user1.getId());
- User user2 = createUser();
- user2.setUsername("user" + user2.getId());
+ public void createUsersWithListInputTest() {
+
+ List body = null;
+
+ // api.createUsersWithListInput(body);
- api.createUsersWithListInput(Arrays.asList(user1, user2));
+ // TODO: test validations
+ }
- User fetched = api.getUserByName(user1.getUsername());
- assertEquals(user1.getId(), fetched.getId());
+
+
+ /**
+ * Delete user
+ *
+ * This can only be done by the logged in user.
+ */
+ @Test
+ public void deleteUserTest() {
+
+ String username = null;
+
+ // api.deleteUser(username);
+
+ // TODO: test validations
}
- // ignore for the time being, please refer to the following for more info:
- // https://github.com/swagger-api/swagger-codegen/issues/1660
- @Ignore @Test
- public void testLoginUser() throws Exception {
- User user = createUser();
- api.createUser(user);
+
+
+ /**
+ * Get user by user name
+ *
+ *
+ */
+ @Test
+ public void getUserByNameTest() {
+
+ String username = null;
+
+ // User response = api.getUserByName(username);
- String token = api.loginUser(user.getUsername(), user.getPassword());
- assertTrue(token.startsWith("logged in user session:"));
+ // TODO: test validations
+ }
- UserApi.LoginUserQueryParams queryParams = new UserApi.LoginUserQueryParams()
- .username(user.getUsername())
- .password(user.getPassword());
- token = api.loginUser(queryParams);
- assertTrue(token.startsWith("logged in user session:"));
+
+
+ /**
+ * Logs user into the system
+ *
+ *
+ */
+ @Test
+ public void loginUserTest() {
+
+ String username = null;
+
+ String password = null;
+
+ // String response = api.loginUser(username, password);
+
+ // TODO: test validations
}
+
+ /**
+ * Logs user into the system
+ *
+ *
+ *
+ * This tests the overload of the method that uses a Map for query parameters instead of
+ * listing them out individually.
+ */
@Test
- public void logoutUser() throws Exception {
- api.logoutUser();
+ public void loginUserTestQueryMap() {
+
+
+
+
+
+ UserApi.LoginUserQueryParams queryParams = new UserApi.LoginUserQueryParams()
+
+ .username(null)
+
+ .password(null);
+
+ // String response = api.loginUser(queryParams);
+
+ // TODO: test validations
}
+
+
+ /**
+ * Logs out current logged in user session
+ *
+ *
+ */
+ @Test
+ public void logoutUserTest() {
+
+ // api.logoutUser();
- private User createUser() {
- User user = new User();
- user.setId(TestUtils.nextId());
- user.setUsername("fred" + user.getId());
- user.setFirstName("Fred");
- user.setLastName("Meyer");
- user.setEmail("fred@fredmeyer.com");
- user.setPassword("xxXXxx");
- user.setPhone("408-867-5309");
- user.setUserStatus(123);
-
- return user;
+ // TODO: test validations
}
+
+
+
+ /**
+ * Updated user
+ *
+ * This can only be done by the logged in user.
+ */
+ @Test
+ public void updateUserTest() {
+
+ User user = null;
+
+ String username = null;
+
+ // api.updateUser(user, username);
+
+ // TODO: test validations
+ }
+
+
+
}
diff --git a/samples/client/petstore/java/jersey1/.swagger-codegen/VERSION b/samples/client/petstore/java/jersey1/.swagger-codegen/VERSION
index 50794f17f1a..096bf47efe3 100644
--- a/samples/client/petstore/java/jersey1/.swagger-codegen/VERSION
+++ b/samples/client/petstore/java/jersey1/.swagger-codegen/VERSION
@@ -1 +1 @@
-2.3.1-SNAPSHOT
\ No newline at end of file
+3.0.0-SNAPSHOT
\ No newline at end of file
diff --git a/samples/client/petstore/java/jersey1/README.md b/samples/client/petstore/java/jersey1/README.md
index 264fe34c81a..5f1911dd209 100644
--- a/samples/client/petstore/java/jersey1/README.md
+++ b/samples/client/petstore/java/jersey1/README.md
@@ -61,32 +61,27 @@ Please follow the [installation](#installation) instruction and execute the foll
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
-import io.swagger.client.api.FakeApi;
+import io.swagger.client.api.AnotherFakeApi;
import java.io.File;
import java.util.*;
-public class FakeApiExample {
+public class AnotherFakeApiExample {
public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+
+
+ AnotherFakeApi apiInstance = new AnotherFakeApi();
+
+ Client client = ; // Client | client model
- FakeApi apiInstance = new FakeApi();
- BigDecimal number = new BigDecimal(); // BigDecimal | None
- Double _double = 3.4D; // Double | None
- String string = "string_example"; // String | None
- byte[] _byte = B; // byte[] | None
- Integer integer = 56; // Integer | None
- Integer int32 = 56; // Integer | None
- Long int64 = 789L; // Long | None
- Float _float = 3.4F; // Float | None
- byte[] binary = B; // byte[] | None
- LocalDate date = new LocalDate(); // LocalDate | None
- DateTime dateTime = new DateTime(); // DateTime | None
- String password = "password_example"; // String | None
try {
- apiInstance.testEndpointParameters(number, _double, string, _byte, integer, int32, int64, _float, binary, date, dateTime, password);
+ Client result = apiInstance.testSpecialTags(client);
+ System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling FakeApi#testEndpointParameters");
+ System.err.println("Exception when calling AnotherFakeApi#testSpecialTags");
e.printStackTrace();
}
}
@@ -96,12 +91,21 @@ public class FakeApiExample {
## Documentation for API Endpoints
-All URIs are relative to *http://petstore.swagger.io/v2*
+All URIs are relative to *http://petstore.swagger.io:80/v2*
Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
+*AnotherFakeApi* | [**testSpecialTags**](docs/AnotherFakeApi.md#testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags
+*FakeApi* | [**fakeOuterBooleanSerialize**](docs/FakeApi.md#fakeOuterBooleanSerialize) | **POST** /fake/outer/boolean |
+*FakeApi* | [**fakeOuterCompositeSerialize**](docs/FakeApi.md#fakeOuterCompositeSerialize) | **POST** /fake/outer/composite |
+*FakeApi* | [**fakeOuterNumberSerialize**](docs/FakeApi.md#fakeOuterNumberSerialize) | **POST** /fake/outer/number |
+*FakeApi* | [**fakeOuterStringSerialize**](docs/FakeApi.md#fakeOuterStringSerialize) | **POST** /fake/outer/string |
+*FakeApi* | [**testClientModel**](docs/FakeApi.md#testClientModel) | **PATCH** /fake | To test \"client\" model
*FakeApi* | [**testEndpointParameters**](docs/FakeApi.md#testEndpointParameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
-*FakeApi* | [**testEnumQueryParameters**](docs/FakeApi.md#testEnumQueryParameters) | **GET** /fake | To test enum query parameters
+*FakeApi* | [**testEnumParameters**](docs/FakeApi.md#testEnumParameters) | **GET** /fake | To test enum parameters
+*FakeApi* | [**testInlineAdditionalProperties**](docs/FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties
+*FakeApi* | [**testJsonFormData**](docs/FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data
+*FakeClassnameTags123Api* | [**testClassname**](docs/FakeClassnameTags123Api.md#testClassname) | **PATCH** /fake_classname_test | To test class name in snake case
*PetApi* | [**addPet**](docs/PetApi.md#addPet) | **POST** /pet | Add a new pet to the store
*PetApi* | [**deletePet**](docs/PetApi.md#deletePet) | **DELETE** /pet/{petId} | Deletes a pet
*PetApi* | [**findPetsByStatus**](docs/PetApi.md#findPetsByStatus) | **GET** /pet/findByStatus | Finds Pets by status
@@ -110,9 +114,9 @@ Class | Method | HTTP request | Description
*PetApi* | [**updatePet**](docs/PetApi.md#updatePet) | **PUT** /pet | Update an existing pet
*PetApi* | [**updatePetWithForm**](docs/PetApi.md#updatePetWithForm) | **POST** /pet/{petId} | Updates a pet in the store with form data
*PetApi* | [**uploadFile**](docs/PetApi.md#uploadFile) | **POST** /pet/{petId}/uploadImage | uploads an image
-*StoreApi* | [**deleteOrder**](docs/StoreApi.md#deleteOrder) | **DELETE** /store/order/{orderId} | Delete purchase order by ID
+*StoreApi* | [**deleteOrder**](docs/StoreApi.md#deleteOrder) | **DELETE** /store/order/{order_id} | Delete purchase order by ID
*StoreApi* | [**getInventory**](docs/StoreApi.md#getInventory) | **GET** /store/inventory | Returns pet inventories by status
-*StoreApi* | [**getOrderById**](docs/StoreApi.md#getOrderById) | **GET** /store/order/{orderId} | Find purchase order by ID
+*StoreApi* | [**getOrderById**](docs/StoreApi.md#getOrderById) | **GET** /store/order/{order_id} | Find purchase order by ID
*StoreApi* | [**placeOrder**](docs/StoreApi.md#placeOrder) | **POST** /store/order | Place an order for a pet
*UserApi* | [**createUser**](docs/UserApi.md#createUser) | **POST** /user | Create user
*UserApi* | [**createUsersWithArrayInput**](docs/UserApi.md#createUsersWithArrayInput) | **POST** /user/createWithArray | Creates list of users with given input array
@@ -128,13 +132,16 @@ Class | Method | HTTP request | Description
- [AdditionalPropertiesClass](docs/AdditionalPropertiesClass.md)
- [Animal](docs/Animal.md)
- - [AnimalFarm](docs/AnimalFarm.md)
- [ArrayOfArrayOfNumberOnly](docs/ArrayOfArrayOfNumberOnly.md)
- [ArrayOfNumberOnly](docs/ArrayOfNumberOnly.md)
- [ArrayTest](docs/ArrayTest.md)
+ - [Capitalization](docs/Capitalization.md)
- [Cat](docs/Cat.md)
- [Category](docs/Category.md)
+ - [ClassModel](docs/ClassModel.md)
+ - [Client](docs/Client.md)
- [Dog](docs/Dog.md)
+ - [EnumArrays](docs/EnumArrays.md)
- [EnumClass](docs/EnumClass.md)
- [EnumTest](docs/EnumTest.md)
- [FormatTest](docs/FormatTest.md)
@@ -147,6 +154,8 @@ Class | Method | HTTP request | Description
- [Name](docs/Name.md)
- [NumberOnly](docs/NumberOnly.md)
- [Order](docs/Order.md)
+ - [OuterComposite](docs/OuterComposite.md)
+ - [OuterEnum](docs/OuterEnum.md)
- [Pet](docs/Pet.md)
- [ReadOnlyFirst](docs/ReadOnlyFirst.md)
- [SpecialModelName](docs/SpecialModelName.md)
@@ -163,19 +172,42 @@ Authentication schemes defined for the API:
- **API key parameter name**: api_key
- **Location**: HTTP header
+
+
+
+### api_key_query
+
+- **Type**: API key
+- **API key parameter name**: api_key_query
+- **Location**: URL query string
+
+
+
+
+### http_basic_test
+
+
+- **Type**: HTTP basic authentication
+
+
+
### petstore_auth
+
+
- **Type**: OAuth
- **Flow**: implicit
- **Authorization URL**: http://petstore.swagger.io/api/oauth/dialog
- **Scopes**:
- - write:pets: modify pets in your account
- - read:pets: read your pets
+ - :
+
+
+
## Recommendation
-It's recommended to create an instance of `ApiClient` per thread in a multithreaded environment to avoid any potential issue.
+It's recommended to create an instance of `ApiClient` per thread in a multithreaded environment to avoid any potential issues.
## Author
diff --git a/samples/client/petstore/java/jersey1/build.gradle b/samples/client/petstore/java/jersey1/build.gradle
index 1845b51a5dc..59e640f259f 100644
--- a/samples/client/petstore/java/jersey1/build.gradle
+++ b/samples/client/petstore/java/jersey1/build.gradle
@@ -32,8 +32,11 @@ if(hasProperty('target') && target == 'android') {
targetSdkVersion 25
}
compileOptions {
+
+
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
+
}
// Rename the aar correctly
@@ -78,8 +81,11 @@ if(hasProperty('target') && target == 'android') {
apply plugin: 'java'
apply plugin: 'maven'
+
+
sourceCompatibility = JavaVersion.VERSION_1_7
targetCompatibility = JavaVersion.VERSION_1_7
+
install {
repositories.mavenInstaller {
@@ -109,7 +115,13 @@ dependencies {
compile "com.fasterxml.jackson.core:jackson-annotations:$jackson_version"
compile "com.fasterxml.jackson.core:jackson-databind:$jackson_version"
compile "com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:$jackson_version"
+
+
+
compile "com.github.joschi.jackson:jackson-datatype-threetenbp:$jackson_version",
+
+
compile "com.brsanthu:migbase64:2.2"
+
testCompile "junit:junit:$junit_version"
}
diff --git a/samples/client/petstore/java/jersey1/docs/AdditionalPropertiesClass.md b/samples/client/petstore/java/jersey1/docs/AdditionalPropertiesClass.md
index 0437c4dd8cc..b37862da7cf 100644
--- a/samples/client/petstore/java/jersey1/docs/AdditionalPropertiesClass.md
+++ b/samples/client/petstore/java/jersey1/docs/AdditionalPropertiesClass.md
@@ -9,3 +9,4 @@ Name | Type | Description | Notes
+
diff --git a/samples/client/petstore/java/jersey1/docs/Animal.md b/samples/client/petstore/java/jersey1/docs/Animal.md
index b3f325c3524..346caaf63f4 100644
--- a/samples/client/petstore/java/jersey1/docs/Animal.md
+++ b/samples/client/petstore/java/jersey1/docs/Animal.md
@@ -9,3 +9,4 @@ Name | Type | Description | Notes
+
diff --git a/samples/client/petstore/java/jersey1/docs/AnimalFarm.md b/samples/client/petstore/java/jersey1/docs/AnimalFarm.md
deleted file mode 100644
index c7c7f1ddcce..00000000000
--- a/samples/client/petstore/java/jersey1/docs/AnimalFarm.md
+++ /dev/null
@@ -1,9 +0,0 @@
-
-# AnimalFarm
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-
-
-
diff --git a/samples/client/petstore/java/jersey1/docs/AnotherFakeApi.md b/samples/client/petstore/java/jersey1/docs/AnotherFakeApi.md
index 7a04619aaba..fb5c988e6cc 100644
--- a/samples/client/petstore/java/jersey1/docs/AnotherFakeApi.md
+++ b/samples/client/petstore/java/jersey1/docs/AnotherFakeApi.md
@@ -7,9 +7,11 @@ Method | HTTP request | Description
[**testSpecialTags**](AnotherFakeApi.md#testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags
+
+
# **testSpecialTags**
-> Client testSpecialTags(body)
+> Client testSpecialTags(client)
To test special tags
@@ -22,10 +24,13 @@ To test special tags
//import io.swagger.client.api.AnotherFakeApi;
+
AnotherFakeApi apiInstance = new AnotherFakeApi();
-Client body = new Client(); // Client | client model
+
+Client client = ; // Client | client model
+
try {
- Client result = apiInstance.testSpecialTags(body);
+ Client result = apiInstance.testSpecialTags(client);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AnotherFakeApi#testSpecialTags");
@@ -37,7 +42,8 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**Client**](Client.md)| client model |
+ **client** | [**Client**](.md)| client model |
+
### Return type
@@ -52,3 +58,5 @@ No authorization required
- **Content-Type**: application/json
- **Accept**: application/json
+
+
diff --git a/samples/client/petstore/java/jersey1/docs/ArrayOfArrayOfNumberOnly.md b/samples/client/petstore/java/jersey1/docs/ArrayOfArrayOfNumberOnly.md
index 77292549927..3671a5e9190 100644
--- a/samples/client/petstore/java/jersey1/docs/ArrayOfArrayOfNumberOnly.md
+++ b/samples/client/petstore/java/jersey1/docs/ArrayOfArrayOfNumberOnly.md
@@ -8,3 +8,4 @@ Name | Type | Description | Notes
+
diff --git a/samples/client/petstore/java/jersey1/docs/ArrayOfNumberOnly.md b/samples/client/petstore/java/jersey1/docs/ArrayOfNumberOnly.md
index e8cc4cd36dc..30b9b6648f4 100644
--- a/samples/client/petstore/java/jersey1/docs/ArrayOfNumberOnly.md
+++ b/samples/client/petstore/java/jersey1/docs/ArrayOfNumberOnly.md
@@ -8,3 +8,4 @@ Name | Type | Description | Notes
+
diff --git a/samples/client/petstore/java/jersey1/docs/ArrayTest.md b/samples/client/petstore/java/jersey1/docs/ArrayTest.md
index 9feee16427f..4ab76343030 100644
--- a/samples/client/petstore/java/jersey1/docs/ArrayTest.md
+++ b/samples/client/petstore/java/jersey1/docs/ArrayTest.md
@@ -10,3 +10,4 @@ Name | Type | Description | Notes
+
diff --git a/samples/client/petstore/java/jersey1/docs/Capitalization.md b/samples/client/petstore/java/jersey1/docs/Capitalization.md
index 0f3064c1996..9af7864f97e 100644
--- a/samples/client/petstore/java/jersey1/docs/Capitalization.md
+++ b/samples/client/petstore/java/jersey1/docs/Capitalization.md
@@ -13,3 +13,4 @@ Name | Type | Description | Notes
+
diff --git a/samples/client/petstore/java/jersey1/docs/Cat.md b/samples/client/petstore/java/jersey1/docs/Cat.md
index 6e9f71ce7dd..5e408344021 100644
--- a/samples/client/petstore/java/jersey1/docs/Cat.md
+++ b/samples/client/petstore/java/jersey1/docs/Cat.md
@@ -4,7 +4,10 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
+**className** | **String** | |
+**color** | **String** | | [optional]
**declawed** | **Boolean** | | [optional]
+
diff --git a/samples/client/petstore/java/jersey1/docs/Category.md b/samples/client/petstore/java/jersey1/docs/Category.md
index e2df0803278..deb5a3e2a52 100644
--- a/samples/client/petstore/java/jersey1/docs/Category.md
+++ b/samples/client/petstore/java/jersey1/docs/Category.md
@@ -9,3 +9,4 @@ Name | Type | Description | Notes
+
diff --git a/samples/client/petstore/java/jersey1/docs/ClassModel.md b/samples/client/petstore/java/jersey1/docs/ClassModel.md
index 64f880c8786..49c281cc0ed 100644
--- a/samples/client/petstore/java/jersey1/docs/ClassModel.md
+++ b/samples/client/petstore/java/jersey1/docs/ClassModel.md
@@ -8,3 +8,4 @@ Name | Type | Description | Notes
+
diff --git a/samples/client/petstore/java/jersey1/docs/Client.md b/samples/client/petstore/java/jersey1/docs/Client.md
index 5c490ea166c..52b2f72c79c 100644
--- a/samples/client/petstore/java/jersey1/docs/Client.md
+++ b/samples/client/petstore/java/jersey1/docs/Client.md
@@ -8,3 +8,4 @@ Name | Type | Description | Notes
+
diff --git a/samples/client/petstore/java/jersey1/docs/Dog.md b/samples/client/petstore/java/jersey1/docs/Dog.md
index ac7cea323ff..00e6446e9f5 100644
--- a/samples/client/petstore/java/jersey1/docs/Dog.md
+++ b/samples/client/petstore/java/jersey1/docs/Dog.md
@@ -4,7 +4,10 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
+**className** | **String** | |
+**color** | **String** | | [optional]
**breed** | **String** | | [optional]
+
diff --git a/samples/client/petstore/java/jersey1/docs/EnumArrays.md b/samples/client/petstore/java/jersey1/docs/EnumArrays.md
index 4dddc0bfd27..939a0e69587 100644
--- a/samples/client/petstore/java/jersey1/docs/EnumArrays.md
+++ b/samples/client/petstore/java/jersey1/docs/EnumArrays.md
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
**arrayEnum** | [**List<ArrayEnumEnum>**](#List<ArrayEnumEnum>) | | [optional]
+
## Enum: JustSymbolEnum
Name | Value
@@ -20,8 +21,6 @@ DOLLAR | "$"
## Enum: List<ArrayEnumEnum>
Name | Value
---- | -----
-FISH | "fish"
-CRAB | "crab"
diff --git a/samples/client/petstore/java/jersey1/docs/EnumTest.md b/samples/client/petstore/java/jersey1/docs/EnumTest.md
index 08fee344882..9722c621962 100644
--- a/samples/client/petstore/java/jersey1/docs/EnumTest.md
+++ b/samples/client/petstore/java/jersey1/docs/EnumTest.md
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
**outerEnum** | [**OuterEnum**](OuterEnum.md) | | [optional]
+
## Enum: EnumStringEnum
Name | Value
diff --git a/samples/client/petstore/java/jersey1/docs/FakeApi.md b/samples/client/petstore/java/jersey1/docs/FakeApi.md
index 737ccc28293..6690b870e4e 100644
--- a/samples/client/petstore/java/jersey1/docs/FakeApi.md
+++ b/samples/client/petstore/java/jersey1/docs/FakeApi.md
@@ -15,6 +15,8 @@ Method | HTTP request | Description
[**testJsonFormData**](FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data
+
+
# **fakeOuterBooleanSerialize**
> Boolean fakeOuterBooleanSerialize(body)
@@ -30,8 +32,11 @@ Test serialization of outer boolean types
//import io.swagger.client.api.FakeApi;
+
FakeApi apiInstance = new FakeApi();
-Boolean body = true; // Boolean | Input boolean as post body
+
+Boolean body = ; // Boolean | Input boolean as post body
+
try {
Boolean result = apiInstance.fakeOuterBooleanSerialize(body);
System.out.println(result);
@@ -47,6 +52,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**Boolean**](Boolean.md)| Input boolean as post body | [optional]
+
### Return type
**Boolean**
@@ -57,12 +63,13 @@ No authorization required
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: Not defined
+ - **Content-Type**: */*
+ - **Accept**: */*
+
# **fakeOuterCompositeSerialize**
-> OuterComposite fakeOuterCompositeSerialize(body)
+> OuterComposite fakeOuterCompositeSerialize(outercomposite)
@@ -75,10 +82,13 @@ Test serialization of object with outer number type
//import io.swagger.client.api.FakeApi;
+
FakeApi apiInstance = new FakeApi();
-OuterComposite body = new OuterComposite(); // OuterComposite | Input composite as post body
+
+OuterComposite outercomposite = ; // OuterComposite | Input composite as post body
+
try {
- OuterComposite result = apiInstance.fakeOuterCompositeSerialize(body);
+ OuterComposite result = apiInstance.fakeOuterCompositeSerialize(outercomposite);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FakeApi#fakeOuterCompositeSerialize");
@@ -90,7 +100,8 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional]
+ **outercomposite** | [**OuterComposite**](.md)| Input composite as post body | [optional]
+
### Return type
@@ -102,8 +113,9 @@ No authorization required
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: Not defined
+ - **Content-Type**: */*
+ - **Accept**: */*
+
# **fakeOuterNumberSerialize**
@@ -120,8 +132,11 @@ Test serialization of outer number types
//import io.swagger.client.api.FakeApi;
+
FakeApi apiInstance = new FakeApi();
-BigDecimal body = new BigDecimal(); // BigDecimal | Input number as post body
+
+BigDecimal body = ; // BigDecimal | Input number as post body
+
try {
BigDecimal result = apiInstance.fakeOuterNumberSerialize(body);
System.out.println(result);
@@ -137,6 +152,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**BigDecimal**](BigDecimal.md)| Input number as post body | [optional]
+
### Return type
[**BigDecimal**](BigDecimal.md)
@@ -147,8 +163,9 @@ No authorization required
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: Not defined
+ - **Content-Type**: */*
+ - **Accept**: */*
+
# **fakeOuterStringSerialize**
@@ -165,8 +182,11 @@ Test serialization of outer string types
//import io.swagger.client.api.FakeApi;
+
FakeApi apiInstance = new FakeApi();
-String body = "body_example"; // String | Input string as post body
+
+String body = ; // String | Input string as post body
+
try {
String result = apiInstance.fakeOuterStringSerialize(body);
System.out.println(result);
@@ -182,6 +202,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**String**](String.md)| Input string as post body | [optional]
+
### Return type
**String**
@@ -192,12 +213,13 @@ No authorization required
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: Not defined
+ - **Content-Type**: */*
+ - **Accept**: */*
+
# **testClientModel**
-> Client testClientModel(body)
+> Client testClientModel(client)
To test \"client\" model
@@ -210,10 +232,13 @@ To test \"client\" model
//import io.swagger.client.api.FakeApi;
+
FakeApi apiInstance = new FakeApi();
-Client body = new Client(); // Client | client model
+
+Client client = ; // Client | client model
+
try {
- Client result = apiInstance.testClientModel(body);
+ Client result = apiInstance.testClientModel(client);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testClientModel");
@@ -225,7 +250,8 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**Client**](Client.md)| client model |
+ **client** | [**Client**](.md)| client model |
+
### Return type
@@ -240,9 +266,10 @@ No authorization required
- **Content-Type**: application/json
- **Accept**: application/json
+
# **testEndpointParameters**
-> testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback)
+> testEndpointParameters(body)
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
@@ -251,36 +278,17 @@ Fake endpoint for testing various parameters 假端點 偽のエンドポイン
### Example
```java
// Import classes:
-//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
-//import io.swagger.client.Configuration;
-//import io.swagger.client.auth.*;
//import io.swagger.client.api.FakeApi;
-ApiClient defaultClient = Configuration.getDefaultApiClient();
-// Configure HTTP basic authorization: http_basic_test
-HttpBasicAuth http_basic_test = (HttpBasicAuth) defaultClient.getAuthentication("http_basic_test");
-http_basic_test.setUsername("YOUR USERNAME");
-http_basic_test.setPassword("YOUR PASSWORD");
FakeApi apiInstance = new FakeApi();
-BigDecimal number = new BigDecimal(); // BigDecimal | None
-Double _double = 3.4D; // Double | None
-String patternWithoutDelimiter = "patternWithoutDelimiter_example"; // String | None
-byte[] _byte = B; // byte[] | None
-Integer integer = 56; // Integer | None
-Integer int32 = 56; // Integer | None
-Long int64 = 789L; // Long | None
-Float _float = 3.4F; // Float | None
-String string = "string_example"; // String | None
-byte[] binary = B; // byte[] | None
-LocalDate date = new LocalDate(); // LocalDate | None
-OffsetDateTime dateTime = new OffsetDateTime(); // OffsetDateTime | None
-String password = "password_example"; // String | None
-String paramCallback = "paramCallback_example"; // String | None
+
+Object body = ; // Object |
+
try {
- apiInstance.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback);
+ apiInstance.testEndpointParameters(body);
} catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testEndpointParameters");
e.printStackTrace();
@@ -291,20 +299,8 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **number** | **BigDecimal**| None |
- **_double** | **Double**| None |
- **patternWithoutDelimiter** | **String**| None |
- **_byte** | **byte[]**| None |
- **integer** | **Integer**| None | [optional]
- **int32** | **Integer**| None | [optional]
- **int64** | **Long**| None | [optional]
- **_float** | **Float**| None | [optional]
- **string** | **String**| None | [optional]
- **binary** | **byte[]**| None | [optional]
- **date** | **LocalDate**| None | [optional]
- **dateTime** | **OffsetDateTime**| None | [optional]
- **password** | **String**| None | [optional]
- **paramCallback** | **String**| None | [optional]
+ **body** | [**Object**](Object.md)| |
+
### Return type
@@ -317,11 +313,12 @@ null (empty response body)
### HTTP request headers
- **Content-Type**: application/xml; charset=utf-8, application/json; charset=utf-8
- - **Accept**: application/xml; charset=utf-8, application/json; charset=utf-8
+ - **Accept**: Not defined
+
# **testEnumParameters**
-> testEnumParameters(enumFormStringArray, enumFormString, enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble)
+> testEnumParameters(body, enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger)
To test enum parameters
@@ -334,17 +331,23 @@ To test enum parameters
//import io.swagger.client.api.FakeApi;
+
FakeApi apiInstance = new FakeApi();
-List enumFormStringArray = Arrays.asList("enumFormStringArray_example"); // List | Form parameter enum test (string array)
-String enumFormString = "-efg"; // String | Form parameter enum test (string)
+
+Object body = ; // Object |
+
List enumHeaderStringArray = Arrays.asList("enumHeaderStringArray_example"); // List | Header parameter enum test (string array)
-String enumHeaderString = "-efg"; // String | Header parameter enum test (string)
+
+String enumHeaderString = Arrays.asList("enumHeaderString_example"); // String | Header parameter enum test (string)
+
List enumQueryStringArray = Arrays.asList("enumQueryStringArray_example"); // List | Query parameter enum test (string array)
-String enumQueryString = "-efg"; // String | Query parameter enum test (string)
-Integer enumQueryInteger = 56; // Integer | Query parameter enum test (double)
-Double enumQueryDouble = 3.4D; // Double | Query parameter enum test (double)
+
+String enumQueryString = Arrays.asList("enumQueryString_example"); // String | Query parameter enum test (string)
+
+Integer enumQueryInteger = Arrays.asList(56); // Integer | Query parameter enum test (double)
+
try {
- apiInstance.testEnumParameters(enumFormStringArray, enumFormString, enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble);
+ apiInstance.testEnumParameters(body, enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger);
} catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testEnumParameters");
e.printStackTrace();
@@ -355,14 +358,13 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **enumFormStringArray** | [**List<String>**](String.md)| Form parameter enum test (string array) | [optional] [enum: >, $]
- **enumFormString** | **String**| Form parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)]
- **enumHeaderStringArray** | [**List<String>**](String.md)| Header parameter enum test (string array) | [optional] [enum: >, $]
- **enumHeaderString** | **String**| Header parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)]
- **enumQueryStringArray** | [**List<String>**](String.md)| Query parameter enum test (string array) | [optional] [enum: >, $]
- **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)]
- **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, -2]
- **enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional] [enum: 1.1, -1.2]
+ **body** | [**Object**](Object.md)| | [optional]
+ **enumHeaderStringArray** | [**List<String>**](String.md)| Header parameter enum test (string array) | [optional] [enum: ]
+ **enumHeaderString** | [**String**](.md)| Header parameter enum test (string) | [optional]
+ **enumQueryStringArray** | [**List<String>**](String.md)| Query parameter enum test (string array) | [optional] [enum: ]
+ **enumQueryString** | [**String**](.md)| Query parameter enum test (string) | [optional]
+ **enumQueryInteger** | [**Integer**](.md)| Query parameter enum test (double) | [optional]
+
### Return type
@@ -375,16 +377,15 @@ No authorization required
### HTTP request headers
- **Content-Type**: */*
- - **Accept**: */*
+ - **Accept**: Not defined
+
# **testInlineAdditionalProperties**
-> testInlineAdditionalProperties(param)
+> testInlineAdditionalProperties(body)
test inline additionalProperties
-
-
### Example
```java
// Import classes:
@@ -392,10 +393,13 @@ test inline additionalProperties
//import io.swagger.client.api.FakeApi;
+
FakeApi apiInstance = new FakeApi();
-Object param = null; // Object | request body
+
+Map body = ; // Map | request body
+
try {
- apiInstance.testInlineAdditionalProperties(param);
+ apiInstance.testInlineAdditionalProperties(body);
} catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testInlineAdditionalProperties");
e.printStackTrace();
@@ -406,7 +410,8 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **param** | **Object**| request body |
+ **body** | [**Map<String, String>**](Map.md)| request body |
+
### Return type
@@ -421,14 +426,13 @@ No authorization required
- **Content-Type**: application/json
- **Accept**: Not defined
+
# **testJsonFormData**
-> testJsonFormData(param, param2)
+> testJsonFormData(body)
test json serialization of form data
-
-
### Example
```java
// Import classes:
@@ -436,11 +440,13 @@ test json serialization of form data
//import io.swagger.client.api.FakeApi;
+
FakeApi apiInstance = new FakeApi();
-String param = "param_example"; // String | field1
-String param2 = "param2_example"; // String | field2
+
+Object body = ; // Object |
+
try {
- apiInstance.testJsonFormData(param, param2);
+ apiInstance.testJsonFormData(body);
} catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testJsonFormData");
e.printStackTrace();
@@ -451,8 +457,8 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **param** | **String**| field1 |
- **param2** | **String**| field2 |
+ **body** | [**Object**](Object.md)| |
+
### Return type
@@ -467,3 +473,5 @@ No authorization required
- **Content-Type**: application/json
- **Accept**: Not defined
+
+
diff --git a/samples/client/petstore/java/jersey1/docs/FakeClassnameTags123Api.md b/samples/client/petstore/java/jersey1/docs/FakeClassnameTags123Api.md
index bc728bfce5b..2bcbbb7908f 100644
--- a/samples/client/petstore/java/jersey1/docs/FakeClassnameTags123Api.md
+++ b/samples/client/petstore/java/jersey1/docs/FakeClassnameTags123Api.md
@@ -7,33 +7,28 @@ Method | HTTP request | Description
[**testClassname**](FakeClassnameTags123Api.md#testClassname) | **PATCH** /fake_classname_test | To test class name in snake case
+
+
# **testClassname**
-> Client testClassname(body)
+> Client testClassname(client)
To test class name in snake case
### Example
```java
// Import classes:
-//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
-//import io.swagger.client.Configuration;
-//import io.swagger.client.auth.*;
//import io.swagger.client.api.FakeClassnameTags123Api;
-ApiClient defaultClient = Configuration.getDefaultApiClient();
-// Configure API key authorization: api_key_query
-ApiKeyAuth api_key_query = (ApiKeyAuth) defaultClient.getAuthentication("api_key_query");
-api_key_query.setApiKey("YOUR API KEY");
-// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-//api_key_query.setApiKeyPrefix("Token");
FakeClassnameTags123Api apiInstance = new FakeClassnameTags123Api();
-Client body = new Client(); // Client | client model
+
+Client client = ; // Client | client model
+
try {
- Client result = apiInstance.testClassname(body);
+ Client result = apiInstance.testClassname(client);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FakeClassnameTags123Api#testClassname");
@@ -45,7 +40,8 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**Client**](Client.md)| client model |
+ **client** | [**Client**](.md)| client model |
+
### Return type
@@ -60,3 +56,5 @@ Name | Type | Description | Notes
- **Content-Type**: application/json
- **Accept**: application/json
+
+
diff --git a/samples/client/petstore/java/jersey1/docs/Fake_classname_tags123Api.md b/samples/client/petstore/java/jersey1/docs/Fake_classname_tags123Api.md
deleted file mode 100644
index 56f7c9ea1ff..00000000000
--- a/samples/client/petstore/java/jersey1/docs/Fake_classname_tags123Api.md
+++ /dev/null
@@ -1,52 +0,0 @@
-# Fake_classname_tags123Api
-
-All URIs are relative to *http://petstore.swagger.io/v2*
-
-Method | HTTP request | Description
-------------- | ------------- | -------------
-[**testClassname**](Fake_classname_tags123Api.md#testClassname) | **PATCH** /fake_classname_test | To test class name in snake case
-
-
-
-# **testClassname**
-> Client testClassname(body)
-
-To test class name in snake case
-
-### Example
-```java
-// Import classes:
-//import io.swagger.client.ApiException;
-//import io.swagger.client.api.Fake_classname_tags123Api;
-
-
-Fake_classname_tags123Api apiInstance = new Fake_classname_tags123Api();
-Client body = new Client(); // Client | client model
-try {
- Client result = apiInstance.testClassname(body);
- System.out.println(result);
-} catch (ApiException e) {
- System.err.println("Exception when calling Fake_classname_tags123Api#testClassname");
- e.printStackTrace();
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **body** | [**Client**](Client.md)| client model |
-
-### Return type
-
-[**Client**](Client.md)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: application/json
-
diff --git a/samples/client/petstore/java/jersey1/docs/FakeclassnametagsApi.md b/samples/client/petstore/java/jersey1/docs/FakeclassnametagsApi.md
deleted file mode 100644
index f8ec0768e1f..00000000000
--- a/samples/client/petstore/java/jersey1/docs/FakeclassnametagsApi.md
+++ /dev/null
@@ -1,52 +0,0 @@
-# FakeclassnametagsApi
-
-All URIs are relative to *http://petstore.swagger.io/v2*
-
-Method | HTTP request | Description
-------------- | ------------- | -------------
-[**testClassname**](FakeclassnametagsApi.md#testClassname) | **PATCH** /fake_classname_test | To test class name in snake case
-
-
-
-# **testClassname**
-> Client testClassname(body)
-
-To test class name in snake case
-
-### Example
-```java
-// Import classes:
-//import io.swagger.client.ApiException;
-//import io.swagger.client.api.FakeclassnametagsApi;
-
-
-FakeclassnametagsApi apiInstance = new FakeclassnametagsApi();
-Client body = new Client(); // Client | client model
-try {
- Client result = apiInstance.testClassname(body);
- System.out.println(result);
-} catch (ApiException e) {
- System.err.println("Exception when calling FakeclassnametagsApi#testClassname");
- e.printStackTrace();
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **body** | [**Client**](Client.md)| client model |
-
-### Return type
-
-[**Client**](Client.md)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: application/json
-
diff --git a/samples/client/petstore/java/jersey1/docs/FormatTest.md b/samples/client/petstore/java/jersey1/docs/FormatTest.md
index c7a3acb3cb7..bc11b93cb26 100644
--- a/samples/client/petstore/java/jersey1/docs/FormatTest.md
+++ b/samples/client/petstore/java/jersey1/docs/FormatTest.md
@@ -11,8 +11,8 @@ Name | Type | Description | Notes
**_float** | **Float** | | [optional]
**_double** | **Double** | | [optional]
**string** | **String** | | [optional]
-**_byte** | **byte[]** | |
-**binary** | **byte[]** | | [optional]
+**_byte** | **String** | |
+**binary** | **String** | | [optional]
**date** | [**LocalDate**](LocalDate.md) | |
**dateTime** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional]
**uuid** | [**UUID**](UUID.md) | | [optional]
@@ -20,3 +20,4 @@ Name | Type | Description | Notes
+
diff --git a/samples/client/petstore/java/jersey1/docs/HasOnlyReadOnly.md b/samples/client/petstore/java/jersey1/docs/HasOnlyReadOnly.md
index c1d0aac5672..5564ddcf28a 100644
--- a/samples/client/petstore/java/jersey1/docs/HasOnlyReadOnly.md
+++ b/samples/client/petstore/java/jersey1/docs/HasOnlyReadOnly.md
@@ -9,3 +9,4 @@ Name | Type | Description | Notes
+
diff --git a/samples/client/petstore/java/jersey1/docs/MapTest.md b/samples/client/petstore/java/jersey1/docs/MapTest.md
index 714a97a40d9..74a6fe8ae70 100644
--- a/samples/client/petstore/java/jersey1/docs/MapTest.md
+++ b/samples/client/petstore/java/jersey1/docs/MapTest.md
@@ -8,12 +8,11 @@ Name | Type | Description | Notes
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
+
## Enum: Map<String, InnerEnum>
Name | Value
---- | -----
-UPPER | "UPPER"
-LOWER | "lower"
diff --git a/samples/client/petstore/java/jersey1/docs/MixedPropertiesAndAdditionalPropertiesClass.md b/samples/client/petstore/java/jersey1/docs/MixedPropertiesAndAdditionalPropertiesClass.md
index b12e2cd70e6..4507481b5a9 100644
--- a/samples/client/petstore/java/jersey1/docs/MixedPropertiesAndAdditionalPropertiesClass.md
+++ b/samples/client/petstore/java/jersey1/docs/MixedPropertiesAndAdditionalPropertiesClass.md
@@ -10,3 +10,4 @@ Name | Type | Description | Notes
+
diff --git a/samples/client/petstore/java/jersey1/docs/Model200Response.md b/samples/client/petstore/java/jersey1/docs/Model200Response.md
index 5b3a9a0e46d..8d2cc50bb83 100644
--- a/samples/client/petstore/java/jersey1/docs/Model200Response.md
+++ b/samples/client/petstore/java/jersey1/docs/Model200Response.md
@@ -9,3 +9,4 @@ Name | Type | Description | Notes
+
diff --git a/samples/client/petstore/java/jersey1/docs/ModelApiResponse.md b/samples/client/petstore/java/jersey1/docs/ModelApiResponse.md
index 3eec8686cc9..06052b202f1 100644
--- a/samples/client/petstore/java/jersey1/docs/ModelApiResponse.md
+++ b/samples/client/petstore/java/jersey1/docs/ModelApiResponse.md
@@ -10,3 +10,4 @@ Name | Type | Description | Notes
+
diff --git a/samples/client/petstore/java/jersey1/docs/ModelReturn.md b/samples/client/petstore/java/jersey1/docs/ModelReturn.md
index a679b04953e..a7845ba254b 100644
--- a/samples/client/petstore/java/jersey1/docs/ModelReturn.md
+++ b/samples/client/petstore/java/jersey1/docs/ModelReturn.md
@@ -8,3 +8,4 @@ Name | Type | Description | Notes
+
diff --git a/samples/client/petstore/java/jersey1/docs/Name.md b/samples/client/petstore/java/jersey1/docs/Name.md
index ce2fb4dee50..a8d6fec9714 100644
--- a/samples/client/petstore/java/jersey1/docs/Name.md
+++ b/samples/client/petstore/java/jersey1/docs/Name.md
@@ -11,3 +11,4 @@ Name | Type | Description | Notes
+
diff --git a/samples/client/petstore/java/jersey1/docs/NumberOnly.md b/samples/client/petstore/java/jersey1/docs/NumberOnly.md
index a3feac7fadc..adfb36a95bb 100644
--- a/samples/client/petstore/java/jersey1/docs/NumberOnly.md
+++ b/samples/client/petstore/java/jersey1/docs/NumberOnly.md
@@ -8,3 +8,4 @@ Name | Type | Description | Notes
+
diff --git a/samples/client/petstore/java/jersey1/docs/Order.md b/samples/client/petstore/java/jersey1/docs/Order.md
index 268c617d1ff..7e4beff6df1 100644
--- a/samples/client/petstore/java/jersey1/docs/Order.md
+++ b/samples/client/petstore/java/jersey1/docs/Order.md
@@ -12,6 +12,7 @@ Name | Type | Description | Notes
**complete** | **Boolean** | | [optional]
+
## Enum: StatusEnum
Name | Value
diff --git a/samples/client/petstore/java/jersey1/docs/OuterComposite.md b/samples/client/petstore/java/jersey1/docs/OuterComposite.md
index 3f5a633c998..1963c7a0f73 100644
--- a/samples/client/petstore/java/jersey1/docs/OuterComposite.md
+++ b/samples/client/petstore/java/jersey1/docs/OuterComposite.md
@@ -10,3 +10,4 @@ Name | Type | Description | Notes
+
diff --git a/samples/client/petstore/java/jersey1/docs/Pet.md b/samples/client/petstore/java/jersey1/docs/Pet.md
index 5b63109ef92..1492195a58d 100644
--- a/samples/client/petstore/java/jersey1/docs/Pet.md
+++ b/samples/client/petstore/java/jersey1/docs/Pet.md
@@ -12,6 +12,7 @@ Name | Type | Description | Notes
**status** | [**StatusEnum**](#StatusEnum) | pet status in the store | [optional]
+
## Enum: StatusEnum
Name | Value
diff --git a/samples/client/petstore/java/jersey1/docs/PetApi.md b/samples/client/petstore/java/jersey1/docs/PetApi.md
index b5fa395947d..4758743434a 100644
--- a/samples/client/petstore/java/jersey1/docs/PetApi.md
+++ b/samples/client/petstore/java/jersey1/docs/PetApi.md
@@ -14,33 +14,28 @@ Method | HTTP request | Description
[**uploadFile**](PetApi.md#uploadFile) | **POST** /pet/{petId}/uploadImage | uploads an image
+
+
# **addPet**
-> addPet(body)
+> addPet(pet)
Add a new pet to the store
-
-
### Example
```java
// Import classes:
-//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
-//import io.swagger.client.Configuration;
-//import io.swagger.client.auth.*;
//import io.swagger.client.api.PetApi;
-ApiClient defaultClient = Configuration.getDefaultApiClient();
-// Configure OAuth2 access token for authorization: petstore_auth
-OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
-petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
PetApi apiInstance = new PetApi();
-Pet body = new Pet(); // Pet | Pet object that needs to be added to the store
+
+Pet pet = ; // Pet | Pet object that needs to be added to the store
+
try {
- apiInstance.addPet(body);
+ apiInstance.addPet(pet);
} catch (ApiException e) {
System.err.println("Exception when calling PetApi#addPet");
e.printStackTrace();
@@ -51,7 +46,8 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
+ **pet** | [**Pet**](.md)| Pet object that needs to be added to the store |
+
### Return type
@@ -64,7 +60,8 @@ null (empty response body)
### HTTP request headers
- **Content-Type**: application/json, application/xml
- - **Accept**: application/xml, application/json
+ - **Accept**: Not defined
+
# **deletePet**
@@ -72,26 +69,20 @@ null (empty response body)
Deletes a pet
-
-
### Example
```java
// Import classes:
-//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
-//import io.swagger.client.Configuration;
-//import io.swagger.client.auth.*;
//import io.swagger.client.api.PetApi;
-ApiClient defaultClient = Configuration.getDefaultApiClient();
-// Configure OAuth2 access token for authorization: petstore_auth
-OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
-petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
PetApi apiInstance = new PetApi();
-Long petId = 789L; // Long | Pet id to delete
-String apiKey = "apiKey_example"; // String |
+
+Integer petId = Arrays.asList(56); // Integer | Pet id to delete
+
+String apiKey = Arrays.asList("apiKey_example"); // String |
+
try {
apiInstance.deletePet(petId, apiKey);
} catch (ApiException e) {
@@ -104,8 +95,9 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **petId** | **Long**| Pet id to delete |
- **apiKey** | **String**| | [optional]
+ **petId** | [**Integer**](.md)| Pet id to delete |
+ **apiKey** | [**String**](.md)| | [optional]
+
### Return type
@@ -118,7 +110,8 @@ null (empty response body)
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
+ - **Accept**: Not defined
+
# **findPetsByStatus**
@@ -131,20 +124,15 @@ Multiple status values can be provided with comma separated strings
### Example
```java
// Import classes:
-//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
-//import io.swagger.client.Configuration;
-//import io.swagger.client.auth.*;
//import io.swagger.client.api.PetApi;
-ApiClient defaultClient = Configuration.getDefaultApiClient();
-// Configure OAuth2 access token for authorization: petstore_auth
-OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
-petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
PetApi apiInstance = new PetApi();
+
List status = Arrays.asList("status_example"); // List | Status values that need to be considered for filter
+
try {
List result = apiInstance.findPetsByStatus(status);
System.out.println(result);
@@ -158,7 +146,8 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **status** | [**List<String>**](String.md)| Status values that need to be considered for filter | [enum: available, pending, sold]
+ **status** | [**List<String>**](String.md)| Status values that need to be considered for filter | [enum: ]
+
### Return type
@@ -173,6 +162,7 @@ Name | Type | Description | Notes
- **Content-Type**: Not defined
- **Accept**: application/xml, application/json
+
# **findPetsByTags**
> List<Pet> findPetsByTags(tags)
@@ -184,20 +174,15 @@ Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3
### Example
```java
// Import classes:
-//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
-//import io.swagger.client.Configuration;
-//import io.swagger.client.auth.*;
//import io.swagger.client.api.PetApi;
-ApiClient defaultClient = Configuration.getDefaultApiClient();
-// Configure OAuth2 access token for authorization: petstore_auth
-OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
-petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
PetApi apiInstance = new PetApi();
+
List tags = Arrays.asList("tags_example"); // List | Tags to filter by
+
try {
List result = apiInstance.findPetsByTags(tags);
System.out.println(result);
@@ -213,6 +198,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**tags** | [**List<String>**](String.md)| Tags to filter by |
+
### Return type
[**List<Pet>**](Pet.md)
@@ -226,6 +212,7 @@ Name | Type | Description | Notes
- **Content-Type**: Not defined
- **Accept**: application/xml, application/json
+
# **getPetById**
> Pet getPetById(petId)
@@ -237,22 +224,15 @@ Returns a single pet
### Example
```java
// Import classes:
-//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
-//import io.swagger.client.Configuration;
-//import io.swagger.client.auth.*;
//import io.swagger.client.api.PetApi;
-ApiClient defaultClient = Configuration.getDefaultApiClient();
-// Configure API key authorization: api_key
-ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
-api_key.setApiKey("YOUR API KEY");
-// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-//api_key.setApiKeyPrefix("Token");
PetApi apiInstance = new PetApi();
-Long petId = 789L; // Long | ID of pet to return
+
+Integer petId = Arrays.asList(56); // Integer | ID of pet to return
+
try {
Pet result = apiInstance.getPetById(petId);
System.out.println(result);
@@ -266,7 +246,8 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **petId** | **Long**| ID of pet to return |
+ **petId** | [**Integer**](.md)| ID of pet to return |
+
### Return type
@@ -281,33 +262,27 @@ Name | Type | Description | Notes
- **Content-Type**: Not defined
- **Accept**: application/xml, application/json
+
# **updatePet**
-> updatePet(body)
+> updatePet(pet)
Update an existing pet
-
-
### Example
```java
// Import classes:
-//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
-//import io.swagger.client.Configuration;
-//import io.swagger.client.auth.*;
//import io.swagger.client.api.PetApi;
-ApiClient defaultClient = Configuration.getDefaultApiClient();
-// Configure OAuth2 access token for authorization: petstore_auth
-OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
-petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
PetApi apiInstance = new PetApi();
-Pet body = new Pet(); // Pet | Pet object that needs to be added to the store
+
+Pet pet = ; // Pet | Pet object that needs to be added to the store
+
try {
- apiInstance.updatePet(body);
+ apiInstance.updatePet(pet);
} catch (ApiException e) {
System.err.println("Exception when calling PetApi#updatePet");
e.printStackTrace();
@@ -318,7 +293,8 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
+ **pet** | [**Pet**](.md)| Pet object that needs to be added to the store |
+
### Return type
@@ -331,37 +307,31 @@ null (empty response body)
### HTTP request headers
- **Content-Type**: application/json, application/xml
- - **Accept**: application/xml, application/json
+ - **Accept**: Not defined
+
# **updatePetWithForm**
-> updatePetWithForm(petId, name, status)
+> updatePetWithForm(petId, body)
Updates a pet in the store with form data
-
-
### Example
```java
// Import classes:
-//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
-//import io.swagger.client.Configuration;
-//import io.swagger.client.auth.*;
//import io.swagger.client.api.PetApi;
-ApiClient defaultClient = Configuration.getDefaultApiClient();
-// Configure OAuth2 access token for authorization: petstore_auth
-OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
-petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
PetApi apiInstance = new PetApi();
-Long petId = 789L; // Long | ID of pet that needs to be updated
-String name = "name_example"; // String | Updated name of the pet
-String status = "status_example"; // String | Updated status of the pet
+
+Integer petId = Arrays.asList(56); // Integer | ID of pet that needs to be updated
+
+Object body = ; // Object |
+
try {
- apiInstance.updatePetWithForm(petId, name, status);
+ apiInstance.updatePetWithForm(petId, body);
} catch (ApiException e) {
System.err.println("Exception when calling PetApi#updatePetWithForm");
e.printStackTrace();
@@ -372,9 +342,9 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **petId** | **Long**| ID of pet that needs to be updated |
- **name** | **String**| Updated name of the pet | [optional]
- **status** | **String**| Updated status of the pet | [optional]
+ **petId** | [**Integer**](.md)| ID of pet that needs to be updated |
+ **body** | [**Object**](Object.md)| | [optional]
+
### Return type
@@ -387,37 +357,31 @@ null (empty response body)
### HTTP request headers
- **Content-Type**: application/x-www-form-urlencoded
- - **Accept**: application/xml, application/json
+ - **Accept**: Not defined
+
# **uploadFile**
-> ModelApiResponse uploadFile(petId, additionalMetadata, file)
+> ModelApiResponse uploadFile(petId, body)
uploads an image
-
-
### Example
```java
// Import classes:
-//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
-//import io.swagger.client.Configuration;
-//import io.swagger.client.auth.*;
//import io.swagger.client.api.PetApi;
-ApiClient defaultClient = Configuration.getDefaultApiClient();
-// Configure OAuth2 access token for authorization: petstore_auth
-OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
-petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
PetApi apiInstance = new PetApi();
-Long petId = 789L; // Long | ID of pet to update
-String additionalMetadata = "additionalMetadata_example"; // String | Additional data to pass to server
-File file = new File("/path/to/file.txt"); // File | file to upload
+
+Integer petId = Arrays.asList(56); // Integer | ID of pet to update
+
+Object body = ; // Object |
+
try {
- ModelApiResponse result = apiInstance.uploadFile(petId, additionalMetadata, file);
+ ModelApiResponse result = apiInstance.uploadFile(petId, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PetApi#uploadFile");
@@ -429,9 +393,9 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **petId** | **Long**| ID of pet to update |
- **additionalMetadata** | **String**| Additional data to pass to server | [optional]
- **file** | **File**| file to upload | [optional]
+ **petId** | [**Integer**](.md)| ID of pet to update |
+ **body** | [**Object**](Object.md)| | [optional]
+
### Return type
@@ -446,3 +410,5 @@ Name | Type | Description | Notes
- **Content-Type**: multipart/form-data
- **Accept**: application/json
+
+
diff --git a/samples/client/petstore/java/jersey1/docs/ReadOnlyFirst.md b/samples/client/petstore/java/jersey1/docs/ReadOnlyFirst.md
index 426b7cde95a..57655e5b49e 100644
--- a/samples/client/petstore/java/jersey1/docs/ReadOnlyFirst.md
+++ b/samples/client/petstore/java/jersey1/docs/ReadOnlyFirst.md
@@ -9,3 +9,4 @@ Name | Type | Description | Notes
+
diff --git a/samples/client/petstore/java/jersey1/docs/SpecialModelName.md b/samples/client/petstore/java/jersey1/docs/SpecialModelName.md
index c2c6117c552..f4259d2a73c 100644
--- a/samples/client/petstore/java/jersey1/docs/SpecialModelName.md
+++ b/samples/client/petstore/java/jersey1/docs/SpecialModelName.md
@@ -4,7 +4,8 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**specialPropertyName** | **Long** | | [optional]
+**$specialPropertyName** | **Long** | | [optional]
+
diff --git a/samples/client/petstore/java/jersey1/docs/StoreApi.md b/samples/client/petstore/java/jersey1/docs/StoreApi.md
index 7aed6450e6a..a4678ee745c 100644
--- a/samples/client/petstore/java/jersey1/docs/StoreApi.md
+++ b/samples/client/petstore/java/jersey1/docs/StoreApi.md
@@ -10,6 +10,8 @@ Method | HTTP request | Description
[**placeOrder**](StoreApi.md#placeOrder) | **POST** /store/order | Place an order for a pet
+
+
# **deleteOrder**
> deleteOrder(orderId)
@@ -25,8 +27,11 @@ For valid response try integer IDs with value < 1000. Anything above 1000 or
//import io.swagger.client.api.StoreApi;
+
StoreApi apiInstance = new StoreApi();
-String orderId = "orderId_example"; // String | ID of the order that needs to be deleted
+
+String orderId = Arrays.asList("orderId_example"); // String | ID of the order that needs to be deleted
+
try {
apiInstance.deleteOrder(orderId);
} catch (ApiException e) {
@@ -39,7 +44,8 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **orderId** | **String**| ID of the order that needs to be deleted |
+ **orderId** | [**String**](.md)| ID of the order that needs to be deleted |
+
### Return type
@@ -52,7 +58,8 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
+ - **Accept**: Not defined
+
# **getInventory**
@@ -65,21 +72,13 @@ Returns a map of status codes to quantities
### Example
```java
// Import classes:
-//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
-//import io.swagger.client.Configuration;
-//import io.swagger.client.auth.*;
//import io.swagger.client.api.StoreApi;
-ApiClient defaultClient = Configuration.getDefaultApiClient();
-// Configure API key authorization: api_key
-ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
-api_key.setApiKey("YOUR API KEY");
-// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-//api_key.setApiKeyPrefix("Token");
StoreApi apiInstance = new StoreApi();
+
try {
Map result = apiInstance.getInventory();
System.out.println(result);
@@ -92,6 +91,7 @@ try {
### Parameters
This endpoint does not need any parameter.
+
### Return type
**Map<String, Integer>**
@@ -105,6 +105,7 @@ This endpoint does not need any parameter.
- **Content-Type**: Not defined
- **Accept**: application/json
+
# **getOrderById**
> Order getOrderById(orderId)
@@ -120,8 +121,11 @@ For valid response try integer IDs with value <= 5 or > 10. Other val
//import io.swagger.client.api.StoreApi;
+
StoreApi apiInstance = new StoreApi();
-Long orderId = 789L; // Long | ID of pet that needs to be fetched
+
+Integer orderId = Arrays.asList(56); // Integer | ID of pet that needs to be fetched
+
try {
Order result = apiInstance.getOrderById(orderId);
System.out.println(result);
@@ -135,7 +139,8 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **orderId** | **Long**| ID of pet that needs to be fetched |
+ **orderId** | [**Integer**](.md)| ID of pet that needs to be fetched |
+
### Return type
@@ -150,14 +155,13 @@ No authorization required
- **Content-Type**: Not defined
- **Accept**: application/xml, application/json
+
# **placeOrder**
-> Order placeOrder(body)
+> Order placeOrder(order)
Place an order for a pet
-
-
### Example
```java
// Import classes:
@@ -165,10 +169,13 @@ Place an order for a pet
//import io.swagger.client.api.StoreApi;
+
StoreApi apiInstance = new StoreApi();
-Order body = new Order(); // Order | order placed for purchasing the pet
+
+Order order = ; // Order | order placed for purchasing the pet
+
try {
- Order result = apiInstance.placeOrder(body);
+ Order result = apiInstance.placeOrder(order);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling StoreApi#placeOrder");
@@ -180,7 +187,8 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**Order**](Order.md)| order placed for purchasing the pet |
+ **order** | [**Order**](.md)| order placed for purchasing the pet |
+
### Return type
@@ -192,6 +200,8 @@ No authorization required
### HTTP request headers
- - **Content-Type**: Not defined
+ - **Content-Type**: */*
- **Accept**: application/xml, application/json
+
+
diff --git a/samples/client/petstore/java/jersey1/docs/Tag.md b/samples/client/petstore/java/jersey1/docs/Tag.md
index de6814b55d5..7a97d4c6812 100644
--- a/samples/client/petstore/java/jersey1/docs/Tag.md
+++ b/samples/client/petstore/java/jersey1/docs/Tag.md
@@ -9,3 +9,4 @@ Name | Type | Description | Notes
+
diff --git a/samples/client/petstore/java/jersey1/docs/User.md b/samples/client/petstore/java/jersey1/docs/User.md
index 8b6753dd284..cf7f9ce1312 100644
--- a/samples/client/petstore/java/jersey1/docs/User.md
+++ b/samples/client/petstore/java/jersey1/docs/User.md
@@ -15,3 +15,4 @@ Name | Type | Description | Notes
+
diff --git a/samples/client/petstore/java/jersey1/docs/UserApi.md b/samples/client/petstore/java/jersey1/docs/UserApi.md
index 2e6987951c8..e421376ce79 100644
--- a/samples/client/petstore/java/jersey1/docs/UserApi.md
+++ b/samples/client/petstore/java/jersey1/docs/UserApi.md
@@ -14,9 +14,11 @@ Method | HTTP request | Description
[**updateUser**](UserApi.md#updateUser) | **PUT** /user/{username} | Updated user
+
+
# **createUser**
-> createUser(body)
+> createUser(user)
Create user
@@ -29,10 +31,13 @@ This can only be done by the logged in user.
//import io.swagger.client.api.UserApi;
+
UserApi apiInstance = new UserApi();
-User body = new User(); // User | Created user object
+
+User user = ; // User | Created user object
+
try {
- apiInstance.createUser(body);
+ apiInstance.createUser(user);
} catch (ApiException e) {
System.err.println("Exception when calling UserApi#createUser");
e.printStackTrace();
@@ -43,7 +48,8 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**User**](User.md)| Created user object |
+ **user** | [**User**](.md)| Created user object |
+
### Return type
@@ -55,8 +61,9 @@ No authorization required
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
+ - **Content-Type**: */*
+ - **Accept**: Not defined
+
# **createUsersWithArrayInput**
@@ -64,8 +71,6 @@ No authorization required
Creates list of users with given input array
-
-
### Example
```java
// Import classes:
@@ -73,8 +78,11 @@ Creates list of users with given input array
//import io.swagger.client.api.UserApi;
+
UserApi apiInstance = new UserApi();
-List body = Arrays.asList(new User()); // List | List of user object
+
+List body = ; // List | List of user object
+
try {
apiInstance.createUsersWithArrayInput(body);
} catch (ApiException e) {
@@ -89,6 +97,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**List<User>**](User.md)| List of user object |
+
### Return type
null (empty response body)
@@ -99,8 +108,9 @@ No authorization required
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
+ - **Content-Type**: */*
+ - **Accept**: Not defined
+
# **createUsersWithListInput**
@@ -108,8 +118,6 @@ No authorization required
Creates list of users with given input array
-
-
### Example
```java
// Import classes:
@@ -117,8 +125,11 @@ Creates list of users with given input array
//import io.swagger.client.api.UserApi;
+
UserApi apiInstance = new UserApi();
-List body = Arrays.asList(new User()); // List | List of user object
+
+List body = ; // List | List of user object
+
try {
apiInstance.createUsersWithListInput(body);
} catch (ApiException e) {
@@ -133,6 +144,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**List<User>**](User.md)| List of user object |
+
### Return type
null (empty response body)
@@ -143,8 +155,9 @@ No authorization required
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
+ - **Content-Type**: */*
+ - **Accept**: Not defined
+
# **deleteUser**
@@ -161,8 +174,11 @@ This can only be done by the logged in user.
//import io.swagger.client.api.UserApi;
+
UserApi apiInstance = new UserApi();
-String username = "username_example"; // String | The name that needs to be deleted
+
+String username = Arrays.asList("username_example"); // String | The name that needs to be deleted
+
try {
apiInstance.deleteUser(username);
} catch (ApiException e) {
@@ -175,7 +191,8 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **username** | **String**| The name that needs to be deleted |
+ **username** | [**String**](.md)| The name that needs to be deleted |
+
### Return type
@@ -188,7 +205,8 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
+ - **Accept**: Not defined
+
# **getUserByName**
@@ -196,8 +214,6 @@ No authorization required
Get user by user name
-
-
### Example
```java
// Import classes:
@@ -205,8 +221,11 @@ Get user by user name
//import io.swagger.client.api.UserApi;
+
UserApi apiInstance = new UserApi();
-String username = "username_example"; // String | The name that needs to be fetched. Use user1 for testing.
+
+String username = Arrays.asList("username_example"); // String | The name that needs to be fetched. Use user1 for testing.
+
try {
User result = apiInstance.getUserByName(username);
System.out.println(result);
@@ -220,7 +239,8 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **username** | **String**| The name that needs to be fetched. Use user1 for testing. |
+ **username** | [**String**](.md)| The name that needs to be fetched. Use user1 for testing. |
+
### Return type
@@ -235,14 +255,13 @@ No authorization required
- **Content-Type**: Not defined
- **Accept**: application/xml, application/json
+
# **loginUser**
> String loginUser(username, password)
Logs user into the system
-
-
### Example
```java
// Import classes:
@@ -250,9 +269,13 @@ Logs user into the system
//import io.swagger.client.api.UserApi;
+
UserApi apiInstance = new UserApi();
-String username = "username_example"; // String | The user name for login
-String password = "password_example"; // String | The password for login in clear text
+
+String username = Arrays.asList("username_example"); // String | The user name for login
+
+String password = Arrays.asList("password_example"); // String | The password for login in clear text
+
try {
String result = apiInstance.loginUser(username, password);
System.out.println(result);
@@ -266,8 +289,9 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **username** | **String**| The user name for login |
- **password** | **String**| The password for login in clear text |
+ **username** | [**String**](.md)| The user name for login |
+ **password** | [**String**](.md)| The password for login in clear text |
+
### Return type
@@ -282,14 +306,13 @@ No authorization required
- **Content-Type**: Not defined
- **Accept**: application/xml, application/json
+
# **logoutUser**
> logoutUser()
Logs out current logged in user session
-
-
### Example
```java
// Import classes:
@@ -297,7 +320,9 @@ Logs out current logged in user session
//import io.swagger.client.api.UserApi;
+
UserApi apiInstance = new UserApi();
+
try {
apiInstance.logoutUser();
} catch (ApiException e) {
@@ -309,6 +334,7 @@ try {
### Parameters
This endpoint does not need any parameter.
+
### Return type
null (empty response body)
@@ -320,11 +346,12 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
+ - **Accept**: Not defined
+
# **updateUser**
-> updateUser(username, body)
+> updateUser(user, username)
Updated user
@@ -337,11 +364,15 @@ This can only be done by the logged in user.
//import io.swagger.client.api.UserApi;
+
UserApi apiInstance = new UserApi();
-String username = "username_example"; // String | name that need to be deleted
-User body = new User(); // User | Updated user object
+
+User user = ; // User | Updated user object
+
+String username = Arrays.asList("username_example"); // String | name that need to be deleted
+
try {
- apiInstance.updateUser(username, body);
+ apiInstance.updateUser(user, username);
} catch (ApiException e) {
System.err.println("Exception when calling UserApi#updateUser");
e.printStackTrace();
@@ -352,8 +383,9 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **username** | **String**| name that need to be deleted |
- **body** | [**User**](User.md)| Updated user object |
+ **user** | [**User**](.md)| Updated user object |
+ **username** | [**String**](.md)| name that need to be deleted |
+
### Return type
@@ -365,6 +397,8 @@ No authorization required
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
+ - **Content-Type**: */*
+ - **Accept**: Not defined
+
+
diff --git a/samples/client/petstore/java/jersey1/git_push.sh b/samples/client/petstore/java/jersey1/git_push.sh
index ae01b182ae9..ed374619b13 100644
--- a/samples/client/petstore/java/jersey1/git_push.sh
+++ b/samples/client/petstore/java/jersey1/git_push.sh
@@ -36,7 +36,7 @@ git_remote=`git remote`
if [ "$git_remote" = "" ]; then # git remote not defined
if [ "$GIT_TOKEN" = "" ]; then
- echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
+ echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git crediential in your environment."
git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
else
git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
diff --git a/samples/client/petstore/java/jersey1/gradle/wrapper/gradle-wrapper.jar b/samples/client/petstore/java/jersey1/gradle/wrapper/gradle-wrapper.jar
index 2c6137b8789..e69de29bb2d 100644
Binary files a/samples/client/petstore/java/jersey1/gradle/wrapper/gradle-wrapper.jar and b/samples/client/petstore/java/jersey1/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/samples/client/petstore/java/jersey1/pom.xml b/samples/client/petstore/java/jersey1/pom.xml
index 2ede717dbdb..b3e957f02c6 100644
--- a/samples/client/petstore/java/jersey1/pom.xml
+++ b/samples/client/petstore/java/jersey1/pom.xml
@@ -1,267 +1,261 @@
- 4.0.0
- io.swagger
- swagger-java-client
- jar
- swagger-java-client
- 1.0.0
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ 4.0.0
+ io.swagger
+ swagger-java-client
+ jar
+ swagger-java-client
+ 1.0.0
+ https://github.com/swagger-api/swagger-codegen
+ Swagger Java
+
+ scm:git:git@github.com:swagger-api/swagger-codegen.git
+ scm:git:git@github.com:swagger-api/swagger-codegen.githttps://github.com/swagger-api/swagger-codegen
- Swagger Java
-
- scm:git:git@github.com:swagger-api/swagger-codegen.git
- scm:git:git@github.com:swagger-api/swagger-codegen.git
- https://github.com/swagger-api/swagger-codegen
-
+
+
+ 2.2.0
+
-
-
- Unlicense
- http://www.apache.org/licenses/LICENSE-2.0.html
- repo
-
-
+
+
+ Unlicense
+ http://www.apache.org/licenses/LICENSE-2.0.html
+ repo
+
+
-
-
- Swagger
- apiteam@swagger.io
- Swagger
- http://swagger.io
-
-
+
+
+ Swagger
+ apiteam@swagger.io
+ Swagger
+ http://swagger.io
+
+
-
-
-
- org.apache.maven.plugins
- maven-enforcer-plugin
- 3.0.0-M1
-
-
- enforce-maven
-
- enforce
-
-
-
-
- 2.2.0
-
-
-
-
-
-
-
- org.apache.maven.plugins
- maven-surefire-plugin
- 2.12
-
-
-
- loggerPath
- conf/log4j.properties
-
-
- -Xms512m -Xmx1500m
- methods
- pertest
-
-
-
- maven-dependency-plugin
-
-
- package
-
- copy-dependencies
-
-
- ${project.build.directory}/lib
-
-
-
-
+
+
+
+ org.apache.maven.plugins
+ maven-surefire-plugin
+ 2.12
+
+
+
+ loggerPath
+ conf/log4j.properties
+
+
+ -Xms512m -Xmx1500m
+ methods
+ pertest
+
+
+
+ maven-dependency-plugin
+
+
+ package
+
+ copy-dependencies
+
+
+ ${project.build.directory}/lib
+
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-jar-plugin
+ 2.2
+
+
+
+ jar
+ test-jar
+
+
+
+
+
+
-
-
- org.apache.maven.plugins
- maven-jar-plugin
- 2.2
-
-
-
- jar
- test-jar
-
-
-
-
-
-
+
+ org.codehaus.mojo
+ build-helper-maven-plugin
+ 1.10
+
+
+ add_sources
+ generate-sources
+
+ add-source
+
+
+
+ src/main/java
+
+
+
+
+ add_test_sources
+ generate-test-sources
+
+ add-test-source
+
+
+
+ src/test/java
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+ 3.6.1
+
+
+
+ 1.7
+ 1.7
+
+
+
+
+ org.apache.maven.plugins
+ maven-javadoc-plugin
+ 2.10.4
+
+
+ attach-javadocs
+
+ jar
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-source-plugin
+ 2.2.1
+
+
+ attach-sources
+
+ jar-no-fork
+
+
+
+
+
+
-
- org.codehaus.mojo
- build-helper-maven-plugin
- 1.10
-
-
- add_sources
- generate-sources
-
- add-source
-
-
-
-
- src/main/java
-
-
-
-
- add_test_sources
- generate-test-sources
-
- add-test-source
-
-
-
-
- src/test/java
-
-
-
-
-
-
- org.apache.maven.plugins
- maven-compiler-plugin
- 3.6.1
-
-
- 1.7
- 1.7
-
-
-
- org.apache.maven.plugins
- maven-javadoc-plugin
- 2.10.4
-
-
- attach-javadocs
-
- jar
-
-
-
-
-
- org.apache.maven.plugins
- maven-source-plugin
- 2.2.1
-
-
- attach-sources
-
- jar-no-fork
-
-
-
-
+
+
+ sign-artifacts
+
+
+
+ org.apache.maven.plugins
+ maven-gpg-plugin
+ 1.5
+
+
+ sign-artifacts
+ verify
+
+ sign
+
+
+
+
-
+
+
+
-
-
- sign-artifacts
-
-
-
- org.apache.maven.plugins
- maven-gpg-plugin
- 1.5
-
-
- sign-artifacts
- verify
-
- sign
-
-
-
-
-
-
-
-
+
+
+ io.swagger
+ swagger-annotations
+ ${swagger-annotations-version}
+
-
-
- io.swagger
- swagger-annotations
- ${swagger-annotations-version}
-
+
+
+ com.sun.jersey
+ jersey-client
+ ${jersey-version}
+
+
+ com.sun.jersey.contribs
+ jersey-multipart
+ ${jersey-version}
+
-
-
- com.sun.jersey
- jersey-client
- ${jersey-version}
-
-
- com.sun.jersey.contribs
- jersey-multipart
- ${jersey-version}
-
+
+
+ com.fasterxml.jackson.core
+ jackson-core
+ ${jackson-version}
+
+
+ com.fasterxml.jackson.core
+ jackson-annotations
+ ${jackson-version}
+
+
+ com.fasterxml.jackson.core
+ jackson-databind
+ ${jackson-version}
+
+
+ com.fasterxml.jackson.jaxrs
+ jackson-jaxrs-json-provider
+ ${jackson-version}
+
+
+
+
+
+
+ com.github.joschi.jackson
+ jackson-datatype-threetenbp
+ ${jackson-version}
+
+
+
+
+
+ com.brsanthu
+ migbase64
+ 2.2
+
+
+
-
-
- com.fasterxml.jackson.core
- jackson-core
- ${jackson-version}
-
-
- com.fasterxml.jackson.core
- jackson-annotations
- ${jackson-version}
-
-
- com.fasterxml.jackson.core
- jackson-databind
- ${jackson-version}
-
-
- com.fasterxml.jackson.jaxrs
- jackson-jaxrs-json-provider
- ${jackson-version}
-
-
- com.github.joschi.jackson
- jackson-datatype-threetenbp
- ${jackson-version}
-
-
-
- com.brsanthu
- migbase64
- 2.2
-
-
-
- junit
- junit
- ${junit-version}
- test
-
-
-
- UTF-8
- 1.5.15
- 1.19.4
- 2.6.4
- 1.0.0
- 4.12
-
+
+
+
+ junit
+ junit
+ ${junit-version}
+ test
+
+
+
+ UTF-8
+ 1.5.15
+ 1.19.4
+
+ 2.6.4
+ 1.0.0
+ 4.12
+
diff --git a/samples/client/petstore/java/jersey1/src/main/java/io/swagger/client/ApiClient.java b/samples/client/petstore/java/jersey1/src/main/java/io/swagger/client/ApiClient.java
index af34d858267..e3d1c30cefe 100644
--- a/samples/client/petstore/java/jersey1/src/main/java/io/swagger/client/ApiClient.java
+++ b/samples/client/petstore/java/jersey1/src/main/java/io/swagger/client/ApiClient.java
@@ -12,11 +12,17 @@
package io.swagger.client;
+
import org.threeten.bp.*;
+
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.*;
+
+
+
import com.fasterxml.jackson.datatype.threetenbp.ThreeTenModule;
+
import com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider;
import com.sun.jersey.api.client.Client;
@@ -80,11 +86,15 @@ public ApiClient() {
objectMapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS);
objectMapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING);
objectMapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING);
+
+
+
ThreeTenModule module = new ThreeTenModule();
module.addDeserializer(Instant.class, CustomInstantDeserializer.INSTANT);
module.addDeserializer(OffsetDateTime.class, CustomInstantDeserializer.OFFSET_DATE_TIME);
module.addDeserializer(ZonedDateTime.class, CustomInstantDeserializer.ZONED_DATE_TIME);
objectMapper.registerModule(module);
+
objectMapper.setDateFormat(ApiClient.buildDefaultDateFormat());
dateFormat = ApiClient.buildDefaultDateFormat();
diff --git a/samples/client/petstore/java/jersey1/src/main/java/io/swagger/client/api/AnotherFakeApi.java b/samples/client/petstore/java/jersey1/src/main/java/io/swagger/client/api/AnotherFakeApi.java
index b271ac74462..3b624f454ba 100644
--- a/samples/client/petstore/java/jersey1/src/main/java/io/swagger/client/api/AnotherFakeApi.java
+++ b/samples/client/petstore/java/jersey1/src/main/java/io/swagger/client/api/AnotherFakeApi.java
@@ -29,6 +29,7 @@
import java.util.Map;
+
public class AnotherFakeApi {
private ApiClient apiClient;
@@ -49,18 +50,16 @@ public void setApiClient(ApiClient apiClient) {
}
/**
- * To test special tags
- * To test special tags
- * @param body client model (required)
+ * To test special tags* To test special tags* @param client client model (required)
* @return Client
* @throws ApiException if fails to make API call
*/
- public Client testSpecialTags(Client body) throws ApiException {
- Object localVarPostBody = body;
+ public Client testSpecialTags(Client client) throws ApiException {
+ Object localVarPostBody = client;
- // verify the required parameter 'body' is set
- if (body == null) {
- throw new ApiException(400, "Missing the required parameter 'body' when calling testSpecialTags");
+ // verify the required parameter 'client' is set
+ if (client == null) {
+ throw new ApiException(400, "Missing the required parameter 'client' when calling testSpecialTags");
}
// create path and map variables
@@ -72,9 +71,12 @@ public Client testSpecialTags(Client body) throws ApiException {
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
+
+
+
final String[] localVarAccepts = {
"application/json"
};
@@ -87,7 +89,11 @@ public Client testSpecialTags(Client body) throws ApiException {
String[] localVarAuthNames = new String[] { };
+
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPI(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
- }
+
+ }
+
}
+
diff --git a/samples/client/petstore/java/jersey1/src/main/java/io/swagger/client/api/FakeApi.java b/samples/client/petstore/java/jersey1/src/main/java/io/swagger/client/api/FakeApi.java
index 267fd5c8bda..8720a099498 100644
--- a/samples/client/petstore/java/jersey1/src/main/java/io/swagger/client/api/FakeApi.java
+++ b/samples/client/petstore/java/jersey1/src/main/java/io/swagger/client/api/FakeApi.java
@@ -22,8 +22,6 @@
import java.math.BigDecimal;
import io.swagger.client.model.Client;
-import org.threeten.bp.LocalDate;
-import org.threeten.bp.OffsetDateTime;
import io.swagger.client.model.OuterComposite;
@@ -33,6 +31,7 @@
import java.util.Map;
+
public class FakeApi {
private ApiClient apiClient;
@@ -53,9 +52,7 @@ public void setApiClient(ApiClient apiClient) {
}
/**
- *
- * Test serialization of outer boolean types
- * @param body Input boolean as post body (optional)
+ * * Test serialization of outer boolean types* @param body Input boolean as post body (optional)
* @return Boolean
* @throws ApiException if fails to make API call
*/
@@ -71,33 +68,36 @@ public Boolean fakeOuterBooleanSerialize(Boolean body) throws ApiException {
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
+
+
+
final String[] localVarAccepts = {
-
+ "*/*"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
-
+ "*/*"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { };
+
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
- }
+
+ }
/**
- *
- * Test serialization of object with outer number type
- * @param body Input composite as post body (optional)
+ * * Test serialization of object with outer number type* @param outercomposite Input composite as post body (optional)
* @return OuterComposite
* @throws ApiException if fails to make API call
*/
- public OuterComposite fakeOuterCompositeSerialize(OuterComposite body) throws ApiException {
- Object localVarPostBody = body;
+ public OuterComposite fakeOuterCompositeSerialize(OuterComposite outercomposite) throws ApiException {
+ Object localVarPostBody = outercomposite;
// create path and map variables
String localVarPath = "/fake/outer/composite";
@@ -108,28 +108,31 @@ public OuterComposite fakeOuterCompositeSerialize(OuterComposite body) throws Ap
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
+
+
+
final String[] localVarAccepts = {
-
+ "*/*"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
-
+ "*/*"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { };
+
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
- }
+
+ }
/**
- *
- * Test serialization of outer number types
- * @param body Input number as post body (optional)
+ * * Test serialization of outer number types* @param body Input number as post body (optional)
* @return BigDecimal
* @throws ApiException if fails to make API call
*/
@@ -145,28 +148,31 @@ public BigDecimal fakeOuterNumberSerialize(BigDecimal body) throws ApiException
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
+
+
+
final String[] localVarAccepts = {
-
+ "*/*"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
-
+ "*/*"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { };
+
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
- }
+
+ }
/**
- *
- * Test serialization of outer string types
- * @param body Input string as post body (optional)
+ * * Test serialization of outer string types* @param body Input string as post body (optional)
* @return String
* @throws ApiException if fails to make API call
*/
@@ -182,37 +188,40 @@ public String fakeOuterStringSerialize(String body) throws ApiException {
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
+
+
+
final String[] localVarAccepts = {
-
+ "*/*"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
-
+ "*/*"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { };
+
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
- }
+
+ }
/**
- * To test \"client\" model
- * To test \"client\" model
- * @param body client model (required)
+ * To test \"client\" model* To test \"client\" model* @param client client model (required)
* @return Client
* @throws ApiException if fails to make API call
*/
- public Client testClientModel(Client body) throws ApiException {
- Object localVarPostBody = body;
+ public Client testClientModel(Client client) throws ApiException {
+ Object localVarPostBody = client;
- // verify the required parameter 'body' is set
- if (body == null) {
- throw new ApiException(400, "Missing the required parameter 'body' when calling testClientModel");
+ // verify the required parameter 'client' is set
+ if (client == null) {
+ throw new ApiException(400, "Missing the required parameter 'client' when calling testClientModel");
}
// create path and map variables
@@ -224,9 +233,12 @@ public Client testClientModel(Client body) throws ApiException {
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
+
+
+
final String[] localVarAccepts = {
"application/json"
};
@@ -239,49 +251,21 @@ public Client testClientModel(Client body) throws ApiException {
String[] localVarAuthNames = new String[] { };
+
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPI(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
- }
+
+ }
/**
- * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
- * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
- * @param number None (required)
- * @param _double None (required)
- * @param patternWithoutDelimiter None (required)
- * @param _byte None (required)
- * @param integer None (optional)
- * @param int32 None (optional)
- * @param int64 None (optional)
- * @param _float None (optional)
- * @param string None (optional)
- * @param binary None (optional)
- * @param date None (optional)
- * @param dateTime None (optional)
- * @param password None (optional)
- * @param paramCallback None (optional)
+ * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 * @param body (required)
* @throws ApiException if fails to make API call
*/
- public void testEndpointParameters(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, byte[] binary, LocalDate date, OffsetDateTime dateTime, String password, String paramCallback) throws ApiException {
- Object localVarPostBody = null;
-
- // verify the required parameter 'number' is set
- if (number == null) {
- throw new ApiException(400, "Missing the required parameter 'number' when calling testEndpointParameters");
- }
-
- // verify the required parameter '_double' is set
- if (_double == null) {
- throw new ApiException(400, "Missing the required parameter '_double' when calling testEndpointParameters");
- }
-
- // verify the required parameter 'patternWithoutDelimiter' is set
- if (patternWithoutDelimiter == null) {
- throw new ApiException(400, "Missing the required parameter 'patternWithoutDelimiter' when calling testEndpointParameters");
- }
+ public void testEndpointParameters(Object body) throws ApiException {
+ Object localVarPostBody = body;
- // verify the required parameter '_byte' is set
- if (_byte == null) {
- throw new ApiException(400, "Missing the required parameter '_byte' when calling testEndpointParameters");
+ // verify the required parameter 'body' is set
+ if (body == null) {
+ throw new ApiException(400, "Missing the required parameter 'body' when calling testEndpointParameters");
}
// create path and map variables
@@ -293,39 +277,14 @@ public void testEndpointParameters(BigDecimal number, Double _double, String pat
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
+
+
+
- if (integer != null)
- localVarFormParams.put("integer", integer);
-if (int32 != null)
- localVarFormParams.put("int32", int32);
-if (int64 != null)
- localVarFormParams.put("int64", int64);
-if (number != null)
- localVarFormParams.put("number", number);
-if (_float != null)
- localVarFormParams.put("float", _float);
-if (_double != null)
- localVarFormParams.put("double", _double);
-if (string != null)
- localVarFormParams.put("string", string);
-if (patternWithoutDelimiter != null)
- localVarFormParams.put("pattern_without_delimiter", patternWithoutDelimiter);
-if (_byte != null)
- localVarFormParams.put("byte", _byte);
-if (binary != null)
- localVarFormParams.put("binary", binary);
-if (date != null)
- localVarFormParams.put("date", date);
-if (dateTime != null)
- localVarFormParams.put("dateTime", dateTime);
-if (password != null)
- localVarFormParams.put("password", password);
-if (paramCallback != null)
- localVarFormParams.put("callback", paramCallback);
final String[] localVarAccepts = {
- "application/xml; charset=utf-8", "application/json; charset=utf-8"
+
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
@@ -336,24 +295,21 @@ public void testEndpointParameters(BigDecimal number, Double _double, String pat
String[] localVarAuthNames = new String[] { "http_basic_test" };
-
+
apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
+
}
/**
- * To test enum parameters
- * To test enum parameters
- * @param enumFormStringArray Form parameter enum test (string array) (optional)
- * @param enumFormString Form parameter enum test (string) (optional, default to -efg)
+ * To test enum parameters* To test enum parameters* @param body (optional)
* @param enumHeaderStringArray Header parameter enum test (string array) (optional)
- * @param enumHeaderString Header parameter enum test (string) (optional, default to -efg)
+ * @param enumHeaderString Header parameter enum test (string) (optional)
* @param enumQueryStringArray Query parameter enum test (string array) (optional)
- * @param enumQueryString Query parameter enum test (string) (optional, default to -efg)
+ * @param enumQueryString Query parameter enum test (string) (optional)
* @param enumQueryInteger Query parameter enum test (double) (optional)
- * @param enumQueryDouble Query parameter enum test (double) (optional)
* @throws ApiException if fails to make API call
*/
- public void testEnumParameters(List enumFormStringArray, String enumFormString, List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble) throws ApiException {
- Object localVarPostBody = null;
+ public void testEnumParameters(Object body, List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger) throws ApiException {
+ Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/fake";
@@ -364,24 +320,24 @@ public void testEnumParameters(List enumFormStringArray, String enumForm
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
- localVarCollectionQueryParams.addAll(apiClient.parameterToPairs("csv", "enum_query_string_array", enumQueryStringArray));
+
+ localVarQueryParams.addAll(apiClient.parameterToPair("enum_query_string_array", enumQueryStringArray));
+
localVarQueryParams.addAll(apiClient.parameterToPair("enum_query_string", enumQueryString));
+
localVarQueryParams.addAll(apiClient.parameterToPair("enum_query_integer", enumQueryInteger));
+
if (enumHeaderStringArray != null)
localVarHeaderParams.put("enum_header_string_array", apiClient.parameterToString(enumHeaderStringArray));
-if (enumHeaderString != null)
+ if (enumHeaderString != null)
localVarHeaderParams.put("enum_header_string", apiClient.parameterToString(enumHeaderString));
+
- if (enumFormStringArray != null)
- localVarFormParams.put("enum_form_string_array", enumFormStringArray);
-if (enumFormString != null)
- localVarFormParams.put("enum_form_string", enumFormString);
-if (enumQueryDouble != null)
- localVarFormParams.put("enum_query_double", enumQueryDouble);
+
final String[] localVarAccepts = {
- "*/*"
+
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
@@ -392,21 +348,20 @@ public void testEnumParameters(List enumFormStringArray, String enumForm
String[] localVarAuthNames = new String[] { };
-
+
apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
+
}
/**
- * test inline additionalProperties
- *
- * @param param request body (required)
+ * test inline additionalProperties* * @param body request body (required)
* @throws ApiException if fails to make API call
*/
- public void testInlineAdditionalProperties(Object param) throws ApiException {
- Object localVarPostBody = param;
+ public void testInlineAdditionalProperties(Map body) throws ApiException {
+ Object localVarPostBody = body;
- // verify the required parameter 'param' is set
- if (param == null) {
- throw new ApiException(400, "Missing the required parameter 'param' when calling testInlineAdditionalProperties");
+ // verify the required parameter 'body' is set
+ if (body == null) {
+ throw new ApiException(400, "Missing the required parameter 'body' when calling testInlineAdditionalProperties");
}
// create path and map variables
@@ -418,9 +373,12 @@ public void testInlineAdditionalProperties(Object param) throws ApiException {
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
+
+
+
final String[] localVarAccepts = {
};
@@ -433,27 +391,20 @@ public void testInlineAdditionalProperties(Object param) throws ApiException {
String[] localVarAuthNames = new String[] { };
-
+
apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
+
}
/**
- * test json serialization of form data
- *
- * @param param field1 (required)
- * @param param2 field2 (required)
+ * test json serialization of form data* * @param body (required)
* @throws ApiException if fails to make API call
*/
- public void testJsonFormData(String param, String param2) throws ApiException {
- Object localVarPostBody = null;
-
- // verify the required parameter 'param' is set
- if (param == null) {
- throw new ApiException(400, "Missing the required parameter 'param' when calling testJsonFormData");
- }
+ public void testJsonFormData(Object body) throws ApiException {
+ Object localVarPostBody = body;
- // verify the required parameter 'param2' is set
- if (param2 == null) {
- throw new ApiException(400, "Missing the required parameter 'param2' when calling testJsonFormData");
+ // verify the required parameter 'body' is set
+ if (body == null) {
+ throw new ApiException(400, "Missing the required parameter 'body' when calling testJsonFormData");
}
// create path and map variables
@@ -465,12 +416,11 @@ public void testJsonFormData(String param, String param2) throws ApiException {
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
+
+
+
- if (param != null)
- localVarFormParams.put("param", param);
-if (param2 != null)
- localVarFormParams.put("param2", param2);
final String[] localVarAccepts = {
@@ -484,7 +434,10 @@ public void testJsonFormData(String param, String param2) throws ApiException {
String[] localVarAuthNames = new String[] { };
-
+
apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
+
}
+
}
+
diff --git a/samples/client/petstore/java/jersey1/src/main/java/io/swagger/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/jersey1/src/main/java/io/swagger/client/api/FakeClassnameTags123Api.java
index 6c847ecf49b..4340607e7ba 100644
--- a/samples/client/petstore/java/jersey1/src/main/java/io/swagger/client/api/FakeClassnameTags123Api.java
+++ b/samples/client/petstore/java/jersey1/src/main/java/io/swagger/client/api/FakeClassnameTags123Api.java
@@ -29,6 +29,7 @@
import java.util.Map;
+
public class FakeClassnameTags123Api {
private ApiClient apiClient;
@@ -49,18 +50,16 @@ public void setApiClient(ApiClient apiClient) {
}
/**
- * To test class name in snake case
- *
- * @param body client model (required)
+ * To test class name in snake case* * @param client client model (required)
* @return Client
* @throws ApiException if fails to make API call
*/
- public Client testClassname(Client body) throws ApiException {
- Object localVarPostBody = body;
+ public Client testClassname(Client client) throws ApiException {
+ Object localVarPostBody = client;
- // verify the required parameter 'body' is set
- if (body == null) {
- throw new ApiException(400, "Missing the required parameter 'body' when calling testClassname");
+ // verify the required parameter 'client' is set
+ if (client == null) {
+ throw new ApiException(400, "Missing the required parameter 'client' when calling testClassname");
}
// create path and map variables
@@ -72,9 +71,12 @@ public Client testClassname(Client body) throws ApiException {
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
+
+
+
final String[] localVarAccepts = {
"application/json"
};
@@ -87,7 +89,11 @@ public Client testClassname(Client body) throws ApiException {
String[] localVarAuthNames = new String[] { "api_key_query" };
+
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPI(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
- }
+
+ }
+
}
+
diff --git a/samples/client/petstore/java/jersey1/src/main/java/io/swagger/client/api/PetApi.java b/samples/client/petstore/java/jersey1/src/main/java/io/swagger/client/api/PetApi.java
index edd3fb24885..9d36435a6b7 100644
--- a/samples/client/petstore/java/jersey1/src/main/java/io/swagger/client/api/PetApi.java
+++ b/samples/client/petstore/java/jersey1/src/main/java/io/swagger/client/api/PetApi.java
@@ -20,7 +20,6 @@
import io.swagger.client.model.*;
import io.swagger.client.Pair;
-import java.io.File;
import io.swagger.client.model.ModelApiResponse;
import io.swagger.client.model.Pet;
@@ -31,6 +30,7 @@
import java.util.Map;
+
public class PetApi {
private ApiClient apiClient;
@@ -51,17 +51,15 @@ public void setApiClient(ApiClient apiClient) {
}
/**
- * Add a new pet to the store
- *
- * @param body Pet object that needs to be added to the store (required)
+ * Add a new pet to the store* * @param pet Pet object that needs to be added to the store (required)
* @throws ApiException if fails to make API call
*/
- public void addPet(Pet body) throws ApiException {
- Object localVarPostBody = body;
+ public void addPet(Pet pet) throws ApiException {
+ Object localVarPostBody = pet;
- // verify the required parameter 'body' is set
- if (body == null) {
- throw new ApiException(400, "Missing the required parameter 'body' when calling addPet");
+ // verify the required parameter 'pet' is set
+ if (pet == null) {
+ throw new ApiException(400, "Missing the required parameter 'pet' when calling addPet");
}
// create path and map variables
@@ -73,11 +71,14 @@ public void addPet(Pet body) throws ApiException {
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
+
+
+
final String[] localVarAccepts = {
- "application/xml", "application/json"
+
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
@@ -88,17 +89,16 @@ public void addPet(Pet body) throws ApiException {
String[] localVarAuthNames = new String[] { "petstore_auth" };
-
+
apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
+
}
/**
- * Deletes a pet
- *
- * @param petId Pet id to delete (required)
+ * Deletes a pet* * @param petId Pet id to delete (required)
* @param apiKey (optional)
* @throws ApiException if fails to make API call
*/
- public void deletePet(Long petId, String apiKey) throws ApiException {
+ public void deletePet(Integer petId, String apiKey) throws ApiException {
Object localVarPostBody = null;
// verify the required parameter 'petId' is set
@@ -116,13 +116,16 @@ public void deletePet(Long petId, String apiKey) throws ApiException {
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
+
if (apiKey != null)
localVarHeaderParams.put("api_key", apiClient.parameterToString(apiKey));
+
+
final String[] localVarAccepts = {
- "application/xml", "application/json"
+
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
@@ -133,13 +136,12 @@ public void deletePet(Long petId, String apiKey) throws ApiException {
String[] localVarAuthNames = new String[] { "petstore_auth" };
-
+
apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
+
}
/**
- * Finds Pets by status
- * Multiple status values can be provided with comma separated strings
- * @param status Status values that need to be considered for filter (required)
+ * Finds Pets by status* Multiple status values can be provided with comma separated strings* @param status Status values that need to be considered for filter (required)
* @return List<Pet>
* @throws ApiException if fails to make API call
*/
@@ -160,10 +162,14 @@ public List findPetsByStatus(List status) throws ApiException {
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
- localVarCollectionQueryParams.addAll(apiClient.parameterToPairs("csv", "status", status));
+
+ localVarQueryParams.addAll(apiClient.parameterToPair("status", status));
+
+
+
final String[] localVarAccepts = {
"application/xml", "application/json"
};
@@ -176,13 +182,13 @@ public List findPetsByStatus(List status) throws ApiException {
String[] localVarAuthNames = new String[] { "petstore_auth" };
+
GenericType> localVarReturnType = new GenericType>() {};
return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
- }
+
+ }
/**
- * Finds Pets by tags
- * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
- * @param tags Tags to filter by (required)
+ * Finds Pets by tags* Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.* @param tags Tags to filter by (required)
* @return List<Pet>
* @throws ApiException if fails to make API call
* @deprecated
@@ -205,10 +211,14 @@ public List findPetsByTags(List tags) throws ApiException {
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
- localVarCollectionQueryParams.addAll(apiClient.parameterToPairs("csv", "tags", tags));
+
+ localVarQueryParams.addAll(apiClient.parameterToPair("tags", tags));
+
+
+
final String[] localVarAccepts = {
"application/xml", "application/json"
};
@@ -221,17 +231,17 @@ public List findPetsByTags(List tags) throws ApiException {
String[] localVarAuthNames = new String[] { "petstore_auth" };
+
GenericType> localVarReturnType = new GenericType>() {};
return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
- }
+
+ }
/**
- * Find pet by ID
- * Returns a single pet
- * @param petId ID of pet to return (required)
+ * Find pet by ID* Returns a single pet* @param petId ID of pet to return (required)
* @return Pet
* @throws ApiException if fails to make API call
*/
- public Pet getPetById(Long petId) throws ApiException {
+ public Pet getPetById(Integer petId) throws ApiException {
Object localVarPostBody = null;
// verify the required parameter 'petId' is set
@@ -249,9 +259,12 @@ public Pet getPetById(Long petId) throws ApiException {
Map