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 bc92925ac00..a87e4276d6d 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
@@ -142,7 +142,9 @@ dependencies {
compile "io.reactivex.rxjava2:rxjava:$rx_java_version"
{{/useRxJava2}}
compile "io.swagger:swagger-annotations:$swagger_annotations_version"
- compile "org.apache.oltu.oauth2:org.apache.oltu.oauth2.client:$oltu_version"
+ compile ("org.apache.oltu.oauth2:org.apache.oltu.oauth2.client:$oltu_version"){
+ exclude group:'org.apache.oltu.oauth2' , module: 'org.apache.oltu.oauth2.common'
+ }
compile "io.gsonfire:gson-fire:$json_fire_version"
{{#joda}}
compile "joda-time:joda-time:$jodatime_version"
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 b506ac89517..f4b21dcea40 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
@@ -212,6 +212,12 @@
org.apache.oltu.oauth2
org.apache.oltu.oauth2.client
${oltu-version}
+
+
+ org.apache.oltu.oauth2
+ common
+
+
io.gsonfire
diff --git a/samples/client/petstore/java/retrofit2-play24/.swagger-codegen/VERSION b/samples/client/petstore/java/retrofit2-play24/.swagger-codegen/VERSION
index 50794f17f1a..855ff9501eb 100644
--- a/samples/client/petstore/java/retrofit2-play24/.swagger-codegen/VERSION
+++ b/samples/client/petstore/java/retrofit2-play24/.swagger-codegen/VERSION
@@ -1 +1 @@
-2.3.1-SNAPSHOT
\ No newline at end of file
+2.4.0-SNAPSHOT
\ No newline at end of file
diff --git a/samples/client/petstore/java/retrofit2-play24/build.gradle b/samples/client/petstore/java/retrofit2-play24/build.gradle
index 5ba5dc34efc..59683a42743 100644
--- a/samples/client/petstore/java/retrofit2-play24/build.gradle
+++ b/samples/client/petstore/java/retrofit2-play24/build.gradle
@@ -108,7 +108,9 @@ dependencies {
compile "com.squareup.retrofit2:converter-scalars:$retrofit_version"
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.apache.oltu.oauth2:org.apache.oltu.oauth2.client:$oltu_version"){
+ exclude group:'org.apache.oltu.oauth2' , module: 'org.apache.oltu.oauth2.common'
+ }
compile "io.gsonfire:gson-fire:$json_fire_version"
compile "com.typesafe.play:play-java-ws_2.11:$play_version"
compile "com.squareup.retrofit2:converter-jackson:$retrofit_version"
diff --git a/samples/client/petstore/java/retrofit2-play24/pom.xml b/samples/client/petstore/java/retrofit2-play24/pom.xml
index 0156fa1d293..f61e31a3c54 100644
--- a/samples/client/petstore/java/retrofit2-play24/pom.xml
+++ b/samples/client/petstore/java/retrofit2-play24/pom.xml
@@ -1,257 +1,282 @@
- 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.git
+ 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
-
-
- 2.2.0
-
+ 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
+
-
-
- 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-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.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-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
-
-
-
-
+
+ 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-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-javadoc-plugin
+ 2.10.4
+
+
+ attach-javadocs
+
+ jar
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-source-plugin
+ 2.2.1
+
+
+ attach-sources
+
+ jar-no-fork
+
+
+
+
-
-
-
+
-
-
- io.swagger
- swagger-annotations
- ${swagger-core-version}
-
-
- com.squareup.retrofit2
- converter-gson
- ${retrofit-version}
-
-
- com.squareup.retrofit2
- retrofit
- ${retrofit-version}
-
-
- com.squareup.retrofit2
- converter-scalars
- ${retrofit-version}
-
-
- org.apache.oltu.oauth2
- org.apache.oltu.oauth2.client
- ${oltu-version}
-
-
- io.gsonfire
- gson-fire
- ${gson-fire-version}
-
+
+
+ sign-artifacts
+
+
+
+ org.apache.maven.plugins
+ maven-gpg-plugin
+ 1.5
+
+
+ sign-artifacts
+ verify
+
+ sign
+
+
+
+
+
+
+
+
-
-
- com.squareup.retrofit2
- converter-jackson
- ${retrofit-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.typesafe.play
- play-java-ws_2.11
- ${play-version}
-
-
+
+
+ io.swagger
+ swagger-annotations
+ ${swagger-core-version}
+
+
+ com.squareup.retrofit2
+ converter-gson
+ ${retrofit-version}
+
+
+ com.squareup.retrofit2
+ retrofit
+ ${retrofit-version}
+
+
+ com.squareup.retrofit2
+ converter-scalars
+ ${retrofit-version}
+
+
+ org.apache.oltu.oauth2
+ org.apache.oltu.oauth2.client
+ ${oltu-version}
+
+
+ org.apache.oltu.oauth2
+ common
+
+
+
+
+ io.gsonfire
+ gson-fire
+ ${gson-fire-version}
+
-
-
- junit
- junit
- ${junit-version}
- test
-
-
-
- UTF-8
- 1.8
- ${java.version}
- ${java.version}
- 1.8.0
- 1.5.15
- 2.6.6
- 2.4.11
- 2.3.0
- 1.0.1
- 4.12
-
+
+
+ com.squareup.retrofit2
+ converter-jackson
+ ${retrofit-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.typesafe.play
+ play-java-ws_2.11
+ ${play-version}
+
+
+
+
+
+ junit
+ junit
+ ${junit-version}
+ test
+
+
+
+ UTF-8
+ 1.8
+ ${java.version}
+ ${java.version}
+ 1.8.0
+ 1.5.15
+ 2.6.6
+ 2.4.11
+ 2.3.0
+ 1.0.1
+ 4.12
+
diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/gen/io/swagger/client/BuildConfig.java b/samples/client/petstore/java/retrofit2-play24/src/main/gen/io/swagger/client/BuildConfig.java
deleted file mode 100644
index 720765940d3..00000000000
--- a/samples/client/petstore/java/retrofit2-play24/src/main/gen/io/swagger/client/BuildConfig.java
+++ /dev/null
@@ -1,8 +0,0 @@
-/*___Generated_by_IDEA___*/
-
-package io.swagger.client;
-
-/* This stub is only used by the IDE. It is NOT the BuildConfig class actually packed into the APK */
-public final class BuildConfig {
- public final static boolean DEBUG = Boolean.parseBoolean(null);
-}
\ No newline at end of file
diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/gen/io/swagger/client/Manifest.java b/samples/client/petstore/java/retrofit2-play24/src/main/gen/io/swagger/client/Manifest.java
deleted file mode 100644
index 41e0523a208..00000000000
--- a/samples/client/petstore/java/retrofit2-play24/src/main/gen/io/swagger/client/Manifest.java
+++ /dev/null
@@ -1,7 +0,0 @@
-/*___Generated_by_IDEA___*/
-
-package io.swagger.client;
-
-/* This stub is only used by the IDE. It is NOT the Manifest class actually packed into the APK */
-public final class Manifest {
-}
\ No newline at end of file
diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/gen/io/swagger/client/R.java b/samples/client/petstore/java/retrofit2-play24/src/main/gen/io/swagger/client/R.java
deleted file mode 100644
index cd0683364d5..00000000000
--- a/samples/client/petstore/java/retrofit2-play24/src/main/gen/io/swagger/client/R.java
+++ /dev/null
@@ -1,7 +0,0 @@
-/*___Generated_by_IDEA___*/
-
-package io.swagger.client;
-
-/* This stub is only used by the IDE. It is NOT the R class actually packed into the APK */
-public final class R {
-}
\ No newline at end of file
diff --git a/samples/client/petstore/java/retrofit2-play25/.swagger-codegen/VERSION b/samples/client/petstore/java/retrofit2-play25/.swagger-codegen/VERSION
index f9f7450d135..50794f17f1a 100644
--- a/samples/client/petstore/java/retrofit2-play25/.swagger-codegen/VERSION
+++ b/samples/client/petstore/java/retrofit2-play25/.swagger-codegen/VERSION
@@ -1 +1 @@
-2.3.0-SNAPSHOT
\ No newline at end of file
+2.3.1-SNAPSHOT
\ No newline at end of file
diff --git a/samples/client/petstore/java/retrofit2-play25/build.gradle b/samples/client/petstore/java/retrofit2-play25/build.gradle
index 949928aa0c7..a0ac15f6e7f 100644
--- a/samples/client/petstore/java/retrofit2-play25/build.gradle
+++ b/samples/client/petstore/java/retrofit2-play25/build.gradle
@@ -101,6 +101,7 @@ ext {
swagger_annotations_version = "1.5.15"
junit_version = "4.12"
threetenbp_version = "1.3.5"
+ json_fire_version = "1.8.0"
}
dependencies {
@@ -108,7 +109,10 @@ dependencies {
compile "com.squareup.retrofit2:converter-scalars:$retrofit_version"
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.apache.oltu.oauth2:org.apache.oltu.oauth2.client:$oltu_version"){
+ exclude group:'org.apache.oltu.oauth2' , module: 'org.apache.oltu.oauth2.common'
+ }
+ compile "io.gsonfire:gson-fire:$json_fire_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"
diff --git a/samples/client/petstore/java/retrofit2-play25/build.sbt b/samples/client/petstore/java/retrofit2-play25/build.sbt
index c1a0220619c..1988e88ce9a 100644
--- a/samples/client/petstore/java/retrofit2-play25/build.sbt
+++ b/samples/client/petstore/java/retrofit2-play25/build.sbt
@@ -19,6 +19,7 @@ lazy val root = (project in file(".")).
"io.swagger" % "swagger-annotations" % "1.5.15" % "compile",
"org.apache.oltu.oauth2" % "org.apache.oltu.oauth2.client" % "1.0.1" % "compile",
"org.threeten" % "threetenbp" % "1.3.5" % "compile",
+ "io.gsonfire" % "gson-fire" % "1.8.0" % "compile",
"junit" % "junit" % "4.12" % "test",
"com.novocode" % "junit-interface" % "0.11" % "test"
)
diff --git a/samples/client/petstore/java/retrofit2-play25/docs/FakeApi.md b/samples/client/petstore/java/retrofit2-play25/docs/FakeApi.md
index 1467a2943d6..3e052dea273 100644
--- a/samples/client/petstore/java/retrofit2-play25/docs/FakeApi.md
+++ b/samples/client/petstore/java/retrofit2-play25/docs/FakeApi.md
@@ -11,6 +11,7 @@ Method | HTTP request | Description
[**testClientModel**](FakeApi.md#testClientModel) | **PATCH** fake | To test \"client\" model
[**testEndpointParameters**](FakeApi.md#testEndpointParameters) | **POST** fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
[**testEnumParameters**](FakeApi.md#testEnumParameters) | **GET** fake | To test enum parameters
+[**testInlineAdditionalProperties**](FakeApi.md#testInlineAdditionalProperties) | **POST** fake/inline-additionalProperties | test inline additionalProperties
[**testJsonFormData**](FakeApi.md#testJsonFormData) | **GET** fake/jsonFormData | test json serialization of form data
@@ -267,7 +268,7 @@ FakeApi apiInstance = new FakeApi();
BigDecimal number = new BigDecimal(); // BigDecimal | None
Double _double = 3.4D; // Double | None
String patternWithoutDelimiter = "patternWithoutDelimiter_example"; // String | None
-byte[] _byte = _byte_example; // byte[] | None
+byte[] _byte = B; // byte[] | None
Integer integer = 56; // Integer | None
Integer int32 = 56; // Integer | None
Long int64 = 789L; // Long | None
@@ -378,6 +379,51 @@ No authorization required
- **Content-Type**: */*
- **Accept**: */*
+
+# **testInlineAdditionalProperties**
+> Void testInlineAdditionalProperties(param)
+
+test inline additionalProperties
+
+
+
+### Example
+```java
+// Import classes:
+//import io.swagger.client.ApiException;
+//import io.swagger.client.api.FakeApi;
+
+
+FakeApi apiInstance = new FakeApi();
+Object param = null; // Object | request body
+try {
+ Void result = apiInstance.testInlineAdditionalProperties(param);
+ System.out.println(result);
+} catch (ApiException e) {
+ System.err.println("Exception when calling FakeApi#testInlineAdditionalProperties");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **param** | **Object**| request body |
+
+### Return type
+
+[**Void**](.md)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: Not defined
+
# **testJsonFormData**
> Void testJsonFormData(param, param2)
diff --git a/samples/client/petstore/java/retrofit2-play25/git_push.sh b/samples/client/petstore/java/retrofit2-play25/git_push.sh
index ed374619b13..ae01b182ae9 100644
--- a/samples/client/petstore/java/retrofit2-play25/git_push.sh
+++ b/samples/client/petstore/java/retrofit2-play25/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 crediential in your environment."
+ echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
else
git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
diff --git a/samples/client/petstore/java/retrofit2-play25/pom.xml b/samples/client/petstore/java/retrofit2-play25/pom.xml
index f8c24b3fb91..1ea6ea2b5e6 100644
--- a/samples/client/petstore/java/retrofit2-play25/pom.xml
+++ b/samples/client/petstore/java/retrofit2-play25/pom.xml
@@ -1,257 +1,289 @@
- 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.git
+ 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
-
-
- 2.2.0
-
+ 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
+
-
-
- 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-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.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-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
-
-
-
-
+
+ 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-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-javadoc-plugin
+ 2.10.4
+
+
+ attach-javadocs
+
+ jar
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-source-plugin
+ 2.2.1
+
+
+ attach-sources
+
+ jar-no-fork
+
+
+
+
-
-
-
+
-
-
- io.swagger
- swagger-annotations
- ${swagger-core-version}
-
-
- com.squareup.retrofit2
- converter-gson
- ${retrofit-version}
-
-
- com.squareup.retrofit2
- retrofit
- ${retrofit-version}
-
-
- com.squareup.retrofit2
- converter-scalars
- ${retrofit-version}
-
-
- org.apache.oltu.oauth2
- org.apache.oltu.oauth2.client
- ${oltu-version}
-
-
- org.threeten
- threetenbp
- ${threetenbp-version}
-
+
+
+ sign-artifacts
+
+
+
+ org.apache.maven.plugins
+ maven-gpg-plugin
+ 1.5
+
+
+ sign-artifacts
+ verify
+
+ sign
+
+
+
+
+
+
+
+
-
-
- com.squareup.retrofit2
- converter-jackson
- ${retrofit-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.typesafe.play
- play-java-ws_2.11
- ${play-version}
-
-
+
+
+ io.swagger
+ swagger-annotations
+ ${swagger-core-version}
+
+
+ com.squareup.retrofit2
+ converter-gson
+ ${retrofit-version}
+
+
+ com.squareup.retrofit2
+ retrofit
+ ${retrofit-version}
+
+
+ com.squareup.retrofit2
+ converter-scalars
+ ${retrofit-version}
+
-
-
- junit
- junit
- ${junit-version}
- test
-
-
-
- UTF-8
- 1.8
- ${java.version}
- ${java.version}
- 1.5.15
- 2.7.8
- 2.5.15
- 2.3.0
- 1.3.5
- 1.0.1
- 4.12
-
+
+ org.apache.oltu.oauth2
+ org.apache.oltu.oauth2.client
+ ${oltu-version}
+
+
+ org.apache.oltu.oauth2
+ common
+
+
+
+
+ io.gsonfire
+ gson-fire
+ ${gson-fire-version}
+
+
+ org.threeten
+ threetenbp
+ ${threetenbp-version}
+
+
+
+
+ com.squareup.retrofit2
+ converter-jackson
+ ${retrofit-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.typesafe.play
+ play-java-ws_2.11
+ ${play-version}
+
+
+
+
+
+ junit
+ junit
+ ${junit-version}
+ test
+
+
+
+ UTF-8
+ 1.8
+ ${java.version}
+ ${java.version}
+ 1.8.0
+ 1.5.15
+ 2.7.8
+ 2.5.15
+ 2.3.0
+ 1.3.5
+ 1.0.1
+ 4.12
+
diff --git a/samples/client/petstore/java/retrofit2-play25/src/main/java/io/swagger/client/api/FakeApi.java b/samples/client/petstore/java/retrofit2-play25/src/main/java/io/swagger/client/api/FakeApi.java
index 879c6ebe201..3d1b685c6d0 100644
--- a/samples/client/petstore/java/retrofit2-play25/src/main/java/io/swagger/client/api/FakeApi.java
+++ b/samples/client/petstore/java/retrofit2-play25/src/main/java/io/swagger/client/api/FakeApi.java
@@ -126,6 +126,20 @@ public interface FakeApi {
@retrofit2.http.Field("enum_form_string_array") List enumFormStringArray, @retrofit2.http.Field("enum_form_string") String enumFormString, @retrofit2.http.Header("enum_header_string_array") List enumHeaderStringArray, @retrofit2.http.Header("enum_header_string") String enumHeaderString, @retrofit2.http.Query("enum_query_string_array") CSVParams enumQueryStringArray, @retrofit2.http.Query("enum_query_string") String enumQueryString, @retrofit2.http.Query("enum_query_integer") Integer enumQueryInteger, @retrofit2.http.Field("enum_query_double") Double enumQueryDouble
);
+ /**
+ * test inline additionalProperties
+ *
+ * @param param request body (required)
+ * @return Call<Void>
+ */
+ @Headers({
+ "Content-Type:application/json"
+ })
+ @POST("fake/inline-additionalProperties")
+ CompletionStage> testInlineAdditionalProperties(
+ @retrofit2.http.Body Object param
+ );
+
/**
* test json serialization of form data
*
diff --git a/samples/client/petstore/java/retrofit2-play25/src/main/java/io/swagger/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/retrofit2-play25/src/main/java/io/swagger/client/model/AdditionalPropertiesClass.java
index e2bb686e935..f03052a0c41 100644
--- a/samples/client/petstore/java/retrofit2-play25/src/main/java/io/swagger/client/model/AdditionalPropertiesClass.java
+++ b/samples/client/petstore/java/retrofit2-play25/src/main/java/io/swagger/client/model/AdditionalPropertiesClass.java
@@ -43,7 +43,7 @@ public class AdditionalPropertiesClass {
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;
@@ -69,7 +69,7 @@ public class AdditionalPropertiesClass {
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;
diff --git a/samples/client/petstore/java/retrofit2-play25/src/main/java/io/swagger/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/retrofit2-play25/src/main/java/io/swagger/client/model/ArrayOfArrayOfNumberOnly.java
index 87d66e0750d..a5f6292b7b4 100644
--- a/samples/client/petstore/java/retrofit2-play25/src/main/java/io/swagger/client/model/ArrayOfArrayOfNumberOnly.java
+++ b/samples/client/petstore/java/retrofit2-play25/src/main/java/io/swagger/client/model/ArrayOfArrayOfNumberOnly.java
@@ -40,7 +40,7 @@ public class ArrayOfArrayOfNumberOnly {
public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayArrayNumberItem) {
if (this.arrayArrayNumber == null) {
- this.arrayArrayNumber = new ArrayList>();
+ this.arrayArrayNumber = new ArrayList<>();
}
this.arrayArrayNumber.add(arrayArrayNumberItem);
return this;
diff --git a/samples/client/petstore/java/retrofit2-play25/src/main/java/io/swagger/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/retrofit2-play25/src/main/java/io/swagger/client/model/ArrayOfNumberOnly.java
index 50e09468219..443501f0598 100644
--- a/samples/client/petstore/java/retrofit2-play25/src/main/java/io/swagger/client/model/ArrayOfNumberOnly.java
+++ b/samples/client/petstore/java/retrofit2-play25/src/main/java/io/swagger/client/model/ArrayOfNumberOnly.java
@@ -40,7 +40,7 @@ public class ArrayOfNumberOnly {
public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) {
if (this.arrayNumber == null) {
- this.arrayNumber = new ArrayList();
+ this.arrayNumber = new ArrayList<>();
}
this.arrayNumber.add(arrayNumberItem);
return this;
diff --git a/samples/client/petstore/java/retrofit2-play25/src/main/java/io/swagger/client/model/ArrayTest.java b/samples/client/petstore/java/retrofit2-play25/src/main/java/io/swagger/client/model/ArrayTest.java
index b944839bc47..4934689e7dc 100644
--- a/samples/client/petstore/java/retrofit2-play25/src/main/java/io/swagger/client/model/ArrayTest.java
+++ b/samples/client/petstore/java/retrofit2-play25/src/main/java/io/swagger/client/model/ArrayTest.java
@@ -46,7 +46,7 @@ public class ArrayTest {
public ArrayTest addArrayOfStringItem(String arrayOfStringItem) {
if (this.arrayOfString == null) {
- this.arrayOfString = new ArrayList();
+ this.arrayOfString = new ArrayList<>();
}
this.arrayOfString.add(arrayOfStringItem);
return this;
@@ -72,7 +72,7 @@ public class ArrayTest {
public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) {
if (this.arrayArrayOfInteger == null) {
- this.arrayArrayOfInteger = new ArrayList>();
+ this.arrayArrayOfInteger = new ArrayList<>();
}
this.arrayArrayOfInteger.add(arrayArrayOfIntegerItem);
return this;
@@ -99,7 +99,7 @@ public class ArrayTest {
public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelItem) {
if (this.arrayArrayOfModel == null) {
- this.arrayArrayOfModel = new ArrayList>();
+ this.arrayArrayOfModel = new ArrayList<>();
}
this.arrayArrayOfModel.add(arrayArrayOfModelItem);
return this;
diff --git a/samples/client/petstore/java/retrofit2-play25/src/main/java/io/swagger/client/model/EnumArrays.java b/samples/client/petstore/java/retrofit2-play25/src/main/java/io/swagger/client/model/EnumArrays.java
index 2019cbae634..f3cff0ea172 100644
--- a/samples/client/petstore/java/retrofit2-play25/src/main/java/io/swagger/client/model/EnumArrays.java
+++ b/samples/client/petstore/java/retrofit2-play25/src/main/java/io/swagger/client/model/EnumArrays.java
@@ -130,7 +130,7 @@ public class EnumArrays {
public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) {
if (this.arrayEnum == null) {
- this.arrayEnum = new ArrayList();
+ this.arrayEnum = new ArrayList<>();
}
this.arrayEnum.add(arrayEnumItem);
return this;
diff --git a/samples/client/petstore/java/retrofit2-play25/src/main/java/io/swagger/client/model/MapTest.java b/samples/client/petstore/java/retrofit2-play25/src/main/java/io/swagger/client/model/MapTest.java
index 7c013ad8e69..1a15255161d 100644
--- a/samples/client/petstore/java/retrofit2-play25/src/main/java/io/swagger/client/model/MapTest.java
+++ b/samples/client/petstore/java/retrofit2-play25/src/main/java/io/swagger/client/model/MapTest.java
@@ -78,7 +78,7 @@ public class MapTest {
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;
@@ -105,7 +105,7 @@ public class MapTest {
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;
diff --git a/samples/client/petstore/java/retrofit2-play25/src/main/java/io/swagger/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/retrofit2-play25/src/main/java/io/swagger/client/model/MixedPropertiesAndAdditionalPropertiesClass.java
index d484a14f09c..a1865dc6e66 100644
--- a/samples/client/petstore/java/retrofit2-play25/src/main/java/io/swagger/client/model/MixedPropertiesAndAdditionalPropertiesClass.java
+++ b/samples/client/petstore/java/retrofit2-play25/src/main/java/io/swagger/client/model/MixedPropertiesAndAdditionalPropertiesClass.java
@@ -87,7 +87,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
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;
diff --git a/samples/client/petstore/java/retrofit2-play25/src/main/java/io/swagger/client/model/Pet.java b/samples/client/petstore/java/retrofit2-play25/src/main/java/io/swagger/client/model/Pet.java
index 145360c48a9..653a9765a66 100644
--- a/samples/client/petstore/java/retrofit2-play25/src/main/java/io/swagger/client/model/Pet.java
+++ b/samples/client/petstore/java/retrofit2-play25/src/main/java/io/swagger/client/model/Pet.java
@@ -41,7 +41,7 @@ public class Pet {
private String name = null;
@JsonProperty("photoUrls")
- private List photoUrls = new ArrayList();
+ private List photoUrls = new ArrayList<>();
@JsonProperty("tags")
private List tags = null;
@@ -173,7 +173,7 @@ public class Pet {
public Pet addTagsItem(Tag tagsItem) {
if (this.tags == null) {
- this.tags = new ArrayList();
+ this.tags = new ArrayList<>();
}
this.tags.add(tagsItem);
return this;
diff --git a/samples/client/petstore/java/retrofit2/build.gradle b/samples/client/petstore/java/retrofit2/build.gradle
index be4a7349272..90add11d366 100644
--- a/samples/client/petstore/java/retrofit2/build.gradle
+++ b/samples/client/petstore/java/retrofit2/build.gradle
@@ -107,7 +107,9 @@ dependencies {
compile "com.squareup.retrofit2:converter-scalars:$retrofit_version"
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.apache.oltu.oauth2:org.apache.oltu.oauth2.client:$oltu_version"){
+ exclude group:'org.apache.oltu.oauth2' , module: 'org.apache.oltu.oauth2.common'
+ }
compile "io.gsonfire:gson-fire:$json_fire_version"
compile "org.threeten:threetenbp:$threetenbp_version"
diff --git a/samples/client/petstore/java/retrofit2/pom.xml b/samples/client/petstore/java/retrofit2/pom.xml
index 047ce41dd0d..8110b9d6922 100644
--- a/samples/client/petstore/java/retrofit2/pom.xml
+++ b/samples/client/petstore/java/retrofit2/pom.xml
@@ -208,10 +208,17 @@
converter-scalars
${retrofit-version}
+
org.apache.oltu.oauth2
org.apache.oltu.oauth2.client
${oltu-version}
+
+
+ org.apache.oltu.oauth2
+ common
+
+
io.gsonfire
diff --git a/samples/client/petstore/java/retrofit2rx/build.gradle b/samples/client/petstore/java/retrofit2rx/build.gradle
index efbc57f9f81..6f88b83d779 100644
--- a/samples/client/petstore/java/retrofit2rx/build.gradle
+++ b/samples/client/petstore/java/retrofit2rx/build.gradle
@@ -110,7 +110,9 @@ dependencies {
compile "com.squareup.retrofit2:adapter-rxjava:$retrofit_version"
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.apache.oltu.oauth2:org.apache.oltu.oauth2.client:$oltu_version"){
+ exclude group:'org.apache.oltu.oauth2' , module: 'org.apache.oltu.oauth2.common'
+ }
compile "io.gsonfire:gson-fire:$json_fire_version"
compile "org.threeten:threetenbp:$threetenbp_version"
diff --git a/samples/client/petstore/java/retrofit2rx/pom.xml b/samples/client/petstore/java/retrofit2rx/pom.xml
index 38cc4913cd2..76b9d465125 100644
--- a/samples/client/petstore/java/retrofit2rx/pom.xml
+++ b/samples/client/petstore/java/retrofit2rx/pom.xml
@@ -208,10 +208,17 @@
converter-scalars
${retrofit-version}
+
org.apache.oltu.oauth2
org.apache.oltu.oauth2.client
${oltu-version}
+
+
+ org.apache.oltu.oauth2
+ common
+
+
io.gsonfire
diff --git a/samples/client/petstore/java/retrofit2rx2/build.gradle b/samples/client/petstore/java/retrofit2rx2/build.gradle
index 22dff04b7d1..a325e4476d1 100644
--- a/samples/client/petstore/java/retrofit2rx2/build.gradle
+++ b/samples/client/petstore/java/retrofit2rx2/build.gradle
@@ -110,7 +110,9 @@ dependencies {
compile 'com.squareup.retrofit2:adapter-rxjava2:2.3.0'
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.apache.oltu.oauth2:org.apache.oltu.oauth2.client:$oltu_version"){
+ exclude group:'org.apache.oltu.oauth2' , module: 'org.apache.oltu.oauth2.common'
+ }
compile "io.gsonfire:gson-fire:$json_fire_version"
compile "org.threeten:threetenbp:$threetenbp_version"
diff --git a/samples/client/petstore/java/retrofit2rx2/pom.xml b/samples/client/petstore/java/retrofit2rx2/pom.xml
index 2c9352e5647..4a1bf76bc85 100644
--- a/samples/client/petstore/java/retrofit2rx2/pom.xml
+++ b/samples/client/petstore/java/retrofit2rx2/pom.xml
@@ -208,10 +208,17 @@
converter-scalars
${retrofit-version}
+
org.apache.oltu.oauth2
org.apache.oltu.oauth2.client
${oltu-version}
+
+
+ org.apache.oltu.oauth2
+ common
+
+
io.gsonfire