diff --git a/.github/workflows/samples-java-client-jdk11.yaml b/.github/workflows/samples-java-client-jdk11.yaml
index 268d078095c3..22d6e72a987b 100644
--- a/.github/workflows/samples-java-client-jdk11.yaml
+++ b/.github/workflows/samples-java-client-jdk11.yaml
@@ -61,12 +61,15 @@ jobs:
- samples/client/petstore/java/rest-assured
- samples/client/petstore/java/rest-assured-jackson
- samples/client/petstore/java/microprofile-rest-client
+ - samples/client/petstore/java/microprofile-rest-client-mutiny
- samples/client/petstore/java/microprofile-rest-client-3.0
- samples/client/petstore/java/microprofile-rest-client-3.0-jackson
- samples/client/petstore/java/microprofile-rest-client-3.0-jackson-with-xml
+ - samples/client/petstore/java/microprofile-rest-client-3.0-mutiny
- samples/client/petstore/java/microprofile-rest-client-with-useSingleRequestParameter
- samples/client/petstore/java/apache-httpclient
- samples/client/petstore/java/feign
+ - samples/client/petstore/java/feign-no-nullable
- samples/client/petstore/java/okhttp-gson-awsv4signature
- samples/openapi3/client/petstore/java/jersey2-java8-special-characters
- samples/openapi3/client/petstore/java/native
diff --git a/bin/configs/java-feign-no-nullable.yaml b/bin/configs/java-feign-no-nullable.yaml
index 05453b419dcf..50aacc2ff08f 100644
--- a/bin/configs/java-feign-no-nullable.yaml
+++ b/bin/configs/java-feign-no-nullable.yaml
@@ -6,6 +6,8 @@ templateDir: modules/openapi-generator/src/main/resources/Java
additionalProperties:
booleanGetterPrefix: is
artifactId: petstore-feign-no-nullable
- hideGenerationTimestamp: "true"
+ hideGenerationTimestamp: true
additionalModelTypeAnnotations: '@javax.annotation.concurrent.Immutable'
- openApiNullable: "false"
+ openApiNullable: false
+ useReflectionEqualsHashCode: true
+ annotationLibrary: "swagger1"
diff --git a/bin/configs/java-jersey2-8.yaml b/bin/configs/java-jersey2-8.yaml
index e4407a08260b..259b88e07ceb 100644
--- a/bin/configs/java-jersey2-8.yaml
+++ b/bin/configs/java-jersey2-8.yaml
@@ -11,4 +11,5 @@ additionalProperties:
useOneOfDiscriminatorLookup: true
disallowAdditionalPropertiesIfNotPresent: false
gradleProperties: "\n# JVM arguments\norg.gradle.jvmargs=-Xmx2024m -XX:MaxPermSize=512m\n# set timeout\norg.gradle.daemon.idletimeout=3600000\n# show all warnings\norg.gradle.warning.mode=all"
- failOnUnknownProperties: true
\ No newline at end of file
+ failOnUnknownProperties: true
+ useReflectionEqualsHashCode: true
diff --git a/bin/configs/java-jersey3.yaml b/bin/configs/java-jersey3.yaml
index 3d958f012564..513f3889d3c7 100644
--- a/bin/configs/java-jersey3.yaml
+++ b/bin/configs/java-jersey3.yaml
@@ -12,4 +12,5 @@ additionalProperties:
useOneOfDiscriminatorLookup: true
disallowAdditionalPropertiesIfNotPresent: false
gradleProperties: "\n# JVM arguments\norg.gradle.jvmargs=-Xmx2024m -XX:MaxPermSize=512m\n# set timeout\norg.gradle.daemon.idletimeout=3600000\n# show all warnings\norg.gradle.warning.mode=all"
- failOnUnknownProperties: true
\ No newline at end of file
+ failOnUnknownProperties: true
+ useReflectionEqualsHashCode: true
diff --git a/bin/configs/java-microprofile-rest-client-3.0-mutiny.yaml b/bin/configs/java-microprofile-rest-client-3.0-mutiny.yaml
new file mode 100644
index 000000000000..aa2edc314502
--- /dev/null
+++ b/bin/configs/java-microprofile-rest-client-3.0-mutiny.yaml
@@ -0,0 +1,10 @@
+generatorName: java
+outputDir: samples/client/petstore/java/microprofile-rest-client-3.0-mutiny
+library: microprofile
+inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
+templateDir: modules/openapi-generator/src/main/resources/Java
+additionalProperties:
+ artifactId: microprofile-rest-client-3-mutiny
+ configKey: petstore
+ microprofileRestClientVersion: "3.0"
+ microprofileMutiny: true
diff --git a/bin/configs/java-microprofile-rest-client-mutiny.yaml b/bin/configs/java-microprofile-rest-client-mutiny.yaml
new file mode 100644
index 000000000000..d27aaf8cdfde
--- /dev/null
+++ b/bin/configs/java-microprofile-rest-client-mutiny.yaml
@@ -0,0 +1,9 @@
+generatorName: java
+outputDir: samples/client/petstore/java/microprofile-rest-client-mutiny
+library: microprofile
+inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
+templateDir: modules/openapi-generator/src/main/resources/Java
+additionalProperties:
+ artifactId: microprofile-rest-client-mutiny
+ configKeyFromClassName: true
+ microprofileMutiny: true
diff --git a/bin/configs/java-native.yaml b/bin/configs/java-native.yaml
index ba1795d9de39..467d6da65459 100644
--- a/bin/configs/java-native.yaml
+++ b/bin/configs/java-native.yaml
@@ -7,3 +7,4 @@ additionalProperties:
artifactId: petstore-native
hideGenerationTimestamp: "true"
generateBuilders: true
+ useReflectionEqualsHashCode: "true"
diff --git a/bin/configs/java-okhttp-gson.yaml b/bin/configs/java-okhttp-gson.yaml
index 8b402a580a80..8f5c07cae49c 100644
--- a/bin/configs/java-okhttp-gson.yaml
+++ b/bin/configs/java-okhttp-gson.yaml
@@ -11,9 +11,10 @@ parameterNameMappings:
type_: typeWithUnderscore
additionalProperties:
artifactId: petstore-okhttp-gson
- hideGenerationTimestamp: "true"
- useOneOfDiscriminatorLookup: "true"
+ hideGenerationTimestamp: true
+ useOneOfDiscriminatorLookup: true
disallowAdditionalPropertiesIfNotPresent: false
+ useReflectionEqualsHashCode:: true
enumNameMappings:
s: LOWER_CASE_S
S: UPPER_CASE_S
diff --git a/modules/openapi-generator/src/main/resources/Java/build.gradle.mustache b/modules/openapi-generator/src/main/resources/Java/build.gradle.mustache
index 7409e650ff85..6557a7c70b38 100644
--- a/modules/openapi-generator/src/main/resources/Java/build.gradle.mustache
+++ b/modules/openapi-generator/src/main/resources/Java/build.gradle.mustache
@@ -126,6 +126,9 @@ ext {
jersey_version = "1.19.4"
jodatime_version = "2.9.9"
junit_version = "5.10.2"
+ {{#useReflectionEqualsHashCode}}
+ commons_lang3_version = "3.17.0"
+ {{/useReflectionEqualsHashCode}}
}
dependencies {
@@ -148,6 +151,9 @@ dependencies {
{{#useBeanValidation}}
implementation "jakarta.validation:jakarta.validation-api:$bean_validation_version"
{{/useBeanValidation}}
+ {{#useReflectionEqualsHashCode}}
+ implementation "org.apache.commons:commons-lang3:$commons_lang3_version"
+ {{/useReflectionEqualsHashCode}}
testImplementation "junit:junit:$junit_version"
testImplementation "org.junit.jupiter:junit-jupiter-api:$junit_version"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junit_version"
diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/feign/build.gradle.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/feign/build.gradle.mustache
index 4c485fede0cc..2b4e0340e7fc 100644
--- a/modules/openapi-generator/src/main/resources/Java/libraries/feign/build.gradle.mustache
+++ b/modules/openapi-generator/src/main/resources/Java/libraries/feign/build.gradle.mustache
@@ -114,6 +114,9 @@ ext {
feign_form_version = "3.8.0"
junit_version = "5.7.0"
scribejava_version = "8.0.0"
+ {{#useReflectionEqualsHashCode}}
+ commons_lang3_version = "3.17.0"
+ {{/useReflectionEqualsHashCode}}
}
dependencies {
@@ -127,9 +130,9 @@ dependencies {
implementation "io.github.openfeign:feign-okhttp:$feign_version"
implementation "io.github.openfeign.form:feign-form:$feign_form_version"
{{#jackson}}
- {{#joda}}
+ {{#joda}}
implementation "com.fasterxml.jackson.datatype:jackson-datatype-joda:$jackson_version"
- {{/joda}}
+ {{/joda}}
implementation "com.fasterxml.jackson.core:jackson-core:$jackson_version"
implementation "com.fasterxml.jackson.core:jackson-annotations:$jackson_version"
implementation "com.fasterxml.jackson.core:jackson-databind:$jackson_databind_version"
@@ -142,6 +145,9 @@ dependencies {
implementation "com.github.scribejava:scribejava-core:$scribejava_version"
implementation "com.brsanthu:migbase64:2.2"
implementation "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version"
+ {{#useReflectionEqualsHashCode}}
+ implementation "org.apache.commons:commons-lang3:$commons_lang3_version"
+ {{/useReflectionEqualsHashCode}}
testImplementation "org.junit.jupiter:junit-jupiter:$junit_version"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junit_version"
testImplementation "org.junit.jupiter:junit-jupiter-params:$junit_version"
diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/feign/build.sbt.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/feign/build.sbt.mustache
index f42f909cc70f..1a24b99f55d7 100644
--- a/modules/openapi-generator/src/main/resources/Java/libraries/feign/build.sbt.mustache
+++ b/modules/openapi-generator/src/main/resources/Java/libraries/feign/build.sbt.mustache
@@ -28,6 +28,9 @@ lazy val root = (project in file(".")).
"com.github.scribejava" % "scribejava-core" % "8.0.0" % "compile",
"com.brsanthu" % "migbase64" % "2.2" % "compile",
"jakarta.annotation" % "jakarta.annotation-api" % "1.3.5" % "compile",
+{{#useReflectionEqualsHashCode}}
+ "org.apache.commons" % "commons-lang3" % "3.17.0" % "compile",
+{{/useReflectionEqualsHashCode}}
"org.junit.jupiter" % "junit-jupiter" % "5.7.0" % "test",
"org.junit.jupiter" % "junit-jupiter-params" % "5.7.0" % "test",
"com.github.tomakehurst" % "wiremock-jre8" % "2.35.1" % "test",
diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/feign/pom.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/feign/pom.mustache
index 79712da6a4e7..c915ea0ec9f4 100644
--- a/modules/openapi-generator/src/main/resources/Java/libraries/feign/pom.mustache
+++ b/modules/openapi-generator/src/main/resources/Java/libraries/feign/pom.mustache
@@ -345,6 +345,14 @@
provided
{{/useBeanValidation}}
+ {{#useReflectionEqualsHashCode}}
+
+
+ org.apache.commons
+ commons-lang3
+ ${commons-lang3-version}
+
+ {{/useReflectionEqualsHashCode}}
@@ -409,6 +417,9 @@
1.3.52.0.2
{{/useJakartaEe}}
+ {{#useReflectionEqualsHashCode}}
+ 3.17.0
+ {{/useReflectionEqualsHashCode}}
5.10.01.0.08.3.3
diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/build.gradle.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/build.gradle.mustache
index a9ab96231611..ca6ae2abe01e 100644
--- a/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/build.gradle.mustache
+++ b/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/build.gradle.mustache
@@ -116,6 +116,9 @@ ext {
{{#hasHttpSignatureMethods}}
tomitribe_http_signatures_version = "1.7"
{{/hasHttpSignatureMethods}}
+ {{#useReflectionEqualsHashCode}}
+ commons_lang3_version = "3.17.0"
+ {{/useReflectionEqualsHashCode}}
}
dependencies {
@@ -146,6 +149,9 @@ dependencies {
{{#useBeanValidation}}
implementation "jakarta.validation:jakarta.validation-api:$bean_validation_version"
{{/useBeanValidation}}
+ {{#useReflectionEqualsHashCode}}
+ implementation "org.apache.commons:commons-lang3:$commons_lang3_version"
+ {{/useReflectionEqualsHashCode}}
testImplementation "org.junit.jupiter:junit-jupiter-api:$junit_version"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junit_version"
}
diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/build.sbt.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/build.sbt.mustache
index d055cf378de5..fa3ead60a2d6 100644
--- a/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/build.sbt.mustache
+++ b/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/build.sbt.mustache
@@ -33,6 +33,9 @@ lazy val root = (project in file(".")).
"org.tomitribe" % "tomitribe-http-signatures" % "1.7" % "compile",
{{/hasHttpSignatureMethods}}
"jakarta.annotation" % "jakarta.annotation-api" % "1.3.5" % "compile",
+ {{#useReflectionEqualsHashCode}}
+ "org.apache.commons" % "commons-lang3" % "3.17.0" % "compile",
+ {{/useReflectionEqualsHashCode}}
"org.junit.jupiter" % "junit-jupiter-api" % "5.8.2" % "test"
)
)
diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/pom.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/pom.mustache
index ec3ad12d3285..1373579cadcf 100644
--- a/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/pom.mustache
+++ b/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/pom.mustache
@@ -379,6 +379,15 @@
jersey-apache-connector${jersey-version}
+ {{#useReflectionEqualsHashCode}}
+
+
+ org.apache.commons
+ commons-lang3
+ ${commons-lang3-version}
+
+ {{/useReflectionEqualsHashCode}}
+
org.junit.jupiter
@@ -414,6 +423,9 @@
{{#hasOAuthMethods}}
8.3.3
{{/hasOAuthMethods}}
+ {{#useReflectionEqualsHashCode}}
+ 3.17.0
+ {{/useReflectionEqualsHashCode}}
2.21.0
diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/jersey3/build.gradle.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/jersey3/build.gradle.mustache
index 42908c8bb47e..f95eafca0c69 100644
--- a/modules/openapi-generator/src/main/resources/Java/libraries/jersey3/build.gradle.mustache
+++ b/modules/openapi-generator/src/main/resources/Java/libraries/jersey3/build.gradle.mustache
@@ -116,6 +116,9 @@ ext {
{{#hasHttpSignatureMethods}}
tomitribe_http_signatures_version = "1.7"
{{/hasHttpSignatureMethods}}
+ {{#useReflectionEqualsHashCode}}
+ commons_lang3_version = "3.17.0"
+ {{/useReflectionEqualsHashCode}}
}
dependencies {
@@ -146,6 +149,9 @@ dependencies {
{{#useBeanValidation}}
implementation "jakarta.validation:jakarta.validation-api:$bean_validation_version"
{{/useBeanValidation}}
+ {{#useReflectionEqualsHashCode}}
+ implementation "org.apache.commons:commons-lang3:$commons_lang3_version"
+ {{/useReflectionEqualsHashCode}}
testImplementation "org.junit.jupiter:junit-jupiter-api:$junit_version"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junit_version"
diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/jersey3/build.sbt.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/jersey3/build.sbt.mustache
index 6e89375a6a1c..5f07e56716e8 100644
--- a/modules/openapi-generator/src/main/resources/Java/libraries/jersey3/build.sbt.mustache
+++ b/modules/openapi-generator/src/main/resources/Java/libraries/jersey3/build.sbt.mustache
@@ -33,6 +33,9 @@ lazy val root = (project in file(".")).
"org.tomitribe" % "tomitribe-http-signatures" % "1.7" % "compile",
{{/hasHttpSignatureMethods}}
"jakarta.annotation" % "jakarta.annotation-api" % "2.1.0" % "compile",
+ {{#useReflectionEqualsHashCode}}
+ "org.apache.commons" % "commons-lang3" % "3.17.0" % "compile",
+ {{/useReflectionEqualsHashCode}}
"org.junit.jupiter" % "junit-jupiter-api" % "5.8.2" % "test"
)
)
diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/jersey3/pom.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/jersey3/pom.mustache
index 49583229d488..a3c115041714 100644
--- a/modules/openapi-generator/src/main/resources/Java/libraries/jersey3/pom.mustache
+++ b/modules/openapi-generator/src/main/resources/Java/libraries/jersey3/pom.mustache
@@ -379,6 +379,15 @@
jersey-apache-connector${jersey-version}
+ {{#useReflectionEqualsHashCode}}
+
+
+ org.apache.commons
+ commons-lang3
+ ${commons-lang3-version}
+
+ {{/useReflectionEqualsHashCode}}
+
org.junit.jupiter
@@ -408,6 +417,9 @@
{{#hasOAuthMethods}}
8.3.3
{{/hasOAuthMethods}}
+ {{#useReflectionEqualsHashCode}}
+ 3.17.0
+ {{/useReflectionEqualsHashCode}}
2.21.0
diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/microprofile/pom.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/microprofile/pom.mustache
index 32f508679823..59896d820f43 100644
--- a/modules/openapi-generator/src/main/resources/Java/libraries/microprofile/pom.mustache
+++ b/modules/openapi-generator/src/main/resources/Java/libraries/microprofile/pom.mustache
@@ -249,7 +249,7 @@
2.61.9.1
{{#microprofileMutiny}}
- 1.2.0
+ 1.10.0
{{/microprofileMutiny}}
{{#useReflectionEqualsHashCode}}
3.17.0
diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/microprofile/pom_3.0.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/microprofile/pom_3.0.mustache
index 084bc6aee215..c09c296b42c6 100644
--- a/modules/openapi-generator/src/main/resources/Java/libraries/microprofile/pom_3.0.mustache
+++ b/modules/openapi-generator/src/main/resources/Java/libraries/microprofile/pom_3.0.mustache
@@ -189,6 +189,13 @@
${jakarta.annotation.version}provided
+{{#microprofileMutiny}}
+
+ io.smallrye.reactive
+ mutiny
+ ${mutiny.version}
+
+{{/microprofileMutiny}}
{{#useReflectionEqualsHashCode}}
@@ -241,6 +248,9 @@
1.1.02.61.9.1
+{{#microprofileMutiny}}
+ 1.10.0
+{{/microprofileMutiny}}
{{#useReflectionEqualsHashCode}}
3.17.0
{{/useReflectionEqualsHashCode}}
diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/native/build.gradle.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/native/build.gradle.mustache
index 34f24d891617..a04a9645e175 100644
--- a/modules/openapi-generator/src/main/resources/Java/libraries/native/build.gradle.mustache
+++ b/modules/openapi-generator/src/main/resources/Java/libraries/native/build.gradle.mustache
@@ -85,6 +85,9 @@ ext {
{{#hasFormParamsInSpec}}
httpmime_version = "4.5.13"
{{/hasFormParamsInSpec}}
+ {{#useReflectionEqualsHashCode}}
+ commons_lang3_version = "3.17.0"
+ {{/useReflectionEqualsHashCode}}
}
dependencies {
@@ -107,6 +110,9 @@ dependencies {
{{#hasFormParamsInSpec}}
implementation "org.apache.httpcomponents:httpmime:$httpmime_version"
{{/hasFormParamsInSpec}}
+ {{#useReflectionEqualsHashCode}}
+ implementation "org.apache.commons:commons-lang3:$commons_lang3_version"
+ {{/useReflectionEqualsHashCode}}
testImplementation "org.junit.jupiter:junit-jupiter-api:$junit_version"
}
diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/native/pom.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/native/pom.mustache
index 62bb7917deb1..0ccfa84182c2 100644
--- a/modules/openapi-generator/src/main/resources/Java/libraries/native/pom.mustache
+++ b/modules/openapi-generator/src/main/resources/Java/libraries/native/pom.mustache
@@ -271,6 +271,14 @@
${httpmime-version}
{{/hasFormParamsInSpec}}
+ {{#useReflectionEqualsHashCode}}
+
+
+ org.apache.commons
+ commons-lang3
+ ${commons-lang3-version}
+
+ {{/useReflectionEqualsHashCode}}
@@ -304,6 +312,9 @@
{{#hasFormParamsInSpec}}
4.5.14
{{/hasFormParamsInSpec}}
+ {{#useReflectionEqualsHashCode}}
+ 3.17.0
+ {{/useReflectionEqualsHashCode}}
5.10.22.27.2
diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/build.gradle.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/build.gradle.mustache
index eb67fc112409..1b527257ae0f 100644
--- a/modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/build.gradle.mustache
+++ b/modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/build.gradle.mustache
@@ -126,7 +126,7 @@ dependencies {
{{#hasOAuthMethods}}
implementation group: 'org.apache.oltu.oauth2', name: 'org.apache.oltu.oauth2.client', version: '1.0.2'
{{/hasOAuthMethods}}
- implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.12.0'
+ implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.17.0'
{{#joda}}
implementation 'joda-time:joda-time:2.9.9'
{{/joda}}
diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/build.sbt.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/build.sbt.mustache
index 2045b84742e3..54bd804c4411 100644
--- a/modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/build.sbt.mustache
+++ b/modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/build.sbt.mustache
@@ -13,7 +13,7 @@ lazy val root = (project in file(".")).
"com.squareup.okhttp3" % "okhttp" % "4.12.0",
"com.squareup.okhttp3" % "logging-interceptor" % "4.12.0",
"com.google.code.gson" % "gson" % "2.9.1",
- "org.apache.commons" % "commons-lang3" % "3.12.0",
+ "org.apache.commons" % "commons-lang3" % "3.17.0",
"jakarta.ws.rs" % "jakarta.ws.rs-api" % "2.1.6",
{{#openApiNullable}}
"org.openapitools" % "jackson-databind-nullable" % "0.2.6",
diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/pom.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/pom.mustache
index 465076a4d6ea..5e7bd9b86ed0 100644
--- a/modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/pom.mustache
+++ b/modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/pom.mustache
@@ -414,7 +414,7 @@
{{/swagger2AnnotationLibrary}}
4.12.02.10.1
- 3.14.0
+ 3.17.0
{{#openApiNullable}}
0.2.6
{{/openApiNullable}}
diff --git a/modules/openapi-generator/src/main/resources/Java/pom.mustache b/modules/openapi-generator/src/main/resources/Java/pom.mustache
index b2bc5a25d8a6..c46bc598e739 100644
--- a/modules/openapi-generator/src/main/resources/Java/pom.mustache
+++ b/modules/openapi-generator/src/main/resources/Java/pom.mustache
@@ -289,12 +289,12 @@
{{/useJakartaEe}}
{{#withXml}}
-
-
- com.fasterxml.jackson.dataformat
- jackson-dataformat-xml
- ${jackson-version}
-
+
+
+ com.fasterxml.jackson.dataformat
+ jackson-dataformat-xml
+ ${jackson-version}
+
{{/withXml}}
{{#joda}}
@@ -341,6 +341,15 @@
${jakarta-annotation-version}provided
+ {{#useReflectionEqualsHashCode}}
+
+
+ org.apache.commons
+ commons-lang3
+ ${commons-lang3-version}
+
+ {{/useReflectionEqualsHashCode}}
+
org.junit.jupiter
@@ -374,6 +383,9 @@
1.3.52.0.2
{{/useJakartaEe}}
+ {{#useReflectionEqualsHashCode}}
+ 3.17.0
+ {{/useReflectionEqualsHashCode}}
1.0.05.10.21.10.0
diff --git a/samples/client/echo_api/java/okhttp-gson-user-defined-templates/build.gradle b/samples/client/echo_api/java/okhttp-gson-user-defined-templates/build.gradle
index 676e8c999a0e..2d1609df2afc 100644
--- a/samples/client/echo_api/java/okhttp-gson-user-defined-templates/build.gradle
+++ b/samples/client/echo_api/java/okhttp-gson-user-defined-templates/build.gradle
@@ -115,7 +115,7 @@ dependencies {
implementation 'jakarta.ws.rs:jakarta.ws.rs-api:2.1.6'
implementation 'org.openapitools:jackson-databind-nullable:0.2.6'
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 group: 'org.apache.commons', name: 'commons-lang3', version: '3.17.0'
implementation "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version"
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.3'
testImplementation 'org.mockito:mockito-core:3.12.4'
diff --git a/samples/client/echo_api/java/okhttp-gson-user-defined-templates/build.sbt b/samples/client/echo_api/java/okhttp-gson-user-defined-templates/build.sbt
index 41a2d93764c2..e79c5140fca8 100644
--- a/samples/client/echo_api/java/okhttp-gson-user-defined-templates/build.sbt
+++ b/samples/client/echo_api/java/okhttp-gson-user-defined-templates/build.sbt
@@ -13,7 +13,7 @@ lazy val root = (project in file(".")).
"com.squareup.okhttp3" % "okhttp" % "4.12.0",
"com.squareup.okhttp3" % "logging-interceptor" % "4.12.0",
"com.google.code.gson" % "gson" % "2.9.1",
- "org.apache.commons" % "commons-lang3" % "3.12.0",
+ "org.apache.commons" % "commons-lang3" % "3.17.0",
"jakarta.ws.rs" % "jakarta.ws.rs-api" % "2.1.6",
"org.openapitools" % "jackson-databind-nullable" % "0.2.6",
"org.apache.oltu.oauth2" % "org.apache.oltu.oauth2.client" % "1.0.2",
diff --git a/samples/client/echo_api/java/okhttp-gson-user-defined-templates/pom.xml b/samples/client/echo_api/java/okhttp-gson-user-defined-templates/pom.xml
index 7a5b714d3160..0e717a3ab121 100644
--- a/samples/client/echo_api/java/okhttp-gson-user-defined-templates/pom.xml
+++ b/samples/client/echo_api/java/okhttp-gson-user-defined-templates/pom.xml
@@ -331,7 +331,7 @@
1.9.04.12.02.10.1
- 3.14.0
+ 3.17.00.2.61.3.52.0.2
diff --git a/samples/client/echo_api/java/okhttp-gson/build.gradle b/samples/client/echo_api/java/okhttp-gson/build.gradle
index 1f433364a3a5..ac77e86d715c 100644
--- a/samples/client/echo_api/java/okhttp-gson/build.gradle
+++ b/samples/client/echo_api/java/okhttp-gson/build.gradle
@@ -114,7 +114,7 @@ dependencies {
implementation 'io.gsonfire:gson-fire:1.9.0'
implementation 'jakarta.ws.rs:jakarta.ws.rs-api:2.1.6'
implementation 'org.openapitools:jackson-databind-nullable:0.2.6'
- implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.12.0'
+ implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.17.0'
implementation "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version"
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.3'
testImplementation 'org.mockito:mockito-core:3.12.4'
diff --git a/samples/client/echo_api/java/okhttp-gson/build.sbt b/samples/client/echo_api/java/okhttp-gson/build.sbt
index 12ac2795172e..ecb09dd27f59 100644
--- a/samples/client/echo_api/java/okhttp-gson/build.sbt
+++ b/samples/client/echo_api/java/okhttp-gson/build.sbt
@@ -13,7 +13,7 @@ lazy val root = (project in file(".")).
"com.squareup.okhttp3" % "okhttp" % "4.12.0",
"com.squareup.okhttp3" % "logging-interceptor" % "4.12.0",
"com.google.code.gson" % "gson" % "2.9.1",
- "org.apache.commons" % "commons-lang3" % "3.12.0",
+ "org.apache.commons" % "commons-lang3" % "3.17.0",
"jakarta.ws.rs" % "jakarta.ws.rs-api" % "2.1.6",
"org.openapitools" % "jackson-databind-nullable" % "0.2.6",
"io.gsonfire" % "gson-fire" % "1.9.0" % "compile",
diff --git a/samples/client/echo_api/java/okhttp-gson/pom.xml b/samples/client/echo_api/java/okhttp-gson/pom.xml
index 862d43891b8e..806622488c7b 100644
--- a/samples/client/echo_api/java/okhttp-gson/pom.xml
+++ b/samples/client/echo_api/java/okhttp-gson/pom.xml
@@ -326,7 +326,7 @@
1.9.04.12.02.10.1
- 3.14.0
+ 3.17.00.2.61.3.52.0.2
diff --git a/samples/client/others/java/jersey2-oneOf-Mixed/pom.xml b/samples/client/others/java/jersey2-oneOf-Mixed/pom.xml
index e2b1323c705b..75c992cab761 100644
--- a/samples/client/others/java/jersey2-oneOf-Mixed/pom.xml
+++ b/samples/client/others/java/jersey2-oneOf-Mixed/pom.xml
@@ -318,6 +318,7 @@
jersey-apache-connector${jersey-version}
+
org.junit.jupiter
diff --git a/samples/client/others/java/jersey2-oneOf-duplicates/pom.xml b/samples/client/others/java/jersey2-oneOf-duplicates/pom.xml
index e2b1323c705b..75c992cab761 100644
--- a/samples/client/others/java/jersey2-oneOf-duplicates/pom.xml
+++ b/samples/client/others/java/jersey2-oneOf-duplicates/pom.xml
@@ -318,6 +318,7 @@
jersey-apache-connector${jersey-version}
+
org.junit.jupiter
diff --git a/samples/client/others/java/okhttp-gson-oneOf-array/build.gradle b/samples/client/others/java/okhttp-gson-oneOf-array/build.gradle
index d1dc4ac2a571..d96f6d99d885 100644
--- a/samples/client/others/java/okhttp-gson-oneOf-array/build.gradle
+++ b/samples/client/others/java/okhttp-gson-oneOf-array/build.gradle
@@ -114,7 +114,7 @@ dependencies {
implementation 'io.gsonfire:gson-fire:1.9.0'
implementation 'jakarta.ws.rs:jakarta.ws.rs-api:2.1.6'
implementation 'org.openapitools:jackson-databind-nullable:0.2.6'
- implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.12.0'
+ implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.17.0'
implementation "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version"
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.3'
testImplementation 'org.mockito:mockito-core:3.12.4'
diff --git a/samples/client/others/java/okhttp-gson-oneOf-array/build.sbt b/samples/client/others/java/okhttp-gson-oneOf-array/build.sbt
index ecdac6b908f2..8c3d65a33a6e 100644
--- a/samples/client/others/java/okhttp-gson-oneOf-array/build.sbt
+++ b/samples/client/others/java/okhttp-gson-oneOf-array/build.sbt
@@ -13,7 +13,7 @@ lazy val root = (project in file(".")).
"com.squareup.okhttp3" % "okhttp" % "4.12.0",
"com.squareup.okhttp3" % "logging-interceptor" % "4.12.0",
"com.google.code.gson" % "gson" % "2.9.1",
- "org.apache.commons" % "commons-lang3" % "3.12.0",
+ "org.apache.commons" % "commons-lang3" % "3.17.0",
"jakarta.ws.rs" % "jakarta.ws.rs-api" % "2.1.6",
"org.openapitools" % "jackson-databind-nullable" % "0.2.6",
"io.gsonfire" % "gson-fire" % "1.9.0" % "compile",
diff --git a/samples/client/others/java/okhttp-gson-oneOf-array/pom.xml b/samples/client/others/java/okhttp-gson-oneOf-array/pom.xml
index 4796ef596cba..bd334327c87a 100644
--- a/samples/client/others/java/okhttp-gson-oneOf-array/pom.xml
+++ b/samples/client/others/java/okhttp-gson-oneOf-array/pom.xml
@@ -333,7 +333,7 @@
1.9.04.12.02.10.1
- 3.14.0
+ 3.17.00.2.61.3.52.0.2
diff --git a/samples/client/others/java/okhttp-gson-oneOf/build.gradle b/samples/client/others/java/okhttp-gson-oneOf/build.gradle
index d1dc4ac2a571..d96f6d99d885 100644
--- a/samples/client/others/java/okhttp-gson-oneOf/build.gradle
+++ b/samples/client/others/java/okhttp-gson-oneOf/build.gradle
@@ -114,7 +114,7 @@ dependencies {
implementation 'io.gsonfire:gson-fire:1.9.0'
implementation 'jakarta.ws.rs:jakarta.ws.rs-api:2.1.6'
implementation 'org.openapitools:jackson-databind-nullable:0.2.6'
- implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.12.0'
+ implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.17.0'
implementation "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version"
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.3'
testImplementation 'org.mockito:mockito-core:3.12.4'
diff --git a/samples/client/others/java/okhttp-gson-oneOf/build.sbt b/samples/client/others/java/okhttp-gson-oneOf/build.sbt
index ecdac6b908f2..8c3d65a33a6e 100644
--- a/samples/client/others/java/okhttp-gson-oneOf/build.sbt
+++ b/samples/client/others/java/okhttp-gson-oneOf/build.sbt
@@ -13,7 +13,7 @@ lazy val root = (project in file(".")).
"com.squareup.okhttp3" % "okhttp" % "4.12.0",
"com.squareup.okhttp3" % "logging-interceptor" % "4.12.0",
"com.google.code.gson" % "gson" % "2.9.1",
- "org.apache.commons" % "commons-lang3" % "3.12.0",
+ "org.apache.commons" % "commons-lang3" % "3.17.0",
"jakarta.ws.rs" % "jakarta.ws.rs-api" % "2.1.6",
"org.openapitools" % "jackson-databind-nullable" % "0.2.6",
"io.gsonfire" % "gson-fire" % "1.9.0" % "compile",
diff --git a/samples/client/others/java/okhttp-gson-oneOf/pom.xml b/samples/client/others/java/okhttp-gson-oneOf/pom.xml
index 8d703337d94e..667b3b718af6 100644
--- a/samples/client/others/java/okhttp-gson-oneOf/pom.xml
+++ b/samples/client/others/java/okhttp-gson-oneOf/pom.xml
@@ -326,7 +326,7 @@
1.9.04.12.02.10.1
- 3.14.0
+ 3.17.00.2.61.3.52.0.2
diff --git a/samples/client/others/java/okhttp-gson-streaming/build.gradle b/samples/client/others/java/okhttp-gson-streaming/build.gradle
index b454a3a81321..41bc90123d83 100644
--- a/samples/client/others/java/okhttp-gson-streaming/build.gradle
+++ b/samples/client/others/java/okhttp-gson-streaming/build.gradle
@@ -114,7 +114,7 @@ dependencies {
implementation 'io.gsonfire:gson-fire:1.9.0'
implementation 'jakarta.ws.rs:jakarta.ws.rs-api:2.1.6'
implementation 'org.openapitools:jackson-databind-nullable:0.2.6'
- implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.12.0'
+ implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.17.0'
implementation "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version"
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.3'
testImplementation 'org.mockito:mockito-core:3.12.4'
diff --git a/samples/client/others/java/okhttp-gson-streaming/build.sbt b/samples/client/others/java/okhttp-gson-streaming/build.sbt
index b776f34e427a..c074040f59f4 100644
--- a/samples/client/others/java/okhttp-gson-streaming/build.sbt
+++ b/samples/client/others/java/okhttp-gson-streaming/build.sbt
@@ -13,7 +13,7 @@ lazy val root = (project in file(".")).
"com.squareup.okhttp3" % "okhttp" % "4.12.0",
"com.squareup.okhttp3" % "logging-interceptor" % "4.12.0",
"com.google.code.gson" % "gson" % "2.9.1",
- "org.apache.commons" % "commons-lang3" % "3.12.0",
+ "org.apache.commons" % "commons-lang3" % "3.17.0",
"jakarta.ws.rs" % "jakarta.ws.rs-api" % "2.1.6",
"org.openapitools" % "jackson-databind-nullable" % "0.2.6",
"io.gsonfire" % "gson-fire" % "1.9.0" % "compile",
diff --git a/samples/client/others/java/okhttp-gson-streaming/pom.xml b/samples/client/others/java/okhttp-gson-streaming/pom.xml
index 4b0f7510602c..1db320466c16 100644
--- a/samples/client/others/java/okhttp-gson-streaming/pom.xml
+++ b/samples/client/others/java/okhttp-gson-streaming/pom.xml
@@ -326,7 +326,7 @@
1.9.04.12.02.10.1
- 3.14.0
+ 3.17.00.2.61.3.52.0.2
diff --git a/samples/client/petstore/java/feign-no-nullable/build.gradle b/samples/client/petstore/java/feign-no-nullable/build.gradle
index b71958edb547..7df6a10718df 100644
--- a/samples/client/petstore/java/feign-no-nullable/build.gradle
+++ b/samples/client/petstore/java/feign-no-nullable/build.gradle
@@ -109,6 +109,7 @@ ext {
feign_form_version = "3.8.0"
junit_version = "5.7.0"
scribejava_version = "8.0.0"
+ commons_lang3_version = "3.17.0"
}
dependencies {
@@ -127,6 +128,7 @@ dependencies {
implementation "com.github.scribejava:scribejava-core:$scribejava_version"
implementation "com.brsanthu:migbase64:2.2"
implementation "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version"
+ implementation "org.apache.commons:commons-lang3:$commons_lang3_version"
testImplementation "org.junit.jupiter:junit-jupiter:$junit_version"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junit_version"
testImplementation "org.junit.jupiter:junit-jupiter-params:$junit_version"
diff --git a/samples/client/petstore/java/feign-no-nullable/build.sbt b/samples/client/petstore/java/feign-no-nullable/build.sbt
index 6a1f2cb2fb3e..1f85088e35a9 100644
--- a/samples/client/petstore/java/feign-no-nullable/build.sbt
+++ b/samples/client/petstore/java/feign-no-nullable/build.sbt
@@ -24,6 +24,7 @@ lazy val root = (project in file(".")).
"com.github.scribejava" % "scribejava-core" % "8.0.0" % "compile",
"com.brsanthu" % "migbase64" % "2.2" % "compile",
"jakarta.annotation" % "jakarta.annotation-api" % "1.3.5" % "compile",
+ "org.apache.commons" % "commons-lang3" % "3.17.0" % "compile",
"org.junit.jupiter" % "junit-jupiter" % "5.7.0" % "test",
"org.junit.jupiter" % "junit-jupiter-params" % "5.7.0" % "test",
"com.github.tomakehurst" % "wiremock-jre8" % "2.35.1" % "test",
diff --git a/samples/client/petstore/java/feign-no-nullable/pom.xml b/samples/client/petstore/java/feign-no-nullable/pom.xml
index 1e12c67db067..dec835d94fcc 100644
--- a/samples/client/petstore/java/feign-no-nullable/pom.xml
+++ b/samples/client/petstore/java/feign-no-nullable/pom.xml
@@ -206,6 +206,11 @@
+
+ io.swagger
+ swagger-annotations
+ ${swagger-annotations-version}
+
@@ -273,6 +278,12 @@
${jakarta-annotation-version}provided
+
+
+ org.apache.commons
+ commons-lang3
+ ${commons-lang3-version}
+
@@ -311,12 +322,14 @@
1.8${java.version}${java.version}
+ 1.6.1113.2.13.8.02.17.12.17.11.3.52.0.2
+ 3.17.05.10.01.0.08.3.3
diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java
index d956eec0ce1a..09baf1f4824a 100644
--- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java
+++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Map;
import java.util.HashMap;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
@@ -24,6 +26,8 @@
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
import java.util.HashMap;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
@@ -57,6 +61,7 @@ public AdditionalPropertiesAnyType name(@javax.annotation.Nullable String name)
* @return name
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -117,20 +122,12 @@ public Object getAdditionalProperty(String key) {
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- AdditionalPropertiesAnyType additionalPropertiesAnyType = (AdditionalPropertiesAnyType) o;
- return Objects.equals(this.name, additionalPropertiesAnyType.name) &&
- super.equals(o);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(name, super.hashCode());
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java
index ea7b682f2740..564290adaad3 100644
--- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java
+++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Map;
import java.util.HashMap;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
@@ -24,6 +26,8 @@
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@@ -58,6 +62,7 @@ public AdditionalPropertiesArray name(@javax.annotation.Nullable String name) {
* @return name
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -118,20 +123,12 @@ public List getAdditionalProperty(String key) {
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- AdditionalPropertiesArray additionalPropertiesArray = (AdditionalPropertiesArray) o;
- return Objects.equals(this.name, additionalPropertiesArray.name) &&
- super.equals(o);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(name, super.hashCode());
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java
index 957e51a26c22..c734287b41f3 100644
--- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java
+++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Map;
import java.util.HashMap;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
@@ -24,6 +26,8 @@
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
import java.util.HashMap;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
@@ -57,6 +61,7 @@ public AdditionalPropertiesBoolean name(@javax.annotation.Nullable String name)
* @return name
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -117,20 +122,12 @@ public Boolean getAdditionalProperty(String key) {
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- AdditionalPropertiesBoolean additionalPropertiesBoolean = (AdditionalPropertiesBoolean) o;
- return Objects.equals(this.name, additionalPropertiesBoolean.name) &&
- super.equals(o);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(name, super.hashCode());
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java
index e5f2a700681c..ea608f9e00fd 100644
--- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java
+++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
@@ -20,6 +22,8 @@
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import java.util.HashMap;
import java.util.List;
@@ -112,6 +116,7 @@ public AdditionalPropertiesClass putMapStringItem(String key, String mapStringIt
* @return mapString
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MAP_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -146,6 +151,7 @@ public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumb
* @return mapNumber
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MAP_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -180,6 +186,7 @@ public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntege
* @return mapInteger
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MAP_INTEGER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -214,6 +221,7 @@ public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBoolea
* @return mapBoolean
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MAP_BOOLEAN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -248,6 +256,7 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List
* @return mapArrayAnytype
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -316,6 +326,7 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map arrayAr
* @return arrayArrayNumber
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -79,19 +84,12 @@ public void setArrayArrayNumber(@javax.annotation.Nullable List
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- ArrayOfArrayOfNumberOnly arrayOfArrayOfNumberOnly = (ArrayOfArrayOfNumberOnly) o;
- return Objects.equals(this.arrayArrayNumber, arrayOfArrayOfNumberOnly.arrayArrayNumber);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(arrayArrayNumber);
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java
index 9a2cc4f2cd56..654d79edb30f 100644
--- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java
+++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
@@ -20,6 +22,8 @@
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Arrays;
@@ -62,6 +66,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) {
* @return arrayNumber
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ARRAY_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -79,19 +84,12 @@ public void setArrayNumber(@javax.annotation.Nullable List arrayNumb
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- ArrayOfNumberOnly arrayOfNumberOnly = (ArrayOfNumberOnly) o;
- return Objects.equals(this.arrayNumber, arrayOfNumberOnly.arrayNumber);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(arrayNumber);
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ArrayTest.java
index b513a4b9ebb5..8095b9f458c9 100644
--- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ArrayTest.java
+++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ArrayTest.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
@@ -20,6 +22,8 @@
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
@@ -72,6 +76,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) {
* @return arrayOfString
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -106,6 +111,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem)
* @return arrayArrayOfInteger
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -140,6 +146,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI
* @return arrayArrayOfModel
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -157,21 +164,12 @@ public void setArrayArrayOfModel(@javax.annotation.Nullable List arrayEnu
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- EnumArrays enumArrays = (EnumArrays) o;
- return Objects.equals(this.justSymbol, enumArrays.justSymbol) &&
- Objects.equals(this.arrayEnum, enumArrays.arrayEnum);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(justSymbol, arrayEnum);
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/EnumClass.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/EnumClass.java
index 1190cf5abe3c..111927ab55fe 100644
--- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/EnumClass.java
+++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/EnumClass.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/EnumTest.java
index d45573450000..fbfd40807181 100644
--- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/EnumTest.java
+++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/EnumTest.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
@@ -20,6 +22,8 @@
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
import org.openapitools.client.model.OuterEnum;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
@@ -216,6 +220,7 @@ public EnumTest enumString(@javax.annotation.Nullable EnumStringEnum enumString)
* @return enumString
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ENUM_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -242,6 +247,7 @@ public EnumTest enumStringRequired(@javax.annotation.Nonnull EnumStringRequiredE
* @return enumStringRequired
*/
@javax.annotation.Nonnull
+ @ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@@ -268,6 +274,7 @@ public EnumTest enumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteg
* @return enumInteger
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ENUM_INTEGER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -294,6 +301,7 @@ public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber)
* @return enumNumber
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ENUM_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -320,6 +328,7 @@ public EnumTest outerEnum(@javax.annotation.Nullable OuterEnum outerEnum) {
* @return outerEnum
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_OUTER_ENUM)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -337,23 +346,12 @@ public void setOuterEnum(@javax.annotation.Nullable OuterEnum outerEnum) {
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- EnumTest enumTest = (EnumTest) o;
- return Objects.equals(this.enumString, enumTest.enumString) &&
- Objects.equals(this.enumStringRequired, enumTest.enumStringRequired) &&
- Objects.equals(this.enumInteger, enumTest.enumInteger) &&
- Objects.equals(this.enumNumber, enumTest.enumNumber) &&
- Objects.equals(this.outerEnum, enumTest.outerEnum);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(enumString, enumStringRequired, enumInteger, enumNumber, outerEnum);
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/File.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/File.java
index e96a02bcd023..55a44a1bee16 100644
--- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/File.java
+++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/File.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
@@ -20,12 +22,15 @@
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
/**
* Must be named `File` for test.
*/
+@ApiModel(description = "Must be named `File` for test.")
@JsonPropertyOrder({
File.JSON_PROPERTY_SOURCE_U_R_I
})
@@ -50,6 +55,7 @@ public File sourceURI(@javax.annotation.Nullable String sourceURI) {
* @return sourceURI
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "Test capitalization")
@JsonProperty(JSON_PROPERTY_SOURCE_U_R_I)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -67,19 +73,12 @@ public void setSourceURI(@javax.annotation.Nullable String sourceURI) {
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- File file = (File) o;
- return Objects.equals(this.sourceURI, file.sourceURI);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(sourceURI);
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java
index 250122ef1808..180070914cd3 100644
--- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java
+++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
@@ -20,6 +22,8 @@
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;
@@ -59,6 +63,7 @@ public FileSchemaTestClass file(@javax.annotation.Nullable File file) {
* @return file
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_FILE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -93,6 +98,7 @@ public FileSchemaTestClass addFilesItem(File filesItem) {
* @return files
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_FILES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -110,20 +116,12 @@ public void setFiles(@javax.annotation.Nullable List files) {
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- FileSchemaTestClass fileSchemaTestClass = (FileSchemaTestClass) o;
- return Objects.equals(this.file, fileSchemaTestClass.file) &&
- Objects.equals(this.files, fileSchemaTestClass.files);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(file, files);
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/FormatTest.java
index 93940d641d01..7a1e88fcfbd4 100644
--- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/FormatTest.java
+++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/FormatTest.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
@@ -20,6 +22,8 @@
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
import java.io.File;
import java.math.BigDecimal;
import java.time.LocalDate;
@@ -123,6 +127,7 @@ public FormatTest integer(@javax.annotation.Nullable Integer integer) {
* @return integer
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_INTEGER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -151,6 +156,7 @@ public FormatTest int32(@javax.annotation.Nullable Integer int32) {
* @return int32
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_INT32)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -177,6 +183,7 @@ public FormatTest int64(@javax.annotation.Nullable Long int64) {
* @return int64
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_INT64)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -205,6 +212,7 @@ public FormatTest number(@javax.annotation.Nonnull BigDecimal number) {
* @return number
*/
@javax.annotation.Nonnull
+ @ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_NUMBER)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@@ -233,6 +241,7 @@ public FormatTest _float(@javax.annotation.Nullable Float _float) {
* @return _float
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_FLOAT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -261,6 +270,7 @@ public FormatTest _double(@javax.annotation.Nullable Double _double) {
* @return _double
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_DOUBLE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -287,6 +297,7 @@ public FormatTest string(@javax.annotation.Nullable String string) {
* @return string
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -313,6 +324,7 @@ public FormatTest _byte(@javax.annotation.Nonnull byte[] _byte) {
* @return _byte
*/
@javax.annotation.Nonnull
+ @ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_BYTE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@@ -339,6 +351,7 @@ public FormatTest binary(@javax.annotation.Nullable File binary) {
* @return binary
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_BINARY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -365,6 +378,7 @@ public FormatTest date(@javax.annotation.Nonnull LocalDate date) {
* @return date
*/
@javax.annotation.Nonnull
+ @ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_DATE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@@ -391,6 +405,7 @@ public FormatTest dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) {
* @return dateTime
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_DATE_TIME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -417,6 +432,7 @@ public FormatTest uuid(@javax.annotation.Nullable UUID uuid) {
* @return uuid
*/
@javax.annotation.Nullable
+ @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "")
@JsonProperty(JSON_PROPERTY_UUID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -443,6 +459,7 @@ public FormatTest password(@javax.annotation.Nonnull String password) {
* @return password
*/
@javax.annotation.Nonnull
+ @ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_PASSWORD)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@@ -469,6 +486,7 @@ public FormatTest bigDecimal(@javax.annotation.Nullable BigDecimal bigDecimal) {
* @return bigDecimal
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_BIG_DECIMAL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -486,32 +504,12 @@ public void setBigDecimal(@javax.annotation.Nullable BigDecimal bigDecimal) {
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- FormatTest formatTest = (FormatTest) o;
- return Objects.equals(this.integer, formatTest.integer) &&
- Objects.equals(this.int32, formatTest.int32) &&
- Objects.equals(this.int64, formatTest.int64) &&
- Objects.equals(this.number, formatTest.number) &&
- Objects.equals(this._float, formatTest._float) &&
- Objects.equals(this._double, formatTest._double) &&
- Objects.equals(this.string, formatTest.string) &&
- Arrays.equals(this._byte, formatTest._byte) &&
- Objects.equals(this.binary, formatTest.binary) &&
- Objects.equals(this.date, formatTest.date) &&
- Objects.equals(this.dateTime, formatTest.dateTime) &&
- Objects.equals(this.uuid, formatTest.uuid) &&
- Objects.equals(this.password, formatTest.password) &&
- Objects.equals(this.bigDecimal, formatTest.bigDecimal);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(integer, int32, int64, number, _float, _double, string, Arrays.hashCode(_byte), binary, date, dateTime, uuid, password, bigDecimal);
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java
index 9dc90d1f3cea..3c8e0591f6dc 100644
--- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java
+++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
@@ -20,6 +22,8 @@
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
@@ -60,6 +64,7 @@ public HasOnlyReadOnly(
* @return bar
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_BAR)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -75,6 +80,7 @@ public String getBar() {
* @return foo
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_FOO)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -87,20 +93,12 @@ public String getFoo() {
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- HasOnlyReadOnly hasOnlyReadOnly = (HasOnlyReadOnly) o;
- return Objects.equals(this.bar, hasOnlyReadOnly.bar) &&
- Objects.equals(this.foo, hasOnlyReadOnly.foo);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(bar, foo);
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/MapTest.java
index 81c20684340b..d562576eb5ba 100644
--- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/MapTest.java
+++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/MapTest.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
@@ -20,6 +22,8 @@
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
import java.util.HashMap;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
@@ -110,6 +114,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr
* @return mapMapOfString
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -144,6 +149,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem)
* @return mapOfEnumString
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -178,6 +184,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) {
* @return directMap
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_DIRECT_MAP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -212,6 +219,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) {
* @return indirectMap
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_INDIRECT_MAP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -229,22 +237,12 @@ public void setIndirectMap(@javax.annotation.Nullable Map indir
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- MapTest mapTest = (MapTest) o;
- return Objects.equals(this.mapMapOfString, mapTest.mapMapOfString) &&
- Objects.equals(this.mapOfEnumString, mapTest.mapOfEnumString) &&
- Objects.equals(this.directMap, mapTest.directMap) &&
- Objects.equals(this.indirectMap, mapTest.indirectMap);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(mapMapOfString, mapOfEnumString, directMap, indirectMap);
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java
index 85e8725ad6f3..9c15ac145d65 100644
--- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java
+++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
@@ -20,6 +22,8 @@
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
import java.time.OffsetDateTime;
import java.util.HashMap;
import java.util.Map;
@@ -65,6 +69,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(@javax.annotation.Nullab
* @return uuid
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_UUID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -91,6 +96,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(@javax.annotation.Nu
* @return dateTime
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_DATE_TIME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -125,6 +131,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal
* @return map
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MAP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -142,21 +149,12 @@ public void setMap(@javax.annotation.Nullable Map map) {
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- MixedPropertiesAndAdditionalPropertiesClass mixedPropertiesAndAdditionalPropertiesClass = (MixedPropertiesAndAdditionalPropertiesClass) o;
- return Objects.equals(this.uuid, mixedPropertiesAndAdditionalPropertiesClass.uuid) &&
- Objects.equals(this.dateTime, mixedPropertiesAndAdditionalPropertiesClass.dateTime) &&
- Objects.equals(this.map, mixedPropertiesAndAdditionalPropertiesClass.map);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(uuid, dateTime, map);
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Model200Response.java
index 05d89779ec12..6d244a206504 100644
--- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Model200Response.java
+++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Model200Response.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
@@ -20,12 +22,15 @@
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
/**
* Model for testing model name starting with number
*/
+@ApiModel(description = "Model for testing model name starting with number")
@JsonPropertyOrder({
Model200Response.JSON_PROPERTY_NAME,
Model200Response.JSON_PROPERTY_PROPERTY_CLASS
@@ -56,6 +61,7 @@ public Model200Response name(@javax.annotation.Nullable Integer name) {
* @return name
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -82,6 +88,7 @@ public Model200Response propertyClass(@javax.annotation.Nullable String property
* @return propertyClass
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PROPERTY_CLASS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -99,20 +106,12 @@ public void setPropertyClass(@javax.annotation.Nullable String propertyClass) {
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- Model200Response _200response = (Model200Response) o;
- return Objects.equals(this.name, _200response.name) &&
- Objects.equals(this.propertyClass, _200response.propertyClass);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(name, propertyClass);
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ModelApiResponse.java
index 831e6c8580a5..0052dc96f970 100644
--- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ModelApiResponse.java
+++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ModelApiResponse.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
@@ -20,6 +22,8 @@
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
@@ -61,6 +65,7 @@ public ModelApiResponse code(@javax.annotation.Nullable Integer code) {
* @return code
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CODE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -87,6 +92,7 @@ public ModelApiResponse type(@javax.annotation.Nullable String type) {
* @return type
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -113,6 +119,7 @@ public ModelApiResponse message(@javax.annotation.Nullable String message) {
* @return message
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MESSAGE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -130,21 +137,12 @@ public void setMessage(@javax.annotation.Nullable String message) {
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- ModelApiResponse _apiResponse = (ModelApiResponse) o;
- return Objects.equals(this.code, _apiResponse.code) &&
- Objects.equals(this.type, _apiResponse.type) &&
- Objects.equals(this.message, _apiResponse.message);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(code, type, message);
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ModelList.java
index 712b3cf6b47c..968cc05d4599 100644
--- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ModelList.java
+++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ModelList.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
@@ -20,6 +22,8 @@
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
@@ -51,6 +55,7 @@ public ModelList _123list(@javax.annotation.Nullable String _123list) {
* @return _123list
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_123LIST)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -68,19 +73,12 @@ public void set123list(@javax.annotation.Nullable String _123list) {
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- ModelList _list = (ModelList) o;
- return Objects.equals(this._123list, _list._123list);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(_123list);
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ModelReturn.java
index c2c62f72330c..e0f52102ba37 100644
--- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ModelReturn.java
+++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ModelReturn.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
@@ -20,12 +22,15 @@
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
/**
* Model for testing reserved words
*/
+@ApiModel(description = "Model for testing reserved words")
@JsonPropertyOrder({
ModelReturn.JSON_PROPERTY_RETURN
})
@@ -51,6 +56,7 @@ public ModelReturn _return(@javax.annotation.Nullable Integer _return) {
* @return _return
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_RETURN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -68,19 +74,12 @@ public void setReturn(@javax.annotation.Nullable Integer _return) {
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- ModelReturn _return = (ModelReturn) o;
- return Objects.equals(this._return, _return._return);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(_return);
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Name.java
index bbe70280caef..1119481e9fec 100644
--- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Name.java
+++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Name.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
@@ -20,12 +22,15 @@
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
/**
* Model for testing model name same as property name
*/
+@ApiModel(description = "Model for testing model name same as property name")
@JsonPropertyOrder({
Name.JSON_PROPERTY_NAME,
Name.JSON_PROPERTY_SNAKE_CASE,
@@ -75,6 +80,7 @@ public Name name(@javax.annotation.Nonnull Integer name) {
* @return name
*/
@javax.annotation.Nonnull
+ @ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@@ -95,6 +101,7 @@ public void setName(@javax.annotation.Nonnull Integer name) {
* @return snakeCase
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_SNAKE_CASE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -116,6 +123,7 @@ public Name property(@javax.annotation.Nullable String property) {
* @return property
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PROPERTY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -136,6 +144,7 @@ public void setProperty(@javax.annotation.Nullable String property) {
* @return _123number
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_123NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -148,22 +157,12 @@ public Integer get123number() {
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- Name name = (Name) o;
- return Objects.equals(this.name, name.name) &&
- Objects.equals(this.snakeCase, name.snakeCase) &&
- Objects.equals(this.property, name.property) &&
- Objects.equals(this._123number, name._123number);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(name, snakeCase, property, _123number);
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/NumberOnly.java
index 1d49eb406fed..2bb6f0cac011 100644
--- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/NumberOnly.java
+++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/NumberOnly.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
@@ -20,6 +22,8 @@
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
@@ -51,6 +55,7 @@ public NumberOnly justNumber(@javax.annotation.Nullable BigDecimal justNumber) {
* @return justNumber
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_JUST_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -68,19 +73,12 @@ public void setJustNumber(@javax.annotation.Nullable BigDecimal justNumber) {
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- NumberOnly numberOnly = (NumberOnly) o;
- return Objects.equals(this.justNumber, numberOnly.justNumber);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(justNumber);
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Order.java
index dc6d52dc2091..677cb671afa1 100644
--- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Order.java
+++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Order.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
@@ -20,6 +22,8 @@
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
import java.time.OffsetDateTime;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
@@ -113,6 +117,7 @@ public Order id(@javax.annotation.Nullable Long id) {
* @return id
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -139,6 +144,7 @@ public Order petId(@javax.annotation.Nullable Long petId) {
* @return petId
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PET_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -165,6 +171,7 @@ public Order quantity(@javax.annotation.Nullable Integer quantity) {
* @return quantity
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_QUANTITY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -191,6 +198,7 @@ public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) {
* @return shipDate
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_SHIP_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -217,6 +225,7 @@ public Order status(@javax.annotation.Nullable StatusEnum status) {
* @return status
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "Order Status")
@JsonProperty(JSON_PROPERTY_STATUS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -243,6 +252,7 @@ public Order complete(@javax.annotation.Nullable Boolean complete) {
* @return complete
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_COMPLETE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -260,24 +270,12 @@ public void setComplete(@javax.annotation.Nullable Boolean complete) {
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- Order order = (Order) o;
- return Objects.equals(this.id, order.id) &&
- Objects.equals(this.petId, order.petId) &&
- Objects.equals(this.quantity, order.quantity) &&
- Objects.equals(this.shipDate, order.shipDate) &&
- Objects.equals(this.status, order.status) &&
- Objects.equals(this.complete, order.complete);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(id, petId, quantity, shipDate, status, complete);
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/OuterComposite.java
index e919c4e6d9e1..583303bd274e 100644
--- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/OuterComposite.java
+++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/OuterComposite.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
@@ -20,6 +22,8 @@
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
@@ -61,6 +65,7 @@ public OuterComposite myNumber(@javax.annotation.Nullable BigDecimal myNumber) {
* @return myNumber
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MY_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -87,6 +92,7 @@ public OuterComposite myString(@javax.annotation.Nullable String myString) {
* @return myString
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MY_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -113,6 +119,7 @@ public OuterComposite myBoolean(@javax.annotation.Nullable Boolean myBoolean) {
* @return myBoolean
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MY_BOOLEAN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -130,21 +137,12 @@ public void setMyBoolean(@javax.annotation.Nullable Boolean myBoolean) {
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- OuterComposite outerComposite = (OuterComposite) o;
- return Objects.equals(this.myNumber, outerComposite.myNumber) &&
- Objects.equals(this.myString, outerComposite.myString) &&
- Objects.equals(this.myBoolean, outerComposite.myBoolean);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(myNumber, myString, myBoolean);
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/OuterEnum.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/OuterEnum.java
index d2924eb9c29b..925066b50704 100644
--- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/OuterEnum.java
+++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/OuterEnum.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Pet.java
index 3fd31774a9dd..6bf46e65af08 100644
--- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Pet.java
+++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Pet.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
@@ -21,6 +23,8 @@
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.LinkedHashSet;
@@ -120,6 +124,7 @@ public Pet id(@javax.annotation.Nullable Long id) {
* @return id
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -146,6 +151,7 @@ public Pet category(@javax.annotation.Nullable Category category) {
* @return category
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CATEGORY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -172,6 +178,7 @@ public Pet name(@javax.annotation.Nonnull String name) {
* @return name
*/
@javax.annotation.Nonnull
+ @ApiModelProperty(example = "doggie", required = true, value = "")
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@@ -206,6 +213,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) {
* @return photoUrls
*/
@javax.annotation.Nonnull
+ @ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_PHOTO_URLS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@@ -241,6 +249,7 @@ public Pet addTagsItem(Tag tagsItem) {
* @return tags
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_TAGS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -267,6 +276,7 @@ public Pet status(@javax.annotation.Nullable StatusEnum status) {
* @return status
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "pet status in the store")
@JsonProperty(JSON_PROPERTY_STATUS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -284,24 +294,12 @@ public void setStatus(@javax.annotation.Nullable StatusEnum status) {
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- Pet pet = (Pet) o;
- return Objects.equals(this.id, pet.id) &&
- Objects.equals(this.category, pet.category) &&
- Objects.equals(this.name, pet.name) &&
- Objects.equals(this.photoUrls, pet.photoUrls) &&
- Objects.equals(this.tags, pet.tags) &&
- Objects.equals(this.status, pet.status);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(id, category, name, photoUrls, tags, status);
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java
index e59d26515366..ae6b49f942c9 100644
--- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java
+++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
@@ -20,6 +22,8 @@
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
@@ -57,6 +61,7 @@ public ReadOnlyFirst(
* @return bar
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_BAR)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -78,6 +83,7 @@ public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) {
* @return baz
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_BAZ)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -95,20 +101,12 @@ public void setBaz(@javax.annotation.Nullable String baz) {
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- ReadOnlyFirst readOnlyFirst = (ReadOnlyFirst) o;
- return Objects.equals(this.bar, readOnlyFirst.bar) &&
- Objects.equals(this.baz, readOnlyFirst.baz);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(bar, baz);
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/SpecialModelName.java
index 30f18df8bd54..5c45b2b8690a 100644
--- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/SpecialModelName.java
+++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/SpecialModelName.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
@@ -20,6 +22,8 @@
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
@@ -51,6 +55,7 @@ public SpecialModelName() {
* @return $specialPropertyName
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -68,19 +73,12 @@ public SpecialModelName() {
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- SpecialModelName $specialModelName = (SpecialModelName) o;
- return Objects.equals(this.$specialPropertyName, $specialModelName.$specialPropertyName);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash($specialPropertyName);
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Tag.java
index bdb029f73197..5eaa904b3d69 100644
--- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Tag.java
+++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Tag.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
@@ -20,6 +22,8 @@
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
@@ -55,6 +59,7 @@ public Tag id(@javax.annotation.Nullable Long id) {
* @return id
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -81,6 +86,7 @@ public Tag name(@javax.annotation.Nullable String name) {
* @return name
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -98,20 +104,12 @@ public void setName(@javax.annotation.Nullable String name) {
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- Tag tag = (Tag) o;
- return Objects.equals(this.id, tag.id) &&
- Objects.equals(this.name, tag.name);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(id, name);
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderDefault.java
index f6c5a693e8a0..bc17a17906fa 100644
--- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderDefault.java
+++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderDefault.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
@@ -20,6 +22,8 @@
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Arrays;
@@ -74,6 +78,7 @@ public TypeHolderDefault stringItem(@javax.annotation.Nonnull String stringItem)
* @return stringItem
*/
@javax.annotation.Nonnull
+ @ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_STRING_ITEM)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@@ -100,6 +105,7 @@ public TypeHolderDefault numberItem(@javax.annotation.Nonnull BigDecimal numberI
* @return numberItem
*/
@javax.annotation.Nonnull
+ @ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_NUMBER_ITEM)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@@ -126,6 +132,7 @@ public TypeHolderDefault integerItem(@javax.annotation.Nonnull Integer integerIt
* @return integerItem
*/
@javax.annotation.Nonnull
+ @ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_INTEGER_ITEM)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@@ -152,6 +159,7 @@ public TypeHolderDefault boolItem(@javax.annotation.Nonnull Boolean boolItem) {
* @return boolItem
*/
@javax.annotation.Nonnull
+ @ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_BOOL_ITEM)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@@ -186,6 +194,7 @@ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) {
* @return arrayItem
*/
@javax.annotation.Nonnull
+ @ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_ARRAY_ITEM)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@@ -203,23 +212,12 @@ public void setArrayItem(@javax.annotation.Nonnull List arrayItem) {
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- TypeHolderDefault typeHolderDefault = (TypeHolderDefault) o;
- return Objects.equals(this.stringItem, typeHolderDefault.stringItem) &&
- Objects.equals(this.numberItem, typeHolderDefault.numberItem) &&
- Objects.equals(this.integerItem, typeHolderDefault.integerItem) &&
- Objects.equals(this.boolItem, typeHolderDefault.boolItem) &&
- Objects.equals(this.arrayItem, typeHolderDefault.arrayItem);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderExample.java
index 90c368d7a770..ca05c662f07e 100644
--- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderExample.java
+++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderExample.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
@@ -20,6 +22,8 @@
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Arrays;
@@ -79,6 +83,7 @@ public TypeHolderExample stringItem(@javax.annotation.Nonnull String stringItem)
* @return stringItem
*/
@javax.annotation.Nonnull
+ @ApiModelProperty(example = "what", required = true, value = "")
@JsonProperty(JSON_PROPERTY_STRING_ITEM)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@@ -105,6 +110,7 @@ public TypeHolderExample numberItem(@javax.annotation.Nonnull BigDecimal numberI
* @return numberItem
*/
@javax.annotation.Nonnull
+ @ApiModelProperty(example = "1.234", required = true, value = "")
@JsonProperty(JSON_PROPERTY_NUMBER_ITEM)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@@ -131,6 +137,7 @@ public TypeHolderExample floatItem(@javax.annotation.Nonnull Float floatItem) {
* @return floatItem
*/
@javax.annotation.Nonnull
+ @ApiModelProperty(example = "1.234", required = true, value = "")
@JsonProperty(JSON_PROPERTY_FLOAT_ITEM)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@@ -157,6 +164,7 @@ public TypeHolderExample integerItem(@javax.annotation.Nonnull Integer integerIt
* @return integerItem
*/
@javax.annotation.Nonnull
+ @ApiModelProperty(example = "-2", required = true, value = "")
@JsonProperty(JSON_PROPERTY_INTEGER_ITEM)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@@ -183,6 +191,7 @@ public TypeHolderExample boolItem(@javax.annotation.Nonnull Boolean boolItem) {
* @return boolItem
*/
@javax.annotation.Nonnull
+ @ApiModelProperty(example = "true", required = true, value = "")
@JsonProperty(JSON_PROPERTY_BOOL_ITEM)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@@ -217,6 +226,7 @@ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) {
* @return arrayItem
*/
@javax.annotation.Nonnull
+ @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "")
@JsonProperty(JSON_PROPERTY_ARRAY_ITEM)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@@ -234,24 +244,12 @@ public void setArrayItem(@javax.annotation.Nonnull List arrayItem) {
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- TypeHolderExample typeHolderExample = (TypeHolderExample) o;
- return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
- Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
- Objects.equals(this.floatItem, typeHolderExample.floatItem) &&
- Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
- Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
- Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem);
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/User.java
index 453196da0143..6bff7c18d9b7 100644
--- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/User.java
+++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/User.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
@@ -20,6 +22,8 @@
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
@@ -85,6 +89,7 @@ public User id(@javax.annotation.Nullable Long id) {
* @return id
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -111,6 +116,7 @@ public User username(@javax.annotation.Nullable String username) {
* @return username
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_USERNAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -137,6 +143,7 @@ public User firstName(@javax.annotation.Nullable String firstName) {
* @return firstName
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_FIRST_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -163,6 +170,7 @@ public User lastName(@javax.annotation.Nullable String lastName) {
* @return lastName
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_LAST_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -189,6 +197,7 @@ public User email(@javax.annotation.Nullable String email) {
* @return email
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_EMAIL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -215,6 +224,7 @@ public User password(@javax.annotation.Nullable String password) {
* @return password
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PASSWORD)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -241,6 +251,7 @@ public User phone(@javax.annotation.Nullable String phone) {
* @return phone
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PHONE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -267,6 +278,7 @@ public User userStatus(@javax.annotation.Nullable Integer userStatus) {
* @return userStatus
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "User Status")
@JsonProperty(JSON_PROPERTY_USER_STATUS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -284,26 +296,12 @@ public void setUserStatus(@javax.annotation.Nullable Integer userStatus) {
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- User user = (User) o;
- return Objects.equals(this.id, user.id) &&
- Objects.equals(this.username, user.username) &&
- Objects.equals(this.firstName, user.firstName) &&
- Objects.equals(this.lastName, user.lastName) &&
- Objects.equals(this.email, user.email) &&
- Objects.equals(this.password, user.password) &&
- Objects.equals(this.phone, user.phone) &&
- Objects.equals(this.userStatus, user.userStatus);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(id, username, firstName, lastName, email, password, phone, userStatus);
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/XmlItem.java
index bc3a8faa2f06..a6e2c952994f 100644
--- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/XmlItem.java
+++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/XmlItem.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
@@ -20,6 +22,8 @@
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Arrays;
@@ -194,6 +198,7 @@ public XmlItem attributeString(@javax.annotation.Nullable String attributeString
* @return attributeString
*/
@javax.annotation.Nullable
+ @ApiModelProperty(example = "string", value = "")
@JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -220,6 +225,7 @@ public XmlItem attributeNumber(@javax.annotation.Nullable BigDecimal attributeNu
* @return attributeNumber
*/
@javax.annotation.Nullable
+ @ApiModelProperty(example = "1.234", value = "")
@JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -246,6 +252,7 @@ public XmlItem attributeInteger(@javax.annotation.Nullable Integer attributeInte
* @return attributeInteger
*/
@javax.annotation.Nullable
+ @ApiModelProperty(example = "-2", value = "")
@JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -272,6 +279,7 @@ public XmlItem attributeBoolean(@javax.annotation.Nullable Boolean attributeBool
* @return attributeBoolean
*/
@javax.annotation.Nullable
+ @ApiModelProperty(example = "true", value = "")
@JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -306,6 +314,7 @@ public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) {
* @return wrappedArray
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -332,6 +341,7 @@ public XmlItem nameString(@javax.annotation.Nullable String nameString) {
* @return nameString
*/
@javax.annotation.Nullable
+ @ApiModelProperty(example = "string", value = "")
@JsonProperty(JSON_PROPERTY_NAME_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -358,6 +368,7 @@ public XmlItem nameNumber(@javax.annotation.Nullable BigDecimal nameNumber) {
* @return nameNumber
*/
@javax.annotation.Nullable
+ @ApiModelProperty(example = "1.234", value = "")
@JsonProperty(JSON_PROPERTY_NAME_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -384,6 +395,7 @@ public XmlItem nameInteger(@javax.annotation.Nullable Integer nameInteger) {
* @return nameInteger
*/
@javax.annotation.Nullable
+ @ApiModelProperty(example = "-2", value = "")
@JsonProperty(JSON_PROPERTY_NAME_INTEGER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -410,6 +422,7 @@ public XmlItem nameBoolean(@javax.annotation.Nullable Boolean nameBoolean) {
* @return nameBoolean
*/
@javax.annotation.Nullable
+ @ApiModelProperty(example = "true", value = "")
@JsonProperty(JSON_PROPERTY_NAME_BOOLEAN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -444,6 +457,7 @@ public XmlItem addNameArrayItem(Integer nameArrayItem) {
* @return nameArray
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAME_ARRAY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -478,6 +492,7 @@ public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) {
* @return nameWrappedArray
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -504,6 +519,7 @@ public XmlItem prefixString(@javax.annotation.Nullable String prefixString) {
* @return prefixString
*/
@javax.annotation.Nullable
+ @ApiModelProperty(example = "string", value = "")
@JsonProperty(JSON_PROPERTY_PREFIX_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -530,6 +546,7 @@ public XmlItem prefixNumber(@javax.annotation.Nullable BigDecimal prefixNumber)
* @return prefixNumber
*/
@javax.annotation.Nullable
+ @ApiModelProperty(example = "1.234", value = "")
@JsonProperty(JSON_PROPERTY_PREFIX_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -556,6 +573,7 @@ public XmlItem prefixInteger(@javax.annotation.Nullable Integer prefixInteger) {
* @return prefixInteger
*/
@javax.annotation.Nullable
+ @ApiModelProperty(example = "-2", value = "")
@JsonProperty(JSON_PROPERTY_PREFIX_INTEGER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -582,6 +600,7 @@ public XmlItem prefixBoolean(@javax.annotation.Nullable Boolean prefixBoolean) {
* @return prefixBoolean
*/
@javax.annotation.Nullable
+ @ApiModelProperty(example = "true", value = "")
@JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -616,6 +635,7 @@ public XmlItem addPrefixArrayItem(Integer prefixArrayItem) {
* @return prefixArray
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PREFIX_ARRAY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -650,6 +670,7 @@ public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) {
* @return prefixWrappedArray
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -676,6 +697,7 @@ public XmlItem namespaceString(@javax.annotation.Nullable String namespaceString
* @return namespaceString
*/
@javax.annotation.Nullable
+ @ApiModelProperty(example = "string", value = "")
@JsonProperty(JSON_PROPERTY_NAMESPACE_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -702,6 +724,7 @@ public XmlItem namespaceNumber(@javax.annotation.Nullable BigDecimal namespaceNu
* @return namespaceNumber
*/
@javax.annotation.Nullable
+ @ApiModelProperty(example = "1.234", value = "")
@JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -728,6 +751,7 @@ public XmlItem namespaceInteger(@javax.annotation.Nullable Integer namespaceInte
* @return namespaceInteger
*/
@javax.annotation.Nullable
+ @ApiModelProperty(example = "-2", value = "")
@JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -754,6 +778,7 @@ public XmlItem namespaceBoolean(@javax.annotation.Nullable Boolean namespaceBool
* @return namespaceBoolean
*/
@javax.annotation.Nullable
+ @ApiModelProperty(example = "true", value = "")
@JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -788,6 +813,7 @@ public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) {
* @return namespaceArray
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -822,6 +848,7 @@ public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) {
* @return namespaceWrappedArray
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -848,6 +875,7 @@ public XmlItem prefixNsString(@javax.annotation.Nullable String prefixNsString)
* @return prefixNsString
*/
@javax.annotation.Nullable
+ @ApiModelProperty(example = "string", value = "")
@JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -874,6 +902,7 @@ public XmlItem prefixNsNumber(@javax.annotation.Nullable BigDecimal prefixNsNumb
* @return prefixNsNumber
*/
@javax.annotation.Nullable
+ @ApiModelProperty(example = "1.234", value = "")
@JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -900,6 +929,7 @@ public XmlItem prefixNsInteger(@javax.annotation.Nullable Integer prefixNsIntege
* @return prefixNsInteger
*/
@javax.annotation.Nullable
+ @ApiModelProperty(example = "-2", value = "")
@JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -926,6 +956,7 @@ public XmlItem prefixNsBoolean(@javax.annotation.Nullable Boolean prefixNsBoolea
* @return prefixNsBoolean
*/
@javax.annotation.Nullable
+ @ApiModelProperty(example = "true", value = "")
@JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -960,6 +991,7 @@ public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) {
* @return prefixNsArray
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -994,6 +1026,7 @@ public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) {
* @return prefixNsWrappedArray
*/
@javax.annotation.Nullable
+ @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -1011,47 +1044,12 @@ public void setPrefixNsWrappedArray(@javax.annotation.Nullable List pre
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- XmlItem xmlItem = (XmlItem) o;
- return Objects.equals(this.attributeString, xmlItem.attributeString) &&
- Objects.equals(this.attributeNumber, xmlItem.attributeNumber) &&
- Objects.equals(this.attributeInteger, xmlItem.attributeInteger) &&
- Objects.equals(this.attributeBoolean, xmlItem.attributeBoolean) &&
- Objects.equals(this.wrappedArray, xmlItem.wrappedArray) &&
- Objects.equals(this.nameString, xmlItem.nameString) &&
- Objects.equals(this.nameNumber, xmlItem.nameNumber) &&
- Objects.equals(this.nameInteger, xmlItem.nameInteger) &&
- Objects.equals(this.nameBoolean, xmlItem.nameBoolean) &&
- Objects.equals(this.nameArray, xmlItem.nameArray) &&
- Objects.equals(this.nameWrappedArray, xmlItem.nameWrappedArray) &&
- Objects.equals(this.prefixString, xmlItem.prefixString) &&
- Objects.equals(this.prefixNumber, xmlItem.prefixNumber) &&
- Objects.equals(this.prefixInteger, xmlItem.prefixInteger) &&
- Objects.equals(this.prefixBoolean, xmlItem.prefixBoolean) &&
- Objects.equals(this.prefixArray, xmlItem.prefixArray) &&
- Objects.equals(this.prefixWrappedArray, xmlItem.prefixWrappedArray) &&
- Objects.equals(this.namespaceString, xmlItem.namespaceString) &&
- Objects.equals(this.namespaceNumber, xmlItem.namespaceNumber) &&
- Objects.equals(this.namespaceInteger, xmlItem.namespaceInteger) &&
- Objects.equals(this.namespaceBoolean, xmlItem.namespaceBoolean) &&
- Objects.equals(this.namespaceArray, xmlItem.namespaceArray) &&
- Objects.equals(this.namespaceWrappedArray, xmlItem.namespaceWrappedArray) &&
- Objects.equals(this.prefixNsString, xmlItem.prefixNsString) &&
- Objects.equals(this.prefixNsNumber, xmlItem.prefixNsNumber) &&
- Objects.equals(this.prefixNsInteger, xmlItem.prefixNsInteger) &&
- Objects.equals(this.prefixNsBoolean, xmlItem.prefixNsBoolean) &&
- Objects.equals(this.prefixNsArray, xmlItem.prefixNsArray) &&
- Objects.equals(this.prefixNsWrappedArray, xmlItem.prefixNsWrappedArray);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(attributeString, attributeNumber, attributeInteger, attributeBoolean, wrappedArray, nameString, nameNumber, nameInteger, nameBoolean, nameArray, nameWrappedArray, prefixString, prefixNumber, prefixInteger, prefixBoolean, prefixArray, prefixWrappedArray, namespaceString, namespaceNumber, namespaceInteger, namespaceBoolean, namespaceArray, namespaceWrappedArray, prefixNsString, prefixNsNumber, prefixNsInteger, prefixNsBoolean, prefixNsArray, prefixNsWrappedArray);
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/pom.xml b/samples/client/petstore/java/jersey2-java8-localdatetime/pom.xml
index e8b2b4285933..4b517189c012 100644
--- a/samples/client/petstore/java/jersey2-java8-localdatetime/pom.xml
+++ b/samples/client/petstore/java/jersey2-java8-localdatetime/pom.xml
@@ -323,6 +323,7 @@
jersey-apache-connector${jersey-version}
+
org.junit.jupiter
diff --git a/samples/client/petstore/java/jersey2-java8/pom.xml b/samples/client/petstore/java/jersey2-java8/pom.xml
index ada0fee29cda..1d56717fbc2c 100644
--- a/samples/client/petstore/java/jersey2-java8/pom.xml
+++ b/samples/client/petstore/java/jersey2-java8/pom.xml
@@ -323,6 +323,7 @@
jersey-apache-connector${jersey-version}
+
org.junit.jupiter
diff --git a/samples/client/petstore/java/jersey3-oneOf/pom.xml b/samples/client/petstore/java/jersey3-oneOf/pom.xml
index 616be794b601..590d772f329e 100644
--- a/samples/client/petstore/java/jersey3-oneOf/pom.xml
+++ b/samples/client/petstore/java/jersey3-oneOf/pom.xml
@@ -318,6 +318,7 @@
jersey-apache-connector${jersey-version}
+
org.junit.jupiter
diff --git a/samples/client/petstore/java/jersey3/build.gradle b/samples/client/petstore/java/jersey3/build.gradle
index 66e463de413e..10c96f84970e 100644
--- a/samples/client/petstore/java/jersey3/build.gradle
+++ b/samples/client/petstore/java/jersey3/build.gradle
@@ -108,6 +108,7 @@ ext {
junit_version = "5.8.2"
scribejava_apis_version = "8.3.1"
tomitribe_http_signatures_version = "1.7"
+ commons_lang3_version = "3.17.0"
}
dependencies {
@@ -127,6 +128,7 @@ dependencies {
implementation "org.tomitribe:tomitribe-http-signatures:$tomitribe_http_signatures_version"
implementation "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version"
implementation "jakarta.validation:jakarta.validation-api:$bean_validation_version"
+ implementation "org.apache.commons:commons-lang3:$commons_lang3_version"
testImplementation "org.junit.jupiter:junit-jupiter-api:$junit_version"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junit_version"
diff --git a/samples/client/petstore/java/jersey3/build.sbt b/samples/client/petstore/java/jersey3/build.sbt
index f57389cc41f5..693ad5c72089 100644
--- a/samples/client/petstore/java/jersey3/build.sbt
+++ b/samples/client/petstore/java/jersey3/build.sbt
@@ -24,6 +24,7 @@ lazy val root = (project in file(".")).
"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",
+ "org.apache.commons" % "commons-lang3" % "3.17.0" % "compile",
"org.junit.jupiter" % "junit-jupiter-api" % "5.8.2" % "test"
)
)
diff --git a/samples/client/petstore/java/jersey3/pom.xml b/samples/client/petstore/java/jersey3/pom.xml
index 11aaeb47b7fb..69c559dbede8 100644
--- a/samples/client/petstore/java/jersey3/pom.xml
+++ b/samples/client/petstore/java/jersey3/pom.xml
@@ -335,6 +335,13 @@
jersey-apache-connector${jersey-version}
+
+
+ org.apache.commons
+ commons-lang3
+ ${commons-lang3-version}
+
+
org.junit.jupiter
@@ -354,6 +361,7 @@
5.10.01.88.3.3
+ 3.17.02.21.0
diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java
index 795337f2d52b..38600bbe6fc2 100644
--- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java
+++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
@@ -337,21 +339,7 @@ public void setMapWithUndeclaredPropertiesString(@jakarta.annotation.Nullable Ma
*/
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- AdditionalPropertiesClass additionalPropertiesClass = (AdditionalPropertiesClass) o;
- return Objects.equals(this.mapProperty, additionalPropertiesClass.mapProperty) &&
- Objects.equals(this.mapOfMapProperty, additionalPropertiesClass.mapOfMapProperty) &&
- equalsNullable(this.anytype1, additionalPropertiesClass.anytype1) &&
- Objects.equals(this.mapWithUndeclaredPropertiesAnytype1, additionalPropertiesClass.mapWithUndeclaredPropertiesAnytype1) &&
- Objects.equals(this.mapWithUndeclaredPropertiesAnytype2, additionalPropertiesClass.mapWithUndeclaredPropertiesAnytype2) &&
- Objects.equals(this.mapWithUndeclaredPropertiesAnytype3, additionalPropertiesClass.mapWithUndeclaredPropertiesAnytype3) &&
- Objects.equals(this.emptyMap, additionalPropertiesClass.emptyMap) &&
- Objects.equals(this.mapWithUndeclaredPropertiesString, additionalPropertiesClass.mapWithUndeclaredPropertiesString);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
@@ -360,7 +348,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b)
@Override
public int hashCode() {
- return Objects.hash(mapProperty, mapOfMapProperty, hashCodeNullable(anytype1), mapWithUndeclaredPropertiesAnytype1, mapWithUndeclaredPropertiesAnytype2, mapWithUndeclaredPropertiesAnytype3, emptyMap, mapWithUndeclaredPropertiesString);
+ return HashCodeBuilder.reflectionHashCode(this);
}
private static int hashCodeNullable(JsonNullable a) {
diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Animal.java
index 118df7958065..e5f42f8b418f 100644
--- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Animal.java
+++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Animal.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
@@ -119,20 +121,12 @@ public void setColor(@jakarta.annotation.Nullable String color) {
*/
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- Animal animal = (Animal) o;
- return Objects.equals(this.className, animal.className) &&
- Objects.equals(this.color, animal.color);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(className, color);
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Apple.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Apple.java
index 24e7849e22b6..0d82658dac6d 100644
--- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Apple.java
+++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Apple.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
@@ -106,20 +108,12 @@ public void setOrigin(@jakarta.annotation.Nullable String origin) {
*/
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- Apple apple = (Apple) o;
- return Objects.equals(this.cultivar, apple.cultivar) &&
- Objects.equals(this.origin, apple.origin);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(cultivar, origin);
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/AppleReq.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/AppleReq.java
index 73918b98ff7f..7ae4e6cbe17a 100644
--- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/AppleReq.java
+++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/AppleReq.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
@@ -107,20 +109,12 @@ public void setMealy(@jakarta.annotation.Nullable Boolean mealy) {
*/
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- AppleReq appleReq = (AppleReq) o;
- return Objects.equals(this.cultivar, appleReq.cultivar) &&
- Objects.equals(this.mealy, appleReq.mealy);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(cultivar, mealy);
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java
index 7f4d13dbf205..579df04b5179 100644
--- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java
+++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
@@ -86,19 +88,12 @@ public void setArrayArrayNumber(@jakarta.annotation.Nullable List arrayNu
*/
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- ArrayOfNumberOnly arrayOfNumberOnly = (ArrayOfNumberOnly) o;
- return Objects.equals(this.arrayNumber, arrayOfNumberOnly.arrayNumber);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(arrayNumber);
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ArrayTest.java
index 81b5130763e0..27cfadfc1e1e 100644
--- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ArrayTest.java
+++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ArrayTest.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
@@ -165,21 +167,12 @@ public void setArrayArrayOfModel(@jakarta.annotation.Nullable List boolean equalsNullable(JsonNullable a, JsonNullable b) {
@@ -264,7 +255,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b)
@Override
public int hashCode() {
- return Objects.hash(mainShape, hashCodeNullable(shapeOrNull), hashCodeNullable(nullableShape), shapes, additionalProperties);
+ return HashCodeBuilder.reflectionHashCode(this);
}
private static int hashCodeNullable(JsonNullable a) {
diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/EnumArrays.java
index c171e5308d65..52eb75c7a2c3 100644
--- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/EnumArrays.java
+++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/EnumArrays.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
@@ -185,20 +187,12 @@ public void setArrayEnum(@jakarta.annotation.Nullable List arrayE
*/
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- EnumArrays enumArrays = (EnumArrays) o;
- return Objects.equals(this.justSymbol, enumArrays.justSymbol) &&
- Objects.equals(this.arrayEnum, enumArrays.arrayEnum);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(justSymbol, arrayEnum);
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/EnumClass.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/EnumClass.java
index 8896a4043cba..a8d97ff8d03d 100644
--- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/EnumClass.java
+++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/EnumClass.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/EnumTest.java
index 156ca8f8972b..4a78c7cdf54b 100644
--- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/EnumTest.java
+++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/EnumTest.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
@@ -522,22 +524,7 @@ public void setOuterEnumIntegerDefaultValue(@jakarta.annotation.Nullable OuterEn
*/
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- EnumTest enumTest = (EnumTest) o;
- return Objects.equals(this.enumString, enumTest.enumString) &&
- Objects.equals(this.enumStringRequired, enumTest.enumStringRequired) &&
- Objects.equals(this.enumInteger, enumTest.enumInteger) &&
- Objects.equals(this.enumIntegerOnly, enumTest.enumIntegerOnly) &&
- Objects.equals(this.enumNumber, enumTest.enumNumber) &&
- equalsNullable(this.outerEnum, enumTest.outerEnum) &&
- Objects.equals(this.outerEnumInteger, enumTest.outerEnumInteger) &&
- Objects.equals(this.outerEnumDefaultValue, enumTest.outerEnumDefaultValue) &&
- Objects.equals(this.outerEnumIntegerDefaultValue, enumTest.outerEnumIntegerDefaultValue);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
@@ -546,7 +533,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b)
@Override
public int hashCode() {
- return Objects.hash(enumString, enumStringRequired, enumInteger, enumIntegerOnly, enumNumber, hashCodeNullable(outerEnum), outerEnumInteger, outerEnumDefaultValue, outerEnumIntegerDefaultValue);
+ return HashCodeBuilder.reflectionHashCode(this);
}
private static int hashCodeNullable(JsonNullable a) {
diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/EquilateralTriangle.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/EquilateralTriangle.java
index 44732e013917..89b557c00d4f 100644
--- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/EquilateralTriangle.java
+++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/EquilateralTriangle.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Map;
import java.util.HashMap;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
@@ -148,21 +150,12 @@ public Object getAdditionalProperty(String key) {
*/
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- EquilateralTriangle equilateralTriangle = (EquilateralTriangle) o;
- return Objects.equals(this.shapeType, equilateralTriangle.shapeType) &&
- Objects.equals(this.triangleType, equilateralTriangle.triangleType)&&
- Objects.equals(this.additionalProperties, equilateralTriangle.additionalProperties);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(shapeType, triangleType, additionalProperties);
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java
index ba770c57dd9b..b35606dfb0c2 100644
--- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java
+++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
@@ -118,20 +120,12 @@ public void setFiles(@jakarta.annotation.Nullable List<@Valid ModelFile> files)
*/
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- FileSchemaTestClass fileSchemaTestClass = (FileSchemaTestClass) o;
- return Objects.equals(this._file, fileSchemaTestClass._file) &&
- Objects.equals(this.files, fileSchemaTestClass.files);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(_file, files);
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Foo.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Foo.java
index 62210e1b6ce4..d0f4a278200d 100644
--- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Foo.java
+++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Foo.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
@@ -74,19 +76,12 @@ public void setBar(@jakarta.annotation.Nullable String bar) {
*/
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- Foo foo = (Foo) o;
- return Objects.equals(this.bar, foo.bar);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(bar);
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java
index c18b124e09af..ff6ef3437c26 100644
--- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java
+++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
@@ -77,19 +79,12 @@ public void setString(@jakarta.annotation.Nullable Foo string) {
*/
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- FooGetDefaultResponse fooGetDefaultResponse = (FooGetDefaultResponse) o;
- return Objects.equals(this.string, fooGetDefaultResponse.string);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(string);
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/FormatTest.java
index a82a6a123b79..23bae6a2b07d 100644
--- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/FormatTest.java
+++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/FormatTest.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
@@ -565,34 +567,12 @@ public void setPatternWithDigitsAndDelimiter(@jakarta.annotation.Nullable String
*/
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- FormatTest formatTest = (FormatTest) o;
- return Objects.equals(this.integer, formatTest.integer) &&
- Objects.equals(this.int32, formatTest.int32) &&
- Objects.equals(this.int64, formatTest.int64) &&
- Objects.equals(this.number, formatTest.number) &&
- Objects.equals(this._float, formatTest._float) &&
- Objects.equals(this._double, formatTest._double) &&
- Objects.equals(this.decimal, formatTest.decimal) &&
- Objects.equals(this.string, formatTest.string) &&
- Arrays.equals(this._byte, formatTest._byte) &&
- Objects.equals(this.binary, formatTest.binary) &&
- Objects.equals(this.date, formatTest.date) &&
- Objects.equals(this.dateTime, formatTest.dateTime) &&
- Objects.equals(this.uuid, formatTest.uuid) &&
- Objects.equals(this.password, formatTest.password) &&
- Objects.equals(this.patternWithDigits, formatTest.patternWithDigits) &&
- Objects.equals(this.patternWithDigitsAndDelimiter, formatTest.patternWithDigitsAndDelimiter);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(integer, int32, int64, number, _float, _double, decimal, string, Arrays.hashCode(_byte), binary, date, dateTime, uuid, password, patternWithDigits, patternWithDigitsAndDelimiter);
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Fruit.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Fruit.java
index c819d5a93657..fed2a9288fad 100644
--- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Fruit.java
+++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Fruit.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/FruitReq.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/FruitReq.java
index 17c9e85e05c1..c84f7a734393 100644
--- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/FruitReq.java
+++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/FruitReq.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/GmFruit.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/GmFruit.java
index 36ffb634603e..5f1d0c0244ae 100644
--- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/GmFruit.java
+++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/GmFruit.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/GrandparentAnimal.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/GrandparentAnimal.java
index fbbe6f2788a1..56c27efa3ee2 100644
--- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/GrandparentAnimal.java
+++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/GrandparentAnimal.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
@@ -88,19 +90,12 @@ public void setPetType(@jakarta.annotation.Nonnull String petType) {
*/
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- GrandparentAnimal grandparentAnimal = (GrandparentAnimal) o;
- return Objects.equals(this.petType, grandparentAnimal.petType);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(petType);
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java
index 2b6cd744bd21..7a4669ecd5af 100644
--- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java
+++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
@@ -96,20 +98,12 @@ public String getFoo() {
*/
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- HasOnlyReadOnly hasOnlyReadOnly = (HasOnlyReadOnly) o;
- return Objects.equals(this.bar, hasOnlyReadOnly.bar) &&
- Objects.equals(this.foo, hasOnlyReadOnly.foo);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(bar, foo);
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/HealthCheckResult.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/HealthCheckResult.java
index cb1d09c13c50..e4b40a5da077 100644
--- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/HealthCheckResult.java
+++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/HealthCheckResult.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
@@ -85,14 +87,7 @@ public void setNullableMessage(@jakarta.annotation.Nullable String nullableMessa
*/
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- HealthCheckResult healthCheckResult = (HealthCheckResult) o;
- return equalsNullable(this.nullableMessage, healthCheckResult.nullableMessage);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
@@ -101,7 +96,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b)
@Override
public int hashCode() {
- return Objects.hash(hashCodeNullable(nullableMessage));
+ return HashCodeBuilder.reflectionHashCode(this);
}
private static int hashCodeNullable(JsonNullable a) {
diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/IsoscelesTriangle.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/IsoscelesTriangle.java
index d116617abdd7..3274a6c2de5d 100644
--- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/IsoscelesTriangle.java
+++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/IsoscelesTriangle.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
@@ -107,20 +109,12 @@ public void setTriangleType(@jakarta.annotation.Nonnull String triangleType) {
*/
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- IsoscelesTriangle isoscelesTriangle = (IsoscelesTriangle) o;
- return Objects.equals(this.shapeType, isoscelesTriangle.shapeType) &&
- Objects.equals(this.triangleType, isoscelesTriangle.triangleType);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(shapeType, triangleType);
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Mammal.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Mammal.java
index 6b46ceee645b..dff17656315c 100644
--- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Mammal.java
+++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Mammal.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Map;
import java.util.HashMap;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/MammalAnyof.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/MammalAnyof.java
index 90e11adaa73b..21af2f6a0ffb 100644
--- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/MammalAnyof.java
+++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/MammalAnyof.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Map;
import java.util.HashMap;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/MapTest.java
index 03f3eda9cc3c..6e4215d1e93d 100644
--- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/MapTest.java
+++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/MapTest.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
@@ -237,22 +239,12 @@ public void setIndirectMap(@jakarta.annotation.Nullable Map ind
*/
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- MapTest mapTest = (MapTest) o;
- return Objects.equals(this.mapMapOfString, mapTest.mapMapOfString) &&
- Objects.equals(this.mapOfEnumString, mapTest.mapOfEnumString) &&
- Objects.equals(this.directMap, mapTest.directMap) &&
- Objects.equals(this.indirectMap, mapTest.indirectMap);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(mapMapOfString, mapOfEnumString, directMap, indirectMap);
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java
index eb9a5aef5007..a0849457b7d5 100644
--- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java
+++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
@@ -152,21 +154,12 @@ public void setMap(@jakarta.annotation.Nullable Map map) {
*/
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- MixedPropertiesAndAdditionalPropertiesClass mixedPropertiesAndAdditionalPropertiesClass = (MixedPropertiesAndAdditionalPropertiesClass) o;
- return Objects.equals(this.uuid, mixedPropertiesAndAdditionalPropertiesClass.uuid) &&
- Objects.equals(this.dateTime, mixedPropertiesAndAdditionalPropertiesClass.dateTime) &&
- Objects.equals(this.map, mixedPropertiesAndAdditionalPropertiesClass.map);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(uuid, dateTime, map);
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Model200Response.java
index aabc6c471b2c..9d7b704fcd58 100644
--- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Model200Response.java
+++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Model200Response.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
@@ -106,20 +108,12 @@ public void setPropertyClass(@jakarta.annotation.Nullable String propertyClass)
*/
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- Model200Response _200response = (Model200Response) o;
- return Objects.equals(this.name, _200response.name) &&
- Objects.equals(this.propertyClass, _200response.propertyClass);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(name, propertyClass);
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ModelApiResponse.java
index 33bdc417985e..2ed3b0d59f72 100644
--- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ModelApiResponse.java
+++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ModelApiResponse.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
@@ -137,21 +139,12 @@ public void setMessage(@jakarta.annotation.Nullable String message) {
*/
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- ModelApiResponse _apiResponse = (ModelApiResponse) o;
- return Objects.equals(this.code, _apiResponse.code) &&
- Objects.equals(this.type, _apiResponse.type) &&
- Objects.equals(this.message, _apiResponse.message);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(code, type, message);
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ModelFile.java
index 98a0e80e521d..ea54901098c8 100644
--- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ModelFile.java
+++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ModelFile.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
@@ -75,19 +77,12 @@ public void setSourceURI(@jakarta.annotation.Nullable String sourceURI) {
*/
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- ModelFile _file = (ModelFile) o;
- return Objects.equals(this.sourceURI, _file.sourceURI);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(sourceURI);
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ModelList.java
index 0434c06ae29c..fb84e33166e0 100644
--- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ModelList.java
+++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ModelList.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
@@ -75,19 +77,12 @@ public void set123list(@jakarta.annotation.Nullable String _123list) {
*/
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- ModelList _list = (ModelList) o;
- return Objects.equals(this._123list, _list._123list);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(_123list);
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ModelReturn.java
index 840f3dae748c..bc0267264958 100644
--- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ModelReturn.java
+++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ModelReturn.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
@@ -75,19 +77,12 @@ public void setReturn(@jakarta.annotation.Nullable Integer _return) {
*/
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- ModelReturn _return = (ModelReturn) o;
- return Objects.equals(this._return, _return._return);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(_return);
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Name.java
index 2bd14b77f3a1..bf7c1a23f05f 100644
--- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Name.java
+++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Name.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
@@ -158,22 +160,12 @@ public Integer get123number() {
*/
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- Name name = (Name) o;
- return Objects.equals(this.name, name.name) &&
- Objects.equals(this.snakeCase, name.snakeCase) &&
- Objects.equals(this.property, name.property) &&
- Objects.equals(this._123number, name._123number);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(name, snakeCase, property, _123number);
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/NullableClass.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/NullableClass.java
index 883f1cbba65c..ec8d3c13a93e 100644
--- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/NullableClass.java
+++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/NullableClass.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Map;
import java.util.HashMap;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
@@ -604,26 +606,7 @@ public Object getAdditionalProperty(String key) {
*/
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- NullableClass nullableClass = (NullableClass) o;
- return equalsNullable(this.integerProp, nullableClass.integerProp) &&
- equalsNullable(this.numberProp, nullableClass.numberProp) &&
- equalsNullable(this.booleanProp, nullableClass.booleanProp) &&
- equalsNullable(this.stringProp, nullableClass.stringProp) &&
- equalsNullable(this.dateProp, nullableClass.dateProp) &&
- equalsNullable(this.datetimeProp, nullableClass.datetimeProp) &&
- equalsNullable(this.arrayNullableProp, nullableClass.arrayNullableProp) &&
- equalsNullable(this.arrayAndItemsNullableProp, nullableClass.arrayAndItemsNullableProp) &&
- Objects.equals(this.arrayItemsNullable, nullableClass.arrayItemsNullable) &&
- equalsNullable(this.objectNullableProp, nullableClass.objectNullableProp) &&
- equalsNullable(this.objectAndItemsNullableProp, nullableClass.objectAndItemsNullableProp) &&
- Objects.equals(this.objectItemsNullable, nullableClass.objectItemsNullable)&&
- Objects.equals(this.additionalProperties, nullableClass.additionalProperties);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
@@ -632,7 +615,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b)
@Override
public int hashCode() {
- return Objects.hash(hashCodeNullable(integerProp), hashCodeNullable(numberProp), hashCodeNullable(booleanProp), hashCodeNullable(stringProp), hashCodeNullable(dateProp), hashCodeNullable(datetimeProp), hashCodeNullable(arrayNullableProp), hashCodeNullable(arrayAndItemsNullableProp), arrayItemsNullable, hashCodeNullable(objectNullableProp), hashCodeNullable(objectAndItemsNullableProp), objectItemsNullable, additionalProperties);
+ return HashCodeBuilder.reflectionHashCode(this);
}
private static int hashCodeNullable(JsonNullable a) {
diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/NullableShape.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/NullableShape.java
index 429b0dde63eb..b1def258839e 100644
--- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/NullableShape.java
+++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/NullableShape.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Map;
import java.util.HashMap;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/NumberOnly.java
index 2ce68e240848..be29d3d8a137 100644
--- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/NumberOnly.java
+++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/NumberOnly.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
@@ -76,19 +78,12 @@ public void setJustNumber(@jakarta.annotation.Nullable BigDecimal justNumber) {
*/
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- NumberOnly numberOnly = (NumberOnly) o;
- return Objects.equals(this.justNumber, numberOnly.justNumber);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(justNumber);
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java
index a79d8c67c625..af61194f8168 100644
--- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java
+++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
@@ -196,22 +198,12 @@ public void setBars(@jakarta.annotation.Nullable List bars) {
*/
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- ObjectWithDeprecatedFields objectWithDeprecatedFields = (ObjectWithDeprecatedFields) o;
- return Objects.equals(this.uuid, objectWithDeprecatedFields.uuid) &&
- Objects.equals(this.id, objectWithDeprecatedFields.id) &&
- Objects.equals(this.deprecatedRef, objectWithDeprecatedFields.deprecatedRef) &&
- Objects.equals(this.bars, objectWithDeprecatedFields.bars);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(uuid, id, deprecatedRef, bars);
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Order.java
index 1205e73cfcf7..7990be6a7ce4 100644
--- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Order.java
+++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Order.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
@@ -268,24 +270,12 @@ public void setComplete(@jakarta.annotation.Nullable Boolean complete) {
*/
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- Order order = (Order) o;
- return Objects.equals(this.id, order.id) &&
- Objects.equals(this.petId, order.petId) &&
- Objects.equals(this.quantity, order.quantity) &&
- Objects.equals(this.shipDate, order.shipDate) &&
- Objects.equals(this.status, order.status) &&
- Objects.equals(this.complete, order.complete);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(id, petId, quantity, shipDate, status, complete);
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/OuterComposite.java
index 286cf92b75b8..a356b02afb94 100644
--- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/OuterComposite.java
+++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/OuterComposite.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
@@ -138,21 +140,12 @@ public void setMyBoolean(@jakarta.annotation.Nullable Boolean myBoolean) {
*/
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- OuterComposite outerComposite = (OuterComposite) o;
- return Objects.equals(this.myNumber, outerComposite.myNumber) &&
- Objects.equals(this.myString, outerComposite.myString) &&
- Objects.equals(this.myBoolean, outerComposite.myBoolean);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(myNumber, myString, myBoolean);
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/OuterEnum.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/OuterEnum.java
index d1406d0afca8..ff6b4dff8e97 100644
--- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/OuterEnum.java
+++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/OuterEnum.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/OuterEnumDefaultValue.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/OuterEnumDefaultValue.java
index e20841e97c8c..55e81d230056 100644
--- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/OuterEnumDefaultValue.java
+++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/OuterEnumDefaultValue.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/OuterEnumInteger.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/OuterEnumInteger.java
index f7c3095b681b..55c38bd319f2 100644
--- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/OuterEnumInteger.java
+++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/OuterEnumInteger.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/OuterEnumIntegerDefaultValue.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/OuterEnumIntegerDefaultValue.java
index 71b91d2f62b2..b6156de0ce6a 100644
--- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/OuterEnumIntegerDefaultValue.java
+++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/OuterEnumIntegerDefaultValue.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ParentPet.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ParentPet.java
index 68ee6a8725e3..363d6876db9f 100644
--- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ParentPet.java
+++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ParentPet.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Map;
import java.util.HashMap;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
@@ -97,18 +99,12 @@ public Object getAdditionalProperty(String key) {
*/
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- return super.equals(o);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(super.hashCode(), additionalProperties);
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Pet.java
index 0db1e4785521..229b5c7cd9ed 100644
--- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Pet.java
+++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Pet.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
@@ -290,24 +292,12 @@ public void setStatus(@jakarta.annotation.Nullable StatusEnum status) {
*/
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- Pet pet = (Pet) o;
- return Objects.equals(this.id, pet.id) &&
- Objects.equals(this.category, pet.category) &&
- Objects.equals(this.name, pet.name) &&
- Objects.equals(this.photoUrls, pet.photoUrls) &&
- Objects.equals(this.tags, pet.tags) &&
- Objects.equals(this.status, pet.status);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(id, category, name, photoUrls, tags, status);
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Pig.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Pig.java
index 16cb5a576e22..ec067e21df82 100644
--- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Pig.java
+++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Pig.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Map;
import java.util.HashMap;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Quadrilateral.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Quadrilateral.java
index 3d0dea5e0ce3..0bd869d79a06 100644
--- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Quadrilateral.java
+++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Quadrilateral.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Map;
import java.util.HashMap;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java
index b143ca302ec5..949b2c848752 100644
--- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java
+++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
@@ -75,19 +77,12 @@ public void setQuadrilateralType(@jakarta.annotation.Nonnull String quadrilatera
*/
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- QuadrilateralInterface quadrilateralInterface = (QuadrilateralInterface) o;
- return Objects.equals(this.quadrilateralType, quadrilateralInterface.quadrilateralType);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(quadrilateralType);
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java
index 8cfa6a5ae6fc..25adc586f1da 100644
--- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java
+++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
@@ -103,20 +105,12 @@ public void setBaz(@jakarta.annotation.Nullable String baz) {
*/
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- ReadOnlyFirst readOnlyFirst = (ReadOnlyFirst) o;
- return Objects.equals(this.bar, readOnlyFirst.bar) &&
- Objects.equals(this.baz, readOnlyFirst.baz);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(bar, baz);
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ScaleneTriangle.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ScaleneTriangle.java
index 3714690b9482..9c57722230a1 100644
--- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ScaleneTriangle.java
+++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ScaleneTriangle.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Map;
import java.util.HashMap;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
@@ -148,21 +150,12 @@ public Object getAdditionalProperty(String key) {
*/
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- ScaleneTriangle scaleneTriangle = (ScaleneTriangle) o;
- return Objects.equals(this.shapeType, scaleneTriangle.shapeType) &&
- Objects.equals(this.triangleType, scaleneTriangle.triangleType)&&
- Objects.equals(this.additionalProperties, scaleneTriangle.additionalProperties);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(shapeType, triangleType, additionalProperties);
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Shape.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Shape.java
index efa80a0e1e0f..aeab1549cc60 100644
--- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Shape.java
+++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Shape.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Map;
import java.util.HashMap;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ShapeInterface.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ShapeInterface.java
index c24a869e117d..63d2b7745adb 100644
--- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ShapeInterface.java
+++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ShapeInterface.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
@@ -75,19 +77,12 @@ public void setShapeType(@jakarta.annotation.Nonnull String shapeType) {
*/
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- ShapeInterface shapeInterface = (ShapeInterface) o;
- return Objects.equals(this.shapeType, shapeInterface.shapeType);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(shapeType);
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ShapeOrNull.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ShapeOrNull.java
index 5bf7e3480669..a8dc52548452 100644
--- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ShapeOrNull.java
+++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ShapeOrNull.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Map;
import java.util.HashMap;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java
index 7fd5a7fc8f6f..98fe5d7e3c45 100644
--- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java
+++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Map;
import java.util.HashMap;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
@@ -148,21 +150,12 @@ public Object getAdditionalProperty(String key) {
*/
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- SimpleQuadrilateral simpleQuadrilateral = (SimpleQuadrilateral) o;
- return Objects.equals(this.shapeType, simpleQuadrilateral.shapeType) &&
- Objects.equals(this.quadrilateralType, simpleQuadrilateral.quadrilateralType)&&
- Objects.equals(this.additionalProperties, simpleQuadrilateral.additionalProperties);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(shapeType, quadrilateralType, additionalProperties);
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/SpecialModelName.java
index ae88910475e1..409808085413 100644
--- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/SpecialModelName.java
+++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/SpecialModelName.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
@@ -106,20 +108,12 @@ public void setSpecialModelName(@jakarta.annotation.Nullable String specialModel
*/
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- SpecialModelName specialModelName = (SpecialModelName) o;
- return Objects.equals(this.$specialPropertyName, specialModelName.$specialPropertyName) &&
- Objects.equals(this.specialModelName, specialModelName.specialModelName);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash($specialPropertyName, specialModelName);
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Tag.java
index 14fd4f1c7665..ba300d4c073d 100644
--- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Tag.java
+++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Tag.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
@@ -105,20 +107,12 @@ public void setName(@jakarta.annotation.Nullable String name) {
*/
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- Tag tag = (Tag) o;
- return Objects.equals(this.id, tag.id) &&
- Objects.equals(this.name, tag.name);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(id, name);
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java
index deeba97cf158..d9efa6f38b48 100644
--- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java
+++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Map;
import java.util.HashMap;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
@@ -116,20 +118,12 @@ public Object getAdditionalProperty(String key) {
*/
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest = (TestInlineFreeformAdditionalPropertiesRequest) o;
- return Objects.equals(this.someProperty, testInlineFreeformAdditionalPropertiesRequest.someProperty)&&
- Objects.equals(this.additionalProperties, testInlineFreeformAdditionalPropertiesRequest.additionalProperties);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(someProperty, additionalProperties);
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Triangle.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Triangle.java
index 65bc16911cfa..1d54ef1adea1 100644
--- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Triangle.java
+++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Triangle.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Map;
import java.util.HashMap;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/TriangleInterface.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/TriangleInterface.java
index 374c74068280..eb2b25d202a1 100644
--- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/TriangleInterface.java
+++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/TriangleInterface.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
@@ -75,19 +77,12 @@ public void setTriangleType(@jakarta.annotation.Nonnull String triangleType) {
*/
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- TriangleInterface triangleInterface = (TriangleInterface) o;
- return Objects.equals(this.triangleType, triangleInterface.triangleType);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(triangleType);
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/User.java
index f515fdb5a1f7..8df0a4c4ca80 100644
--- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/User.java
+++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/User.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
@@ -440,25 +442,7 @@ public void setAnyTypePropNullable(@jakarta.annotation.Nullable Object anyTypePr
*/
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- User user = (User) o;
- return Objects.equals(this.id, user.id) &&
- Objects.equals(this.username, user.username) &&
- Objects.equals(this.firstName, user.firstName) &&
- Objects.equals(this.lastName, user.lastName) &&
- Objects.equals(this.email, user.email) &&
- Objects.equals(this.password, user.password) &&
- Objects.equals(this.phone, user.phone) &&
- Objects.equals(this.userStatus, user.userStatus) &&
- Objects.equals(this.objectWithNoDeclaredProps, user.objectWithNoDeclaredProps) &&
- equalsNullable(this.objectWithNoDeclaredPropsNullable, user.objectWithNoDeclaredPropsNullable) &&
- equalsNullable(this.anyTypeProp, user.anyTypeProp) &&
- equalsNullable(this.anyTypePropNullable, user.anyTypePropNullable);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
@@ -467,7 +451,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b)
@Override
public int hashCode() {
- return Objects.hash(id, username, firstName, lastName, email, password, phone, userStatus, objectWithNoDeclaredProps, hashCodeNullable(objectWithNoDeclaredPropsNullable), hashCodeNullable(anyTypeProp), hashCodeNullable(anyTypePropNullable));
+ return HashCodeBuilder.reflectionHashCode(this);
}
private static int hashCodeNullable(JsonNullable a) {
diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Whale.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Whale.java
index f82b8c58919a..2912a02ef2fd 100644
--- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Whale.java
+++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Whale.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
@@ -138,21 +140,12 @@ public void setClassName(@jakarta.annotation.Nonnull String className) {
*/
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- Whale whale = (Whale) o;
- return Objects.equals(this.hasBaleen, whale.hasBaleen) &&
- Objects.equals(this.hasTeeth, whale.hasTeeth) &&
- Objects.equals(this.className, whale.className);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(hasBaleen, hasTeeth, className);
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Zebra.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Zebra.java
index 7d2e7458855b..560538a81608 100644
--- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Zebra.java
+++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Zebra.java
@@ -13,6 +13,8 @@
package org.openapitools.client.model;
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Map;
import java.util.HashMap;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
@@ -185,21 +187,12 @@ public Object getAdditionalProperty(String key) {
*/
@Override
public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- Zebra zebra = (Zebra) o;
- return Objects.equals(this.type, zebra.type) &&
- Objects.equals(this.className, zebra.className)&&
- Objects.equals(this.additionalProperties, zebra.additionalProperties);
+ return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}
@Override
public int hashCode() {
- return Objects.hash(type, className, additionalProperties);
+ return HashCodeBuilder.reflectionHashCode(this);
}
@Override
diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-mutiny/.openapi-generator-ignore b/samples/client/petstore/java/microprofile-rest-client-3.0-mutiny/.openapi-generator-ignore
new file mode 100644
index 000000000000..7484ee590a38
--- /dev/null
+++ b/samples/client/petstore/java/microprofile-rest-client-3.0-mutiny/.openapi-generator-ignore
@@ -0,0 +1,23 @@
+# OpenAPI Generator Ignore
+# Generated by openapi-generator https://github.com/openapitools/openapi-generator
+
+# Use this file to prevent files from being overwritten by the generator.
+# The patterns follow closely to .gitignore or .dockerignore.
+
+# As an example, the C# client generator defines ApiClient.cs.
+# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
+#ApiClient.cs
+
+# You can match any string of characters against a directory, file or extension with a single asterisk (*):
+#foo/*/qux
+# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
+
+# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
+#foo/**/qux
+# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
+
+# You can also negate patterns with an exclamation (!).
+# For example, you can ignore all files in a docs folder with the file extension .md:
+#docs/*.md
+# Then explicitly reverse the ignore rule for a single file:
+#!docs/README.md
diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-mutiny/.openapi-generator/FILES b/samples/client/petstore/java/microprofile-rest-client-3.0-mutiny/.openapi-generator/FILES
new file mode 100644
index 000000000000..ae145903e52b
--- /dev/null
+++ b/samples/client/petstore/java/microprofile-rest-client-3.0-mutiny/.openapi-generator/FILES
@@ -0,0 +1,22 @@
+README.md
+docs/Category.md
+docs/ModelApiResponse.md
+docs/Order.md
+docs/Pet.md
+docs/PetApi.md
+docs/StoreApi.md
+docs/Tag.md
+docs/User.md
+docs/UserApi.md
+pom.xml
+src/main/java/org/openapitools/client/api/ApiException.java
+src/main/java/org/openapitools/client/api/ApiExceptionMapper.java
+src/main/java/org/openapitools/client/api/PetApi.java
+src/main/java/org/openapitools/client/api/StoreApi.java
+src/main/java/org/openapitools/client/api/UserApi.java
+src/main/java/org/openapitools/client/model/Category.java
+src/main/java/org/openapitools/client/model/ModelApiResponse.java
+src/main/java/org/openapitools/client/model/Order.java
+src/main/java/org/openapitools/client/model/Pet.java
+src/main/java/org/openapitools/client/model/Tag.java
+src/main/java/org/openapitools/client/model/User.java
diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-mutiny/.openapi-generator/VERSION b/samples/client/petstore/java/microprofile-rest-client-3.0-mutiny/.openapi-generator/VERSION
new file mode 100644
index 000000000000..6935482704c1
--- /dev/null
+++ b/samples/client/petstore/java/microprofile-rest-client-3.0-mutiny/.openapi-generator/VERSION
@@ -0,0 +1 @@
+7.10.0-SNAPSHOT
diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-mutiny/README.md b/samples/client/petstore/java/microprofile-rest-client-3.0-mutiny/README.md
new file mode 100644
index 000000000000..4c3e40a34b5c
--- /dev/null
+++ b/samples/client/petstore/java/microprofile-rest-client-3.0-mutiny/README.md
@@ -0,0 +1,9 @@
+# OpenAPI Petstore - MicroProfile Rest Client & MicroProfile Server
+
+This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
+
+## Overview
+This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project.
+[MicroProfile Rest Client](https://github.com/eclipse/microprofile-rest-client) is a type-safe way of calling
+REST services. The generated client contains an interface which acts as the client, you can inject it into dependent classes.
+
diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-mutiny/docs/Category.md b/samples/client/petstore/java/microprofile-rest-client-3.0-mutiny/docs/Category.md
new file mode 100644
index 000000000000..a7fc939d252e
--- /dev/null
+++ b/samples/client/petstore/java/microprofile-rest-client-3.0-mutiny/docs/Category.md
@@ -0,0 +1,15 @@
+
+
+# Category
+
+A category for a pet
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**id** | **Long** | | [optional] |
+|**name** | **String** | | [optional] |
+
+
+
diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-mutiny/docs/ModelApiResponse.md b/samples/client/petstore/java/microprofile-rest-client-3.0-mutiny/docs/ModelApiResponse.md
new file mode 100644
index 000000000000..cd7e3c400be6
--- /dev/null
+++ b/samples/client/petstore/java/microprofile-rest-client-3.0-mutiny/docs/ModelApiResponse.md
@@ -0,0 +1,16 @@
+
+
+# ModelApiResponse
+
+Describes the result of uploading an image resource
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**code** | **Integer** | | [optional] |
+|**type** | **String** | | [optional] |
+|**message** | **String** | | [optional] |
+
+
+
diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-mutiny/docs/Order.md b/samples/client/petstore/java/microprofile-rest-client-3.0-mutiny/docs/Order.md
new file mode 100644
index 000000000000..7bfa42e6a902
--- /dev/null
+++ b/samples/client/petstore/java/microprofile-rest-client-3.0-mutiny/docs/Order.md
@@ -0,0 +1,29 @@
+
+
+# Order
+
+An order for a pets from the pet store
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**id** | **Long** | | [optional] |
+|**petId** | **Long** | | [optional] |
+|**quantity** | **Integer** | | [optional] |
+|**shipDate** | **Date** | | [optional] |
+|**status** | [**StatusEnum**](#StatusEnum) | Order Status | [optional] |
+|**complete** | **Boolean** | | [optional] |
+
+
+
+## Enum: StatusEnum
+
+| Name | Value |
+|---- | -----|
+| PLACED | "placed" |
+| APPROVED | "approved" |
+| DELIVERED | "delivered" |
+
+
+
diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-mutiny/docs/Pet.md b/samples/client/petstore/java/microprofile-rest-client-3.0-mutiny/docs/Pet.md
new file mode 100644
index 000000000000..8bb363301232
--- /dev/null
+++ b/samples/client/petstore/java/microprofile-rest-client-3.0-mutiny/docs/Pet.md
@@ -0,0 +1,29 @@
+
+
+# Pet
+
+A pet for sale in the pet store
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**id** | **Long** | | [optional] |
+|**category** | [**Category**](Category.md) | | [optional] |
+|**name** | **String** | | |
+|**photoUrls** | **List<String>** | | |
+|**tags** | [**List<Tag>**](Tag.md) | | [optional] |
+|**status** | [**StatusEnum**](#StatusEnum) | pet status in the store | [optional] |
+
+
+
+## Enum: StatusEnum
+
+| Name | Value |
+|---- | -----|
+| AVAILABLE | "available" |
+| PENDING | "pending" |
+| SOLD | "sold" |
+
+
+
diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-mutiny/docs/PetApi.md b/samples/client/petstore/java/microprofile-rest-client-3.0-mutiny/docs/PetApi.md
new file mode 100644
index 000000000000..fb5361b0808f
--- /dev/null
+++ b/samples/client/petstore/java/microprofile-rest-client-3.0-mutiny/docs/PetApi.md
@@ -0,0 +1,604 @@
+# PetApi
+
+All URIs are relative to *http://petstore.swagger.io/v2*
+
+| Method | HTTP request | Description |
+|------------- | ------------- | -------------|
+| [**addPet**](PetApi.md#addPet) | **POST** /pet | Add a new pet to the store |
+| [**deletePet**](PetApi.md#deletePet) | **DELETE** /pet/{petId} | Deletes a pet |
+| [**findPetsByStatus**](PetApi.md#findPetsByStatus) | **GET** /pet/findByStatus | Finds Pets by status |
+| [**findPetsByTags**](PetApi.md#findPetsByTags) | **GET** /pet/findByTags | Finds Pets by tags |
+| [**getPetById**](PetApi.md#getPetById) | **GET** /pet/{petId} | Find pet by ID |
+| [**updatePet**](PetApi.md#updatePet) | **PUT** /pet | Update an existing pet |
+| [**updatePetWithForm**](PetApi.md#updatePetWithForm) | **POST** /pet/{petId} | Updates a pet in the store with form data |
+| [**uploadFile**](PetApi.md#uploadFile) | **POST** /pet/{petId}/uploadImage | uploads an image |
+
+
+
+## addPet
+
+> Pet addPet(pet)
+
+Add a new pet to the store
+
+
+
+### Example
+
+```java
+// Import classes:
+import org.openapitools.client.ApiClient;
+import org.openapitools.client.ApiException;
+import org.openapitools.client.Configuration;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.models.*;
+import org.openapitools.client.api.PetApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("http://petstore.swagger.io/v2");
+
+ // Configure OAuth2 access token for authorization: petstore_auth
+ OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
+ petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
+
+ PetApi apiInstance = new PetApi(defaultClient);
+ Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store
+ try {
+ Pet result = apiInstance.addPet(pet);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling PetApi#addPet");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
+```
+
+### Parameters
+
+
+| Name | Type | Description | Notes |
+|------------- | ------------- | ------------- | -------------|
+| **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | |
+
+### Return type
+
+[**Pet**](Pet.md)
+
+### Authorization
+
+[petstore_auth](../README.md#petstore_auth)
+
+### HTTP request headers
+
+- **Content-Type**: application/json, application/xml
+- **Accept**: application/xml, application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | successful operation | - |
+| **405** | Invalid input | - |
+
+
+## deletePet
+
+> void deletePet(petId, apiKey)
+
+Deletes a pet
+
+
+
+### Example
+
+```java
+// Import classes:
+import org.openapitools.client.ApiClient;
+import org.openapitools.client.ApiException;
+import org.openapitools.client.Configuration;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.models.*;
+import org.openapitools.client.api.PetApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("http://petstore.swagger.io/v2");
+
+ // Configure OAuth2 access token for authorization: petstore_auth
+ OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
+ petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
+
+ PetApi apiInstance = new PetApi(defaultClient);
+ Long petId = 56L; // Long | Pet id to delete
+ String apiKey = "apiKey_example"; // String |
+ try {
+ void result = apiInstance.deletePet(petId, apiKey);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling PetApi#deletePet");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
+```
+
+### Parameters
+
+
+| Name | Type | Description | Notes |
+|------------- | ------------- | ------------- | -------------|
+| **petId** | **Long**| Pet id to delete | |
+| **apiKey** | **String**| | [optional] |
+
+### Return type
+
+[**void**](Void.md)
+
+### Authorization
+
+[petstore_auth](../README.md#petstore_auth)
+
+### HTTP request headers
+
+- **Content-Type**: Not defined
+- **Accept**: Not defined
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **400** | Invalid pet value | - |
+
+
+## findPetsByStatus
+
+> List<Pet> findPetsByStatus(status)
+
+Finds Pets by status
+
+Multiple status values can be provided with comma separated strings
+
+### Example
+
+```java
+// Import classes:
+import org.openapitools.client.ApiClient;
+import org.openapitools.client.ApiException;
+import org.openapitools.client.Configuration;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.models.*;
+import org.openapitools.client.api.PetApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("http://petstore.swagger.io/v2");
+
+ // Configure OAuth2 access token for authorization: petstore_auth
+ OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
+ petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
+
+ PetApi apiInstance = new PetApi(defaultClient);
+ List status = Arrays.asList("available"); // List | Status values that need to be considered for filter
+ try {
+ List result = apiInstance.findPetsByStatus(status);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling PetApi#findPetsByStatus");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
+```
+
+### Parameters
+
+
+| Name | Type | Description | Notes |
+|------------- | ------------- | ------------- | -------------|
+| **status** | [**List<String>**](String.md)| Status values that need to be considered for filter | [enum: available, pending, sold] |
+
+### Return type
+
+[**List<Pet>**](Pet.md)
+
+### Authorization
+
+[petstore_auth](../README.md#petstore_auth)
+
+### HTTP request headers
+
+- **Content-Type**: Not defined
+- **Accept**: application/xml, application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | successful operation | - |
+| **400** | Invalid status value | - |
+
+
+## findPetsByTags
+
+> List<Pet> findPetsByTags(tags)
+
+Finds Pets by tags
+
+Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
+
+### Example
+
+```java
+// Import classes:
+import org.openapitools.client.ApiClient;
+import org.openapitools.client.ApiException;
+import org.openapitools.client.Configuration;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.models.*;
+import org.openapitools.client.api.PetApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("http://petstore.swagger.io/v2");
+
+ // Configure OAuth2 access token for authorization: petstore_auth
+ OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
+ petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
+
+ PetApi apiInstance = new PetApi(defaultClient);
+ List tags = Arrays.asList(); // List | Tags to filter by
+ try {
+ List result = apiInstance.findPetsByTags(tags);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling PetApi#findPetsByTags");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
+```
+
+### Parameters
+
+
+| Name | Type | Description | Notes |
+|------------- | ------------- | ------------- | -------------|
+| **tags** | [**List<String>**](String.md)| Tags to filter by | |
+
+### Return type
+
+[**List<Pet>**](Pet.md)
+
+### Authorization
+
+[petstore_auth](../README.md#petstore_auth)
+
+### HTTP request headers
+
+- **Content-Type**: Not defined
+- **Accept**: application/xml, application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | successful operation | - |
+| **400** | Invalid tag value | - |
+
+
+## getPetById
+
+> Pet getPetById(petId)
+
+Find pet by ID
+
+Returns a single pet
+
+### Example
+
+```java
+// Import classes:
+import org.openapitools.client.ApiClient;
+import org.openapitools.client.ApiException;
+import org.openapitools.client.Configuration;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.models.*;
+import org.openapitools.client.api.PetApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("http://petstore.swagger.io/v2");
+
+ // Configure API key authorization: api_key
+ ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
+ api_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //api_key.setApiKeyPrefix("Token");
+
+ PetApi apiInstance = new PetApi(defaultClient);
+ Long petId = 56L; // Long | ID of pet to return
+ try {
+ Pet result = apiInstance.getPetById(petId);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling PetApi#getPetById");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
+```
+
+### Parameters
+
+
+| Name | Type | Description | Notes |
+|------------- | ------------- | ------------- | -------------|
+| **petId** | **Long**| ID of pet to return | |
+
+### Return type
+
+[**Pet**](Pet.md)
+
+### Authorization
+
+[api_key](../README.md#api_key)
+
+### HTTP request headers
+
+- **Content-Type**: Not defined
+- **Accept**: application/xml, application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | successful operation | - |
+| **400** | Invalid ID supplied | - |
+| **404** | Pet not found | - |
+
+
+## updatePet
+
+> Pet updatePet(pet)
+
+Update an existing pet
+
+
+
+### Example
+
+```java
+// Import classes:
+import org.openapitools.client.ApiClient;
+import org.openapitools.client.ApiException;
+import org.openapitools.client.Configuration;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.models.*;
+import org.openapitools.client.api.PetApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("http://petstore.swagger.io/v2");
+
+ // Configure OAuth2 access token for authorization: petstore_auth
+ OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
+ petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
+
+ PetApi apiInstance = new PetApi(defaultClient);
+ Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store
+ try {
+ Pet result = apiInstance.updatePet(pet);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling PetApi#updatePet");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
+```
+
+### Parameters
+
+
+| Name | Type | Description | Notes |
+|------------- | ------------- | ------------- | -------------|
+| **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | |
+
+### Return type
+
+[**Pet**](Pet.md)
+
+### Authorization
+
+[petstore_auth](../README.md#petstore_auth)
+
+### HTTP request headers
+
+- **Content-Type**: application/json, application/xml
+- **Accept**: application/xml, application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | successful operation | - |
+| **400** | Invalid ID supplied | - |
+| **404** | Pet not found | - |
+| **405** | Validation exception | - |
+
+
+## updatePetWithForm
+
+> void updatePetWithForm(petId, name, status)
+
+Updates a pet in the store with form data
+
+
+
+### Example
+
+```java
+// Import classes:
+import org.openapitools.client.ApiClient;
+import org.openapitools.client.ApiException;
+import org.openapitools.client.Configuration;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.models.*;
+import org.openapitools.client.api.PetApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("http://petstore.swagger.io/v2");
+
+ // Configure OAuth2 access token for authorization: petstore_auth
+ OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
+ petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
+
+ PetApi apiInstance = new PetApi(defaultClient);
+ Long petId = 56L; // Long | ID of pet that needs to be updated
+ String name = "name_example"; // String | Updated name of the pet
+ String status = "status_example"; // String | Updated status of the pet
+ try {
+ void result = apiInstance.updatePetWithForm(petId, name, status);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling PetApi#updatePetWithForm");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
+```
+
+### Parameters
+
+
+| Name | Type | Description | Notes |
+|------------- | ------------- | ------------- | -------------|
+| **petId** | **Long**| ID of pet that needs to be updated | |
+| **name** | **String**| Updated name of the pet | [optional] |
+| **status** | **String**| Updated status of the pet | [optional] |
+
+### Return type
+
+[**void**](Void.md)
+
+### Authorization
+
+[petstore_auth](../README.md#petstore_auth)
+
+### HTTP request headers
+
+- **Content-Type**: application/x-www-form-urlencoded
+- **Accept**: Not defined
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **405** | Invalid input | - |
+
+
+## uploadFile
+
+> ModelApiResponse uploadFile(petId, additionalMetadata, _file)
+
+uploads an image
+
+
+
+### Example
+
+```java
+// Import classes:
+import org.openapitools.client.ApiClient;
+import org.openapitools.client.ApiException;
+import org.openapitools.client.Configuration;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.models.*;
+import org.openapitools.client.api.PetApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("http://petstore.swagger.io/v2");
+
+ // Configure OAuth2 access token for authorization: petstore_auth
+ OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
+ petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
+
+ PetApi apiInstance = new PetApi(defaultClient);
+ Long petId = 56L; // Long | ID of pet to update
+ String additionalMetadata = "additionalMetadata_example"; // String | Additional data to pass to server
+ File _file = new File("/path/to/file"); // File | file to upload
+ try {
+ ModelApiResponse result = apiInstance.uploadFile(petId, additionalMetadata, _file);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling PetApi#uploadFile");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
+```
+
+### Parameters
+
+
+| Name | Type | Description | Notes |
+|------------- | ------------- | ------------- | -------------|
+| **petId** | **Long**| ID of pet to update | |
+| **additionalMetadata** | **String**| Additional data to pass to server | [optional] |
+| **_file** | **File**| file to upload | [optional] |
+
+### Return type
+
+[**ModelApiResponse**](ModelApiResponse.md)
+
+### Authorization
+
+[petstore_auth](../README.md#petstore_auth)
+
+### HTTP request headers
+
+- **Content-Type**: multipart/form-data
+- **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | successful operation | - |
+
diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-mutiny/docs/StoreApi.md b/samples/client/petstore/java/microprofile-rest-client-3.0-mutiny/docs/StoreApi.md
new file mode 100644
index 000000000000..ae64b8574e22
--- /dev/null
+++ b/samples/client/petstore/java/microprofile-rest-client-3.0-mutiny/docs/StoreApi.md
@@ -0,0 +1,283 @@
+# StoreApi
+
+All URIs are relative to *http://petstore.swagger.io/v2*
+
+| Method | HTTP request | Description |
+|------------- | ------------- | -------------|
+| [**deleteOrder**](StoreApi.md#deleteOrder) | **DELETE** /store/order/{orderId} | Delete purchase order by ID |
+| [**getInventory**](StoreApi.md#getInventory) | **GET** /store/inventory | Returns pet inventories by status |
+| [**getOrderById**](StoreApi.md#getOrderById) | **GET** /store/order/{orderId} | Find purchase order by ID |
+| [**placeOrder**](StoreApi.md#placeOrder) | **POST** /store/order | Place an order for a pet |
+
+
+
+## deleteOrder
+
+> void deleteOrder(orderId)
+
+Delete purchase order by ID
+
+For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
+
+### Example
+
+```java
+// Import classes:
+import org.openapitools.client.ApiClient;
+import org.openapitools.client.ApiException;
+import org.openapitools.client.Configuration;
+import org.openapitools.client.models.*;
+import org.openapitools.client.api.StoreApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("http://petstore.swagger.io/v2");
+
+ StoreApi apiInstance = new StoreApi(defaultClient);
+ String orderId = "orderId_example"; // String | ID of the order that needs to be deleted
+ try {
+ void result = apiInstance.deleteOrder(orderId);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling StoreApi#deleteOrder");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
+```
+
+### Parameters
+
+
+| Name | Type | Description | Notes |
+|------------- | ------------- | ------------- | -------------|
+| **orderId** | **String**| ID of the order that needs to be deleted | |
+
+### Return type
+
+[**void**](Void.md)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+- **Content-Type**: Not defined
+- **Accept**: Not defined
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **400** | Invalid ID supplied | - |
+| **404** | Order not found | - |
+
+
+## getInventory
+
+> Map<String, Integer> getInventory()
+
+Returns pet inventories by status
+
+Returns a map of status codes to quantities
+
+### Example
+
+```java
+// Import classes:
+import org.openapitools.client.ApiClient;
+import org.openapitools.client.ApiException;
+import org.openapitools.client.Configuration;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.models.*;
+import org.openapitools.client.api.StoreApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("http://petstore.swagger.io/v2");
+
+ // Configure API key authorization: api_key
+ ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
+ api_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //api_key.setApiKeyPrefix("Token");
+
+ StoreApi apiInstance = new StoreApi(defaultClient);
+ try {
+ Map result = apiInstance.getInventory();
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling StoreApi#getInventory");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
+```
+
+### Parameters
+
+This endpoint does not need any parameter.
+
+### Return type
+
+**Map<String, Integer>**
+
+### Authorization
+
+[api_key](../README.md#api_key)
+
+### HTTP request headers
+
+- **Content-Type**: Not defined
+- **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | successful operation | - |
+
+
+## getOrderById
+
+> Order getOrderById(orderId)
+
+Find purchase order by ID
+
+For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions
+
+### Example
+
+```java
+// Import classes:
+import org.openapitools.client.ApiClient;
+import org.openapitools.client.ApiException;
+import org.openapitools.client.Configuration;
+import org.openapitools.client.models.*;
+import org.openapitools.client.api.StoreApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("http://petstore.swagger.io/v2");
+
+ StoreApi apiInstance = new StoreApi(defaultClient);
+ Long orderId = 56L; // Long | ID of pet that needs to be fetched
+ try {
+ Order result = apiInstance.getOrderById(orderId);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling StoreApi#getOrderById");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
+```
+
+### Parameters
+
+
+| Name | Type | Description | Notes |
+|------------- | ------------- | ------------- | -------------|
+| **orderId** | **Long**| ID of pet that needs to be fetched | |
+
+### Return type
+
+[**Order**](Order.md)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+- **Content-Type**: Not defined
+- **Accept**: application/xml, application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | successful operation | - |
+| **400** | Invalid ID supplied | - |
+| **404** | Order not found | - |
+
+
+## placeOrder
+
+> Order placeOrder(order)
+
+Place an order for a pet
+
+
+
+### Example
+
+```java
+// Import classes:
+import org.openapitools.client.ApiClient;
+import org.openapitools.client.ApiException;
+import org.openapitools.client.Configuration;
+import org.openapitools.client.models.*;
+import org.openapitools.client.api.StoreApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("http://petstore.swagger.io/v2");
+
+ StoreApi apiInstance = new StoreApi(defaultClient);
+ Order order = new Order(); // Order | order placed for purchasing the pet
+ try {
+ Order result = apiInstance.placeOrder(order);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling StoreApi#placeOrder");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
+```
+
+### Parameters
+
+
+| Name | Type | Description | Notes |
+|------------- | ------------- | ------------- | -------------|
+| **order** | [**Order**](Order.md)| order placed for purchasing the pet | |
+
+### Return type
+
+[**Order**](Order.md)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+- **Content-Type**: application/json
+- **Accept**: application/xml, application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | successful operation | - |
+| **400** | Invalid Order | - |
+
diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-mutiny/docs/Tag.md b/samples/client/petstore/java/microprofile-rest-client-3.0-mutiny/docs/Tag.md
new file mode 100644
index 000000000000..abfde4afb501
--- /dev/null
+++ b/samples/client/petstore/java/microprofile-rest-client-3.0-mutiny/docs/Tag.md
@@ -0,0 +1,15 @@
+
+
+# Tag
+
+A tag for a pet
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**id** | **Long** | | [optional] |
+|**name** | **String** | | [optional] |
+
+
+
diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-mutiny/docs/User.md b/samples/client/petstore/java/microprofile-rest-client-3.0-mutiny/docs/User.md
new file mode 100644
index 000000000000..426845227bd3
--- /dev/null
+++ b/samples/client/petstore/java/microprofile-rest-client-3.0-mutiny/docs/User.md
@@ -0,0 +1,21 @@
+
+
+# User
+
+A User who is purchasing from the pet store
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**id** | **Long** | | [optional] |
+|**username** | **String** | | [optional] |
+|**firstName** | **String** | | [optional] |
+|**lastName** | **String** | | [optional] |
+|**email** | **String** | | [optional] |
+|**password** | **String** | | [optional] |
+|**phone** | **String** | | [optional] |
+|**userStatus** | **Integer** | User Status | [optional] |
+
+
+
diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-mutiny/docs/UserApi.md b/samples/client/petstore/java/microprofile-rest-client-3.0-mutiny/docs/UserApi.md
new file mode 100644
index 000000000000..89c1bfc6026d
--- /dev/null
+++ b/samples/client/petstore/java/microprofile-rest-client-3.0-mutiny/docs/UserApi.md
@@ -0,0 +1,591 @@
+# UserApi
+
+All URIs are relative to *http://petstore.swagger.io/v2*
+
+| Method | HTTP request | Description |
+|------------- | ------------- | -------------|
+| [**createUser**](UserApi.md#createUser) | **POST** /user | Create user |
+| [**createUsersWithArrayInput**](UserApi.md#createUsersWithArrayInput) | **POST** /user/createWithArray | Creates list of users with given input array |
+| [**createUsersWithListInput**](UserApi.md#createUsersWithListInput) | **POST** /user/createWithList | Creates list of users with given input array |
+| [**deleteUser**](UserApi.md#deleteUser) | **DELETE** /user/{username} | Delete user |
+| [**getUserByName**](UserApi.md#getUserByName) | **GET** /user/{username} | Get user by user name |
+| [**loginUser**](UserApi.md#loginUser) | **GET** /user/login | Logs user into the system |
+| [**logoutUser**](UserApi.md#logoutUser) | **GET** /user/logout | Logs out current logged in user session |
+| [**updateUser**](UserApi.md#updateUser) | **PUT** /user/{username} | Updated user |
+
+
+
+## createUser
+
+> void createUser(user)
+
+Create user
+
+This can only be done by the logged in user.
+
+### Example
+
+```java
+// Import classes:
+import org.openapitools.client.ApiClient;
+import org.openapitools.client.ApiException;
+import org.openapitools.client.Configuration;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.models.*;
+import org.openapitools.client.api.UserApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("http://petstore.swagger.io/v2");
+
+ // Configure API key authorization: api_key
+ ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
+ api_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //api_key.setApiKeyPrefix("Token");
+
+ UserApi apiInstance = new UserApi(defaultClient);
+ User user = new User(); // User | Created user object
+ try {
+ void result = apiInstance.createUser(user);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling UserApi#createUser");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
+```
+
+### Parameters
+
+
+| Name | Type | Description | Notes |
+|------------- | ------------- | ------------- | -------------|
+| **user** | [**User**](User.md)| Created user object | |
+
+### Return type
+
+[**void**](Void.md)
+
+### Authorization
+
+[api_key](../README.md#api_key)
+
+### HTTP request headers
+
+- **Content-Type**: application/json
+- **Accept**: Not defined
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | successful operation | - |
+
+
+## createUsersWithArrayInput
+
+> void createUsersWithArrayInput(user)
+
+Creates list of users with given input array
+
+
+
+### Example
+
+```java
+// Import classes:
+import org.openapitools.client.ApiClient;
+import org.openapitools.client.ApiException;
+import org.openapitools.client.Configuration;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.models.*;
+import org.openapitools.client.api.UserApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("http://petstore.swagger.io/v2");
+
+ // Configure API key authorization: api_key
+ ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
+ api_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //api_key.setApiKeyPrefix("Token");
+
+ UserApi apiInstance = new UserApi(defaultClient);
+ List user = Arrays.asList(); // List | List of user object
+ try {
+ void result = apiInstance.createUsersWithArrayInput(user);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling UserApi#createUsersWithArrayInput");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
+```
+
+### Parameters
+
+
+| Name | Type | Description | Notes |
+|------------- | ------------- | ------------- | -------------|
+| **user** | [**List<User>**](User.md)| List of user object | |
+
+### Return type
+
+[**void**](Void.md)
+
+### Authorization
+
+[api_key](../README.md#api_key)
+
+### HTTP request headers
+
+- **Content-Type**: application/json
+- **Accept**: Not defined
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | successful operation | - |
+
+
+## createUsersWithListInput
+
+> void createUsersWithListInput(user)
+
+Creates list of users with given input array
+
+
+
+### Example
+
+```java
+// Import classes:
+import org.openapitools.client.ApiClient;
+import org.openapitools.client.ApiException;
+import org.openapitools.client.Configuration;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.models.*;
+import org.openapitools.client.api.UserApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("http://petstore.swagger.io/v2");
+
+ // Configure API key authorization: api_key
+ ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
+ api_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //api_key.setApiKeyPrefix("Token");
+
+ UserApi apiInstance = new UserApi(defaultClient);
+ List user = Arrays.asList(); // List | List of user object
+ try {
+ void result = apiInstance.createUsersWithListInput(user);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling UserApi#createUsersWithListInput");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
+```
+
+### Parameters
+
+
+| Name | Type | Description | Notes |
+|------------- | ------------- | ------------- | -------------|
+| **user** | [**List<User>**](User.md)| List of user object | |
+
+### Return type
+
+[**void**](Void.md)
+
+### Authorization
+
+[api_key](../README.md#api_key)
+
+### HTTP request headers
+
+- **Content-Type**: application/json
+- **Accept**: Not defined
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | successful operation | - |
+
+
+## deleteUser
+
+> void deleteUser(username)
+
+Delete user
+
+This can only be done by the logged in user.
+
+### Example
+
+```java
+// Import classes:
+import org.openapitools.client.ApiClient;
+import org.openapitools.client.ApiException;
+import org.openapitools.client.Configuration;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.models.*;
+import org.openapitools.client.api.UserApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("http://petstore.swagger.io/v2");
+
+ // Configure API key authorization: api_key
+ ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
+ api_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //api_key.setApiKeyPrefix("Token");
+
+ UserApi apiInstance = new UserApi(defaultClient);
+ String username = "username_example"; // String | The name that needs to be deleted
+ try {
+ void result = apiInstance.deleteUser(username);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling UserApi#deleteUser");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
+```
+
+### Parameters
+
+
+| Name | Type | Description | Notes |
+|------------- | ------------- | ------------- | -------------|
+| **username** | **String**| The name that needs to be deleted | |
+
+### Return type
+
+[**void**](Void.md)
+
+### Authorization
+
+[api_key](../README.md#api_key)
+
+### HTTP request headers
+
+- **Content-Type**: Not defined
+- **Accept**: Not defined
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **400** | Invalid username supplied | - |
+| **404** | User not found | - |
+
+
+## getUserByName
+
+> User getUserByName(username)
+
+Get user by user name
+
+
+
+### Example
+
+```java
+// Import classes:
+import org.openapitools.client.ApiClient;
+import org.openapitools.client.ApiException;
+import org.openapitools.client.Configuration;
+import org.openapitools.client.models.*;
+import org.openapitools.client.api.UserApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("http://petstore.swagger.io/v2");
+
+ UserApi apiInstance = new UserApi(defaultClient);
+ String username = "username_example"; // String | The name that needs to be fetched. Use user1 for testing.
+ try {
+ User result = apiInstance.getUserByName(username);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling UserApi#getUserByName");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
+```
+
+### Parameters
+
+
+| Name | Type | Description | Notes |
+|------------- | ------------- | ------------- | -------------|
+| **username** | **String**| The name that needs to be fetched. Use user1 for testing. | |
+
+### Return type
+
+[**User**](User.md)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+- **Content-Type**: Not defined
+- **Accept**: application/xml, application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | successful operation | - |
+| **400** | Invalid username supplied | - |
+| **404** | User not found | - |
+
+
+## loginUser
+
+> String loginUser(username, password)
+
+Logs user into the system
+
+
+
+### Example
+
+```java
+// Import classes:
+import org.openapitools.client.ApiClient;
+import org.openapitools.client.ApiException;
+import org.openapitools.client.Configuration;
+import org.openapitools.client.models.*;
+import org.openapitools.client.api.UserApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("http://petstore.swagger.io/v2");
+
+ UserApi apiInstance = new UserApi(defaultClient);
+ String username = "username_example"; // String | The user name for login
+ String password = "password_example"; // String | The password for login in clear text
+ try {
+ String result = apiInstance.loginUser(username, password);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling UserApi#loginUser");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
+```
+
+### Parameters
+
+
+| Name | Type | Description | Notes |
+|------------- | ------------- | ------------- | -------------|
+| **username** | **String**| The user name for login | |
+| **password** | **String**| The password for login in clear text | |
+
+### Return type
+
+**String**
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+- **Content-Type**: Not defined
+- **Accept**: application/xml, application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | successful operation | * Set-Cookie - Cookie authentication key for use with the `api_key` apiKey authentication. * X-Rate-Limit - calls per hour allowed by the user * X-Expires-After - date in UTC when token expires |
+| **400** | Invalid username/password supplied | - |
+
+
+## logoutUser
+
+> void logoutUser()
+
+Logs out current logged in user session
+
+
+
+### Example
+
+```java
+// Import classes:
+import org.openapitools.client.ApiClient;
+import org.openapitools.client.ApiException;
+import org.openapitools.client.Configuration;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.models.*;
+import org.openapitools.client.api.UserApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("http://petstore.swagger.io/v2");
+
+ // Configure API key authorization: api_key
+ ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
+ api_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //api_key.setApiKeyPrefix("Token");
+
+ UserApi apiInstance = new UserApi(defaultClient);
+ try {
+ void result = apiInstance.logoutUser();
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling UserApi#logoutUser");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
+```
+
+### Parameters
+
+This endpoint does not need any parameter.
+
+### Return type
+
+[**void**](Void.md)
+
+### Authorization
+
+[api_key](../README.md#api_key)
+
+### HTTP request headers
+
+- **Content-Type**: Not defined
+- **Accept**: Not defined
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | successful operation | - |
+
+
+## updateUser
+
+> void updateUser(username, user)
+
+Updated user
+
+This can only be done by the logged in user.
+
+### Example
+
+```java
+// Import classes:
+import org.openapitools.client.ApiClient;
+import org.openapitools.client.ApiException;
+import org.openapitools.client.Configuration;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.models.*;
+import org.openapitools.client.api.UserApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("http://petstore.swagger.io/v2");
+
+ // Configure API key authorization: api_key
+ ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
+ api_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //api_key.setApiKeyPrefix("Token");
+
+ UserApi apiInstance = new UserApi(defaultClient);
+ String username = "username_example"; // String | name that need to be deleted
+ User user = new User(); // User | Updated user object
+ try {
+ void result = apiInstance.updateUser(username, user);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling UserApi#updateUser");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
+```
+
+### Parameters
+
+
+| Name | Type | Description | Notes |
+|------------- | ------------- | ------------- | -------------|
+| **username** | **String**| name that need to be deleted | |
+| **user** | [**User**](User.md)| Updated user object | |
+
+### Return type
+
+[**void**](Void.md)
+
+### Authorization
+
+[api_key](../README.md#api_key)
+
+### HTTP request headers
+
+- **Content-Type**: application/json
+- **Accept**: Not defined
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **400** | Invalid user supplied | - |
+| **404** | User not found | - |
+
diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-mutiny/pom.xml b/samples/client/petstore/java/microprofile-rest-client-3.0-mutiny/pom.xml
new file mode 100644
index 000000000000..5dfda58407b2
--- /dev/null
+++ b/samples/client/petstore/java/microprofile-rest-client-3.0-mutiny/pom.xml
@@ -0,0 +1,184 @@
+
+ 4.0.0
+ org.openapitools
+ microprofile-rest-client-3-mutiny
+ jar
+ microprofile-rest-client-3-mutiny
+ This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
+ 1.0.0
+
+ src/main/java
+
+
+ org.jboss.jandex
+ jandex-maven-plugin
+ ${jandex.maven.plugin.version}
+
+
+ make-index
+
+ jandex
+
+
+
+
+
+ maven-failsafe-plugin
+ ${maven.failsafe.plugin.version}
+
+
+
+ integration-test
+ verify
+
+
+
+
+
+ org.codehaus.mojo
+ build-helper-maven-plugin
+ ${build.helper.maven.plugin.version}
+
+
+ add-source
+ generate-sources
+
+ add-source
+
+
+
+
+
+
+
+
+
+
+
+
+
+ org.junit.jupiter
+ junit-jupiter-api
+ ${junit.version}
+ test
+
+
+
+ org.eclipse.microprofile.rest.client
+ microprofile-rest-client-api
+ ${microprofile.rest.client.api.version}
+
+
+
+
+ jakarta.ws.rs
+ jakarta.ws.rs-api
+ ${jakarta.ws.rs.version}
+ provided
+
+
+
+ org.glassfish.jersey.ext.microprofile
+ jersey-mp-rest-client
+ ${jersey.mp.rest.client.version}
+ test
+
+
+ org.apache.geronimo.config
+ geronimo-config-impl
+ ${geronimo.config.impl.version}
+ test
+
+
+
+ org.apache.cxf
+ cxf-rt-rs-extension-providers
+ ${cxf.rt.rs.extension.providers.version}
+
+
+ jakarta.json.bind
+ jakarta.json.bind-api
+ ${jakarta.json.bind.version}
+
+
+ jakarta.json
+ jakarta.json-api
+ ${jakarta.json.version}
+
+
+ jakarta.xml.bind
+ jakarta.xml.bind-api
+ ${jakarta.xml.bind.version}
+
+
+ com.sun.xml.bind
+ jaxb-core
+ ${jaxb.core.version}
+
+
+ com.sun.xml.bind
+ jaxb-impl
+ ${jaxb.impl.version}
+
+
+ jakarta.activation
+ jakarta.activation-api
+ ${jakarta.activation.version}
+
+
+ com.fasterxml.jackson.datatype
+ jackson-datatype-jsr310
+ ${jackson.jaxrs.version}
+
+
+ jakarta.annotation
+ jakarta.annotation-api
+ ${jakarta.annotation.version}
+ provided
+
+
+ io.smallrye.reactive
+ mutiny
+ ${mutiny.version}
+
+
+
+
+ sonatype-snapshots
+ https://oss.sonatype.org/content/repositories/snapshots
+
+ true
+
+
+
+
+ 11
+ ${java.version}
+ ${java.version}
+ UTF-8
+
+ 1.5.18
+ 9.2.9.v20150224
+ 5.10.2
+ 1.4.14
+ 3.2.7
+ 2.17.1
+ 2.1.0
+ 2.0.0
+ 2.0.0
+ 2.0.1
+ 3.0.0
+ 3.0.1
+ 3.0
+ 3.0.4
+ 1.2.3
+ 3.5.1
+ 3.0.2
+ 3.0.2
+ 7.0.4.Final
+ 1.1.0
+ 2.6
+ 1.9.1
+ 1.10.0
+
+
diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-mutiny/src/main/java/org/openapitools/client/api/ApiException.java b/samples/client/petstore/java/microprofile-rest-client-3.0-mutiny/src/main/java/org/openapitools/client/api/ApiException.java
new file mode 100644
index 000000000000..2fc6d04ee687
--- /dev/null
+++ b/samples/client/petstore/java/microprofile-rest-client-3.0-mutiny/src/main/java/org/openapitools/client/api/ApiException.java
@@ -0,0 +1,34 @@
+/**
+ * OpenAPI Petstore
+ * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
+ *
+ * The version of the OpenAPI document: 1.0.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+package org.openapitools.client.api;
+
+import jakarta.ws.rs.core.Response;
+
+public class ApiException extends Exception {
+
+ private static final long serialVersionUID = 1L;
+ private Response response;
+
+ public ApiException() {
+ super();
+ }
+
+ public ApiException(Response response) {
+ super("Api response has status code " + response.getStatus());
+ this.response = response;
+ }
+
+ public Response getResponse() {
+ return this.response;
+ }
+}
diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-mutiny/src/main/java/org/openapitools/client/api/ApiExceptionMapper.java b/samples/client/petstore/java/microprofile-rest-client-3.0-mutiny/src/main/java/org/openapitools/client/api/ApiExceptionMapper.java
new file mode 100644
index 000000000000..0dec2c6aec06
--- /dev/null
+++ b/samples/client/petstore/java/microprofile-rest-client-3.0-mutiny/src/main/java/org/openapitools/client/api/ApiExceptionMapper.java
@@ -0,0 +1,33 @@
+/**
+ * OpenAPI Petstore
+ * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
+ *
+ * The version of the OpenAPI document: 1.0.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+package org.openapitools.client.api;
+
+import jakarta.ws.rs.core.MultivaluedMap;
+import jakarta.ws.rs.core.Response;
+import jakarta.ws.rs.ext.Provider;
+import org.eclipse.microprofile.rest.client.ext.ResponseExceptionMapper;
+
+@Provider
+public class ApiExceptionMapper
+ implements ResponseExceptionMapper {
+
+ @Override
+ public boolean handles(int status, MultivaluedMap headers) {
+ return status >= 400;
+ }
+
+ @Override
+ public ApiException toThrowable(Response response) {
+ return new ApiException(response);
+ }
+}
diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-mutiny/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/microprofile-rest-client-3.0-mutiny/src/main/java/org/openapitools/client/api/PetApi.java
new file mode 100644
index 000000000000..78f825370542
--- /dev/null
+++ b/samples/client/petstore/java/microprofile-rest-client-3.0-mutiny/src/main/java/org/openapitools/client/api/PetApi.java
@@ -0,0 +1,137 @@
+/**
+ * OpenAPI Petstore
+ * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
+ *
+ * The version of the OpenAPI document: 1.0.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+package org.openapitools.client.api;
+
+import java.io.File;
+import org.openapitools.client.model.ModelApiResponse;
+import org.openapitools.client.model.Pet;
+
+import java.io.InputStream;
+import java.io.OutputStream;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+import jakarta.ws.rs.*;
+import jakarta.ws.rs.core.Response;
+import jakarta.ws.rs.core.MediaType;
+import org.apache.cxf.jaxrs.ext.multipart.*;
+import io.smallrye.mutiny.Uni;
+
+
+import org.eclipse.microprofile.rest.client.annotation.RegisterProvider;
+import org.eclipse.microprofile.rest.client.inject.RegisterRestClient;
+
+/**
+ * OpenAPI Petstore
+ *
+ *
This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
+ *
+ */
+
+@RegisterRestClient(configKey="petstore")
+@RegisterProvider(ApiExceptionMapper.class)
+@Path("/pet")
+public interface PetApi {
+
+ /**
+ * Add a new pet to the store
+ *
+ *
+ *
+ */
+ @POST
+
+ @Consumes({ "application/json", "application/xml" })
+ @Produces({ "application/xml", "application/json" })
+ Uni addPet(Pet pet) throws ApiException, ProcessingException;
+
+ /**
+ * Deletes a pet
+ *
+ *
+ *
+ */
+ @DELETE
+ @Path("/{petId}")
+ Uni deletePet(@PathParam("petId") Long petId, @HeaderParam("api_key") String apiKey) throws ApiException, ProcessingException;
+
+ /**
+ * Finds Pets by status
+ *
+ * Multiple status values can be provided with comma separated strings
+ *
+ */
+ @GET
+ @Path("/findByStatus")
+ @Produces({ "application/xml", "application/json" })
+ Uni> findPetsByStatus(@QueryParam("status") List status) throws ApiException, ProcessingException;
+
+ /**
+ * Finds Pets by tags
+ *
+ * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
+ *
+ * @deprecated
+ */
+ @Deprecated
+ @GET
+ @Path("/findByTags")
+ @Produces({ "application/xml", "application/json" })
+ Uni> findPetsByTags(@QueryParam("tags") List tags) throws ApiException, ProcessingException;
+
+ /**
+ * Find pet by ID
+ *
+ * Returns a single pet
+ *
+ */
+ @GET
+ @Path("/{petId}")
+ @Produces({ "application/xml", "application/json" })
+ Uni getPetById(@PathParam("petId") Long petId) throws ApiException, ProcessingException;
+
+ /**
+ * Update an existing pet
+ *
+ *
+ *
+ */
+ @PUT
+
+ @Consumes({ "application/json", "application/xml" })
+ @Produces({ "application/xml", "application/json" })
+ Uni updatePet(Pet pet) throws ApiException, ProcessingException;
+
+ /**
+ * Updates a pet in the store with form data
+ *
+ *
+ *
+ */
+ @POST
+ @Path("/{petId}")
+ @Consumes({ "application/x-www-form-urlencoded" })
+ Uni updatePetWithForm(@PathParam("petId") Long petId, @Multipart(value = "name", required = false) String name, @Multipart(value = "status", required = false) String status) throws ApiException, ProcessingException;
+
+ /**
+ * uploads an image
+ *
+ *
+ *
+ */
+ @POST
+ @Path("/{petId}/uploadImage")
+ @Consumes({ "multipart/form-data" })
+ @Produces({ "application/json" })
+ Uni uploadFile(@PathParam("petId") Long petId, @Multipart(value = "additionalMetadata", required = false) String additionalMetadata, @Multipart(value = "file" , required = false) Attachment _fileDetail) throws ApiException, ProcessingException;
+}
diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-mutiny/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/microprofile-rest-client-3.0-mutiny/src/main/java/org/openapitools/client/api/StoreApi.java
new file mode 100644
index 000000000000..3e3568235bc9
--- /dev/null
+++ b/samples/client/petstore/java/microprofile-rest-client-3.0-mutiny/src/main/java/org/openapitools/client/api/StoreApi.java
@@ -0,0 +1,87 @@
+/**
+ * OpenAPI Petstore
+ * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
+ *
+ * The version of the OpenAPI document: 1.0.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+package org.openapitools.client.api;
+
+import org.openapitools.client.model.Order;
+
+import java.io.InputStream;
+import java.io.OutputStream;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+import jakarta.ws.rs.*;
+import jakarta.ws.rs.core.Response;
+import jakarta.ws.rs.core.MediaType;
+import org.apache.cxf.jaxrs.ext.multipart.*;
+import io.smallrye.mutiny.Uni;
+
+
+import org.eclipse.microprofile.rest.client.annotation.RegisterProvider;
+import org.eclipse.microprofile.rest.client.inject.RegisterRestClient;
+
+/**
+ * OpenAPI Petstore
+ *
+ *
This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
+ *
+ */
+
+@RegisterRestClient(configKey="petstore")
+@RegisterProvider(ApiExceptionMapper.class)
+@Path("/store")
+public interface StoreApi {
+
+ /**
+ * Delete purchase order by ID
+ *
+ * For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
+ *
+ */
+ @DELETE
+ @Path("/order/{orderId}")
+ Uni deleteOrder(@PathParam("orderId") String orderId) throws ApiException, ProcessingException;
+
+ /**
+ * Returns pet inventories by status
+ *
+ * Returns a map of status codes to quantities
+ *
+ */
+ @GET
+ @Path("/inventory")
+ @Produces({ "application/json" })
+ Uni