diff --git a/.gitignore b/.gitignore
index 60c5dabf00a..645eee18798 100644
--- a/.gitignore
+++ b/.gitignore
@@ -73,6 +73,7 @@ samples/client/petstore/java/okhttp-gson/build/
samples/client/petstore/java/feign/build/
samples/client/petstore/java/retrofit/build/
samples/client/petstore/java/retrofit2/build/
+samples/client/petstore/java/retrofit2/hello.txt
samples/client/petstore/java/retrofit2rx/build/
samples/client/petstore/java/default/build/
samples/client/petstore/scala/build/
diff --git a/modules/swagger-codegen/src/main/resources/Java/libraries/retrofit2/api.mustache b/modules/swagger-codegen/src/main/resources/Java/libraries/retrofit2/api.mustache
index 98d511179fb..ecadd1592e4 100644
--- a/modules/swagger-codegen/src/main/resources/Java/libraries/retrofit2/api.mustache
+++ b/modules/swagger-codegen/src/main/resources/Java/libraries/retrofit2/api.mustache
@@ -2,9 +2,15 @@ package {{package}};
import {{invokerPackage}}.CollectionFormats.*;
-{{#useRxJava}}import rx.Observable;{{/useRxJava}}
-{{#useRxJava2}}import io.reactivex.Observable;{{/useRxJava2}}
-{{#doNotUseRx}}import retrofit2.Call;{{/doNotUseRx}}
+{{#useRxJava}}
+import rx.Observable;
+{{/useRxJava}}
+{{#useRxJava2}}
+import io.reactivex.Observable;
+{{/useRxJava2}}
+{{#doNotUseRx}}
+import retrofit2.Call;
+{{/doNotUseRx}}
import retrofit2.http.*;
import okhttp3.RequestBody;
diff --git a/modules/swagger-codegen/src/main/resources/Java/libraries/retrofit2/api_test.mustache b/modules/swagger-codegen/src/main/resources/Java/libraries/retrofit2/api_test.mustache
index a34cfe0e12b..0a85ef5095c 100644
--- a/modules/swagger-codegen/src/main/resources/Java/libraries/retrofit2/api_test.mustache
+++ b/modules/swagger-codegen/src/main/resources/Java/libraries/retrofit2/api_test.mustache
@@ -25,7 +25,8 @@ public class {{classname}}Test {
api = new ApiClient().createService({{classname}}.class);
}
- {{#operations}}{{#operation}}
+ {{#operations}}
+ {{#operation}}
/**
* {{summary}}
*
@@ -40,5 +41,6 @@ public class {{classname}}Test {
// TODO: test validations
}
- {{/operation}}{{/operations}}
+ {{/operation}}
+ {{/operations}}
}
diff --git a/modules/swagger-codegen/src/main/resources/Java/libraries/retrofit2/build.gradle.mustache b/modules/swagger-codegen/src/main/resources/Java/libraries/retrofit2/build.gradle.mustache
index e88b8706398..102804ed1fb 100644
--- a/modules/swagger-codegen/src/main/resources/Java/libraries/retrofit2/build.gradle.mustache
+++ b/modules/swagger-codegen/src/main/resources/Java/libraries/retrofit2/build.gradle.mustache
@@ -102,26 +102,26 @@ if(hasProperty('target') && target == 'android') {
ext {
oltu_version = "1.0.1"
{{^usePlay24WS}}
- retrofit_version = "2.2.0"
+ retrofit_version = "2.3.0"
{{/usePlay24WS}}
{{#usePlay24WS}}
retrofit_version = "2.1.0"
jackson_version = "2.7.5"
play_version = "2.4.11"
{{/usePlay24WS}}
- swagger_annotations_version = "1.5.12"
+ swagger_annotations_version = "1.5.13"
junit_version = "4.12"
{{#useRxJava}}
- rx_java_version = "1.2.9"
+ rx_java_version = "1.3.0"
{{/useRxJava}}
{{#useRxJava2}}
- rx_java_version = "2.0.7"
+ rx_java_version = "2.1.0"
{{/useRxJava2}}
{{#joda}}
- jodatime_version = "2.9.4"
+ jodatime_version = "2.9.9"
{{/joda}}
{{#threetenbp}}
- threetenbp_version = "1.3.2"
+ threetenbp_version = "1.3.5"
{{/threetenbp}}
}
@@ -140,10 +140,10 @@ dependencies {
compile "io.swagger:swagger-annotations:$swagger_annotations_version"
compile "org.apache.oltu.oauth2:org.apache.oltu.oauth2.client:$oltu_version"
{{#joda}}
- compile 'joda-time:joda-time:$jodatime_version'
+ compile "joda-time:joda-time:$jodatime_version"
{{/joda}}
{{#threetenbp}}
- compile 'org.threeten:threetenbp:$threetenbp_version'
+ compile "org.threeten:threetenbp:$threetenbp_version"
{{/threetenbp}}
{{#usePlay24WS}}
compile "com.typesafe.play:play-java-ws_2.11:$play_version"
diff --git a/modules/swagger-codegen/src/main/resources/Java/libraries/retrofit2/build.sbt.mustache b/modules/swagger-codegen/src/main/resources/Java/libraries/retrofit2/build.sbt.mustache
index c1b8aa2aab2..a8f30d4c094 100644
--- a/modules/swagger-codegen/src/main/resources/Java/libraries/retrofit2/build.sbt.mustache
+++ b/modules/swagger-codegen/src/main/resources/Java/libraries/retrofit2/build.sbt.mustache
@@ -10,7 +10,7 @@ lazy val root = (project in file(".")).
resolvers += Resolver.mavenLocal,
libraryDependencies ++= Seq(
{{^usePlay24WS}}
- "com.squareup.retrofit2" % "retrofit" % "2.2.0" % "compile",
+ "com.squareup.retrofit2" % "retrofit" % "2.3.0" % "compile",
"com.squareup.retrofit2" % "converter-scalars" % "2.2.0" % "compile",
"com.squareup.retrofit2" % "converter-gson" % "2.2.0" % "compile",
{{/usePlay24WS}}
@@ -25,20 +25,20 @@ lazy val root = (project in file(".")).
"com.fasterxml.jackson.core" % "jackson-databind" % "2.7.5" % "compile",
{{/usePlay24WS}}
{{#useRxJava}}
- "com.squareup.retrofit2" % "adapter-rxjava" % "{{^usePlay24WS}}2.2.0{{/usePlay24WS}}{{#usePlay24WS}}2.1.0{{/usePlay24WS}}" % "compile",
- "io.reactivex" % "rxjava" % "1.2.9" % "compile",
+ "com.squareup.retrofit2" % "adapter-rxjava" % "{{^usePlay24WS}}2.3.0{{/usePlay24WS}}{{#usePlay24WS}}2.1.0{{/usePlay24WS}}" % "compile",
+ "io.reactivex" % "rxjava" % "1.3.0" % "compile",
{{/useRxJava}}
{{#useRxJava2}}
"com.jakewharton.retrofit" % "retrofit2-rxjava2-adapter" % "1.0.0" % "compile",
- "io.reactivex.rxjava2" % "rxjava" % "2.0.7" % "compile",
+ "io.reactivex.rxjava2" % "rxjava" % "2.1.0" % "compile",
{{/useRxJava2}}
"io.swagger" % "swagger-annotations" % "1.5.12" % "compile",
"org.apache.oltu.oauth2" % "org.apache.oltu.oauth2.client" % "1.0.1" % "compile",
{{#joda}}
- "joda-time" % "joda-time" % "2.9.4" % "compile",
+ "joda-time" % "joda-time" % "2.9.9" % "compile",
{{/joda}}
{{#threetenbp}}
- "org.threeten" % "threetenbp" % "1.3.2" % "compile",
+ "org.threeten" % "threetenbp" % "1.3.5" % "compile",
{{/threetenbp}}
"junit" % "junit" % "4.12" % "test",
"com.novocode" % "junit-interface" % "0.11" % "test"
diff --git a/modules/swagger-codegen/src/main/resources/Java/libraries/retrofit2/pom.mustache b/modules/swagger-codegen/src/main/resources/Java/libraries/retrofit2/pom.mustache
index 3ccdd0f276b..304f115a216 100644
--- a/modules/swagger-codegen/src/main/resources/Java/libraries/retrofit2/pom.mustache
+++ b/modules/swagger-codegen/src/main/resources/Java/libraries/retrofit2/pom.mustache
@@ -280,23 +280,23 @@
{{#java8}}1.8{{/java8}}{{^java8}}1.7{{/java8}}
${java.version}
${java.version}
- 1.5.12
+ 1.5.13
{{#usePlay24WS}}
2.7.5
2.4.11
{{/usePlay24WS}}
- 2.2.0
+ 2.3.0
{{#useRxJava}}
- 1.2.9
+ 1.3.0
{{/useRxJava}}
{{#useRxJava2}}
- 2.0.7
+ 2.1.0
{{/useRxJava2}}
{{#joda}}
- 2.9.3
+ 2.9.9
{{/joda}}
{{#threetenbp}}
- 1.3.2
+ 1.3.5
{{/threetenbp}}
1.0.1
4.12
diff --git a/samples/client/petstore/java/retrofit2-play24/build.gradle b/samples/client/petstore/java/retrofit2-play24/build.gradle
index 9861efa5f3f..6bde015bbbe 100644
--- a/samples/client/petstore/java/retrofit2-play24/build.gradle
+++ b/samples/client/petstore/java/retrofit2-play24/build.gradle
@@ -98,9 +98,9 @@ ext {
retrofit_version = "2.1.0"
jackson_version = "2.7.5"
play_version = "2.4.11"
- swagger_annotations_version = "1.5.12"
+ swagger_annotations_version = "1.5.13"
junit_version = "4.12"
- threetenbp_version = "1.3.2"
+ threetenbp_version = "1.3.5"
}
dependencies {
@@ -109,7 +109,7 @@ dependencies {
compile "com.squareup.retrofit2:converter-gson:$retrofit_version"
compile "io.swagger:swagger-annotations:$swagger_annotations_version"
compile "org.apache.oltu.oauth2:org.apache.oltu.oauth2.client:$oltu_version"
- compile 'org.threeten:threetenbp:$threetenbp_version'
+ compile "org.threeten:threetenbp:$threetenbp_version"
compile "com.typesafe.play:play-java-ws_2.11:$play_version"
compile "com.squareup.retrofit2:converter-jackson:$retrofit_version"
compile "com.fasterxml.jackson.core:jackson-core:$jackson_version"
diff --git a/samples/client/petstore/java/retrofit2-play24/build.sbt b/samples/client/petstore/java/retrofit2-play24/build.sbt
index ac817c56363..6e409312f6f 100644
--- a/samples/client/petstore/java/retrofit2-play24/build.sbt
+++ b/samples/client/petstore/java/retrofit2-play24/build.sbt
@@ -19,7 +19,7 @@ lazy val root = (project in file(".")).
"com.fasterxml.jackson.core" % "jackson-databind" % "2.7.5" % "compile",
"io.swagger" % "swagger-annotations" % "1.5.12" % "compile",
"org.apache.oltu.oauth2" % "org.apache.oltu.oauth2.client" % "1.0.1" % "compile",
- "org.threeten" % "threetenbp" % "1.3.2" % "compile",
+ "org.threeten" % "threetenbp" % "1.3.5" % "compile",
"junit" % "junit" % "4.12" % "test",
"com.novocode" % "junit-interface" % "0.11" % "test"
)
diff --git a/samples/client/petstore/java/retrofit2-play24/pom.xml b/samples/client/petstore/java/retrofit2-play24/pom.xml
index 9be47abd564..fb1f8b7f1c9 100644
--- a/samples/client/petstore/java/retrofit2-play24/pom.xml
+++ b/samples/client/petstore/java/retrofit2-play24/pom.xml
@@ -245,11 +245,11 @@
1.7
${java.version}
${java.version}
- 1.5.12
+ 1.5.13
2.7.5
2.4.11
- 2.2.0
- 1.3.2
+ 2.3.0
+ 1.3.5
1.0.1
4.12
diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/io/swagger/client/api/FakeApi.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/io/swagger/client/api/FakeApi.java
index 3936b02660d..f264d32ba9b 100644
--- a/samples/client/petstore/java/retrofit2-play24/src/main/java/io/swagger/client/api/FakeApi.java
+++ b/samples/client/petstore/java/retrofit2-play24/src/main/java/io/swagger/client/api/FakeApi.java
@@ -2,8 +2,6 @@
import io.swagger.client.CollectionFormats.*;
-
-
import retrofit2.Call;
import retrofit2.http.*;
diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/io/swagger/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/io/swagger/client/api/FakeClassnameTags123Api.java
index 1aef86538fe..feb5c347ef6 100644
--- a/samples/client/petstore/java/retrofit2-play24/src/main/java/io/swagger/client/api/FakeClassnameTags123Api.java
+++ b/samples/client/petstore/java/retrofit2-play24/src/main/java/io/swagger/client/api/FakeClassnameTags123Api.java
@@ -2,8 +2,6 @@
import io.swagger.client.CollectionFormats.*;
-
-
import retrofit2.Call;
import retrofit2.http.*;
diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/io/swagger/client/api/PetApi.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/io/swagger/client/api/PetApi.java
index 8f841a8f1e2..343eeb1e780 100644
--- a/samples/client/petstore/java/retrofit2-play24/src/main/java/io/swagger/client/api/PetApi.java
+++ b/samples/client/petstore/java/retrofit2-play24/src/main/java/io/swagger/client/api/PetApi.java
@@ -2,8 +2,6 @@
import io.swagger.client.CollectionFormats.*;
-
-
import retrofit2.Call;
import retrofit2.http.*;
diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/io/swagger/client/api/StoreApi.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/io/swagger/client/api/StoreApi.java
index 3cfefc29b9d..a32bbbb9e82 100644
--- a/samples/client/petstore/java/retrofit2-play24/src/main/java/io/swagger/client/api/StoreApi.java
+++ b/samples/client/petstore/java/retrofit2-play24/src/main/java/io/swagger/client/api/StoreApi.java
@@ -2,8 +2,6 @@
import io.swagger.client.CollectionFormats.*;
-
-
import retrofit2.Call;
import retrofit2.http.*;
diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/io/swagger/client/api/UserApi.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/io/swagger/client/api/UserApi.java
index 9b553463002..cea84a9ab79 100644
--- a/samples/client/petstore/java/retrofit2-play24/src/main/java/io/swagger/client/api/UserApi.java
+++ b/samples/client/petstore/java/retrofit2-play24/src/main/java/io/swagger/client/api/UserApi.java
@@ -2,8 +2,6 @@
import io.swagger.client.CollectionFormats.*;
-
-
import retrofit2.Call;
import retrofit2.http.*;
diff --git a/samples/client/petstore/java/retrofit2/build.gradle b/samples/client/petstore/java/retrofit2/build.gradle
index 4d281f84926..d542623f97d 100644
--- a/samples/client/petstore/java/retrofit2/build.gradle
+++ b/samples/client/petstore/java/retrofit2/build.gradle
@@ -95,10 +95,10 @@ if(hasProperty('target') && target == 'android') {
ext {
oltu_version = "1.0.1"
- retrofit_version = "2.2.0"
- swagger_annotations_version = "1.5.12"
+ retrofit_version = "2.3.0"
+ swagger_annotations_version = "1.5.13"
junit_version = "4.12"
- threetenbp_version = "1.3.2"
+ threetenbp_version = "1.3.5"
}
dependencies {
@@ -107,7 +107,7 @@ dependencies {
compile "com.squareup.retrofit2:converter-gson:$retrofit_version"
compile "io.swagger:swagger-annotations:$swagger_annotations_version"
compile "org.apache.oltu.oauth2:org.apache.oltu.oauth2.client:$oltu_version"
- compile 'org.threeten:threetenbp:$threetenbp_version'
+ compile "org.threeten:threetenbp:$threetenbp_version"
testCompile "junit:junit:$junit_version"
}
diff --git a/samples/client/petstore/java/retrofit2/build.sbt b/samples/client/petstore/java/retrofit2/build.sbt
index 6665f80c0b8..3e38170ad1b 100644
--- a/samples/client/petstore/java/retrofit2/build.sbt
+++ b/samples/client/petstore/java/retrofit2/build.sbt
@@ -9,12 +9,12 @@ lazy val root = (project in file(".")).
publishArtifact in (Compile, packageDoc) := false,
resolvers += Resolver.mavenLocal,
libraryDependencies ++= Seq(
- "com.squareup.retrofit2" % "retrofit" % "2.2.0" % "compile",
+ "com.squareup.retrofit2" % "retrofit" % "2.3.0" % "compile",
"com.squareup.retrofit2" % "converter-scalars" % "2.2.0" % "compile",
"com.squareup.retrofit2" % "converter-gson" % "2.2.0" % "compile",
"io.swagger" % "swagger-annotations" % "1.5.12" % "compile",
"org.apache.oltu.oauth2" % "org.apache.oltu.oauth2.client" % "1.0.1" % "compile",
- "org.threeten" % "threetenbp" % "1.3.2" % "compile",
+ "org.threeten" % "threetenbp" % "1.3.5" % "compile",
"junit" % "junit" % "4.12" % "test",
"com.novocode" % "junit-interface" % "0.11" % "test"
)
diff --git a/samples/client/petstore/java/retrofit2/pom.xml b/samples/client/petstore/java/retrofit2/pom.xml
index f9764e56dea..cc36f24904f 100644
--- a/samples/client/petstore/java/retrofit2/pom.xml
+++ b/samples/client/petstore/java/retrofit2/pom.xml
@@ -214,9 +214,9 @@
1.7
${java.version}
${java.version}
- 1.5.12
- 2.2.0
- 1.3.2
+ 1.5.13
+ 2.3.0
+ 1.3.5
1.0.1
4.12
diff --git a/samples/client/petstore/java/retrofit2/src/main/java/io/swagger/client/api/FakeApi.java b/samples/client/petstore/java/retrofit2/src/main/java/io/swagger/client/api/FakeApi.java
index c7991ed05e0..5eb2fb0d8bf 100644
--- a/samples/client/petstore/java/retrofit2/src/main/java/io/swagger/client/api/FakeApi.java
+++ b/samples/client/petstore/java/retrofit2/src/main/java/io/swagger/client/api/FakeApi.java
@@ -2,8 +2,6 @@
import io.swagger.client.CollectionFormats.*;
-
-
import retrofit2.Call;
import retrofit2.http.*;
diff --git a/samples/client/petstore/java/retrofit2/src/main/java/io/swagger/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/retrofit2/src/main/java/io/swagger/client/api/FakeClassnameTags123Api.java
index f1a6e82f88f..993b897b2b1 100644
--- a/samples/client/petstore/java/retrofit2/src/main/java/io/swagger/client/api/FakeClassnameTags123Api.java
+++ b/samples/client/petstore/java/retrofit2/src/main/java/io/swagger/client/api/FakeClassnameTags123Api.java
@@ -2,8 +2,6 @@
import io.swagger.client.CollectionFormats.*;
-
-
import retrofit2.Call;
import retrofit2.http.*;
diff --git a/samples/client/petstore/java/retrofit2/src/main/java/io/swagger/client/api/PetApi.java b/samples/client/petstore/java/retrofit2/src/main/java/io/swagger/client/api/PetApi.java
index d3c4011b8be..5fbf73535a1 100644
--- a/samples/client/petstore/java/retrofit2/src/main/java/io/swagger/client/api/PetApi.java
+++ b/samples/client/petstore/java/retrofit2/src/main/java/io/swagger/client/api/PetApi.java
@@ -2,8 +2,6 @@
import io.swagger.client.CollectionFormats.*;
-
-
import retrofit2.Call;
import retrofit2.http.*;
diff --git a/samples/client/petstore/java/retrofit2/src/main/java/io/swagger/client/api/StoreApi.java b/samples/client/petstore/java/retrofit2/src/main/java/io/swagger/client/api/StoreApi.java
index 3be2674aa76..328b0fa40e5 100644
--- a/samples/client/petstore/java/retrofit2/src/main/java/io/swagger/client/api/StoreApi.java
+++ b/samples/client/petstore/java/retrofit2/src/main/java/io/swagger/client/api/StoreApi.java
@@ -2,8 +2,6 @@
import io.swagger.client.CollectionFormats.*;
-
-
import retrofit2.Call;
import retrofit2.http.*;
diff --git a/samples/client/petstore/java/retrofit2/src/main/java/io/swagger/client/api/UserApi.java b/samples/client/petstore/java/retrofit2/src/main/java/io/swagger/client/api/UserApi.java
index f7ca2cfc6a2..e704b435340 100644
--- a/samples/client/petstore/java/retrofit2/src/main/java/io/swagger/client/api/UserApi.java
+++ b/samples/client/petstore/java/retrofit2/src/main/java/io/swagger/client/api/UserApi.java
@@ -2,8 +2,6 @@
import io.swagger.client.CollectionFormats.*;
-
-
import retrofit2.Call;
import retrofit2.http.*;
diff --git a/samples/client/petstore/java/retrofit2rx/build.gradle b/samples/client/petstore/java/retrofit2rx/build.gradle
index 715b93c82ef..778daa2b358 100644
--- a/samples/client/petstore/java/retrofit2rx/build.gradle
+++ b/samples/client/petstore/java/retrofit2rx/build.gradle
@@ -95,11 +95,11 @@ if(hasProperty('target') && target == 'android') {
ext {
oltu_version = "1.0.1"
- retrofit_version = "2.2.0"
- swagger_annotations_version = "1.5.12"
+ retrofit_version = "2.3.0"
+ swagger_annotations_version = "1.5.13"
junit_version = "4.12"
- rx_java_version = "1.2.9"
- threetenbp_version = "1.3.2"
+ rx_java_version = "1.3.0"
+ threetenbp_version = "1.3.5"
}
dependencies {
@@ -110,7 +110,7 @@ dependencies {
compile "io.reactivex:rxjava:$rx_java_version"
compile "io.swagger:swagger-annotations:$swagger_annotations_version"
compile "org.apache.oltu.oauth2:org.apache.oltu.oauth2.client:$oltu_version"
- compile 'org.threeten:threetenbp:$threetenbp_version'
+ compile "org.threeten:threetenbp:$threetenbp_version"
testCompile "junit:junit:$junit_version"
}
diff --git a/samples/client/petstore/java/retrofit2rx/build.sbt b/samples/client/petstore/java/retrofit2rx/build.sbt
index 8d4bf0bda83..5906db9c1b5 100644
--- a/samples/client/petstore/java/retrofit2rx/build.sbt
+++ b/samples/client/petstore/java/retrofit2rx/build.sbt
@@ -9,14 +9,14 @@ lazy val root = (project in file(".")).
publishArtifact in (Compile, packageDoc) := false,
resolvers += Resolver.mavenLocal,
libraryDependencies ++= Seq(
- "com.squareup.retrofit2" % "retrofit" % "2.2.0" % "compile",
+ "com.squareup.retrofit2" % "retrofit" % "2.3.0" % "compile",
"com.squareup.retrofit2" % "converter-scalars" % "2.2.0" % "compile",
"com.squareup.retrofit2" % "converter-gson" % "2.2.0" % "compile",
- "com.squareup.retrofit2" % "adapter-rxjava" % "2.2.0" % "compile",
- "io.reactivex" % "rxjava" % "1.2.9" % "compile",
+ "com.squareup.retrofit2" % "adapter-rxjava" % "2.3.0" % "compile",
+ "io.reactivex" % "rxjava" % "1.3.0" % "compile",
"io.swagger" % "swagger-annotations" % "1.5.12" % "compile",
"org.apache.oltu.oauth2" % "org.apache.oltu.oauth2.client" % "1.0.1" % "compile",
- "org.threeten" % "threetenbp" % "1.3.2" % "compile",
+ "org.threeten" % "threetenbp" % "1.3.5" % "compile",
"junit" % "junit" % "4.12" % "test",
"com.novocode" % "junit-interface" % "0.11" % "test"
)
diff --git a/samples/client/petstore/java/retrofit2rx/pom.xml b/samples/client/petstore/java/retrofit2rx/pom.xml
index 81a22435d2c..2efd482898d 100644
--- a/samples/client/petstore/java/retrofit2rx/pom.xml
+++ b/samples/client/petstore/java/retrofit2rx/pom.xml
@@ -224,10 +224,10 @@
1.7
${java.version}
${java.version}
- 1.5.12
- 2.2.0
- 1.2.9
- 1.3.2
+ 1.5.13
+ 2.3.0
+ 1.3.0
+ 1.3.5
1.0.1
4.12
diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/io/swagger/client/api/FakeApi.java b/samples/client/petstore/java/retrofit2rx/src/main/java/io/swagger/client/api/FakeApi.java
index 24ec28321bc..673afc53fd7 100644
--- a/samples/client/petstore/java/retrofit2rx/src/main/java/io/swagger/client/api/FakeApi.java
+++ b/samples/client/petstore/java/retrofit2rx/src/main/java/io/swagger/client/api/FakeApi.java
@@ -3,8 +3,6 @@
import io.swagger.client.CollectionFormats.*;
import rx.Observable;
-
-
import retrofit2.http.*;
import okhttp3.RequestBody;
diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/io/swagger/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/retrofit2rx/src/main/java/io/swagger/client/api/FakeClassnameTags123Api.java
index 36a7ab5d2a3..ae09a6dc15e 100644
--- a/samples/client/petstore/java/retrofit2rx/src/main/java/io/swagger/client/api/FakeClassnameTags123Api.java
+++ b/samples/client/petstore/java/retrofit2rx/src/main/java/io/swagger/client/api/FakeClassnameTags123Api.java
@@ -3,8 +3,6 @@
import io.swagger.client.CollectionFormats.*;
import rx.Observable;
-
-
import retrofit2.http.*;
import okhttp3.RequestBody;
diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/io/swagger/client/api/PetApi.java b/samples/client/petstore/java/retrofit2rx/src/main/java/io/swagger/client/api/PetApi.java
index ca50dfdeb64..48abd41a38d 100644
--- a/samples/client/petstore/java/retrofit2rx/src/main/java/io/swagger/client/api/PetApi.java
+++ b/samples/client/petstore/java/retrofit2rx/src/main/java/io/swagger/client/api/PetApi.java
@@ -3,8 +3,6 @@
import io.swagger.client.CollectionFormats.*;
import rx.Observable;
-
-
import retrofit2.http.*;
import okhttp3.RequestBody;
diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/io/swagger/client/api/StoreApi.java b/samples/client/petstore/java/retrofit2rx/src/main/java/io/swagger/client/api/StoreApi.java
index c2dc749a331..ef43a6d7c1e 100644
--- a/samples/client/petstore/java/retrofit2rx/src/main/java/io/swagger/client/api/StoreApi.java
+++ b/samples/client/petstore/java/retrofit2rx/src/main/java/io/swagger/client/api/StoreApi.java
@@ -3,8 +3,6 @@
import io.swagger.client.CollectionFormats.*;
import rx.Observable;
-
-
import retrofit2.http.*;
import okhttp3.RequestBody;
diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/io/swagger/client/api/UserApi.java b/samples/client/petstore/java/retrofit2rx/src/main/java/io/swagger/client/api/UserApi.java
index a4e7e138b75..1d0f5fbabb7 100644
--- a/samples/client/petstore/java/retrofit2rx/src/main/java/io/swagger/client/api/UserApi.java
+++ b/samples/client/petstore/java/retrofit2rx/src/main/java/io/swagger/client/api/UserApi.java
@@ -3,8 +3,6 @@
import io.swagger.client.CollectionFormats.*;
import rx.Observable;
-
-
import retrofit2.http.*;
import okhttp3.RequestBody;
diff --git a/samples/client/petstore/java/retrofit2rx2/build.gradle b/samples/client/petstore/java/retrofit2rx2/build.gradle
index d658b9d2ab4..25cb60a2864 100644
--- a/samples/client/petstore/java/retrofit2rx2/build.gradle
+++ b/samples/client/petstore/java/retrofit2rx2/build.gradle
@@ -95,11 +95,11 @@ if(hasProperty('target') && target == 'android') {
ext {
oltu_version = "1.0.1"
- retrofit_version = "2.2.0"
- swagger_annotations_version = "1.5.12"
+ retrofit_version = "2.3.0"
+ swagger_annotations_version = "1.5.13"
junit_version = "4.12"
- rx_java_version = "2.0.7"
- threetenbp_version = "1.3.2"
+ rx_java_version = "2.1.0"
+ threetenbp_version = "1.3.5"
}
dependencies {
@@ -110,7 +110,7 @@ dependencies {
compile "io.reactivex.rxjava2:rxjava:$rx_java_version"
compile "io.swagger:swagger-annotations:$swagger_annotations_version"
compile "org.apache.oltu.oauth2:org.apache.oltu.oauth2.client:$oltu_version"
- compile 'org.threeten:threetenbp:$threetenbp_version'
+ compile "org.threeten:threetenbp:$threetenbp_version"
testCompile "junit:junit:$junit_version"
}
diff --git a/samples/client/petstore/java/retrofit2rx2/build.sbt b/samples/client/petstore/java/retrofit2rx2/build.sbt
index 5f53c6c3823..d5005b750af 100644
--- a/samples/client/petstore/java/retrofit2rx2/build.sbt
+++ b/samples/client/petstore/java/retrofit2rx2/build.sbt
@@ -9,14 +9,14 @@ lazy val root = (project in file(".")).
publishArtifact in (Compile, packageDoc) := false,
resolvers += Resolver.mavenLocal,
libraryDependencies ++= Seq(
- "com.squareup.retrofit2" % "retrofit" % "2.2.0" % "compile",
+ "com.squareup.retrofit2" % "retrofit" % "2.3.0" % "compile",
"com.squareup.retrofit2" % "converter-scalars" % "2.2.0" % "compile",
"com.squareup.retrofit2" % "converter-gson" % "2.2.0" % "compile",
"com.jakewharton.retrofit" % "retrofit2-rxjava2-adapter" % "1.0.0" % "compile",
- "io.reactivex.rxjava2" % "rxjava" % "2.0.7" % "compile",
+ "io.reactivex.rxjava2" % "rxjava" % "2.1.0" % "compile",
"io.swagger" % "swagger-annotations" % "1.5.12" % "compile",
"org.apache.oltu.oauth2" % "org.apache.oltu.oauth2.client" % "1.0.1" % "compile",
- "org.threeten" % "threetenbp" % "1.3.2" % "compile",
+ "org.threeten" % "threetenbp" % "1.3.5" % "compile",
"junit" % "junit" % "4.12" % "test",
"com.novocode" % "junit-interface" % "0.11" % "test"
)
diff --git a/samples/client/petstore/java/retrofit2rx2/pom.xml b/samples/client/petstore/java/retrofit2rx2/pom.xml
index 14d07cd15a8..b0c06d9c28e 100644
--- a/samples/client/petstore/java/retrofit2rx2/pom.xml
+++ b/samples/client/petstore/java/retrofit2rx2/pom.xml
@@ -224,10 +224,10 @@
1.7
${java.version}
${java.version}
- 1.5.12
- 2.2.0
- 2.0.7
- 1.3.2
+ 1.5.13
+ 2.3.0
+ 2.1.0
+ 1.3.5
1.0.1
4.12
diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/io/swagger/client/api/FakeApi.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/io/swagger/client/api/FakeApi.java
index fbfce38ad72..382733eb124 100644
--- a/samples/client/petstore/java/retrofit2rx2/src/main/java/io/swagger/client/api/FakeApi.java
+++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/io/swagger/client/api/FakeApi.java
@@ -2,9 +2,7 @@
import io.swagger.client.CollectionFormats.*;
-
import io.reactivex.Observable;
-
import retrofit2.http.*;
import okhttp3.RequestBody;
diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/io/swagger/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/io/swagger/client/api/FakeClassnameTags123Api.java
index 12ee8ffa396..76b61f64f14 100644
--- a/samples/client/petstore/java/retrofit2rx2/src/main/java/io/swagger/client/api/FakeClassnameTags123Api.java
+++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/io/swagger/client/api/FakeClassnameTags123Api.java
@@ -2,9 +2,7 @@
import io.swagger.client.CollectionFormats.*;
-
import io.reactivex.Observable;
-
import retrofit2.http.*;
import okhttp3.RequestBody;
diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/io/swagger/client/api/PetApi.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/io/swagger/client/api/PetApi.java
index 8d012d48ade..0245f413a15 100644
--- a/samples/client/petstore/java/retrofit2rx2/src/main/java/io/swagger/client/api/PetApi.java
+++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/io/swagger/client/api/PetApi.java
@@ -2,9 +2,7 @@
import io.swagger.client.CollectionFormats.*;
-
import io.reactivex.Observable;
-
import retrofit2.http.*;
import okhttp3.RequestBody;
diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/io/swagger/client/api/StoreApi.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/io/swagger/client/api/StoreApi.java
index c6a5558ea60..76f079d1692 100644
--- a/samples/client/petstore/java/retrofit2rx2/src/main/java/io/swagger/client/api/StoreApi.java
+++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/io/swagger/client/api/StoreApi.java
@@ -2,9 +2,7 @@
import io.swagger.client.CollectionFormats.*;
-
import io.reactivex.Observable;
-
import retrofit2.http.*;
import okhttp3.RequestBody;
diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/io/swagger/client/api/UserApi.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/io/swagger/client/api/UserApi.java
index 00a7729d32b..6c36e2ea3d8 100644
--- a/samples/client/petstore/java/retrofit2rx2/src/main/java/io/swagger/client/api/UserApi.java
+++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/io/swagger/client/api/UserApi.java
@@ -2,9 +2,7 @@
import io.swagger.client.CollectionFormats.*;
-
import io.reactivex.Observable;
-
import retrofit2.http.*;
import okhttp3.RequestBody;
diff --git a/samples/client/petstore/java/retrofit2rx2/src/test/java/io/swagger/client/api/FakeApiTest.java b/samples/client/petstore/java/retrofit2rx2/src/test/java/io/swagger/client/api/FakeApiTest.java
index bb238a1dc8f..2adb033dc5a 100644
--- a/samples/client/petstore/java/retrofit2rx2/src/test/java/io/swagger/client/api/FakeApiTest.java
+++ b/samples/client/petstore/java/retrofit2rx2/src/test/java/io/swagger/client/api/FakeApiTest.java
@@ -3,8 +3,9 @@
import io.swagger.client.ApiClient;
import java.math.BigDecimal;
import io.swagger.client.model.Client;
-import org.joda.time.DateTime;
-import org.joda.time.LocalDate;
+import org.threeten.bp.LocalDate;
+import org.threeten.bp.OffsetDateTime;
+import io.swagger.client.model.OuterComposite;
import org.junit.Before;
import org.junit.Test;
@@ -25,7 +26,54 @@ public void setup() {
api = new ApiClient().createService(FakeApi.class);
}
-
+ /**
+ *
+ *
+ * Test serialization of outer boolean types
+ */
+ @Test
+ public void fakeOuterBooleanSerializeTest() {
+ Boolean body = null;
+ // Boolean response = api.fakeOuterBooleanSerialize(body);
+
+ // TODO: test validations
+ }
+ /**
+ *
+ *
+ * Test serialization of object with outer number type
+ */
+ @Test
+ public void fakeOuterCompositeSerializeTest() {
+ OuterComposite body = null;
+ // OuterComposite response = api.fakeOuterCompositeSerialize(body);
+
+ // TODO: test validations
+ }
+ /**
+ *
+ *
+ * Test serialization of outer number types
+ */
+ @Test
+ public void fakeOuterNumberSerializeTest() {
+ BigDecimal body = null;
+ // BigDecimal response = api.fakeOuterNumberSerialize(body);
+
+ // TODO: test validations
+ }
+ /**
+ *
+ *
+ * Test serialization of outer string types
+ */
+ @Test
+ public void fakeOuterStringSerializeTest() {
+ String body = null;
+ // String response = api.fakeOuterStringSerialize(body);
+
+ // TODO: test validations
+ }
/**
* To test \"client\" model
*
@@ -38,7 +86,6 @@ public void testClientModelTest() {
// TODO: test validations
}
-
/**
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
*
@@ -57,14 +104,13 @@ public void testEndpointParametersTest() {
String string = null;
byte[] binary = null;
LocalDate date = null;
- DateTime dateTime = null;
+ OffsetDateTime dateTime = null;
String password = null;
String paramCallback = null;
// Void response = api.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback);
// TODO: test validations
}
-
/**
* To test enum parameters
*
@@ -84,5 +130,17 @@ public void testEnumParametersTest() {
// TODO: test validations
}
-
+ /**
+ * test json serialization of form data
+ *
+ *
+ */
+ @Test
+ public void testJsonFormDataTest() {
+ String param = null;
+ String param2 = null;
+ // Void response = api.testJsonFormData(param, param2);
+
+ // TODO: test validations
+ }
}