mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-11 11:52:44 +00:00
Merge remote-tracking branch 'origin/master' into 6.3.x
This commit is contained in:
@@ -2037,6 +2037,7 @@ components:
|
||||
status:
|
||||
description: Updated status of the pet
|
||||
type: string
|
||||
type: object
|
||||
uploadFile_request:
|
||||
properties:
|
||||
additionalMetadata:
|
||||
@@ -2046,6 +2047,7 @@ components:
|
||||
description: file to upload
|
||||
format: binary
|
||||
type: string
|
||||
type: object
|
||||
testEnumParameters_request:
|
||||
properties:
|
||||
enum_form_string_array:
|
||||
@@ -2065,6 +2067,7 @@ components:
|
||||
- -efg
|
||||
- (xyz)
|
||||
type: string
|
||||
type: object
|
||||
testEndpointParameters_request:
|
||||
properties:
|
||||
integer:
|
||||
@@ -2137,6 +2140,7 @@ components:
|
||||
- double
|
||||
- number
|
||||
- pattern_without_delimiter
|
||||
type: object
|
||||
testJsonFormData_request:
|
||||
properties:
|
||||
param:
|
||||
@@ -2148,6 +2152,7 @@ components:
|
||||
required:
|
||||
- param
|
||||
- param2
|
||||
type: object
|
||||
uploadFileWithRequiredFile_request:
|
||||
properties:
|
||||
additionalMetadata:
|
||||
@@ -2159,6 +2164,7 @@ components:
|
||||
type: string
|
||||
required:
|
||||
- requiredFile
|
||||
type: object
|
||||
Dog_allOf:
|
||||
properties:
|
||||
breed:
|
||||
|
||||
@@ -114,9 +114,9 @@ if(hasProperty('target') && target == 'android') {
|
||||
|
||||
ext {
|
||||
swagger_annotations_version = "1.5.22"
|
||||
jackson_version = "2.12.6"
|
||||
jackson_databind_version = "2.12.6.1"
|
||||
jackson_databind_nullable_version = "0.2.3"
|
||||
jackson_version = "2.13.4"
|
||||
jackson_databind_version = "2.13.4.2"
|
||||
jackson_databind_nullable_version = "0.2.4"
|
||||
jakarta_annotation_version = "1.3.5"
|
||||
httpclient_version = "4.5.13"
|
||||
jodatime_version = "2.9.9"
|
||||
|
||||
@@ -277,8 +277,8 @@
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<swagger-annotations-version>1.5.21</swagger-annotations-version>
|
||||
<httpclient-version>4.5.13</httpclient-version>
|
||||
<jackson-version>2.12.6</jackson-version>
|
||||
<jackson-databind-version>2.12.6.1</jackson-databind-version>
|
||||
<jackson-version>2.13.4</jackson-version>
|
||||
<jackson-databind-version>2.13.4.2</jackson-databind-version>
|
||||
<jakarta-annotation-version>1.3.5</jakarta-annotation-version>
|
||||
<maven-plugin-version>1.0.0</maven-plugin-version>
|
||||
<junit-version>4.13.2</junit-version>
|
||||
|
||||
@@ -42,7 +42,7 @@ public class ServerConfiguration {
|
||||
throw new IllegalArgumentException("The variable " + name + " in the server URL has invalid value " + value + ".");
|
||||
}
|
||||
}
|
||||
url = url.replaceAll("\\{" + name + "\\}", value);
|
||||
url = url.replace("{" + name + "}", value);
|
||||
}
|
||||
return url;
|
||||
}
|
||||
|
||||
@@ -2037,6 +2037,7 @@ components:
|
||||
status:
|
||||
description: Updated status of the pet
|
||||
type: string
|
||||
type: object
|
||||
uploadFile_request:
|
||||
properties:
|
||||
additionalMetadata:
|
||||
@@ -2046,6 +2047,7 @@ components:
|
||||
description: file to upload
|
||||
format: binary
|
||||
type: string
|
||||
type: object
|
||||
testEnumParameters_request:
|
||||
properties:
|
||||
enum_form_string_array:
|
||||
@@ -2065,6 +2067,7 @@ components:
|
||||
- -efg
|
||||
- (xyz)
|
||||
type: string
|
||||
type: object
|
||||
testEndpointParameters_request:
|
||||
properties:
|
||||
integer:
|
||||
@@ -2137,6 +2140,7 @@ components:
|
||||
- double
|
||||
- number
|
||||
- pattern_without_delimiter
|
||||
type: object
|
||||
testJsonFormData_request:
|
||||
properties:
|
||||
param:
|
||||
@@ -2148,6 +2152,7 @@ components:
|
||||
required:
|
||||
- param
|
||||
- param2
|
||||
type: object
|
||||
uploadFileWithRequiredFile_request:
|
||||
properties:
|
||||
additionalMetadata:
|
||||
@@ -2159,6 +2164,7 @@ components:
|
||||
type: string
|
||||
required:
|
||||
- requiredFile
|
||||
type: object
|
||||
Dog_allOf:
|
||||
properties:
|
||||
breed:
|
||||
|
||||
@@ -102,8 +102,8 @@ test {
|
||||
|
||||
ext {
|
||||
swagger_annotations_version = "1.5.24"
|
||||
jackson_version = "2.12.6.1"
|
||||
jackson_databind_version = "2.12.6.1"
|
||||
jackson_version = "2.13.4"
|
||||
jackson_databind_version = "2.13.4.2"
|
||||
jakarta_annotation_version = "1.3.5"
|
||||
feign_version = "10.11"
|
||||
feign_form_version = "3.8.0"
|
||||
|
||||
@@ -16,9 +16,9 @@ lazy val root = (project in file(".")).
|
||||
"io.github.openfeign" % "feign-slf4j" % "10.11" % "compile",
|
||||
"io.github.openfeign.form" % "feign-form" % "3.8.0" % "compile",
|
||||
"io.github.openfeign" % "feign-okhttp" % "10.11" % "compile",
|
||||
"com.fasterxml.jackson.core" % "jackson-core" % "2.12.6.1" % "compile",
|
||||
"com.fasterxml.jackson.core" % "jackson-annotations" % "2.12.6.1" % "compile",
|
||||
"com.fasterxml.jackson.core" % "jackson-databind" % "2.12.6.1" % "compile",
|
||||
"com.fasterxml.jackson.core" % "jackson-core" % "2.13.4" % "compile",
|
||||
"com.fasterxml.jackson.core" % "jackson-annotations" % "2.13.4" % "compile",
|
||||
"com.fasterxml.jackson.core" % "jackson-databind" % "2.13.4.2" % "compile",
|
||||
"com.fasterxml.jackson.datatype" % "jackson-datatype-jsr310" % "2.9.10" % "compile",
|
||||
"com.github.joschi.jackson" % "jackson-datatype-threetenbp" % "2.9.10" % "compile",
|
||||
"com.github.scribejava" % "scribejava-core" % "8.0.0" % "compile",
|
||||
|
||||
@@ -325,8 +325,8 @@
|
||||
<swagger-annotations-version>1.5.24</swagger-annotations-version>
|
||||
<feign-version>10.11</feign-version>
|
||||
<feign-form-version>3.8.0</feign-form-version>
|
||||
<jackson-version>2.12.5</jackson-version>
|
||||
<jackson-databind-version>2.12.6.1</jackson-databind-version>
|
||||
<jackson-version>2.13.4</jackson-version>
|
||||
<jackson-databind-version>2.13.4.2</jackson-databind-version>
|
||||
<jakarta-annotation-version>1.3.5</jakarta-annotation-version>
|
||||
<junit-version>5.7.0</junit-version>
|
||||
<maven-plugin-version>1.0.0</maven-plugin-version>
|
||||
|
||||
@@ -42,7 +42,7 @@ public class ServerConfiguration {
|
||||
throw new IllegalArgumentException("The variable " + name + " in the server URL has invalid value " + value + ".");
|
||||
}
|
||||
}
|
||||
url = url.replaceAll("\\{" + name + "\\}", value);
|
||||
url = url.replace("{" + name + "}", value);
|
||||
}
|
||||
return url;
|
||||
}
|
||||
|
||||
@@ -102,9 +102,9 @@ test {
|
||||
|
||||
ext {
|
||||
swagger_annotations_version = "1.5.24"
|
||||
jackson_version = "2.12.6.1"
|
||||
jackson_databind_version = "2.12.6.1"
|
||||
jackson_databind_nullable_version = "0.2.3"
|
||||
jackson_version = "2.13.4"
|
||||
jackson_databind_version = "2.13.4.2"
|
||||
jackson_databind_nullable_version = "0.2.4"
|
||||
jakarta_annotation_version = "1.3.5"
|
||||
feign_version = "10.11"
|
||||
feign_form_version = "3.8.0"
|
||||
|
||||
@@ -16,9 +16,9 @@ lazy val root = (project in file(".")).
|
||||
"io.github.openfeign" % "feign-slf4j" % "10.11" % "compile",
|
||||
"io.github.openfeign.form" % "feign-form" % "3.8.0" % "compile",
|
||||
"io.github.openfeign" % "feign-okhttp" % "10.11" % "compile",
|
||||
"com.fasterxml.jackson.core" % "jackson-core" % "2.12.6.1" % "compile",
|
||||
"com.fasterxml.jackson.core" % "jackson-annotations" % "2.12.6.1" % "compile",
|
||||
"com.fasterxml.jackson.core" % "jackson-databind" % "2.12.6.1" % "compile",
|
||||
"com.fasterxml.jackson.core" % "jackson-core" % "2.13.4" % "compile",
|
||||
"com.fasterxml.jackson.core" % "jackson-annotations" % "2.13.4" % "compile",
|
||||
"com.fasterxml.jackson.core" % "jackson-databind" % "2.13.4.2" % "compile",
|
||||
"com.fasterxml.jackson.datatype" % "jackson-datatype-jsr310" % "2.9.10" % "compile",
|
||||
"com.github.joschi.jackson" % "jackson-datatype-threetenbp" % "2.9.10" % "compile",
|
||||
"com.github.scribejava" % "scribejava-core" % "8.0.0" % "compile",
|
||||
|
||||
@@ -330,9 +330,9 @@
|
||||
<swagger-annotations-version>1.5.24</swagger-annotations-version>
|
||||
<feign-version>10.11</feign-version>
|
||||
<feign-form-version>3.8.0</feign-form-version>
|
||||
<jackson-version>2.12.5</jackson-version>
|
||||
<jackson-databind-nullable-version>0.2.3</jackson-databind-nullable-version>
|
||||
<jackson-databind-version>2.12.6.1</jackson-databind-version>
|
||||
<jackson-version>2.13.4</jackson-version>
|
||||
<jackson-databind-nullable-version>0.2.4</jackson-databind-nullable-version>
|
||||
<jackson-databind-version>2.13.4.2</jackson-databind-version>
|
||||
<jakarta-annotation-version>1.3.5</jakarta-annotation-version>
|
||||
<junit-version>5.7.0</junit-version>
|
||||
<maven-plugin-version>1.0.0</maven-plugin-version>
|
||||
|
||||
@@ -42,7 +42,7 @@ public class ServerConfiguration {
|
||||
throw new IllegalArgumentException("The variable " + name + " in the server URL has invalid value " + value + ".");
|
||||
}
|
||||
}
|
||||
url = url.replaceAll("\\{" + name + "\\}", value);
|
||||
url = url.replace("{" + name + "}", value);
|
||||
}
|
||||
return url;
|
||||
}
|
||||
|
||||
@@ -2037,6 +2037,7 @@ components:
|
||||
status:
|
||||
description: Updated status of the pet
|
||||
type: string
|
||||
type: object
|
||||
uploadFile_request:
|
||||
properties:
|
||||
additionalMetadata:
|
||||
@@ -2046,6 +2047,7 @@ components:
|
||||
description: file to upload
|
||||
format: binary
|
||||
type: string
|
||||
type: object
|
||||
testEnumParameters_request:
|
||||
properties:
|
||||
enum_form_string_array:
|
||||
@@ -2065,6 +2067,7 @@ components:
|
||||
- -efg
|
||||
- (xyz)
|
||||
type: string
|
||||
type: object
|
||||
testEndpointParameters_request:
|
||||
properties:
|
||||
integer:
|
||||
@@ -2137,6 +2140,7 @@ components:
|
||||
- double
|
||||
- number
|
||||
- pattern_without_delimiter
|
||||
type: object
|
||||
testJsonFormData_request:
|
||||
properties:
|
||||
param:
|
||||
@@ -2148,6 +2152,7 @@ components:
|
||||
required:
|
||||
- param
|
||||
- param2
|
||||
type: object
|
||||
uploadFileWithRequiredFile_request:
|
||||
properties:
|
||||
additionalMetadata:
|
||||
@@ -2159,6 +2164,7 @@ components:
|
||||
type: string
|
||||
required:
|
||||
- requiredFile
|
||||
type: object
|
||||
Dog_allOf:
|
||||
properties:
|
||||
breed:
|
||||
|
||||
@@ -98,9 +98,9 @@ if(hasProperty('target') && target == 'android') {
|
||||
|
||||
ext {
|
||||
swagger_annotations_version = "1.6.3"
|
||||
jackson_version = "2.12.5"
|
||||
jackson_databind_version = "2.12.6.1"
|
||||
jackson_databind_nullable_version = "0.2.3"
|
||||
jackson_version = "2.13.4"
|
||||
jackson_databind_version = "2.13.4.2"
|
||||
jackson_databind_nullable_version = "0.2.4"
|
||||
jakarta_annotation_version = "1.3.5"
|
||||
google_api_client_version = "1.32.2"
|
||||
jersey_common_version = "2.25.1"
|
||||
|
||||
@@ -12,9 +12,9 @@ lazy val root = (project in file(".")).
|
||||
"io.swagger" % "swagger-annotations" % "1.5.22",
|
||||
"com.google.api-client" % "google-api-client" % "1.23.0",
|
||||
"org.glassfish.jersey.core" % "jersey-common" % "2.25.1",
|
||||
"com.fasterxml.jackson.core" % "jackson-core" % "2.12.6.1" % "compile",
|
||||
"com.fasterxml.jackson.core" % "jackson-core" % "2.13.4" % "compile",
|
||||
"com.fasterxml.jackson.core" % "jackson-annotations" % "2.10.1" % "compile",
|
||||
"com.fasterxml.jackson.core" % "jackson-databind" % "2.12.6.1" % "compile",
|
||||
"com.fasterxml.jackson.core" % "jackson-databind" % "2.13.4.2" % "compile",
|
||||
"com.fasterxml.jackson.datatype" % "jackson-datatype-jsr310" % "2.9.10" % "compile",
|
||||
"jakarta.annotation" % "jakarta.annotation-api" % "1.3.5" % "compile",
|
||||
"junit" % "junit" % "4.13.2" % "test",
|
||||
|
||||
@@ -268,9 +268,9 @@
|
||||
<swagger-annotations-version>1.5.22</swagger-annotations-version>
|
||||
<google-api-client-version>1.32.2</google-api-client-version>
|
||||
<jersey-common-version>2.25.1</jersey-common-version>
|
||||
<jackson-version>2.12.5</jackson-version>
|
||||
<jackson-databind-version>2.12.6.1</jackson-databind-version>
|
||||
<jackson-databind-nullable-version>0.2.3</jackson-databind-nullable-version>
|
||||
<jackson-version>2.13.4</jackson-version>
|
||||
<jackson-databind-version>2.13.4.2</jackson-databind-version>
|
||||
<jackson-databind-nullable-version>0.2.4</jackson-databind-nullable-version>
|
||||
<jakarta-annotation-version>1.3.5</jakarta-annotation-version>
|
||||
<maven-plugin-version>1.0.0</maven-plugin-version>
|
||||
<junit-version>4.13.2</junit-version>
|
||||
|
||||
@@ -42,7 +42,7 @@ public class ServerConfiguration {
|
||||
throw new IllegalArgumentException("The variable " + name + " in the server URL has invalid value " + value + ".");
|
||||
}
|
||||
}
|
||||
url = url.replaceAll("\\{" + name + "\\}", value);
|
||||
url = url.replace("{" + name + "}", value);
|
||||
}
|
||||
return url;
|
||||
}
|
||||
|
||||
@@ -2037,6 +2037,7 @@ components:
|
||||
status:
|
||||
description: Updated status of the pet
|
||||
type: string
|
||||
type: object
|
||||
uploadFile_request:
|
||||
properties:
|
||||
additionalMetadata:
|
||||
@@ -2046,6 +2047,7 @@ components:
|
||||
description: file to upload
|
||||
format: binary
|
||||
type: string
|
||||
type: object
|
||||
testEnumParameters_request:
|
||||
properties:
|
||||
enum_form_string_array:
|
||||
@@ -2065,6 +2067,7 @@ components:
|
||||
- -efg
|
||||
- (xyz)
|
||||
type: string
|
||||
type: object
|
||||
testEndpointParameters_request:
|
||||
properties:
|
||||
integer:
|
||||
@@ -2137,6 +2140,7 @@ components:
|
||||
- double
|
||||
- number
|
||||
- pattern_without_delimiter
|
||||
type: object
|
||||
testJsonFormData_request:
|
||||
properties:
|
||||
param:
|
||||
@@ -2148,6 +2152,7 @@ components:
|
||||
required:
|
||||
- param
|
||||
- param2
|
||||
type: object
|
||||
uploadFileWithRequiredFile_request:
|
||||
properties:
|
||||
additionalMetadata:
|
||||
@@ -2159,6 +2164,7 @@ components:
|
||||
type: string
|
||||
required:
|
||||
- requiredFile
|
||||
type: object
|
||||
Dog_allOf:
|
||||
properties:
|
||||
breed:
|
||||
|
||||
@@ -116,7 +116,7 @@ ext {
|
||||
swagger_annotations_version = "1.6.3"
|
||||
jackson_version = "2.12.6"
|
||||
jackson_databind_version = "2.12.6.1"
|
||||
jackson_databind_nullable_version = "0.2.3"
|
||||
jackson_databind_nullable_version = "0.2.4"
|
||||
jakarta_annotation_version = "1.3.5"
|
||||
jersey_version = "1.19.4"
|
||||
jodatime_version = "2.9.9"
|
||||
|
||||
@@ -42,7 +42,7 @@ public class ServerConfiguration {
|
||||
throw new IllegalArgumentException("The variable " + name + " in the server URL has invalid value " + value + ".");
|
||||
}
|
||||
}
|
||||
url = url.replaceAll("\\{" + name + "\\}", value);
|
||||
url = url.replace("{" + name + "}", value);
|
||||
}
|
||||
return url;
|
||||
}
|
||||
|
||||
@@ -2037,6 +2037,7 @@ components:
|
||||
status:
|
||||
description: Updated status of the pet
|
||||
type: string
|
||||
type: object
|
||||
uploadFile_request:
|
||||
properties:
|
||||
additionalMetadata:
|
||||
@@ -2046,6 +2047,7 @@ components:
|
||||
description: file to upload
|
||||
format: binary
|
||||
type: string
|
||||
type: object
|
||||
testEnumParameters_request:
|
||||
properties:
|
||||
enum_form_string_array:
|
||||
@@ -2065,6 +2067,7 @@ components:
|
||||
- -efg
|
||||
- (xyz)
|
||||
type: string
|
||||
type: object
|
||||
testEndpointParameters_request:
|
||||
properties:
|
||||
integer:
|
||||
@@ -2137,6 +2140,7 @@ components:
|
||||
- double
|
||||
- number
|
||||
- pattern_without_delimiter
|
||||
type: object
|
||||
testJsonFormData_request:
|
||||
properties:
|
||||
param:
|
||||
@@ -2148,6 +2152,7 @@ components:
|
||||
required:
|
||||
- param
|
||||
- param2
|
||||
type: object
|
||||
uploadFileWithRequiredFile_request:
|
||||
properties:
|
||||
additionalMetadata:
|
||||
@@ -2159,6 +2164,7 @@ components:
|
||||
type: string
|
||||
required:
|
||||
- requiredFile
|
||||
type: object
|
||||
Dog_allOf:
|
||||
properties:
|
||||
breed:
|
||||
|
||||
@@ -99,9 +99,9 @@ if(hasProperty('target') && target == 'android') {
|
||||
|
||||
ext {
|
||||
swagger_annotations_version = "1.6.5"
|
||||
jackson_version = "2.13.2"
|
||||
jackson_databind_version = "2.13.2.2"
|
||||
jackson_databind_nullable_version = "0.2.3"
|
||||
jackson_version = "2.13.4"
|
||||
jackson_databind_version = "2.13.4.2"
|
||||
jackson_databind_nullable_version = "0.2.4"
|
||||
jakarta_annotation_version = "1.3.5"
|
||||
jersey_version = "2.35"
|
||||
junit_version = "5.8.2"
|
||||
|
||||
@@ -18,9 +18,9 @@ lazy val root = (project in file(".")).
|
||||
"org.glassfish.jersey.connectors" % "jersey-apache-connector" % "2.35",
|
||||
"com.fasterxml.jackson.core" % "jackson-core" % "2.13.2" % "compile",
|
||||
"com.fasterxml.jackson.core" % "jackson-annotations" % "2.13.2" % "compile",
|
||||
"com.fasterxml.jackson.core" % "jackson-databind" % "2.13.2.2" % "compile",
|
||||
"com.fasterxml.jackson.core" % "jackson-databind" % "2.13.4.1" % "compile",
|
||||
"com.fasterxml.jackson.datatype" % "jackson-datatype-jsr310" % "2.13.2" % "compile",
|
||||
"org.openapitools" % "jackson-databind-nullable" % "0.2.3" % "compile",
|
||||
"org.openapitools" % "jackson-databind-nullable" % "0.2.4" % "compile",
|
||||
"com.github.scribejava" % "scribejava-apis" % "8.3.1" % "compile",
|
||||
"jakarta.annotation" % "jakarta.annotation-api" % "1.3.5" % "compile",
|
||||
"org.junit.jupiter" % "junit-jupiter-api" % "5.8.2" % "test"
|
||||
|
||||
@@ -340,9 +340,9 @@
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<swagger-annotations-version>1.6.5</swagger-annotations-version>
|
||||
<jersey-version>2.35</jersey-version>
|
||||
<jackson-version>2.13.2</jackson-version>
|
||||
<jackson-databind-version>2.13.2.2</jackson-databind-version>
|
||||
<jackson-databind-nullable-version>0.2.3</jackson-databind-nullable-version>
|
||||
<jackson-version>2.13.4</jackson-version>
|
||||
<jackson-databind-version>2.13.4.2</jackson-databind-version>
|
||||
<jackson-databind-nullable-version>0.2.4</jackson-databind-nullable-version>
|
||||
<jakarta-annotation-version>1.3.5</jakarta-annotation-version>
|
||||
<junit-version>5.8.2</junit-version>
|
||||
<scribejava-apis-version>8.3.1</scribejava-apis-version>
|
||||
|
||||
@@ -446,6 +446,22 @@ public class ApiClient extends JavaTimeFormatter {
|
||||
throw new RuntimeException("No OAuth2 authentication configured!");
|
||||
}
|
||||
|
||||
/**
|
||||
* Helper method to set the credentials of a public client for the first OAuth2 authentication.
|
||||
*
|
||||
* @param clientId the client ID
|
||||
* @return a {@link org.openapitools.client.ApiClient} object.
|
||||
*/
|
||||
public ApiClient setOauthCredentialsForPublicClient(String clientId) {
|
||||
for (Authentication auth : authentications.values()) {
|
||||
if (auth instanceof OAuth) {
|
||||
((OAuth) auth).setCredentialsForPublicClient(clientId, isDebugging());
|
||||
return this;
|
||||
}
|
||||
}
|
||||
throw new RuntimeException("No OAuth2 authentication configured!");
|
||||
}
|
||||
|
||||
/**
|
||||
* Helper method to set the password flow for the first OAuth2 authentication.
|
||||
*
|
||||
|
||||
@@ -42,7 +42,7 @@ public class ServerConfiguration {
|
||||
throw new IllegalArgumentException("The variable " + name + " in the server URL has invalid value " + value + ".");
|
||||
}
|
||||
}
|
||||
url = url.replaceAll("\\{" + name + "\\}", value);
|
||||
url = url.replace("{" + name + "}", value);
|
||||
}
|
||||
return url;
|
||||
}
|
||||
|
||||
@@ -169,6 +169,19 @@ public class OAuth implements Authentication {
|
||||
return this;
|
||||
}
|
||||
|
||||
public OAuth setCredentialsForPublicClient(String clientId, Boolean debug) {
|
||||
if (Boolean.TRUE.equals(debug)) {
|
||||
service = new ServiceBuilder(clientId)
|
||||
.apiSecretIsEmptyStringUnsafe().debug()
|
||||
.build(authApi);
|
||||
} else {
|
||||
service = new ServiceBuilder(clientId)
|
||||
.apiSecretIsEmptyStringUnsafe()
|
||||
.build(authApi);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
public OAuth usePasswordFlow(String username, String password) {
|
||||
this.flow = OAuthFlow.PASSWORD;
|
||||
this.username = username;
|
||||
|
||||
@@ -2037,6 +2037,7 @@ components:
|
||||
status:
|
||||
description: Updated status of the pet
|
||||
type: string
|
||||
type: object
|
||||
uploadFile_request:
|
||||
properties:
|
||||
additionalMetadata:
|
||||
@@ -2046,6 +2047,7 @@ components:
|
||||
description: file to upload
|
||||
format: binary
|
||||
type: string
|
||||
type: object
|
||||
testEnumParameters_request:
|
||||
properties:
|
||||
enum_form_string_array:
|
||||
@@ -2065,6 +2067,7 @@ components:
|
||||
- -efg
|
||||
- (xyz)
|
||||
type: string
|
||||
type: object
|
||||
testEndpointParameters_request:
|
||||
properties:
|
||||
integer:
|
||||
@@ -2137,6 +2140,7 @@ components:
|
||||
- double
|
||||
- number
|
||||
- pattern_without_delimiter
|
||||
type: object
|
||||
testJsonFormData_request:
|
||||
properties:
|
||||
param:
|
||||
@@ -2148,6 +2152,7 @@ components:
|
||||
required:
|
||||
- param
|
||||
- param2
|
||||
type: object
|
||||
uploadFileWithRequiredFile_request:
|
||||
properties:
|
||||
additionalMetadata:
|
||||
@@ -2159,6 +2164,7 @@ components:
|
||||
type: string
|
||||
required:
|
||||
- requiredFile
|
||||
type: object
|
||||
Dog_allOf:
|
||||
properties:
|
||||
breed:
|
||||
|
||||
@@ -99,9 +99,9 @@ if(hasProperty('target') && target == 'android') {
|
||||
|
||||
ext {
|
||||
swagger_annotations_version = "1.6.5"
|
||||
jackson_version = "2.13.2"
|
||||
jackson_databind_version = "2.13.2.2"
|
||||
jackson_databind_nullable_version = "0.2.3"
|
||||
jackson_version = "2.13.4"
|
||||
jackson_databind_version = "2.13.4.2"
|
||||
jackson_databind_nullable_version = "0.2.4"
|
||||
jakarta_annotation_version = "1.3.5"
|
||||
jersey_version = "2.35"
|
||||
junit_version = "5.8.2"
|
||||
|
||||
@@ -18,9 +18,9 @@ lazy val root = (project in file(".")).
|
||||
"org.glassfish.jersey.connectors" % "jersey-apache-connector" % "2.35",
|
||||
"com.fasterxml.jackson.core" % "jackson-core" % "2.13.2" % "compile",
|
||||
"com.fasterxml.jackson.core" % "jackson-annotations" % "2.13.2" % "compile",
|
||||
"com.fasterxml.jackson.core" % "jackson-databind" % "2.13.2.2" % "compile",
|
||||
"com.fasterxml.jackson.core" % "jackson-databind" % "2.13.4.1" % "compile",
|
||||
"com.fasterxml.jackson.datatype" % "jackson-datatype-jsr310" % "2.13.2" % "compile",
|
||||
"org.openapitools" % "jackson-databind-nullable" % "0.2.3" % "compile",
|
||||
"org.openapitools" % "jackson-databind-nullable" % "0.2.4" % "compile",
|
||||
"com.github.scribejava" % "scribejava-apis" % "8.3.1" % "compile",
|
||||
"jakarta.annotation" % "jakarta.annotation-api" % "1.3.5" % "compile",
|
||||
"org.junit.jupiter" % "junit-jupiter-api" % "5.8.2" % "test"
|
||||
|
||||
@@ -340,9 +340,9 @@
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<swagger-annotations-version>1.6.5</swagger-annotations-version>
|
||||
<jersey-version>2.35</jersey-version>
|
||||
<jackson-version>2.13.2</jackson-version>
|
||||
<jackson-databind-version>2.13.2.2</jackson-databind-version>
|
||||
<jackson-databind-nullable-version>0.2.3</jackson-databind-nullable-version>
|
||||
<jackson-version>2.13.4</jackson-version>
|
||||
<jackson-databind-version>2.13.4.2</jackson-databind-version>
|
||||
<jackson-databind-nullable-version>0.2.4</jackson-databind-nullable-version>
|
||||
<jakarta-annotation-version>1.3.5</jakarta-annotation-version>
|
||||
<junit-version>5.8.2</junit-version>
|
||||
<scribejava-apis-version>8.3.1</scribejava-apis-version>
|
||||
|
||||
@@ -446,6 +446,22 @@ public class ApiClient extends JavaTimeFormatter {
|
||||
throw new RuntimeException("No OAuth2 authentication configured!");
|
||||
}
|
||||
|
||||
/**
|
||||
* Helper method to set the credentials of a public client for the first OAuth2 authentication.
|
||||
*
|
||||
* @param clientId the client ID
|
||||
* @return a {@link org.openapitools.client.ApiClient} object.
|
||||
*/
|
||||
public ApiClient setOauthCredentialsForPublicClient(String clientId) {
|
||||
for (Authentication auth : authentications.values()) {
|
||||
if (auth instanceof OAuth) {
|
||||
((OAuth) auth).setCredentialsForPublicClient(clientId, isDebugging());
|
||||
return this;
|
||||
}
|
||||
}
|
||||
throw new RuntimeException("No OAuth2 authentication configured!");
|
||||
}
|
||||
|
||||
/**
|
||||
* Helper method to set the password flow for the first OAuth2 authentication.
|
||||
*
|
||||
|
||||
@@ -42,7 +42,7 @@ public class ServerConfiguration {
|
||||
throw new IllegalArgumentException("The variable " + name + " in the server URL has invalid value " + value + ".");
|
||||
}
|
||||
}
|
||||
url = url.replaceAll("\\{" + name + "\\}", value);
|
||||
url = url.replace("{" + name + "}", value);
|
||||
}
|
||||
return url;
|
||||
}
|
||||
|
||||
@@ -169,6 +169,19 @@ public class OAuth implements Authentication {
|
||||
return this;
|
||||
}
|
||||
|
||||
public OAuth setCredentialsForPublicClient(String clientId, Boolean debug) {
|
||||
if (Boolean.TRUE.equals(debug)) {
|
||||
service = new ServiceBuilder(clientId)
|
||||
.apiSecretIsEmptyStringUnsafe().debug()
|
||||
.build(authApi);
|
||||
} else {
|
||||
service = new ServiceBuilder(clientId)
|
||||
.apiSecretIsEmptyStringUnsafe()
|
||||
.build(authApi);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
public OAuth usePasswordFlow(String username, String password) {
|
||||
this.flow = OAuthFlow.PASSWORD;
|
||||
this.username = username;
|
||||
|
||||
@@ -99,9 +99,9 @@ if(hasProperty('target') && target == 'android') {
|
||||
|
||||
ext {
|
||||
swagger_annotations_version = "1.6.5"
|
||||
jackson_version = "2.13.2"
|
||||
jackson_databind_version = "2.13.2.2"
|
||||
jackson_databind_nullable_version = "0.2.3"
|
||||
jackson_version = "2.13.4"
|
||||
jackson_databind_version = "2.13.4.2"
|
||||
jackson_databind_nullable_version = "0.2.4"
|
||||
jakarta_annotation_version = "2.1.0"
|
||||
jersey_version = "3.0.4"
|
||||
junit_version = "5.8.2"
|
||||
|
||||
@@ -16,11 +16,11 @@ lazy val root = (project in file(".")).
|
||||
"org.glassfish.jersey.media" % "jersey-media-multipart" % "3.0.4",
|
||||
"org.glassfish.jersey.media" % "jersey-media-json-jackson" % "3.0.4",
|
||||
"org.glassfish.jersey.connectors" % "jersey-apache-connector" % "3.0.4",
|
||||
"com.fasterxml.jackson.core" % "jackson-core" % "2.13.2" % "compile",
|
||||
"com.fasterxml.jackson.core" % "jackson-annotations" % "2.13.2" % "compile",
|
||||
"com.fasterxml.jackson.core" % "jackson-databind" % "2.13.2.2" % "compile",
|
||||
"com.fasterxml.jackson.core" % "jackson-core" % "2.13.4" % "compile",
|
||||
"com.fasterxml.jackson.core" % "jackson-annotations" % "2.13.4" % "compile",
|
||||
"com.fasterxml.jackson.core" % "jackson-databind" % "2.13.4.2" % "compile",
|
||||
"com.fasterxml.jackson.datatype" % "jackson-datatype-jsr310" % "2.13.2" % "compile",
|
||||
"org.openapitools" % "jackson-databind-nullable" % "0.2.3" % "compile",
|
||||
"org.openapitools" % "jackson-databind-nullable" % "0.2.4" % "compile",
|
||||
"com.github.scribejava" % "scribejava-apis" % "8.3.1" % "compile",
|
||||
"org.tomitribe" % "tomitribe-http-signatures" % "1.7" % "compile",
|
||||
"jakarta.annotation" % "jakarta.annotation-api" % "2.1.0" % "compile",
|
||||
|
||||
@@ -345,9 +345,9 @@
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<swagger-annotations-version>1.6.5</swagger-annotations-version>
|
||||
<jersey-version>3.0.4</jersey-version>
|
||||
<jackson-version>2.13.2</jackson-version>
|
||||
<jackson-databind-version>2.13.2.2</jackson-databind-version>
|
||||
<jackson-databind-nullable-version>0.2.3</jackson-databind-nullable-version>
|
||||
<jackson-version>2.13.4</jackson-version>
|
||||
<jackson-databind-version>2.13.4.2</jackson-databind-version>
|
||||
<jackson-databind-nullable-version>0.2.4</jackson-databind-nullable-version>
|
||||
<jakarta-annotation-version>2.1.0</jakarta-annotation-version>
|
||||
<junit-version>5.8.2</junit-version>
|
||||
<http-signature-version>1.7</http-signature-version>
|
||||
|
||||
@@ -530,6 +530,22 @@ public class ApiClient extends JavaTimeFormatter {
|
||||
throw new RuntimeException("No OAuth2 authentication configured!");
|
||||
}
|
||||
|
||||
/**
|
||||
* Helper method to set the credentials of a public client for the first OAuth2 authentication.
|
||||
*
|
||||
* @param clientId the client ID
|
||||
* @return a {@link org.openapitools.client.ApiClient} object.
|
||||
*/
|
||||
public ApiClient setOauthCredentialsForPublicClient(String clientId) {
|
||||
for (Authentication auth : authentications.values()) {
|
||||
if (auth instanceof OAuth) {
|
||||
((OAuth) auth).setCredentialsForPublicClient(clientId, isDebugging());
|
||||
return this;
|
||||
}
|
||||
}
|
||||
throw new RuntimeException("No OAuth2 authentication configured!");
|
||||
}
|
||||
|
||||
/**
|
||||
* Helper method to set the password flow for the first OAuth2 authentication.
|
||||
*
|
||||
|
||||
@@ -42,7 +42,7 @@ public class ServerConfiguration {
|
||||
throw new IllegalArgumentException("The variable " + name + " in the server URL has invalid value " + value + ".");
|
||||
}
|
||||
}
|
||||
url = url.replaceAll("\\{" + name + "\\}", value);
|
||||
url = url.replace("{" + name + "}", value);
|
||||
}
|
||||
return url;
|
||||
}
|
||||
|
||||
@@ -169,6 +169,19 @@ public class OAuth implements Authentication {
|
||||
return this;
|
||||
}
|
||||
|
||||
public OAuth setCredentialsForPublicClient(String clientId, Boolean debug) {
|
||||
if (Boolean.TRUE.equals(debug)) {
|
||||
service = new ServiceBuilder(clientId)
|
||||
.apiSecretIsEmptyStringUnsafe().debug()
|
||||
.build(authApi);
|
||||
} else {
|
||||
service = new ServiceBuilder(clientId)
|
||||
.apiSecretIsEmptyStringUnsafe()
|
||||
.build(authApi);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
public OAuth usePasswordFlow(String username, String password) {
|
||||
this.flow = OAuthFlow.PASSWORD;
|
||||
this.username = username;
|
||||
|
||||
@@ -2037,6 +2037,7 @@ components:
|
||||
status:
|
||||
description: Updated status of the pet
|
||||
type: string
|
||||
type: object
|
||||
uploadFile_request:
|
||||
properties:
|
||||
additionalMetadata:
|
||||
@@ -2046,6 +2047,7 @@ components:
|
||||
description: file to upload
|
||||
format: binary
|
||||
type: string
|
||||
type: object
|
||||
testEnumParameters_request:
|
||||
properties:
|
||||
enum_form_string_array:
|
||||
@@ -2065,6 +2067,7 @@ components:
|
||||
- -efg
|
||||
- (xyz)
|
||||
type: string
|
||||
type: object
|
||||
testEndpointParameters_request:
|
||||
properties:
|
||||
integer:
|
||||
@@ -2137,6 +2140,7 @@ components:
|
||||
- double
|
||||
- number
|
||||
- pattern_without_delimiter
|
||||
type: object
|
||||
testJsonFormData_request:
|
||||
properties:
|
||||
param:
|
||||
@@ -2148,6 +2152,7 @@ components:
|
||||
required:
|
||||
- param
|
||||
- param2
|
||||
type: object
|
||||
uploadFileWithRequiredFile_request:
|
||||
properties:
|
||||
additionalMetadata:
|
||||
@@ -2159,6 +2164,7 @@ components:
|
||||
type: string
|
||||
required:
|
||||
- requiredFile
|
||||
type: object
|
||||
Dog_allOf:
|
||||
properties:
|
||||
breed:
|
||||
|
||||
@@ -215,7 +215,7 @@
|
||||
<maven.compiler.source>11</maven.compiler.source>
|
||||
<maven.compiler.target>11</maven.compiler.target>
|
||||
<jackson-version>2.13.4</jackson-version>
|
||||
<jackson-databind-nullable-version>0.2.3</jackson-databind-nullable-version>
|
||||
<jackson-databind-nullable-version>0.2.4</jackson-databind-nullable-version>
|
||||
<jakarta-annotation-version>1.3.5</jakarta-annotation-version>
|
||||
<junit-version>4.13.2</junit-version>
|
||||
</properties>
|
||||
|
||||
@@ -42,7 +42,7 @@ public class ServerConfiguration {
|
||||
throw new IllegalArgumentException("The variable " + name + " in the server URL has invalid value " + value + ".");
|
||||
}
|
||||
}
|
||||
url = url.replaceAll("\\{" + name + "\\}", value);
|
||||
url = url.replace("{" + name + "}", value);
|
||||
}
|
||||
return url;
|
||||
}
|
||||
|
||||
@@ -2037,6 +2037,7 @@ components:
|
||||
status:
|
||||
description: Updated status of the pet
|
||||
type: string
|
||||
type: object
|
||||
uploadFile_request:
|
||||
properties:
|
||||
additionalMetadata:
|
||||
@@ -2046,6 +2047,7 @@ components:
|
||||
description: file to upload
|
||||
format: binary
|
||||
type: string
|
||||
type: object
|
||||
testEnumParameters_request:
|
||||
properties:
|
||||
enum_form_string_array:
|
||||
@@ -2065,6 +2067,7 @@ components:
|
||||
- -efg
|
||||
- (xyz)
|
||||
type: string
|
||||
type: object
|
||||
testEndpointParameters_request:
|
||||
properties:
|
||||
integer:
|
||||
@@ -2137,6 +2140,7 @@ components:
|
||||
- double
|
||||
- number
|
||||
- pattern_without_delimiter
|
||||
type: object
|
||||
testJsonFormData_request:
|
||||
properties:
|
||||
param:
|
||||
@@ -2148,6 +2152,7 @@ components:
|
||||
required:
|
||||
- param
|
||||
- param2
|
||||
type: object
|
||||
uploadFileWithRequiredFile_request:
|
||||
properties:
|
||||
additionalMetadata:
|
||||
@@ -2159,6 +2164,7 @@ components:
|
||||
type: string
|
||||
required:
|
||||
- requiredFile
|
||||
type: object
|
||||
Dog_allOf:
|
||||
properties:
|
||||
breed:
|
||||
|
||||
@@ -215,7 +215,7 @@
|
||||
<maven.compiler.source>11</maven.compiler.source>
|
||||
<maven.compiler.target>11</maven.compiler.target>
|
||||
<jackson-version>2.13.4</jackson-version>
|
||||
<jackson-databind-nullable-version>0.2.3</jackson-databind-nullable-version>
|
||||
<jackson-databind-nullable-version>0.2.4</jackson-databind-nullable-version>
|
||||
<jakarta-annotation-version>1.3.5</jakarta-annotation-version>
|
||||
<junit-version>4.13.2</junit-version>
|
||||
</properties>
|
||||
|
||||
@@ -42,7 +42,7 @@ public class ServerConfiguration {
|
||||
throw new IllegalArgumentException("The variable " + name + " in the server URL has invalid value " + value + ".");
|
||||
}
|
||||
}
|
||||
url = url.replaceAll("\\{" + name + "\\}", value);
|
||||
url = url.replace("{" + name + "}", value);
|
||||
}
|
||||
return url;
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ buildscript {
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:2.3.+'
|
||||
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
|
||||
classpath 'com.diffplug.spotless:spotless-plugin-gradle:6.3.0'
|
||||
classpath 'com.diffplug.spotless:spotless-plugin-gradle:6.11.0'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -65,7 +65,7 @@ if(hasProperty('target') && target == 'android') {
|
||||
task.from variant.javaCompile.destinationDir
|
||||
task.destinationDir = project.file("${project.buildDir}/outputs/jar")
|
||||
task.archiveName = "${project.name}-${variant.baseName}-${version}.jar"
|
||||
artifacts.add('archives', task);
|
||||
artifacts.add('archives', task)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -106,22 +106,22 @@ ext {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'io.swagger:swagger-annotations:1.6.5'
|
||||
implementation 'io.swagger:swagger-annotations:1.6.8'
|
||||
implementation "com.google.code.findbugs:jsr305:3.0.2"
|
||||
implementation 'com.squareup.okhttp3:okhttp:4.9.3'
|
||||
implementation 'com.squareup.okhttp3:logging-interceptor:4.9.3'
|
||||
implementation 'com.google.code.gson:gson:2.9.0'
|
||||
implementation 'com.squareup.okhttp3:okhttp:4.10.0'
|
||||
implementation 'com.squareup.okhttp3:logging-interceptor:4.10.0'
|
||||
implementation 'com.google.code.gson:gson:2.9.1'
|
||||
implementation 'io.gsonfire:gson-fire:1.8.5'
|
||||
implementation 'javax.ws.rs:jsr311-api:1.1.1'
|
||||
implementation 'javax.ws.rs:javax.ws.rs-api:2.1.1'
|
||||
implementation 'org.openapitools:jackson-databind-nullable:0.2.3'
|
||||
implementation group: 'org.apache.oltu.oauth2', name: 'org.apache.oltu.oauth2.client', version: '1.0.1'
|
||||
implementation 'org.openapitools:jackson-databind-nullable:0.2.4'
|
||||
implementation group: 'org.apache.oltu.oauth2', name: 'org.apache.oltu.oauth2.client', version: '1.0.2'
|
||||
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.12.0'
|
||||
implementation 'io.swagger.parser.v3:swagger-parser-v3:2.0.30'
|
||||
implementation "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version"
|
||||
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
|
||||
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.1'
|
||||
testImplementation 'org.mockito:mockito-core:3.12.4'
|
||||
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
|
||||
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.1'
|
||||
}
|
||||
|
||||
javadoc {
|
||||
|
||||
@@ -10,20 +10,21 @@ lazy val root = (project in file(".")).
|
||||
resolvers += Resolver.mavenLocal,
|
||||
libraryDependencies ++= Seq(
|
||||
"io.swagger" % "swagger-annotations" % "1.6.5",
|
||||
"com.squareup.okhttp3" % "okhttp" % "4.9.3",
|
||||
"com.squareup.okhttp3" % "logging-interceptor" % "4.9.3",
|
||||
"com.google.code.gson" % "gson" % "2.9.0",
|
||||
"com.squareup.okhttp3" % "okhttp" % "4.10.0",
|
||||
"com.squareup.okhttp3" % "logging-interceptor" % "4.10.0",
|
||||
"com.google.code.gson" % "gson" % "2.9.1",
|
||||
"org.apache.commons" % "commons-lang3" % "3.12.0",
|
||||
"javax.ws.rs" % "jsr311-api" % "1.1.1",
|
||||
"javax.ws.rs" % "javax.ws.rs-api" % "2.1.1",
|
||||
"org.openapitools" % "jackson-databind-nullable" % "0.2.3",
|
||||
"org.apache.oltu.oauth2" % "org.apache.oltu.oauth2.client" % "1.0.1",
|
||||
"org.openapitools" % "jackson-databind-nullable" % "0.2.4",
|
||||
"org.apache.oltu.oauth2" % "org.apache.oltu.oauth2.client" % "1.0.2",
|
||||
"io.swagger.parser.v3" % "swagger-parser-v3" "2.0.30" % "compile"
|
||||
"io.gsonfire" % "gson-fire" % "1.8.5" % "compile",
|
||||
"jakarta.annotation" % "jakarta.annotation-api" % "1.3.5" % "compile",
|
||||
"com.google.code.findbugs" % "jsr305" % "3.0.2" % "compile",
|
||||
"jakarta.annotation" % "jakarta.annotation-api" % "1.3.5" % "compile",
|
||||
"org.junit.jupiter" % "junit-jupiter-api" % "5.8.2" % "test",
|
||||
"com.novocode" % "junit-interface" % "0.10" % "test"
|
||||
"org.junit.jupiter" % "junit-jupiter-api" % "5.9.1" % "test",
|
||||
"com.novocode" % "junit-interface" % "0.10" % "test",
|
||||
"org.mockito" % "mockito-core" % "3.12.4" % "test"
|
||||
)
|
||||
)
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-enforcer-plugin</artifactId>
|
||||
<version>3.0.0</version>
|
||||
<version>3.1.0</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>enforce-maven</id>
|
||||
@@ -93,6 +93,7 @@
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-dependency-plugin</artifactId>
|
||||
<version>3.3.0</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
@@ -109,7 +110,7 @@
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<version>3.2.0</version>
|
||||
<version>3.3.0</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
@@ -123,7 +124,7 @@
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>build-helper-maven-plugin</artifactId>
|
||||
<version>3.2.0</version>
|
||||
<version>3.3.0</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>add_sources</id>
|
||||
@@ -154,7 +155,7 @@
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-javadoc-plugin</artifactId>
|
||||
<version>3.3.2</version>
|
||||
<version>3.4.1</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>attach-javadocs</id>
|
||||
@@ -177,7 +178,7 @@
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-source-plugin</artifactId>
|
||||
<version>3.2.0</version>
|
||||
<version>3.2.1</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>attach-sources</id>
|
||||
@@ -291,7 +292,7 @@
|
||||
<dependency>
|
||||
<groupId>org.apache.oltu.oauth2</groupId>
|
||||
<artifactId>org.apache.oltu.oauth2.client</artifactId>
|
||||
<version>1.0.1</version>
|
||||
<version>1.0.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.commons</groupId>
|
||||
@@ -350,17 +351,17 @@
|
||||
<maven.compiler.target>${java.version}</maven.compiler.target>
|
||||
<gson-fire-version>1.8.5</gson-fire-version>
|
||||
<swagger-core-version>1.6.5</swagger-core-version>
|
||||
<okhttp-version>4.9.3</okhttp-version>
|
||||
<gson-version>2.9.0</gson-version>
|
||||
<okhttp-version>4.10.0</okhttp-version>
|
||||
<gson-version>2.9.1</gson-version>
|
||||
<commons-lang3-version>3.12.0</commons-lang3-version>
|
||||
<jackson-databind-nullable-version>0.2.3</jackson-databind-nullable-version>
|
||||
<jackson-databind-nullable-version>0.2.4</jackson-databind-nullable-version>
|
||||
<jakarta-annotation-version>1.3.5</jakarta-annotation-version>
|
||||
<junit-version>5.8.2</junit-version>
|
||||
<junit-platform-runner.version>1.6.2</junit-platform-runner.version>
|
||||
<junit-version>5.9.1</junit-version>
|
||||
<junit-platform-runner.version>1.9.1</junit-platform-runner.version>
|
||||
<mockito-core-version>3.12.4</mockito-core-version>
|
||||
<javax.ws.rs-api-version>2.1.1</javax.ws.rs-api-version>
|
||||
<jsr311-api-version>1.1.1</jsr311-api-version>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<spotless.version>2.21.0</spotless.version>
|
||||
<spotless.version>2.27.2</spotless.version>
|
||||
</properties>
|
||||
</project>
|
||||
|
||||
@@ -371,7 +371,7 @@ public class ApiClient {
|
||||
* @return a {@link org.openapitools.client.ApiClient} object
|
||||
*/
|
||||
public ApiClient setDateFormat(DateFormat dateFormat) {
|
||||
this.json.setDateFormat(dateFormat);
|
||||
JSON.setDateFormat(dateFormat);
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -382,7 +382,7 @@ public class ApiClient {
|
||||
* @return a {@link org.openapitools.client.ApiClient} object
|
||||
*/
|
||||
public ApiClient setSqlDateFormat(DateFormat dateFormat) {
|
||||
this.json.setSqlDateFormat(dateFormat);
|
||||
JSON.setSqlDateFormat(dateFormat);
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -393,7 +393,7 @@ public class ApiClient {
|
||||
* @return a {@link org.openapitools.client.ApiClient} object
|
||||
*/
|
||||
public ApiClient setOffsetDateTimeFormat(DateTimeFormatter dateFormat) {
|
||||
this.json.setOffsetDateTimeFormat(dateFormat);
|
||||
JSON.setOffsetDateTimeFormat(dateFormat);
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -404,7 +404,7 @@ public class ApiClient {
|
||||
* @return a {@link org.openapitools.client.ApiClient} object
|
||||
*/
|
||||
public ApiClient setLocalDateFormat(DateTimeFormatter dateFormat) {
|
||||
this.json.setLocalDateFormat(dateFormat);
|
||||
JSON.setLocalDateFormat(dateFormat);
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -415,7 +415,7 @@ public class ApiClient {
|
||||
* @return a {@link org.openapitools.client.ApiClient} object
|
||||
*/
|
||||
public ApiClient setLenientOnJson(boolean lenientOnJson) {
|
||||
this.json.setLenientOnJson(lenientOnJson);
|
||||
JSON.setLenientOnJson(lenientOnJson);
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -696,7 +696,7 @@ public class ApiClient {
|
||||
return "";
|
||||
} else if (param instanceof Date || param instanceof OffsetDateTime || param instanceof LocalDate) {
|
||||
//Serialize to json string and remove the " enclosing characters
|
||||
String jsonStr = json.serialize(param);
|
||||
String jsonStr = JSON.serialize(param);
|
||||
return jsonStr.substring(1, jsonStr.length() - 1);
|
||||
} else if (param instanceof Collection) {
|
||||
StringBuilder b = new StringBuilder();
|
||||
@@ -704,7 +704,7 @@ public class ApiClient {
|
||||
if (b.length() > 0) {
|
||||
b.append(",");
|
||||
}
|
||||
b.append(String.valueOf(o));
|
||||
b.append(o);
|
||||
}
|
||||
return b.toString();
|
||||
} else {
|
||||
@@ -943,7 +943,7 @@ public class ApiClient {
|
||||
contentType = "application/json";
|
||||
}
|
||||
if (isJsonMime(contentType)) {
|
||||
return json.deserialize(respBody, returnType);
|
||||
return JSON.deserialize(respBody, returnType);
|
||||
} else if (returnType.equals(String.class)) {
|
||||
// Expecting string, return the raw response body.
|
||||
return (T) respBody;
|
||||
@@ -977,13 +977,13 @@ public class ApiClient {
|
||||
} else if (isJsonMime(contentType)) {
|
||||
String content;
|
||||
if (obj != null) {
|
||||
content = json.serialize(obj);
|
||||
content = JSON.serialize(obj);
|
||||
} else {
|
||||
content = null;
|
||||
}
|
||||
return RequestBody.create(content, MediaType.parse(contentType));
|
||||
} else if (obj instanceof String) {
|
||||
return RequestBody.create(MediaType.parse(contentType), (String) obj);
|
||||
return RequestBody.create((String) obj, MediaType.parse(contentType));
|
||||
} else {
|
||||
throw new ApiException("Content type \"" + contentType + "\" is not supported");
|
||||
}
|
||||
@@ -1456,7 +1456,7 @@ public class ApiClient {
|
||||
} else {
|
||||
String content;
|
||||
if (obj != null) {
|
||||
content = json.serialize(obj);
|
||||
content = JSON.serialize(obj);
|
||||
} else {
|
||||
content = null;
|
||||
}
|
||||
@@ -1534,7 +1534,7 @@ public class ApiClient {
|
||||
KeyStore caKeyStore = newEmptyKeyStore(password);
|
||||
int index = 0;
|
||||
for (Certificate certificate : certificates) {
|
||||
String certificateAlias = "ca" + Integer.toString(index++);
|
||||
String certificateAlias = "ca" + (index++);
|
||||
caKeyStore.setCertificateEntry(certificateAlias, certificate);
|
||||
}
|
||||
trustManagerFactory.init(caKeyStore);
|
||||
@@ -1608,7 +1608,7 @@ public class ApiClient {
|
||||
if (entry.getKey().equals(param.getName())) {
|
||||
switch (param.getIn()) {
|
||||
case "path":
|
||||
path = path.replaceAll("\\{" + param.getName() + "\\}", escapeString(value.toString()));
|
||||
path = path.replace("{" + param.getName() + "}", escapeString(value.toString()));
|
||||
break;
|
||||
case "query":
|
||||
if (value instanceof Collection<?>) {
|
||||
|
||||
@@ -42,7 +42,7 @@ public class ServerConfiguration {
|
||||
throw new IllegalArgumentException("The variable " + name + " in the server URL has invalid value " + value + ".");
|
||||
}
|
||||
}
|
||||
url = url.replaceAll("\\{" + name + "\\}", value);
|
||||
url = url.replace("{" + name + "}", value);
|
||||
}
|
||||
return url;
|
||||
}
|
||||
|
||||
@@ -143,15 +143,12 @@ public class AnotherFakeApi {
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
private okhttp3.Call call123testSpecialTagsValidateBeforeCall(Client body, final ApiCallback _callback) throws ApiException {
|
||||
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new ApiException("Missing the required parameter 'body' when calling call123testSpecialTags(Async)");
|
||||
}
|
||||
|
||||
|
||||
okhttp3.Call localVarCall = call123testSpecialTagsCall(body, _callback);
|
||||
return localVarCall;
|
||||
return call123testSpecialTagsCall(body, _callback);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -130,7 +130,6 @@ public class FakeApi {
|
||||
localVarPath = localVarApiClient.fillParametersFromOperation(operation, paramMap, localVarPath, localVarQueryParams, localVarCollectionQueryParams, localVarHeaderParams, localVarCookieParams);
|
||||
|
||||
final String[] localVarAccepts = {
|
||||
|
||||
};
|
||||
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
|
||||
if (localVarAccept != null) {
|
||||
@@ -138,7 +137,12 @@ public class FakeApi {
|
||||
}
|
||||
|
||||
final String[] localVarContentTypes = {
|
||||
"application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16"
|
||||
"application/xml",
|
||||
"application/xml; charset=utf-8",
|
||||
"application/xml; charset=utf-16",
|
||||
"text/xml",
|
||||
"text/xml; charset=utf-8",
|
||||
"text/xml; charset=utf-16"
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
if (localVarContentType != null) {
|
||||
@@ -151,15 +155,12 @@ public class FakeApi {
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
private okhttp3.Call createXmlItemValidateBeforeCall(XmlItem xmlItem, final ApiCallback _callback) throws ApiException {
|
||||
|
||||
// verify the required parameter 'xmlItem' is set
|
||||
if (xmlItem == null) {
|
||||
throw new ApiException("Missing the required parameter 'xmlItem' when calling createXmlItem(Async)");
|
||||
}
|
||||
|
||||
|
||||
okhttp3.Call localVarCall = createXmlItemCall(xmlItem, _callback);
|
||||
return localVarCall;
|
||||
return createXmlItemCall(xmlItem, _callback);
|
||||
|
||||
}
|
||||
|
||||
@@ -268,7 +269,6 @@ public class FakeApi {
|
||||
}
|
||||
|
||||
final String[] localVarContentTypes = {
|
||||
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
if (localVarContentType != null) {
|
||||
@@ -281,10 +281,7 @@ public class FakeApi {
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
private okhttp3.Call fakeOuterBooleanSerializeValidateBeforeCall(Boolean body, final ApiCallback _callback) throws ApiException {
|
||||
|
||||
|
||||
okhttp3.Call localVarCall = fakeOuterBooleanSerializeCall(body, _callback);
|
||||
return localVarCall;
|
||||
return fakeOuterBooleanSerializeCall(body, _callback);
|
||||
|
||||
}
|
||||
|
||||
@@ -397,7 +394,6 @@ public class FakeApi {
|
||||
}
|
||||
|
||||
final String[] localVarContentTypes = {
|
||||
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
if (localVarContentType != null) {
|
||||
@@ -410,10 +406,7 @@ public class FakeApi {
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
private okhttp3.Call fakeOuterCompositeSerializeValidateBeforeCall(OuterComposite body, final ApiCallback _callback) throws ApiException {
|
||||
|
||||
|
||||
okhttp3.Call localVarCall = fakeOuterCompositeSerializeCall(body, _callback);
|
||||
return localVarCall;
|
||||
return fakeOuterCompositeSerializeCall(body, _callback);
|
||||
|
||||
}
|
||||
|
||||
@@ -526,7 +519,6 @@ public class FakeApi {
|
||||
}
|
||||
|
||||
final String[] localVarContentTypes = {
|
||||
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
if (localVarContentType != null) {
|
||||
@@ -539,10 +531,7 @@ public class FakeApi {
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
private okhttp3.Call fakeOuterNumberSerializeValidateBeforeCall(BigDecimal body, final ApiCallback _callback) throws ApiException {
|
||||
|
||||
|
||||
okhttp3.Call localVarCall = fakeOuterNumberSerializeCall(body, _callback);
|
||||
return localVarCall;
|
||||
return fakeOuterNumberSerializeCall(body, _callback);
|
||||
|
||||
}
|
||||
|
||||
@@ -655,7 +644,6 @@ public class FakeApi {
|
||||
}
|
||||
|
||||
final String[] localVarContentTypes = {
|
||||
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
if (localVarContentType != null) {
|
||||
@@ -668,10 +656,7 @@ public class FakeApi {
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
private okhttp3.Call fakeOuterStringSerializeValidateBeforeCall(String body, final ApiCallback _callback) throws ApiException {
|
||||
|
||||
|
||||
okhttp3.Call localVarCall = fakeOuterStringSerializeCall(body, _callback);
|
||||
return localVarCall;
|
||||
return fakeOuterStringSerializeCall(body, _callback);
|
||||
|
||||
}
|
||||
|
||||
@@ -776,7 +761,6 @@ public class FakeApi {
|
||||
localVarPath = localVarApiClient.fillParametersFromOperation(operation, paramMap, localVarPath, localVarQueryParams, localVarCollectionQueryParams, localVarHeaderParams, localVarCookieParams);
|
||||
|
||||
final String[] localVarAccepts = {
|
||||
|
||||
};
|
||||
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
|
||||
if (localVarAccept != null) {
|
||||
@@ -797,15 +781,12 @@ public class FakeApi {
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
private okhttp3.Call testBodyWithFileSchemaValidateBeforeCall(FileSchemaTestClass body, final ApiCallback _callback) throws ApiException {
|
||||
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new ApiException("Missing the required parameter 'body' when calling testBodyWithFileSchema(Async)");
|
||||
}
|
||||
|
||||
|
||||
okhttp3.Call localVarCall = testBodyWithFileSchemaCall(body, _callback);
|
||||
return localVarCall;
|
||||
return testBodyWithFileSchemaCall(body, _callback);
|
||||
|
||||
}
|
||||
|
||||
@@ -908,7 +889,6 @@ public class FakeApi {
|
||||
localVarPath = localVarApiClient.fillParametersFromOperation(operation, paramMap, localVarPath, localVarQueryParams, localVarCollectionQueryParams, localVarHeaderParams, localVarCookieParams);
|
||||
|
||||
final String[] localVarAccepts = {
|
||||
|
||||
};
|
||||
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
|
||||
if (localVarAccept != null) {
|
||||
@@ -929,20 +909,17 @@ public class FakeApi {
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
private okhttp3.Call testBodyWithQueryParamsValidateBeforeCall(String query, User body, final ApiCallback _callback) throws ApiException {
|
||||
|
||||
// verify the required parameter 'query' is set
|
||||
if (query == null) {
|
||||
throw new ApiException("Missing the required parameter 'query' when calling testBodyWithQueryParams(Async)");
|
||||
}
|
||||
|
||||
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new ApiException("Missing the required parameter 'body' when calling testBodyWithQueryParams(Async)");
|
||||
}
|
||||
|
||||
|
||||
okhttp3.Call localVarCall = testBodyWithQueryParamsCall(query, body, _callback);
|
||||
return localVarCall;
|
||||
return testBodyWithQueryParamsCall(query, body, _callback);
|
||||
|
||||
}
|
||||
|
||||
@@ -1067,15 +1044,12 @@ public class FakeApi {
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
private okhttp3.Call testClientModelValidateBeforeCall(Client body, final ApiCallback _callback) throws ApiException {
|
||||
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new ApiException("Missing the required parameter 'body' when calling testClientModel(Async)");
|
||||
}
|
||||
|
||||
|
||||
okhttp3.Call localVarCall = testClientModelCall(body, _callback);
|
||||
return localVarCall;
|
||||
return testClientModelCall(body, _callback);
|
||||
|
||||
}
|
||||
|
||||
@@ -1250,7 +1224,6 @@ public class FakeApi {
|
||||
localVarPath = localVarApiClient.fillParametersFromOperation(operation, paramMap, localVarPath, localVarQueryParams, localVarCollectionQueryParams, localVarHeaderParams, localVarCookieParams);
|
||||
|
||||
final String[] localVarAccepts = {
|
||||
|
||||
};
|
||||
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
|
||||
if (localVarAccept != null) {
|
||||
@@ -1271,30 +1244,27 @@ public class FakeApi {
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
private okhttp3.Call testEndpointParametersValidateBeforeCall(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, File binary, LocalDate date, OffsetDateTime dateTime, String password, String paramCallback, final ApiCallback _callback) throws ApiException {
|
||||
|
||||
// verify the required parameter 'number' is set
|
||||
if (number == null) {
|
||||
throw new ApiException("Missing the required parameter 'number' when calling testEndpointParameters(Async)");
|
||||
}
|
||||
|
||||
|
||||
// verify the required parameter '_double' is set
|
||||
if (_double == null) {
|
||||
throw new ApiException("Missing the required parameter '_double' when calling testEndpointParameters(Async)");
|
||||
}
|
||||
|
||||
|
||||
// verify the required parameter 'patternWithoutDelimiter' is set
|
||||
if (patternWithoutDelimiter == null) {
|
||||
throw new ApiException("Missing the required parameter 'patternWithoutDelimiter' when calling testEndpointParameters(Async)");
|
||||
}
|
||||
|
||||
|
||||
// verify the required parameter '_byte' is set
|
||||
if (_byte == null) {
|
||||
throw new ApiException("Missing the required parameter '_byte' when calling testEndpointParameters(Async)");
|
||||
}
|
||||
|
||||
|
||||
okhttp3.Call localVarCall = testEndpointParametersCall(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback, _callback);
|
||||
return localVarCall;
|
||||
return testEndpointParametersCall(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback, _callback);
|
||||
|
||||
}
|
||||
|
||||
@@ -1459,7 +1429,6 @@ public class FakeApi {
|
||||
localVarPath = localVarApiClient.fillParametersFromOperation(operation, paramMap, localVarPath, localVarQueryParams, localVarCollectionQueryParams, localVarHeaderParams, localVarCookieParams);
|
||||
|
||||
final String[] localVarAccepts = {
|
||||
|
||||
};
|
||||
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
|
||||
if (localVarAccept != null) {
|
||||
@@ -1480,10 +1449,7 @@ public class FakeApi {
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
private okhttp3.Call testEnumParametersValidateBeforeCall(List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List<String> enumFormStringArray, String enumFormString, final ApiCallback _callback) throws ApiException {
|
||||
|
||||
|
||||
okhttp3.Call localVarCall = testEnumParametersCall(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString, _callback);
|
||||
return localVarCall;
|
||||
return testEnumParametersCall(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString, _callback);
|
||||
|
||||
}
|
||||
|
||||
@@ -1602,7 +1568,6 @@ public class FakeApi {
|
||||
localVarPath = localVarApiClient.fillParametersFromOperation(operation, paramMap, localVarPath, localVarQueryParams, localVarCollectionQueryParams, localVarHeaderParams, localVarCookieParams);
|
||||
|
||||
final String[] localVarAccepts = {
|
||||
|
||||
};
|
||||
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
|
||||
if (localVarAccept != null) {
|
||||
@@ -1610,7 +1575,6 @@ public class FakeApi {
|
||||
}
|
||||
|
||||
final String[] localVarContentTypes = {
|
||||
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
if (localVarContentType != null) {
|
||||
@@ -1623,25 +1587,22 @@ public class FakeApi {
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
private okhttp3.Call testGroupParametersValidateBeforeCall(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group, final ApiCallback _callback) throws ApiException {
|
||||
|
||||
// verify the required parameter 'requiredStringGroup' is set
|
||||
if (requiredStringGroup == null) {
|
||||
throw new ApiException("Missing the required parameter 'requiredStringGroup' when calling testGroupParameters(Async)");
|
||||
}
|
||||
|
||||
|
||||
// verify the required parameter 'requiredBooleanGroup' is set
|
||||
if (requiredBooleanGroup == null) {
|
||||
throw new ApiException("Missing the required parameter 'requiredBooleanGroup' when calling testGroupParameters(Async)");
|
||||
}
|
||||
|
||||
|
||||
// verify the required parameter 'requiredInt64Group' is set
|
||||
if (requiredInt64Group == null) {
|
||||
throw new ApiException("Missing the required parameter 'requiredInt64Group' when calling testGroupParameters(Async)");
|
||||
}
|
||||
|
||||
|
||||
okhttp3.Call localVarCall = testGroupParametersCall(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group, _callback);
|
||||
return localVarCall;
|
||||
return testGroupParametersCall(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group, _callback);
|
||||
|
||||
}
|
||||
|
||||
@@ -1822,7 +1783,6 @@ public class FakeApi {
|
||||
localVarPath = localVarApiClient.fillParametersFromOperation(operation, paramMap, localVarPath, localVarQueryParams, localVarCollectionQueryParams, localVarHeaderParams, localVarCookieParams);
|
||||
|
||||
final String[] localVarAccepts = {
|
||||
|
||||
};
|
||||
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
|
||||
if (localVarAccept != null) {
|
||||
@@ -1843,15 +1803,12 @@ public class FakeApi {
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
private okhttp3.Call testInlineAdditionalPropertiesValidateBeforeCall(Map<String, String> param, final ApiCallback _callback) throws ApiException {
|
||||
|
||||
// verify the required parameter 'param' is set
|
||||
if (param == null) {
|
||||
throw new ApiException("Missing the required parameter 'param' when calling testInlineAdditionalProperties(Async)");
|
||||
}
|
||||
|
||||
|
||||
okhttp3.Call localVarCall = testInlineAdditionalPropertiesCall(param, _callback);
|
||||
return localVarCall;
|
||||
return testInlineAdditionalPropertiesCall(param, _callback);
|
||||
|
||||
}
|
||||
|
||||
@@ -1961,7 +1918,6 @@ public class FakeApi {
|
||||
localVarPath = localVarApiClient.fillParametersFromOperation(operation, paramMap, localVarPath, localVarQueryParams, localVarCollectionQueryParams, localVarHeaderParams, localVarCookieParams);
|
||||
|
||||
final String[] localVarAccepts = {
|
||||
|
||||
};
|
||||
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
|
||||
if (localVarAccept != null) {
|
||||
@@ -1982,20 +1938,17 @@ public class FakeApi {
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
private okhttp3.Call testJsonFormDataValidateBeforeCall(String param, String param2, final ApiCallback _callback) throws ApiException {
|
||||
|
||||
// verify the required parameter 'param' is set
|
||||
if (param == null) {
|
||||
throw new ApiException("Missing the required parameter 'param' when calling testJsonFormData(Async)");
|
||||
}
|
||||
|
||||
|
||||
// verify the required parameter 'param2' is set
|
||||
if (param2 == null) {
|
||||
throw new ApiException("Missing the required parameter 'param2' when calling testJsonFormData(Async)");
|
||||
}
|
||||
|
||||
|
||||
okhttp3.Call localVarCall = testJsonFormDataCall(param, param2, _callback);
|
||||
return localVarCall;
|
||||
return testJsonFormDataCall(param, param2, _callback);
|
||||
|
||||
}
|
||||
|
||||
@@ -2108,7 +2061,6 @@ public class FakeApi {
|
||||
localVarPath = localVarApiClient.fillParametersFromOperation(operation, paramMap, localVarPath, localVarQueryParams, localVarCollectionQueryParams, localVarHeaderParams, localVarCookieParams);
|
||||
|
||||
final String[] localVarAccepts = {
|
||||
|
||||
};
|
||||
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
|
||||
if (localVarAccept != null) {
|
||||
@@ -2116,7 +2068,6 @@ public class FakeApi {
|
||||
}
|
||||
|
||||
final String[] localVarContentTypes = {
|
||||
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
if (localVarContentType != null) {
|
||||
@@ -2129,35 +2080,32 @@ public class FakeApi {
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
private okhttp3.Call testQueryParameterCollectionFormatValidateBeforeCall(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context, final ApiCallback _callback) throws ApiException {
|
||||
|
||||
// verify the required parameter 'pipe' is set
|
||||
if (pipe == null) {
|
||||
throw new ApiException("Missing the required parameter 'pipe' when calling testQueryParameterCollectionFormat(Async)");
|
||||
}
|
||||
|
||||
|
||||
// verify the required parameter 'ioutil' is set
|
||||
if (ioutil == null) {
|
||||
throw new ApiException("Missing the required parameter 'ioutil' when calling testQueryParameterCollectionFormat(Async)");
|
||||
}
|
||||
|
||||
|
||||
// verify the required parameter 'http' is set
|
||||
if (http == null) {
|
||||
throw new ApiException("Missing the required parameter 'http' when calling testQueryParameterCollectionFormat(Async)");
|
||||
}
|
||||
|
||||
|
||||
// verify the required parameter 'url' is set
|
||||
if (url == null) {
|
||||
throw new ApiException("Missing the required parameter 'url' when calling testQueryParameterCollectionFormat(Async)");
|
||||
}
|
||||
|
||||
|
||||
// verify the required parameter 'context' is set
|
||||
if (context == null) {
|
||||
throw new ApiException("Missing the required parameter 'context' when calling testQueryParameterCollectionFormat(Async)");
|
||||
}
|
||||
|
||||
|
||||
okhttp3.Call localVarCall = testQueryParameterCollectionFormatCall(pipe, ioutil, http, url, context, _callback);
|
||||
return localVarCall;
|
||||
return testQueryParameterCollectionFormatCall(pipe, ioutil, http, url, context, _callback);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -143,15 +143,12 @@ public class FakeClassnameTags123Api {
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
private okhttp3.Call testClassnameValidateBeforeCall(Client body, final ApiCallback _callback) throws ApiException {
|
||||
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new ApiException("Missing the required parameter 'body' when calling testClassname(Async)");
|
||||
}
|
||||
|
||||
|
||||
okhttp3.Call localVarCall = testClassnameCall(body, _callback);
|
||||
return localVarCall;
|
||||
return testClassnameCall(body, _callback);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -126,7 +126,6 @@ public class PetApi {
|
||||
localVarPath = localVarApiClient.fillParametersFromOperation(operation, paramMap, localVarPath, localVarQueryParams, localVarCollectionQueryParams, localVarHeaderParams, localVarCookieParams);
|
||||
|
||||
final String[] localVarAccepts = {
|
||||
|
||||
};
|
||||
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
|
||||
if (localVarAccept != null) {
|
||||
@@ -134,7 +133,8 @@ public class PetApi {
|
||||
}
|
||||
|
||||
final String[] localVarContentTypes = {
|
||||
"application/json", "application/xml"
|
||||
"application/json",
|
||||
"application/xml"
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
if (localVarContentType != null) {
|
||||
@@ -147,15 +147,12 @@ public class PetApi {
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
private okhttp3.Call addPetValidateBeforeCall(Pet body, final ApiCallback _callback) throws ApiException {
|
||||
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new ApiException("Missing the required parameter 'body' when calling addPet(Async)");
|
||||
}
|
||||
|
||||
|
||||
okhttp3.Call localVarCall = addPetCall(body, _callback);
|
||||
return localVarCall;
|
||||
return addPetCall(body, _callback);
|
||||
|
||||
}
|
||||
|
||||
@@ -263,7 +260,6 @@ public class PetApi {
|
||||
localVarPath = localVarApiClient.fillParametersFromOperation(operation, paramMap, localVarPath, localVarQueryParams, localVarCollectionQueryParams, localVarHeaderParams, localVarCookieParams);
|
||||
|
||||
final String[] localVarAccepts = {
|
||||
|
||||
};
|
||||
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
|
||||
if (localVarAccept != null) {
|
||||
@@ -271,7 +267,6 @@ public class PetApi {
|
||||
}
|
||||
|
||||
final String[] localVarContentTypes = {
|
||||
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
if (localVarContentType != null) {
|
||||
@@ -284,15 +279,12 @@ public class PetApi {
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
private okhttp3.Call deletePetValidateBeforeCall(Long petId, String apiKey, final ApiCallback _callback) throws ApiException {
|
||||
|
||||
// verify the required parameter 'petId' is set
|
||||
if (petId == null) {
|
||||
throw new ApiException("Missing the required parameter 'petId' when calling deletePet(Async)");
|
||||
}
|
||||
|
||||
|
||||
okhttp3.Call localVarCall = deletePetCall(petId, apiKey, _callback);
|
||||
return localVarCall;
|
||||
return deletePetCall(petId, apiKey, _callback);
|
||||
|
||||
}
|
||||
|
||||
@@ -401,7 +393,8 @@ public class PetApi {
|
||||
localVarPath = localVarApiClient.fillParametersFromOperation(operation, paramMap, localVarPath, localVarQueryParams, localVarCollectionQueryParams, localVarHeaderParams, localVarCookieParams);
|
||||
|
||||
final String[] localVarAccepts = {
|
||||
"application/xml", "application/json"
|
||||
"application/xml",
|
||||
"application/json"
|
||||
};
|
||||
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
|
||||
if (localVarAccept != null) {
|
||||
@@ -409,7 +402,6 @@ public class PetApi {
|
||||
}
|
||||
|
||||
final String[] localVarContentTypes = {
|
||||
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
if (localVarContentType != null) {
|
||||
@@ -422,15 +414,12 @@ public class PetApi {
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
private okhttp3.Call findPetsByStatusValidateBeforeCall(List<String> status, final ApiCallback _callback) throws ApiException {
|
||||
|
||||
// verify the required parameter 'status' is set
|
||||
if (status == null) {
|
||||
throw new ApiException("Missing the required parameter 'status' when calling findPetsByStatus(Async)");
|
||||
}
|
||||
|
||||
|
||||
okhttp3.Call localVarCall = findPetsByStatusCall(status, _callback);
|
||||
return localVarCall;
|
||||
return findPetsByStatusCall(status, _callback);
|
||||
|
||||
}
|
||||
|
||||
@@ -542,7 +531,8 @@ public class PetApi {
|
||||
localVarPath = localVarApiClient.fillParametersFromOperation(operation, paramMap, localVarPath, localVarQueryParams, localVarCollectionQueryParams, localVarHeaderParams, localVarCookieParams);
|
||||
|
||||
final String[] localVarAccepts = {
|
||||
"application/xml", "application/json"
|
||||
"application/xml",
|
||||
"application/json"
|
||||
};
|
||||
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
|
||||
if (localVarAccept != null) {
|
||||
@@ -550,7 +540,6 @@ public class PetApi {
|
||||
}
|
||||
|
||||
final String[] localVarContentTypes = {
|
||||
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
if (localVarContentType != null) {
|
||||
@@ -564,15 +553,12 @@ public class PetApi {
|
||||
@Deprecated
|
||||
@SuppressWarnings("rawtypes")
|
||||
private okhttp3.Call findPetsByTagsValidateBeforeCall(Set<String> tags, final ApiCallback _callback) throws ApiException {
|
||||
|
||||
// verify the required parameter 'tags' is set
|
||||
if (tags == null) {
|
||||
throw new ApiException("Missing the required parameter 'tags' when calling findPetsByTags(Async)");
|
||||
}
|
||||
|
||||
|
||||
okhttp3.Call localVarCall = findPetsByTagsCall(tags, _callback);
|
||||
return localVarCall;
|
||||
return findPetsByTagsCall(tags, _callback);
|
||||
|
||||
}
|
||||
|
||||
@@ -689,7 +675,8 @@ public class PetApi {
|
||||
localVarPath = localVarApiClient.fillParametersFromOperation(operation, paramMap, localVarPath, localVarQueryParams, localVarCollectionQueryParams, localVarHeaderParams, localVarCookieParams);
|
||||
|
||||
final String[] localVarAccepts = {
|
||||
"application/xml", "application/json"
|
||||
"application/xml",
|
||||
"application/json"
|
||||
};
|
||||
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
|
||||
if (localVarAccept != null) {
|
||||
@@ -697,7 +684,6 @@ public class PetApi {
|
||||
}
|
||||
|
||||
final String[] localVarContentTypes = {
|
||||
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
if (localVarContentType != null) {
|
||||
@@ -710,15 +696,12 @@ public class PetApi {
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
private okhttp3.Call getPetByIdValidateBeforeCall(Long petId, final ApiCallback _callback) throws ApiException {
|
||||
|
||||
// verify the required parameter 'petId' is set
|
||||
if (petId == null) {
|
||||
throw new ApiException("Missing the required parameter 'petId' when calling getPetById(Async)");
|
||||
}
|
||||
|
||||
|
||||
okhttp3.Call localVarCall = getPetByIdCall(petId, _callback);
|
||||
return localVarCall;
|
||||
return getPetByIdCall(petId, _callback);
|
||||
|
||||
}
|
||||
|
||||
@@ -832,7 +815,6 @@ public class PetApi {
|
||||
localVarPath = localVarApiClient.fillParametersFromOperation(operation, paramMap, localVarPath, localVarQueryParams, localVarCollectionQueryParams, localVarHeaderParams, localVarCookieParams);
|
||||
|
||||
final String[] localVarAccepts = {
|
||||
|
||||
};
|
||||
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
|
||||
if (localVarAccept != null) {
|
||||
@@ -840,7 +822,8 @@ public class PetApi {
|
||||
}
|
||||
|
||||
final String[] localVarContentTypes = {
|
||||
"application/json", "application/xml"
|
||||
"application/json",
|
||||
"application/xml"
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
if (localVarContentType != null) {
|
||||
@@ -853,15 +836,12 @@ public class PetApi {
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
private okhttp3.Call updatePetValidateBeforeCall(Pet body, final ApiCallback _callback) throws ApiException {
|
||||
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new ApiException("Missing the required parameter 'body' when calling updatePet(Async)");
|
||||
}
|
||||
|
||||
|
||||
okhttp3.Call localVarCall = updatePetCall(body, _callback);
|
||||
return localVarCall;
|
||||
return updatePetCall(body, _callback);
|
||||
|
||||
}
|
||||
|
||||
@@ -982,7 +962,6 @@ public class PetApi {
|
||||
localVarPath = localVarApiClient.fillParametersFromOperation(operation, paramMap, localVarPath, localVarQueryParams, localVarCollectionQueryParams, localVarHeaderParams, localVarCookieParams);
|
||||
|
||||
final String[] localVarAccepts = {
|
||||
|
||||
};
|
||||
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
|
||||
if (localVarAccept != null) {
|
||||
@@ -1003,15 +982,12 @@ public class PetApi {
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
private okhttp3.Call updatePetWithFormValidateBeforeCall(Long petId, String name, String status, final ApiCallback _callback) throws ApiException {
|
||||
|
||||
// verify the required parameter 'petId' is set
|
||||
if (petId == null) {
|
||||
throw new ApiException("Missing the required parameter 'petId' when calling updatePetWithForm(Async)");
|
||||
}
|
||||
|
||||
|
||||
okhttp3.Call localVarCall = updatePetWithFormCall(petId, name, status, _callback);
|
||||
return localVarCall;
|
||||
return updatePetWithFormCall(petId, name, status, _callback);
|
||||
|
||||
}
|
||||
|
||||
@@ -1150,15 +1126,12 @@ public class PetApi {
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
private okhttp3.Call uploadFileValidateBeforeCall(Long petId, String additionalMetadata, File _file, final ApiCallback _callback) throws ApiException {
|
||||
|
||||
// verify the required parameter 'petId' is set
|
||||
if (petId == null) {
|
||||
throw new ApiException("Missing the required parameter 'petId' when calling uploadFile(Async)");
|
||||
}
|
||||
|
||||
|
||||
okhttp3.Call localVarCall = uploadFileCall(petId, additionalMetadata, _file, _callback);
|
||||
return localVarCall;
|
||||
return uploadFileCall(petId, additionalMetadata, _file, _callback);
|
||||
|
||||
}
|
||||
|
||||
@@ -1301,20 +1274,17 @@ public class PetApi {
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
private okhttp3.Call uploadFileWithRequiredFileValidateBeforeCall(Long petId, File requiredFile, String additionalMetadata, final ApiCallback _callback) throws ApiException {
|
||||
|
||||
// verify the required parameter 'petId' is set
|
||||
if (petId == null) {
|
||||
throw new ApiException("Missing the required parameter 'petId' when calling uploadFileWithRequiredFile(Async)");
|
||||
}
|
||||
|
||||
|
||||
// verify the required parameter 'requiredFile' is set
|
||||
if (requiredFile == null) {
|
||||
throw new ApiException("Missing the required parameter 'requiredFile' when calling uploadFileWithRequiredFile(Async)");
|
||||
}
|
||||
|
||||
|
||||
okhttp3.Call localVarCall = uploadFileWithRequiredFileCall(petId, requiredFile, additionalMetadata, _callback);
|
||||
return localVarCall;
|
||||
return uploadFileWithRequiredFileCall(petId, requiredFile, additionalMetadata, _callback);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -124,7 +124,6 @@ public class StoreApi {
|
||||
localVarPath = localVarApiClient.fillParametersFromOperation(operation, paramMap, localVarPath, localVarQueryParams, localVarCollectionQueryParams, localVarHeaderParams, localVarCookieParams);
|
||||
|
||||
final String[] localVarAccepts = {
|
||||
|
||||
};
|
||||
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
|
||||
if (localVarAccept != null) {
|
||||
@@ -132,7 +131,6 @@ public class StoreApi {
|
||||
}
|
||||
|
||||
final String[] localVarContentTypes = {
|
||||
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
if (localVarContentType != null) {
|
||||
@@ -145,15 +143,12 @@ public class StoreApi {
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
private okhttp3.Call deleteOrderValidateBeforeCall(String orderId, final ApiCallback _callback) throws ApiException {
|
||||
|
||||
// verify the required parameter 'orderId' is set
|
||||
if (orderId == null) {
|
||||
throw new ApiException("Missing the required parameter 'orderId' when calling deleteOrder(Async)");
|
||||
}
|
||||
|
||||
|
||||
okhttp3.Call localVarCall = deleteOrderCall(orderId, _callback);
|
||||
return localVarCall;
|
||||
return deleteOrderCall(orderId, _callback);
|
||||
|
||||
}
|
||||
|
||||
@@ -264,7 +259,6 @@ public class StoreApi {
|
||||
}
|
||||
|
||||
final String[] localVarContentTypes = {
|
||||
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
if (localVarContentType != null) {
|
||||
@@ -277,10 +271,7 @@ public class StoreApi {
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
private okhttp3.Call getInventoryValidateBeforeCall(final ApiCallback _callback) throws ApiException {
|
||||
|
||||
|
||||
okhttp3.Call localVarCall = getInventoryCall(_callback);
|
||||
return localVarCall;
|
||||
return getInventoryCall(_callback);
|
||||
|
||||
}
|
||||
|
||||
@@ -385,7 +376,8 @@ public class StoreApi {
|
||||
localVarPath = localVarApiClient.fillParametersFromOperation(operation, paramMap, localVarPath, localVarQueryParams, localVarCollectionQueryParams, localVarHeaderParams, localVarCookieParams);
|
||||
|
||||
final String[] localVarAccepts = {
|
||||
"application/xml", "application/json"
|
||||
"application/xml",
|
||||
"application/json"
|
||||
};
|
||||
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
|
||||
if (localVarAccept != null) {
|
||||
@@ -393,7 +385,6 @@ public class StoreApi {
|
||||
}
|
||||
|
||||
final String[] localVarContentTypes = {
|
||||
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
if (localVarContentType != null) {
|
||||
@@ -406,15 +397,12 @@ public class StoreApi {
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
private okhttp3.Call getOrderByIdValidateBeforeCall(Long orderId, final ApiCallback _callback) throws ApiException {
|
||||
|
||||
// verify the required parameter 'orderId' is set
|
||||
if (orderId == null) {
|
||||
throw new ApiException("Missing the required parameter 'orderId' when calling getOrderById(Async)");
|
||||
}
|
||||
|
||||
|
||||
okhttp3.Call localVarCall = getOrderByIdCall(orderId, _callback);
|
||||
return localVarCall;
|
||||
return getOrderByIdCall(orderId, _callback);
|
||||
|
||||
}
|
||||
|
||||
@@ -526,7 +514,8 @@ public class StoreApi {
|
||||
localVarPath = localVarApiClient.fillParametersFromOperation(operation, paramMap, localVarPath, localVarQueryParams, localVarCollectionQueryParams, localVarHeaderParams, localVarCookieParams);
|
||||
|
||||
final String[] localVarAccepts = {
|
||||
"application/xml", "application/json"
|
||||
"application/xml",
|
||||
"application/json"
|
||||
};
|
||||
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
|
||||
if (localVarAccept != null) {
|
||||
@@ -534,7 +523,6 @@ public class StoreApi {
|
||||
}
|
||||
|
||||
final String[] localVarContentTypes = {
|
||||
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
if (localVarContentType != null) {
|
||||
@@ -547,15 +535,12 @@ public class StoreApi {
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
private okhttp3.Call placeOrderValidateBeforeCall(Order body, final ApiCallback _callback) throws ApiException {
|
||||
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new ApiException("Missing the required parameter 'body' when calling placeOrder(Async)");
|
||||
}
|
||||
|
||||
|
||||
okhttp3.Call localVarCall = placeOrderCall(body, _callback);
|
||||
return localVarCall;
|
||||
return placeOrderCall(body, _callback);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -123,7 +123,6 @@ public class UserApi {
|
||||
localVarPath = localVarApiClient.fillParametersFromOperation(operation, paramMap, localVarPath, localVarQueryParams, localVarCollectionQueryParams, localVarHeaderParams, localVarCookieParams);
|
||||
|
||||
final String[] localVarAccepts = {
|
||||
|
||||
};
|
||||
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
|
||||
if (localVarAccept != null) {
|
||||
@@ -131,7 +130,6 @@ public class UserApi {
|
||||
}
|
||||
|
||||
final String[] localVarContentTypes = {
|
||||
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
if (localVarContentType != null) {
|
||||
@@ -144,15 +142,12 @@ public class UserApi {
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
private okhttp3.Call createUserValidateBeforeCall(User body, final ApiCallback _callback) throws ApiException {
|
||||
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new ApiException("Missing the required parameter 'body' when calling createUser(Async)");
|
||||
}
|
||||
|
||||
|
||||
okhttp3.Call localVarCall = createUserCall(body, _callback);
|
||||
return localVarCall;
|
||||
return createUserCall(body, _callback);
|
||||
|
||||
}
|
||||
|
||||
@@ -253,7 +248,6 @@ public class UserApi {
|
||||
localVarPath = localVarApiClient.fillParametersFromOperation(operation, paramMap, localVarPath, localVarQueryParams, localVarCollectionQueryParams, localVarHeaderParams, localVarCookieParams);
|
||||
|
||||
final String[] localVarAccepts = {
|
||||
|
||||
};
|
||||
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
|
||||
if (localVarAccept != null) {
|
||||
@@ -261,7 +255,6 @@ public class UserApi {
|
||||
}
|
||||
|
||||
final String[] localVarContentTypes = {
|
||||
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
if (localVarContentType != null) {
|
||||
@@ -274,15 +267,12 @@ public class UserApi {
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
private okhttp3.Call createUsersWithArrayInputValidateBeforeCall(List<User> body, final ApiCallback _callback) throws ApiException {
|
||||
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new ApiException("Missing the required parameter 'body' when calling createUsersWithArrayInput(Async)");
|
||||
}
|
||||
|
||||
|
||||
okhttp3.Call localVarCall = createUsersWithArrayInputCall(body, _callback);
|
||||
return localVarCall;
|
||||
return createUsersWithArrayInputCall(body, _callback);
|
||||
|
||||
}
|
||||
|
||||
@@ -383,7 +373,6 @@ public class UserApi {
|
||||
localVarPath = localVarApiClient.fillParametersFromOperation(operation, paramMap, localVarPath, localVarQueryParams, localVarCollectionQueryParams, localVarHeaderParams, localVarCookieParams);
|
||||
|
||||
final String[] localVarAccepts = {
|
||||
|
||||
};
|
||||
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
|
||||
if (localVarAccept != null) {
|
||||
@@ -391,7 +380,6 @@ public class UserApi {
|
||||
}
|
||||
|
||||
final String[] localVarContentTypes = {
|
||||
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
if (localVarContentType != null) {
|
||||
@@ -404,15 +392,12 @@ public class UserApi {
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
private okhttp3.Call createUsersWithListInputValidateBeforeCall(List<User> body, final ApiCallback _callback) throws ApiException {
|
||||
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new ApiException("Missing the required parameter 'body' when calling createUsersWithListInput(Async)");
|
||||
}
|
||||
|
||||
|
||||
okhttp3.Call localVarCall = createUsersWithListInputCall(body, _callback);
|
||||
return localVarCall;
|
||||
return createUsersWithListInputCall(body, _callback);
|
||||
|
||||
}
|
||||
|
||||
@@ -515,7 +500,6 @@ public class UserApi {
|
||||
localVarPath = localVarApiClient.fillParametersFromOperation(operation, paramMap, localVarPath, localVarQueryParams, localVarCollectionQueryParams, localVarHeaderParams, localVarCookieParams);
|
||||
|
||||
final String[] localVarAccepts = {
|
||||
|
||||
};
|
||||
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
|
||||
if (localVarAccept != null) {
|
||||
@@ -523,7 +507,6 @@ public class UserApi {
|
||||
}
|
||||
|
||||
final String[] localVarContentTypes = {
|
||||
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
if (localVarContentType != null) {
|
||||
@@ -536,15 +519,12 @@ public class UserApi {
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
private okhttp3.Call deleteUserValidateBeforeCall(String username, final ApiCallback _callback) throws ApiException {
|
||||
|
||||
// verify the required parameter 'username' is set
|
||||
if (username == null) {
|
||||
throw new ApiException("Missing the required parameter 'username' when calling deleteUser(Async)");
|
||||
}
|
||||
|
||||
|
||||
okhttp3.Call localVarCall = deleteUserCall(username, _callback);
|
||||
return localVarCall;
|
||||
return deleteUserCall(username, _callback);
|
||||
|
||||
}
|
||||
|
||||
@@ -651,7 +631,8 @@ public class UserApi {
|
||||
localVarPath = localVarApiClient.fillParametersFromOperation(operation, paramMap, localVarPath, localVarQueryParams, localVarCollectionQueryParams, localVarHeaderParams, localVarCookieParams);
|
||||
|
||||
final String[] localVarAccepts = {
|
||||
"application/xml", "application/json"
|
||||
"application/xml",
|
||||
"application/json"
|
||||
};
|
||||
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
|
||||
if (localVarAccept != null) {
|
||||
@@ -659,7 +640,6 @@ public class UserApi {
|
||||
}
|
||||
|
||||
final String[] localVarContentTypes = {
|
||||
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
if (localVarContentType != null) {
|
||||
@@ -672,15 +652,12 @@ public class UserApi {
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
private okhttp3.Call getUserByNameValidateBeforeCall(String username, final ApiCallback _callback) throws ApiException {
|
||||
|
||||
// verify the required parameter 'username' is set
|
||||
if (username == null) {
|
||||
throw new ApiException("Missing the required parameter 'username' when calling getUserByName(Async)");
|
||||
}
|
||||
|
||||
|
||||
okhttp3.Call localVarCall = getUserByNameCall(username, _callback);
|
||||
return localVarCall;
|
||||
return getUserByNameCall(username, _callback);
|
||||
|
||||
}
|
||||
|
||||
@@ -795,7 +772,8 @@ public class UserApi {
|
||||
localVarPath = localVarApiClient.fillParametersFromOperation(operation, paramMap, localVarPath, localVarQueryParams, localVarCollectionQueryParams, localVarHeaderParams, localVarCookieParams);
|
||||
|
||||
final String[] localVarAccepts = {
|
||||
"application/xml", "application/json"
|
||||
"application/xml",
|
||||
"application/json"
|
||||
};
|
||||
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
|
||||
if (localVarAccept != null) {
|
||||
@@ -803,7 +781,6 @@ public class UserApi {
|
||||
}
|
||||
|
||||
final String[] localVarContentTypes = {
|
||||
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
if (localVarContentType != null) {
|
||||
@@ -816,20 +793,17 @@ public class UserApi {
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
private okhttp3.Call loginUserValidateBeforeCall(String username, String password, final ApiCallback _callback) throws ApiException {
|
||||
|
||||
// verify the required parameter 'username' is set
|
||||
if (username == null) {
|
||||
throw new ApiException("Missing the required parameter 'username' when calling loginUser(Async)");
|
||||
}
|
||||
|
||||
|
||||
// verify the required parameter 'password' is set
|
||||
if (password == null) {
|
||||
throw new ApiException("Missing the required parameter 'password' when calling loginUser(Async)");
|
||||
}
|
||||
|
||||
|
||||
okhttp3.Call localVarCall = loginUserCall(username, password, _callback);
|
||||
return localVarCall;
|
||||
return loginUserCall(username, password, _callback);
|
||||
|
||||
}
|
||||
|
||||
@@ -939,7 +913,6 @@ public class UserApi {
|
||||
localVarPath = localVarApiClient.fillParametersFromOperation(operation, paramMap, localVarPath, localVarQueryParams, localVarCollectionQueryParams, localVarHeaderParams, localVarCookieParams);
|
||||
|
||||
final String[] localVarAccepts = {
|
||||
|
||||
};
|
||||
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
|
||||
if (localVarAccept != null) {
|
||||
@@ -947,7 +920,6 @@ public class UserApi {
|
||||
}
|
||||
|
||||
final String[] localVarContentTypes = {
|
||||
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
if (localVarContentType != null) {
|
||||
@@ -960,10 +932,7 @@ public class UserApi {
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
private okhttp3.Call logoutUserValidateBeforeCall(final ApiCallback _callback) throws ApiException {
|
||||
|
||||
|
||||
okhttp3.Call localVarCall = logoutUserCall(_callback);
|
||||
return localVarCall;
|
||||
return logoutUserCall(_callback);
|
||||
|
||||
}
|
||||
|
||||
@@ -1064,7 +1033,6 @@ public class UserApi {
|
||||
localVarPath = localVarApiClient.fillParametersFromOperation(operation, paramMap, localVarPath, localVarQueryParams, localVarCollectionQueryParams, localVarHeaderParams, localVarCookieParams);
|
||||
|
||||
final String[] localVarAccepts = {
|
||||
|
||||
};
|
||||
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
|
||||
if (localVarAccept != null) {
|
||||
@@ -1072,7 +1040,6 @@ public class UserApi {
|
||||
}
|
||||
|
||||
final String[] localVarContentTypes = {
|
||||
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
if (localVarContentType != null) {
|
||||
@@ -1085,20 +1052,17 @@ public class UserApi {
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
private okhttp3.Call updateUserValidateBeforeCall(String username, User body, final ApiCallback _callback) throws ApiException {
|
||||
|
||||
// verify the required parameter 'username' is set
|
||||
if (username == null) {
|
||||
throw new ApiException("Missing the required parameter 'username' when calling updateUser(Async)");
|
||||
}
|
||||
|
||||
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new ApiException("Missing the required parameter 'body' when calling updateUser(Async)");
|
||||
}
|
||||
|
||||
|
||||
okhttp3.Call localVarCall = updateUserCall(username, body, _callback);
|
||||
return localVarCall;
|
||||
return updateUserCall(username, body, _callback);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -55,6 +55,7 @@ public class OAuthOkHttpClient implements HttpClient {
|
||||
response.body().string(),
|
||||
response.body().contentType().toString(),
|
||||
response.code(),
|
||||
response.headers().toMultimap(),
|
||||
responseClass);
|
||||
} catch (IOException e) {
|
||||
throw new OAuthSystemException(e);
|
||||
|
||||
@@ -65,8 +65,8 @@ public class RetryingOAuth extends OAuth implements Interceptor {
|
||||
.setClientSecret(clientSecret));
|
||||
setFlow(flow);
|
||||
if (parameters != null) {
|
||||
for (String paramName : parameters.keySet()) {
|
||||
tokenRequestBuilder.setParameter(paramName, parameters.get(paramName));
|
||||
for (Map.Entry<String, String> entry : parameters.entrySet()) {
|
||||
tokenRequestBuilder.setParameter(entry.getKey(), entry.getValue());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -129,8 +129,8 @@ public class RetryingOAuth extends OAuth implements Interceptor {
|
||||
}
|
||||
|
||||
Map<String, String> headers = oAuthRequest.getHeaders();
|
||||
for (String headerName : headers.keySet()) {
|
||||
requestBuilder.addHeader(headerName, headers.get(headerName));
|
||||
for (Map.Entry<String, String> entry : headers.entrySet()) {
|
||||
requestBuilder.addHeader(entry.getKey(), entry.getValue());
|
||||
}
|
||||
requestBuilder.url(oAuthRequest.getLocationUri());
|
||||
|
||||
|
||||
@@ -38,6 +38,7 @@ import com.google.gson.reflect.TypeToken;
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.Set;
|
||||
|
||||
@@ -39,6 +39,7 @@ import com.google.gson.reflect.TypeToken;
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.Set;
|
||||
|
||||
@@ -38,6 +38,7 @@ import com.google.gson.reflect.TypeToken;
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.Set;
|
||||
|
||||
@@ -42,6 +42,7 @@ import com.google.gson.reflect.TypeToken;
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.Set;
|
||||
|
||||
@@ -38,6 +38,7 @@ import com.google.gson.reflect.TypeToken;
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.Set;
|
||||
|
||||
@@ -39,6 +39,7 @@ import com.google.gson.reflect.TypeToken;
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.Set;
|
||||
|
||||
@@ -39,6 +39,7 @@ import com.google.gson.reflect.TypeToken;
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.Set;
|
||||
|
||||
@@ -38,6 +38,7 @@ import com.google.gson.reflect.TypeToken;
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.Set;
|
||||
|
||||
@@ -41,6 +41,7 @@ import com.google.gson.reflect.TypeToken;
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.Set;
|
||||
|
||||
@@ -41,6 +41,7 @@ import com.google.gson.reflect.TypeToken;
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.Set;
|
||||
@@ -161,8 +162,8 @@ public class ArrayOfArrayOfNumberOnly {
|
||||
throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ArrayOfArrayOfNumberOnly` properties. JSON: %s", entry.getKey(), jsonObj.toString()));
|
||||
}
|
||||
}
|
||||
// ensure the json data is an array
|
||||
if (!jsonObj.get("ArrayArrayNumber").isJsonArray()) {
|
||||
// ensure the optional json data is an array if present
|
||||
if (jsonObj.get("ArrayArrayNumber") != null && !jsonObj.get("ArrayArrayNumber").isJsonArray()) {
|
||||
throw new IllegalArgumentException(String.format("Expected the field `ArrayArrayNumber` to be an array in the JSON string but got `%s`", jsonObj.get("ArrayArrayNumber").toString()));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -41,6 +41,7 @@ import com.google.gson.reflect.TypeToken;
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.Set;
|
||||
@@ -161,8 +162,8 @@ public class ArrayOfNumberOnly {
|
||||
throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ArrayOfNumberOnly` properties. JSON: %s", entry.getKey(), jsonObj.toString()));
|
||||
}
|
||||
}
|
||||
// ensure the json data is an array
|
||||
if (!jsonObj.get("ArrayNumber").isJsonArray()) {
|
||||
// ensure the optional json data is an array if present
|
||||
if (jsonObj.get("ArrayNumber") != null && !jsonObj.get("ArrayNumber").isJsonArray()) {
|
||||
throw new IllegalArgumentException(String.format("Expected the field `ArrayNumber` to be an array in the JSON string but got `%s`", jsonObj.get("ArrayNumber").toString()));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -41,6 +41,7 @@ import com.google.gson.reflect.TypeToken;
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.Set;
|
||||
@@ -237,16 +238,16 @@ public class ArrayTest {
|
||||
throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ArrayTest` properties. JSON: %s", entry.getKey(), jsonObj.toString()));
|
||||
}
|
||||
}
|
||||
// ensure the json data is an array
|
||||
if (!jsonObj.get("array_of_string").isJsonArray()) {
|
||||
// ensure the optional json data is an array if present
|
||||
if (jsonObj.get("array_of_string") != null && !jsonObj.get("array_of_string").isJsonArray()) {
|
||||
throw new IllegalArgumentException(String.format("Expected the field `array_of_string` to be an array in the JSON string but got `%s`", jsonObj.get("array_of_string").toString()));
|
||||
}
|
||||
// ensure the json data is an array
|
||||
if (!jsonObj.get("array_array_of_integer").isJsonArray()) {
|
||||
// ensure the optional json data is an array if present
|
||||
if (jsonObj.get("array_array_of_integer") != null && !jsonObj.get("array_array_of_integer").isJsonArray()) {
|
||||
throw new IllegalArgumentException(String.format("Expected the field `array_array_of_integer` to be an array in the JSON string but got `%s`", jsonObj.get("array_array_of_integer").toString()));
|
||||
}
|
||||
// ensure the json data is an array
|
||||
if (!jsonObj.get("array_array_of_model").isJsonArray()) {
|
||||
// ensure the optional json data is an array if present
|
||||
if (jsonObj.get("array_array_of_model") != null && !jsonObj.get("array_array_of_model").isJsonArray()) {
|
||||
throw new IllegalArgumentException(String.format("Expected the field `array_array_of_model` to be an array in the JSON string but got `%s`", jsonObj.get("array_array_of_model").toString()));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,6 +39,7 @@ import com.google.gson.reflect.TypeToken;
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.Set;
|
||||
|
||||
@@ -38,6 +38,7 @@ import com.google.gson.reflect.TypeToken;
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.Set;
|
||||
|
||||
@@ -38,6 +38,7 @@ import com.google.gson.reflect.TypeToken;
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.Set;
|
||||
|
||||
@@ -40,6 +40,7 @@ import com.google.gson.reflect.TypeToken;
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.Set;
|
||||
|
||||
@@ -38,6 +38,7 @@ import com.google.gson.reflect.TypeToken;
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.Set;
|
||||
|
||||
@@ -38,6 +38,7 @@ import com.google.gson.reflect.TypeToken;
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.Set;
|
||||
|
||||
@@ -38,6 +38,7 @@ import com.google.gson.reflect.TypeToken;
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.Set;
|
||||
|
||||
@@ -38,6 +38,7 @@ import com.google.gson.reflect.TypeToken;
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.Set;
|
||||
|
||||
@@ -39,6 +39,7 @@ import com.google.gson.reflect.TypeToken;
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.Set;
|
||||
|
||||
@@ -38,6 +38,7 @@ import com.google.gson.reflect.TypeToken;
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.Set;
|
||||
|
||||
@@ -40,6 +40,7 @@ import com.google.gson.reflect.TypeToken;
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.Set;
|
||||
@@ -287,8 +288,8 @@ public class EnumArrays {
|
||||
if ((jsonObj.get("just_symbol") != null && !jsonObj.get("just_symbol").isJsonNull()) && !jsonObj.get("just_symbol").isJsonPrimitive()) {
|
||||
throw new IllegalArgumentException(String.format("Expected the field `just_symbol` to be a primitive type in the JSON string but got `%s`", jsonObj.get("just_symbol").toString()));
|
||||
}
|
||||
// ensure the json data is an array
|
||||
if (!jsonObj.get("array_enum").isJsonArray()) {
|
||||
// ensure the optional json data is an array if present
|
||||
if (jsonObj.get("array_enum") != null && !jsonObj.get("array_enum").isJsonArray()) {
|
||||
throw new IllegalArgumentException(String.format("Expected the field `array_enum` to be an array in the JSON string but got `%s`", jsonObj.get("array_enum").toString()));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,6 +39,7 @@ import com.google.gson.reflect.TypeToken;
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.Set;
|
||||
|
||||
@@ -41,6 +41,7 @@ import com.google.gson.reflect.TypeToken;
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.Set;
|
||||
|
||||
@@ -43,6 +43,7 @@ import com.google.gson.reflect.TypeToken;
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.Set;
|
||||
|
||||
@@ -38,6 +38,7 @@ import com.google.gson.reflect.TypeToken;
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.Set;
|
||||
|
||||
@@ -40,6 +40,7 @@ import com.google.gson.reflect.TypeToken;
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.Set;
|
||||
|
||||
@@ -43,6 +43,7 @@ import com.google.gson.reflect.TypeToken;
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.Set;
|
||||
|
||||
@@ -38,6 +38,7 @@ import com.google.gson.reflect.TypeToken;
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.Set;
|
||||
|
||||
@@ -38,6 +38,7 @@ import com.google.gson.reflect.TypeToken;
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.Set;
|
||||
|
||||
@@ -38,6 +38,7 @@ import com.google.gson.reflect.TypeToken;
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.Set;
|
||||
|
||||
@@ -38,6 +38,7 @@ import com.google.gson.reflect.TypeToken;
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.Set;
|
||||
|
||||
@@ -38,6 +38,7 @@ import com.google.gson.reflect.TypeToken;
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.Set;
|
||||
|
||||
@@ -38,6 +38,7 @@ import com.google.gson.reflect.TypeToken;
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.Set;
|
||||
|
||||
@@ -39,6 +39,7 @@ import com.google.gson.reflect.TypeToken;
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.Set;
|
||||
|
||||
@@ -39,6 +39,7 @@ import com.google.gson.reflect.TypeToken;
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.Set;
|
||||
|
||||
@@ -39,6 +39,7 @@ import com.google.gson.reflect.TypeToken;
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.Set;
|
||||
|
||||
@@ -44,6 +44,7 @@ import com.google.gson.reflect.TypeToken;
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.Set;
|
||||
@@ -384,8 +385,10 @@ public class Pet {
|
||||
if (!jsonObj.get("name").isJsonPrimitive()) {
|
||||
throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString()));
|
||||
}
|
||||
// ensure the json data is an array
|
||||
if ((jsonObj.get("photoUrls") != null && !jsonObj.get("photoUrls").isJsonNull()) && !jsonObj.get("photoUrls").isJsonArray()) {
|
||||
// ensure the required json array is present
|
||||
if (jsonObj.get("photoUrls") == null) {
|
||||
throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`");
|
||||
} else if (!jsonObj.get("photoUrls").isJsonArray()) {
|
||||
throw new IllegalArgumentException(String.format("Expected the field `photoUrls` to be an array in the JSON string but got `%s`", jsonObj.get("photoUrls").toString()));
|
||||
}
|
||||
if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) {
|
||||
|
||||
@@ -38,6 +38,7 @@ import com.google.gson.reflect.TypeToken;
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.Set;
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user