Skip to content

Commit 0e37719

Browse files
viclovskywing328
authored andcommitted
[Java][Rest-assured] Bump rest-assured version (#3282)
* Update rest-assured version to 4.0.0 * Added rest-assured version 4.0.0 to documentation * Remove CatAllOfTest and DogAllOfTest
1 parent 3943d1c commit 0e37719

File tree

66 files changed

+63
-355
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+63
-355
lines changed

docs/customization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ CONFIG OPTIONS
248248
retrofit - HTTP client: OkHttp 2.4.0. JSON processing: Gson 2.3.1 (Retrofit 1.9.0)
249249
retrofit2 - HTTP client: OkHttp 2.5.0. JSON processing: Gson 2.4 (Retrofit 2.0.0-beta2)
250250
google-api-client - HTTP client: google-api-client 1.23.0. JSON processing: Jackson 2.8.9
251-
rest-assured - HTTP client: rest-assured : 3.3.0. JSON processing: Gson 2.8.5. Only for Java8
251+
rest-assured - HTTP client: rest-assured : 4.0.0. JSON processing: Gson 2.8.5. Only for Java8
252252
```
253253
254254
Your config file for Java can look like

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaClientCodegen.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public JavaClientCodegen() {
138138
supportedLibraries.put(RESTEASY, "HTTP client: Resteasy client 3.x. JSON processing: Jackson 2.8.x");
139139
supportedLibraries.put(VERTX, "HTTP client: VertX client 3.x. JSON processing: Jackson 2.8.x");
140140
supportedLibraries.put(GOOGLE_API_CLIENT, "HTTP client: Google API client 1.x. JSON processing: Jackson 2.8.x");
141-
supportedLibraries.put(REST_ASSURED, "HTTP client: rest-assured : 3.x. JSON processing: Gson 2.x. Only for Java8");
141+
supportedLibraries.put(REST_ASSURED, "HTTP client: rest-assured : 4.x. JSON processing: Gson 2.x. Only for Java8");
142142

143143
CliOption libraryOption = new CliOption(CodegenConstants.LIBRARY, "library template (sub-template) to use");
144144
libraryOption.setEnum(supportedLibraries);

modules/openapi-generator/src/main/resources/Java/libraries/rest-assured/build.gradle.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ if(hasProperty('target') && target == 'android') {
9696

9797
ext {
9898
swagger_annotations_version = "1.5.21"
99-
rest_assured_version = "3.3.0"
99+
rest_assured_version = "4.0.0"
100100
junit_version = "4.12"
101101
gson_version = "2.8.5"
102102
gson_fire_version = "1.8.3"

modules/openapi-generator/src/main/resources/Java/libraries/rest-assured/build.sbt.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ lazy val root = (project in file(".")).
1010
resolvers += Resolver.mavenLocal,
1111
libraryDependencies ++= Seq(
1212
"io.swagger" % "swagger-annotations" % "1.5.21",
13-
"io.rest-assured" % "scala-support" % "3.3.0",
13+
"io.rest-assured" % "scala-support" % "4.0.0",
1414
"com.google.code.gson" % "gson" % "2.8.5",
1515
"io.gsonfire" % "gson-fire" % "1.8.3" % "compile",
1616
{{#joda}}

modules/openapi-generator/src/main/resources/Java/libraries/rest-assured/pom.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@
251251
<properties>
252252
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
253253
<swagger-annotations-version>1.5.21</swagger-annotations-version>
254-
<rest-assured.version>3.3.0</rest-assured.version>
254+
<rest-assured.version>4.0.0</rest-assured.version>
255255
<gson-version>2.8.5</gson-version>
256256
<gson-fire-version>1.8.3</gson-fire-version>
257257
<maven-plugin-version>1.0.0</maven-plugin-version>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.0.3-SNAPSHOT
1+
4.0.0-beta3

samples/client/petstore/java/rest-assured/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ if(hasProperty('target') && target == 'android') {
9696

9797
ext {
9898
swagger_annotations_version = "1.5.21"
99-
rest_assured_version = "3.3.0"
99+
rest_assured_version = "4.0.0"
100100
junit_version = "4.12"
101101
gson_version = "2.8.5"
102102
gson_fire_version = "1.8.3"

samples/client/petstore/java/rest-assured/build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ lazy val root = (project in file(".")).
1010
resolvers += Resolver.mavenLocal,
1111
libraryDependencies ++= Seq(
1212
"io.swagger" % "swagger-annotations" % "1.5.21",
13-
"io.rest-assured" % "scala-support" % "3.3.0",
13+
"io.rest-assured" % "scala-support" % "4.0.0",
1414
"com.google.code.gson" % "gson" % "2.8.5",
1515
"io.gsonfire" % "gson-fire" % "1.8.3" % "compile",
1616
"org.threeten" % "threetenbp" % "1.3.8" % "compile",

samples/client/petstore/java/rest-assured/docs/UserApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ api.createUsersWithArrayInput()
8181

8282
Name | Type | Description | Notes
8383
------------- | ------------- | ------------- | -------------
84-
**body** | [**List&lt;User&gt;**](User.md)| List of user object |
84+
**body** | [**List&lt;User&gt;**](List.md)| List of user object |
8585

8686
### Return type
8787

@@ -121,7 +121,7 @@ api.createUsersWithListInput()
121121

122122
Name | Type | Description | Notes
123123
------------- | ------------- | ------------- | -------------
124-
**body** | [**List&lt;User&gt;**](User.md)| List of user object |
124+
**body** | [**List&lt;User&gt;**](List.md)| List of user object |
125125

126126
### Return type
127127

samples/client/petstore/java/rest-assured/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@
235235
<properties>
236236
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
237237
<swagger-annotations-version>1.5.21</swagger-annotations-version>
238-
<rest-assured.version>3.3.0</rest-assured.version>
238+
<rest-assured.version>4.0.0</rest-assured.version>
239239
<gson-version>2.8.5</gson-version>
240240
<gson-fire-version>1.8.3</gson-fire-version>
241241
<maven-plugin-version>1.0.0</maven-plugin-version>

samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/ApiClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OpenAPI Petstore
33
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
44
*
5-
* The version of the OpenAPI document: 1.0.0
5+
* OpenAPI spec version: 1.0.0
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/GsonObjectMapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OpenAPI Petstore
33
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
44
*
5-
* The version of the OpenAPI document: 1.0.0
5+
* OpenAPI spec version: 1.0.0
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/JSON.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OpenAPI Petstore
33
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
44
*
5-
* The version of the OpenAPI document: 1.0.0
5+
* OpenAPI spec version: 1.0.0
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/ResponseSpecBuilders.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OpenAPI Petstore
33
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
44
*
5-
* The version of the OpenAPI document: 1.0.0
5+
* OpenAPI spec version: 1.0.0
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/AnotherFakeApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OpenAPI Petstore
33
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
44
*
5-
* The version of the OpenAPI document: 1.0.0
5+
* OpenAPI spec version: 1.0.0
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/FakeApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OpenAPI Petstore
33
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
44
*
5-
* The version of the OpenAPI document: 1.0.0
5+
* OpenAPI spec version: 1.0.0
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OpenAPI Petstore
33
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
44
*
5-
* The version of the OpenAPI document: 1.0.0
5+
* OpenAPI spec version: 1.0.0
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/PetApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OpenAPI Petstore
33
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
44
*
5-
* The version of the OpenAPI document: 1.0.0
5+
* OpenAPI spec version: 1.0.0
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/StoreApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OpenAPI Petstore
33
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
44
*
5-
* The version of the OpenAPI document: 1.0.0
5+
* OpenAPI spec version: 1.0.0
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/UserApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OpenAPI Petstore
33
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
44
*
5-
* The version of the OpenAPI document: 1.0.0
5+
* OpenAPI spec version: 1.0.0
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OpenAPI Petstore
33
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
44
*
5-
* The version of the OpenAPI document: 1.0.0
5+
* OpenAPI spec version: 1.0.0
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OpenAPI Petstore
33
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
44
*
5-
* The version of the OpenAPI document: 1.0.0
5+
* OpenAPI spec version: 1.0.0
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OpenAPI Petstore
33
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
44
*
5-
* The version of the OpenAPI document: 1.0.0
5+
* OpenAPI spec version: 1.0.0
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OpenAPI Petstore
33
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
44
*
5-
* The version of the OpenAPI document: 1.0.0
5+
* OpenAPI spec version: 1.0.0
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OpenAPI Petstore
33
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
44
*
5-
* The version of the OpenAPI document: 1.0.0
5+
* OpenAPI spec version: 1.0.0
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OpenAPI Petstore
33
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
44
*
5-
* The version of the OpenAPI document: 1.0.0
5+
* OpenAPI spec version: 1.0.0
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OpenAPI Petstore
33
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
44
*
5-
* The version of the OpenAPI document: 1.0.0
5+
* OpenAPI spec version: 1.0.0
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OpenAPI Petstore
33
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
44
*
5-
* The version of the OpenAPI document: 1.0.0
5+
* OpenAPI spec version: 1.0.0
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Animal.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OpenAPI Petstore
33
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
44
*
5-
* The version of the OpenAPI document: 1.0.0
5+
* OpenAPI spec version: 1.0.0
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OpenAPI Petstore
33
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
44
*
5-
* The version of the OpenAPI document: 1.0.0
5+
* OpenAPI spec version: 1.0.0
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OpenAPI Petstore
33
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
44
*
5-
* The version of the OpenAPI document: 1.0.0
5+
* OpenAPI spec version: 1.0.0
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ArrayTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OpenAPI Petstore
33
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
44
*
5-
* The version of the OpenAPI document: 1.0.0
5+
* OpenAPI spec version: 1.0.0
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Capitalization.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OpenAPI Petstore
33
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
44
*
5-
* The version of the OpenAPI document: 1.0.0
5+
* OpenAPI spec version: 1.0.0
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Cat.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OpenAPI Petstore
33
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
44
*
5-
* The version of the OpenAPI document: 1.0.0
5+
* OpenAPI spec version: 1.0.0
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -24,7 +24,6 @@
2424
import io.swagger.annotations.ApiModelProperty;
2525
import java.io.IOException;
2626
import org.openapitools.client.model.Animal;
27-
import org.openapitools.client.model.CatAllOf;
2827

2928
/**
3029
* Cat

0 commit comments

Comments
 (0)