From ad5b09c39ae2d3d5f494949a0245fcf66bac8e53 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 14 Nov 2023 09:46:21 +0000 Subject: [PATCH] Bump org.openapitools:openapi-generator from 7.0.1 to 7.1.0 (#333) * Bump org.openapitools:openapi-generator from 7.0.1 to 7.1.0 Bumps [org.openapitools:openapi-generator](https://github.com/openapitools/openapi-generator) from 7.0.1 to 7.1.0. - [Release notes](https://github.com/openapitools/openapi-generator/releases) - [Changelog](https://github.com/OpenAPITools/openapi-generator/blob/master/docs/3.0.0-release-note.md) - [Commits](https://github.com/openapitools/openapi-generator/compare/v7.0.1...v7.1.0) --- updated-dependencies: - dependency-name: org.openapitools:openapi-generator dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * Remove javaclient because generated model does not compile anymore --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Stephan Schnabel --- .../javaclient/AdditionalPropertiesModel.java | 110 -- .../AdditionalPropertiesModelValue.java | 143 -- .../javaclient/EnumerationInteger.java | 66 - .../javaclient/EnumerationModel.java | 274 ---- .../javaclient/EnumerationNumber.java | 63 - .../javaclient/EnumerationString.java | 60 - .../javaclient/EnumerationStringDefault.java | 60 - .../java/testmodel/javaclient/FirstModel.java | 169 --- .../javaclient/InheritanceExtended.java | 136 -- .../javaclient/InheritanceSimple.java | 104 -- .../javaclient/InheritanceWithEnumType.java | 119 -- .../javaclient/InheritanceWithEnumType1.java | 115 -- .../javaclient/InheritanceWithEnumType2.java | 115 -- .../javaclient/InheritanceWithEnumType3.java | 82 -- .../InheritanceWithEnumTypeEnum.java | 62 - .../javaclient/InheritanceWithStringType.java | 149 --- .../InheritanceWithStringType1.java | 120 -- .../InheritanceWithStringType2.java | 120 -- .../javaclient/InheritanceWithoutType.java | 117 -- .../javaclient/InheritanceWithoutType1.java | 114 -- .../javaclient/InheritanceWithoutType2.java | 114 -- gen/main/java/testmodel/javaclient/Model.java | 1177 ----------------- .../javaclient/OneOfImplementor1.java | 104 -- .../javaclient/OneOfImplementor2.java | 105 -- .../testmodel/javaclient/OneOfInterface.java | 152 --- .../java/testmodel/javaclient/OneOfModel.java | 234 ---- .../testmodel/javaclient/PropertyTypeOne.java | 138 -- .../testmodel/javaclient/PropertyTypeTwo.java | 138 -- .../javaclient/SecondLevelModel.java | 170 --- .../javaclient/SecondLevelOneModel.java | 136 -- .../javaclient/SecondLevelTwoModel.java | 136 -- pom.xml | 2 +- .../codegen/languages/OtherCodegenTest.java | 7 - 33 files changed, 1 insertion(+), 4910 deletions(-) delete mode 100644 gen/main/java/testmodel/javaclient/AdditionalPropertiesModel.java delete mode 100644 gen/main/java/testmodel/javaclient/AdditionalPropertiesModelValue.java delete mode 100644 gen/main/java/testmodel/javaclient/EnumerationInteger.java delete mode 100644 gen/main/java/testmodel/javaclient/EnumerationModel.java delete mode 100644 gen/main/java/testmodel/javaclient/EnumerationNumber.java delete mode 100644 gen/main/java/testmodel/javaclient/EnumerationString.java delete mode 100644 gen/main/java/testmodel/javaclient/EnumerationStringDefault.java delete mode 100644 gen/main/java/testmodel/javaclient/FirstModel.java delete mode 100644 gen/main/java/testmodel/javaclient/InheritanceExtended.java delete mode 100644 gen/main/java/testmodel/javaclient/InheritanceSimple.java delete mode 100644 gen/main/java/testmodel/javaclient/InheritanceWithEnumType.java delete mode 100644 gen/main/java/testmodel/javaclient/InheritanceWithEnumType1.java delete mode 100644 gen/main/java/testmodel/javaclient/InheritanceWithEnumType2.java delete mode 100644 gen/main/java/testmodel/javaclient/InheritanceWithEnumType3.java delete mode 100644 gen/main/java/testmodel/javaclient/InheritanceWithEnumTypeEnum.java delete mode 100644 gen/main/java/testmodel/javaclient/InheritanceWithStringType.java delete mode 100644 gen/main/java/testmodel/javaclient/InheritanceWithStringType1.java delete mode 100644 gen/main/java/testmodel/javaclient/InheritanceWithStringType2.java delete mode 100644 gen/main/java/testmodel/javaclient/InheritanceWithoutType.java delete mode 100644 gen/main/java/testmodel/javaclient/InheritanceWithoutType1.java delete mode 100644 gen/main/java/testmodel/javaclient/InheritanceWithoutType2.java delete mode 100644 gen/main/java/testmodel/javaclient/Model.java delete mode 100644 gen/main/java/testmodel/javaclient/OneOfImplementor1.java delete mode 100644 gen/main/java/testmodel/javaclient/OneOfImplementor2.java delete mode 100644 gen/main/java/testmodel/javaclient/OneOfInterface.java delete mode 100644 gen/main/java/testmodel/javaclient/OneOfModel.java delete mode 100644 gen/main/java/testmodel/javaclient/PropertyTypeOne.java delete mode 100644 gen/main/java/testmodel/javaclient/PropertyTypeTwo.java delete mode 100644 gen/main/java/testmodel/javaclient/SecondLevelModel.java delete mode 100644 gen/main/java/testmodel/javaclient/SecondLevelOneModel.java delete mode 100644 gen/main/java/testmodel/javaclient/SecondLevelTwoModel.java diff --git a/gen/main/java/testmodel/javaclient/AdditionalPropertiesModel.java b/gen/main/java/testmodel/javaclient/AdditionalPropertiesModel.java deleted file mode 100644 index 3a3ef79c..00000000 --- a/gen/main/java/testmodel/javaclient/AdditionalPropertiesModel.java +++ /dev/null @@ -1,110 +0,0 @@ -/* - * Spec for api tests. - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package testmodel.javaclient; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.HashMap; -import java.util.Map; -import testmodel.javaclient.AdditionalPropertiesModelValue; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** - * AdditionalPropertiesModel - */ -@JsonPropertyOrder({ - AdditionalPropertiesModel.JSON_PROPERTY_ID -}) -@java.lang.SuppressWarnings("all") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class AdditionalPropertiesModel extends HashMap { - public static final String JSON_PROPERTY_ID = "id"; - private String id; - - public AdditionalPropertiesModel() { - - } - - public AdditionalPropertiesModel id(String id) { - - this.id = id; - return this; - } - - /** - * Get id - * @return id - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getId() { - return id; - } - - - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(String id) { - this.id = id; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AdditionalPropertiesModel additionalPropertiesModel = (AdditionalPropertiesModel) o; - return Objects.equals(this.id, additionalPropertiesModel.id) && - super.equals(o); - } - - @Override - public int hashCode() { - return Objects.hash(id, super.hashCode()); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AdditionalPropertiesModel {\n"); - sb.append(" ").append(toIndentedString(super.toString())).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/gen/main/java/testmodel/javaclient/AdditionalPropertiesModelValue.java b/gen/main/java/testmodel/javaclient/AdditionalPropertiesModelValue.java deleted file mode 100644 index bdd278dc..00000000 --- a/gen/main/java/testmodel/javaclient/AdditionalPropertiesModelValue.java +++ /dev/null @@ -1,143 +0,0 @@ -/* - * Spec for api tests. - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package testmodel.javaclient; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import testmodel.javaclient.PropertyTypeOne; -import testmodel.javaclient.PropertyTypeTwo; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** - * AdditionalPropertiesModelValue - */ -@JsonPropertyOrder({ - AdditionalPropertiesModelValue.JSON_PROPERTY_TYPE -}) -@JsonTypeName("AdditionalPropertiesModel_value") -@java.lang.SuppressWarnings("all") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class AdditionalPropertiesModelValue { - /** - * Gets or Sets type - */ - @java.lang.SuppressWarnings("all") -public enum TypeEnum { - ONE("one"), - - TWO("two"); - - private String value; - - TypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static TypeEnum fromValue(String value) { - for (TypeEnum b : TypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type; - - public AdditionalPropertiesModelValue() { - } - - public AdditionalPropertiesModelValue type(TypeEnum type) { - - this.type = type; - return this; - } - - /** - * Get type - * @return type - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public TypeEnum getType() { - return type; - } - - - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(TypeEnum type) { - this.type = type; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AdditionalPropertiesModelValue additionalPropertiesModelValue = (AdditionalPropertiesModelValue) o; - return Objects.equals(this.type, additionalPropertiesModelValue.type); - } - - @Override - public int hashCode() { - return Objects.hash(type); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AdditionalPropertiesModelValue {\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/gen/main/java/testmodel/javaclient/EnumerationInteger.java b/gen/main/java/testmodel/javaclient/EnumerationInteger.java deleted file mode 100644 index 77c1de7e..00000000 --- a/gen/main/java/testmodel/javaclient/EnumerationInteger.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Spec for api tests. - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package testmodel.javaclient; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -/** - * Gets or Sets EnumerationInteger - */ -@java.lang.SuppressWarnings("all") -public enum EnumerationInteger { - - NUMBER_MINUS_2147483648(-2147483648), - - NUMBER_MINUS_1(-1), - - NUMBER_0(0), - - NUMBER_1(1), - - NUMBER_2147483647(2147483647); - - private Integer value; - - EnumerationInteger(Integer value) { - this.value = value; - } - - @JsonValue - public Integer getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static EnumerationInteger fromValue(Integer value) { - for (EnumerationInteger b : EnumerationInteger.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } -} - diff --git a/gen/main/java/testmodel/javaclient/EnumerationModel.java b/gen/main/java/testmodel/javaclient/EnumerationModel.java deleted file mode 100644 index d1f7fdd3..00000000 --- a/gen/main/java/testmodel/javaclient/EnumerationModel.java +++ /dev/null @@ -1,274 +0,0 @@ -/* - * Spec for api tests. - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package testmodel.javaclient; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import testmodel.javaclient.EnumerationString; -import testmodel.javaclient.EnumerationStringDefault; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** - * EnumerationModel - */ -@JsonPropertyOrder({ - EnumerationModel.JSON_PROPERTY_STRING, - EnumerationModel.JSON_PROPERTY_STRING_DEFAULT, - EnumerationModel.JSON_PROPERTY_EMBEDDED, - EnumerationModel.JSON_PROPERTY_EMBEDDED_DEFAULT -}) -@java.lang.SuppressWarnings("all") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class EnumerationModel { - public static final String JSON_PROPERTY_STRING = "string"; - private EnumerationString string; - - public static final String JSON_PROPERTY_STRING_DEFAULT = "string-default"; - private EnumerationStringDefault stringDefault = EnumerationStringDefault.THREE; - - /** - * Gets or Sets embedded - */ - @java.lang.SuppressWarnings("all") -public enum EmbeddedEnum { - FIRST("first"), - - SECOND("second"); - - private String value; - - EmbeddedEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static EmbeddedEnum fromValue(String value) { - for (EmbeddedEnum b : EmbeddedEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_EMBEDDED = "embedded"; - private EmbeddedEnum embedded; - - /** - * Gets or Sets embeddedDefault - */ - @java.lang.SuppressWarnings("all") -public enum EmbeddedDefaultEnum { - THREE("three"), - - FOUR("four"); - - private String value; - - EmbeddedDefaultEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static EmbeddedDefaultEnum fromValue(String value) { - for (EmbeddedDefaultEnum b : EmbeddedDefaultEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_EMBEDDED_DEFAULT = "embedded-default"; - private EmbeddedDefaultEnum embeddedDefault = EmbeddedDefaultEnum.FOUR; - - public EnumerationModel() { - } - - public EnumerationModel string(EnumerationString string) { - - this.string = string; - return this; - } - - /** - * Get string - * @return string - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STRING) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public EnumerationString getString() { - return string; - } - - - @JsonProperty(JSON_PROPERTY_STRING) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setString(EnumerationString string) { - this.string = string; - } - - - public EnumerationModel stringDefault(EnumerationStringDefault stringDefault) { - - this.stringDefault = stringDefault; - return this; - } - - /** - * Get stringDefault - * @return stringDefault - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STRING_DEFAULT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public EnumerationStringDefault getStringDefault() { - return stringDefault; - } - - - @JsonProperty(JSON_PROPERTY_STRING_DEFAULT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStringDefault(EnumerationStringDefault stringDefault) { - this.stringDefault = stringDefault; - } - - - public EnumerationModel embedded(EmbeddedEnum embedded) { - - this.embedded = embedded; - return this; - } - - /** - * Get embedded - * @return embedded - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EMBEDDED) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public EmbeddedEnum getEmbedded() { - return embedded; - } - - - @JsonProperty(JSON_PROPERTY_EMBEDDED) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEmbedded(EmbeddedEnum embedded) { - this.embedded = embedded; - } - - - public EnumerationModel embeddedDefault(EmbeddedDefaultEnum embeddedDefault) { - - this.embeddedDefault = embeddedDefault; - return this; - } - - /** - * Get embeddedDefault - * @return embeddedDefault - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EMBEDDED_DEFAULT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public EmbeddedDefaultEnum getEmbeddedDefault() { - return embeddedDefault; - } - - - @JsonProperty(JSON_PROPERTY_EMBEDDED_DEFAULT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEmbeddedDefault(EmbeddedDefaultEnum embeddedDefault) { - this.embeddedDefault = embeddedDefault; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - EnumerationModel enumerationModel = (EnumerationModel) o; - return Objects.equals(this.string, enumerationModel.string) && - Objects.equals(this.stringDefault, enumerationModel.stringDefault) && - Objects.equals(this.embedded, enumerationModel.embedded) && - Objects.equals(this.embeddedDefault, enumerationModel.embeddedDefault); - } - - @Override - public int hashCode() { - return Objects.hash(string, stringDefault, embedded, embeddedDefault); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class EnumerationModel {\n"); - sb.append(" string: ").append(toIndentedString(string)).append("\n"); - sb.append(" stringDefault: ").append(toIndentedString(stringDefault)).append("\n"); - sb.append(" embedded: ").append(toIndentedString(embedded)).append("\n"); - sb.append(" embeddedDefault: ").append(toIndentedString(embeddedDefault)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/gen/main/java/testmodel/javaclient/EnumerationNumber.java b/gen/main/java/testmodel/javaclient/EnumerationNumber.java deleted file mode 100644 index 4e61bd84..00000000 --- a/gen/main/java/testmodel/javaclient/EnumerationNumber.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Spec for api tests. - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package testmodel.javaclient; - -import java.util.Objects; -import java.util.Arrays; -import java.math.BigDecimal; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -/** - * Gets or Sets EnumerationNumber - */ -@java.lang.SuppressWarnings("all") -public enum EnumerationNumber { - - NUMBER_MINUS_1(new BigDecimal("-1")), - - NUMBER_0(new BigDecimal("0")), - - NUMBER_1(new BigDecimal("1")); - - private BigDecimal value; - - EnumerationNumber(BigDecimal value) { - this.value = value; - } - - @JsonValue - public BigDecimal getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static EnumerationNumber fromValue(BigDecimal value) { - for (EnumerationNumber b : EnumerationNumber.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } -} - diff --git a/gen/main/java/testmodel/javaclient/EnumerationString.java b/gen/main/java/testmodel/javaclient/EnumerationString.java deleted file mode 100644 index 2fca541b..00000000 --- a/gen/main/java/testmodel/javaclient/EnumerationString.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Spec for api tests. - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package testmodel.javaclient; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -/** - * Gets or Sets EnumerationString - */ -@java.lang.SuppressWarnings("all") -public enum EnumerationString { - - ONE("one"), - - TWO("two"); - - private String value; - - EnumerationString(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static EnumerationString fromValue(String value) { - for (EnumerationString b : EnumerationString.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } -} - diff --git a/gen/main/java/testmodel/javaclient/EnumerationStringDefault.java b/gen/main/java/testmodel/javaclient/EnumerationStringDefault.java deleted file mode 100644 index f3494d0f..00000000 --- a/gen/main/java/testmodel/javaclient/EnumerationStringDefault.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Spec for api tests. - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package testmodel.javaclient; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -/** - * Gets or Sets EnumerationStringDefault - */ -@java.lang.SuppressWarnings("all") -public enum EnumerationStringDefault { - - THREE("three"), - - FOUR("four"); - - private String value; - - EnumerationStringDefault(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static EnumerationStringDefault fromValue(String value) { - for (EnumerationStringDefault b : EnumerationStringDefault.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } -} - diff --git a/gen/main/java/testmodel/javaclient/FirstModel.java b/gen/main/java/testmodel/javaclient/FirstModel.java deleted file mode 100644 index 5bc5ae36..00000000 --- a/gen/main/java/testmodel/javaclient/FirstModel.java +++ /dev/null @@ -1,169 +0,0 @@ -/* - * Spec for api tests. - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package testmodel.javaclient; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import testmodel.javaclient.SecondLevelModel; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** - * FirstModel - */ -@JsonPropertyOrder({ - FirstModel.JSON_PROPERTY_TYPE, - FirstModel.JSON_PROPERTY_FIRST, - FirstModel.JSON_PROPERTY_SECOND_LEVEL -}) -@java.lang.SuppressWarnings("all") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class FirstModel { - public static final String JSON_PROPERTY_TYPE = "type"; - private String type; - - public static final String JSON_PROPERTY_FIRST = "first"; - private String first; - - public static final String JSON_PROPERTY_SECOND_LEVEL = "secondLevel"; - private SecondLevelModel secondLevel; - - public FirstModel() { - } - - public FirstModel type(String type) { - - this.type = type; - return this; - } - - /** - * Get type - * @return type - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getType() { - return type; - } - - - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(String type) { - this.type = type; - } - - - public FirstModel first(String first) { - - this.first = first; - return this; - } - - /** - * Get first - * @return first - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FIRST) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getFirst() { - return first; - } - - - @JsonProperty(JSON_PROPERTY_FIRST) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFirst(String first) { - this.first = first; - } - - - public FirstModel secondLevel(SecondLevelModel secondLevel) { - - this.secondLevel = secondLevel; - return this; - } - - /** - * Get secondLevel - * @return secondLevel - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SECOND_LEVEL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public SecondLevelModel getSecondLevel() { - return secondLevel; - } - - - @JsonProperty(JSON_PROPERTY_SECOND_LEVEL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSecondLevel(SecondLevelModel secondLevel) { - this.secondLevel = secondLevel; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - FirstModel firstModel = (FirstModel) o; - return Objects.equals(this.type, firstModel.type) && - Objects.equals(this.first, firstModel.first) && - Objects.equals(this.secondLevel, firstModel.secondLevel); - } - - @Override - public int hashCode() { - return Objects.hash(type, first, secondLevel); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class FirstModel {\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" first: ").append(toIndentedString(first)).append("\n"); - sb.append(" secondLevel: ").append(toIndentedString(secondLevel)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/gen/main/java/testmodel/javaclient/InheritanceExtended.java b/gen/main/java/testmodel/javaclient/InheritanceExtended.java deleted file mode 100644 index 07d81ae8..00000000 --- a/gen/main/java/testmodel/javaclient/InheritanceExtended.java +++ /dev/null @@ -1,136 +0,0 @@ -/* - * Spec for api tests. - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package testmodel.javaclient; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** - * InheritanceExtended - */ -@JsonPropertyOrder({ - InheritanceExtended.JSON_PROPERTY_FOO, - InheritanceExtended.JSON_PROPERTY_BAR -}) -@java.lang.SuppressWarnings("all") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class InheritanceExtended { - public static final String JSON_PROPERTY_FOO = "foo"; - private String foo; - - public static final String JSON_PROPERTY_BAR = "bar"; - private String bar; - - public InheritanceExtended() { - } - - public InheritanceExtended foo(String foo) { - - this.foo = foo; - return this; - } - - /** - * Get foo - * @return foo - **/ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_FOO) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public String getFoo() { - return foo; - } - - - @JsonProperty(JSON_PROPERTY_FOO) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setFoo(String foo) { - this.foo = foo; - } - - - public InheritanceExtended bar(String bar) { - - this.bar = bar; - return this; - } - - /** - * Get bar - * @return bar - **/ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BAR) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public String getBar() { - return bar; - } - - - @JsonProperty(JSON_PROPERTY_BAR) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBar(String bar) { - this.bar = bar; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - InheritanceExtended inheritanceExtended = (InheritanceExtended) o; - return Objects.equals(this.foo, inheritanceExtended.foo) && - Objects.equals(this.bar, inheritanceExtended.bar); - } - - @Override - public int hashCode() { - return Objects.hash(foo, bar); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class InheritanceExtended {\n"); - sb.append(" foo: ").append(toIndentedString(foo)).append("\n"); - sb.append(" bar: ").append(toIndentedString(bar)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/gen/main/java/testmodel/javaclient/InheritanceSimple.java b/gen/main/java/testmodel/javaclient/InheritanceSimple.java deleted file mode 100644 index 3ab04fd2..00000000 --- a/gen/main/java/testmodel/javaclient/InheritanceSimple.java +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Spec for api tests. - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package testmodel.javaclient; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** - * InheritanceSimple - */ -@JsonPropertyOrder({ - InheritanceSimple.JSON_PROPERTY_FOO -}) -@java.lang.SuppressWarnings("all") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class InheritanceSimple { - public static final String JSON_PROPERTY_FOO = "foo"; - private String foo; - - public InheritanceSimple() { - } - - public InheritanceSimple foo(String foo) { - - this.foo = foo; - return this; - } - - /** - * Get foo - * @return foo - **/ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_FOO) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public String getFoo() { - return foo; - } - - - @JsonProperty(JSON_PROPERTY_FOO) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setFoo(String foo) { - this.foo = foo; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - InheritanceSimple inheritanceSimple = (InheritanceSimple) o; - return Objects.equals(this.foo, inheritanceSimple.foo); - } - - @Override - public int hashCode() { - return Objects.hash(foo); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class InheritanceSimple {\n"); - sb.append(" foo: ").append(toIndentedString(foo)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/gen/main/java/testmodel/javaclient/InheritanceWithEnumType.java b/gen/main/java/testmodel/javaclient/InheritanceWithEnumType.java deleted file mode 100644 index b2bc3a6b..00000000 --- a/gen/main/java/testmodel/javaclient/InheritanceWithEnumType.java +++ /dev/null @@ -1,119 +0,0 @@ -/* - * Spec for api tests. - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package testmodel.javaclient; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import testmodel.javaclient.InheritanceWithEnumTypeEnum; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** - * InheritanceWithEnumType - */ -@JsonPropertyOrder({ - InheritanceWithEnumType.JSON_PROPERTY_TYPE -}) -@java.lang.SuppressWarnings("all") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -@JsonIgnoreProperties( - value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization - allowSetters = true // allows the type to be set during deserialization -) -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", visible = true) -@JsonSubTypes({ - @JsonSubTypes.Type(value = InheritanceWithEnumType1.class, name = "Inheritance1"), - @JsonSubTypes.Type(value = InheritanceWithEnumType2.class, name = "Inheritance2"), - @JsonSubTypes.Type(value = InheritanceWithEnumType3.class, name = "Inheritance3"), -}) - -public class InheritanceWithEnumType { - public static final String JSON_PROPERTY_TYPE = "type"; - protected InheritanceWithEnumTypeEnum type; - - public InheritanceWithEnumType() { - } - - public InheritanceWithEnumType type(InheritanceWithEnumTypeEnum type) { - - this.type = type; - return this; - } - - /** - * Get type - * @return type - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public InheritanceWithEnumTypeEnum getType() { - return type; - } - - - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(InheritanceWithEnumTypeEnum type) { - this.type = type; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - InheritanceWithEnumType inheritanceWithEnumType = (InheritanceWithEnumType) o; - return Objects.equals(this.type, inheritanceWithEnumType.type); - } - - @Override - public int hashCode() { - return Objects.hash(type); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class InheritanceWithEnumType {\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/gen/main/java/testmodel/javaclient/InheritanceWithEnumType1.java b/gen/main/java/testmodel/javaclient/InheritanceWithEnumType1.java deleted file mode 100644 index e3d99f60..00000000 --- a/gen/main/java/testmodel/javaclient/InheritanceWithEnumType1.java +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Spec for api tests. - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package testmodel.javaclient; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import testmodel.javaclient.InheritanceWithEnumType; -import testmodel.javaclient.InheritanceWithEnumTypeEnum; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** - * InheritanceWithEnumType1 - */ -@JsonPropertyOrder({ - InheritanceWithEnumType1.JSON_PROPERTY_D -}) -@java.lang.SuppressWarnings("all") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class InheritanceWithEnumType1 extends InheritanceWithEnumType { - public static final String JSON_PROPERTY_D = "d"; - private String d; - - public InheritanceWithEnumType1() { - - } - - public InheritanceWithEnumType1 d(String d) { - - this.d = d; - return this; - } - - /** - * Get d - * @return d - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_D) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getD() { - return d; - } - - - @JsonProperty(JSON_PROPERTY_D) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setD(String d) { - this.d = d; - } - - @Override - public InheritanceWithEnumType1 type(InheritanceWithEnumTypeEnum type) { - this.setType(type); - return this; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - InheritanceWithEnumType1 inheritanceWithEnumType1 = (InheritanceWithEnumType1) o; - return Objects.equals(this.d, inheritanceWithEnumType1.d) && - super.equals(o); - } - - @Override - public int hashCode() { - return Objects.hash(d, super.hashCode()); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class InheritanceWithEnumType1 {\n"); - sb.append(" ").append(toIndentedString(super.toString())).append("\n"); - sb.append(" d: ").append(toIndentedString(d)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/gen/main/java/testmodel/javaclient/InheritanceWithEnumType2.java b/gen/main/java/testmodel/javaclient/InheritanceWithEnumType2.java deleted file mode 100644 index 1622e13b..00000000 --- a/gen/main/java/testmodel/javaclient/InheritanceWithEnumType2.java +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Spec for api tests. - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package testmodel.javaclient; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import testmodel.javaclient.InheritanceWithEnumType; -import testmodel.javaclient.InheritanceWithEnumTypeEnum; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** - * InheritanceWithEnumType2 - */ -@JsonPropertyOrder({ - InheritanceWithEnumType2.JSON_PROPERTY_E -}) -@java.lang.SuppressWarnings("all") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class InheritanceWithEnumType2 extends InheritanceWithEnumType { - public static final String JSON_PROPERTY_E = "e"; - private String e; - - public InheritanceWithEnumType2() { - - } - - public InheritanceWithEnumType2 e(String e) { - - this.e = e; - return this; - } - - /** - * Get e - * @return e - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_E) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getE() { - return e; - } - - - @JsonProperty(JSON_PROPERTY_E) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setE(String e) { - this.e = e; - } - - @Override - public InheritanceWithEnumType2 type(InheritanceWithEnumTypeEnum type) { - this.setType(type); - return this; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - InheritanceWithEnumType2 inheritanceWithEnumType2 = (InheritanceWithEnumType2) o; - return Objects.equals(this.e, inheritanceWithEnumType2.e) && - super.equals(o); - } - - @Override - public int hashCode() { - return Objects.hash(e, super.hashCode()); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class InheritanceWithEnumType2 {\n"); - sb.append(" ").append(toIndentedString(super.toString())).append("\n"); - sb.append(" e: ").append(toIndentedString(e)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/gen/main/java/testmodel/javaclient/InheritanceWithEnumType3.java b/gen/main/java/testmodel/javaclient/InheritanceWithEnumType3.java deleted file mode 100644 index 9346c6a5..00000000 --- a/gen/main/java/testmodel/javaclient/InheritanceWithEnumType3.java +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Spec for api tests. - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package testmodel.javaclient; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import testmodel.javaclient.InheritanceWithEnumType; -import testmodel.javaclient.InheritanceWithEnumTypeEnum; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** - * InheritanceWithEnumType3 - */ -@JsonPropertyOrder({ -}) -@java.lang.SuppressWarnings("all") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class InheritanceWithEnumType3 extends InheritanceWithEnumType { - public InheritanceWithEnumType3() { - - } - @Override - public InheritanceWithEnumType3 type(InheritanceWithEnumTypeEnum type) { - this.setType(type); - return this; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - return super.equals(o); - } - - @Override - public int hashCode() { - return Objects.hash(super.hashCode()); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class InheritanceWithEnumType3 {\n"); - sb.append(" ").append(toIndentedString(super.toString())).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/gen/main/java/testmodel/javaclient/InheritanceWithEnumTypeEnum.java b/gen/main/java/testmodel/javaclient/InheritanceWithEnumTypeEnum.java deleted file mode 100644 index 291af3f8..00000000 --- a/gen/main/java/testmodel/javaclient/InheritanceWithEnumTypeEnum.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Spec for api tests. - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package testmodel.javaclient; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -/** - * Gets or Sets InheritanceWithEnumTypeEnum - */ -@java.lang.SuppressWarnings("all") -public enum InheritanceWithEnumTypeEnum { - - INHERITANCE1("Inheritance1"), - - INHERITANCE2("Inheritance2"), - - INHERITANCE3("Inheritance3"); - - private String value; - - InheritanceWithEnumTypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static InheritanceWithEnumTypeEnum fromValue(String value) { - for (InheritanceWithEnumTypeEnum b : InheritanceWithEnumTypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } -} - diff --git a/gen/main/java/testmodel/javaclient/InheritanceWithStringType.java b/gen/main/java/testmodel/javaclient/InheritanceWithStringType.java deleted file mode 100644 index 63f22db3..00000000 --- a/gen/main/java/testmodel/javaclient/InheritanceWithStringType.java +++ /dev/null @@ -1,149 +0,0 @@ -/* - * Spec for api tests. - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package testmodel.javaclient; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** - * InheritanceWithStringType - */ -@JsonPropertyOrder({ - InheritanceWithStringType.JSON_PROPERTY_TYPE, - InheritanceWithStringType.JSON_PROPERTY_A -}) -@java.lang.SuppressWarnings("all") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -@JsonIgnoreProperties( - value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization - allowSetters = true // allows the type to be set during deserialization -) -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", visible = true) -@JsonSubTypes({ - @JsonSubTypes.Type(value = InheritanceWithStringType1.class, name = "Inheritance1"), - @JsonSubTypes.Type(value = InheritanceWithStringType2.class, name = "Inheritance2"), -}) - -public class InheritanceWithStringType { - public static final String JSON_PROPERTY_TYPE = "type"; - protected String type; - - public static final String JSON_PROPERTY_A = "a"; - private String a; - - public InheritanceWithStringType() { - } - - public InheritanceWithStringType type(String type) { - - this.type = type; - return this; - } - - /** - * Get type - * @return type - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getType() { - return type; - } - - - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(String type) { - this.type = type; - } - - - public InheritanceWithStringType a(String a) { - - this.a = a; - return this; - } - - /** - * Get a - * @return a - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_A) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getA() { - return a; - } - - - @JsonProperty(JSON_PROPERTY_A) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setA(String a) { - this.a = a; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - InheritanceWithStringType inheritanceWithStringType = (InheritanceWithStringType) o; - return Objects.equals(this.type, inheritanceWithStringType.type) && - Objects.equals(this.a, inheritanceWithStringType.a); - } - - @Override - public int hashCode() { - return Objects.hash(type, a); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class InheritanceWithStringType {\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" a: ").append(toIndentedString(a)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/gen/main/java/testmodel/javaclient/InheritanceWithStringType1.java b/gen/main/java/testmodel/javaclient/InheritanceWithStringType1.java deleted file mode 100644 index f183f7fc..00000000 --- a/gen/main/java/testmodel/javaclient/InheritanceWithStringType1.java +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Spec for api tests. - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package testmodel.javaclient; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import testmodel.javaclient.InheritanceWithStringType; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** - * InheritanceWithStringType1 - */ -@JsonPropertyOrder({ - InheritanceWithStringType1.JSON_PROPERTY_B -}) -@java.lang.SuppressWarnings("all") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class InheritanceWithStringType1 extends InheritanceWithStringType { - public static final String JSON_PROPERTY_B = "b"; - private String b; - - public InheritanceWithStringType1() { - - } - - public InheritanceWithStringType1 b(String b) { - - this.b = b; - return this; - } - - /** - * Get b - * @return b - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_B) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getB() { - return b; - } - - - @JsonProperty(JSON_PROPERTY_B) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setB(String b) { - this.b = b; - } - - @Override - public InheritanceWithStringType1 type(String type) { - this.setType(type); - return this; - } - - @Override - public InheritanceWithStringType1 a(String a) { - this.setA(a); - return this; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - InheritanceWithStringType1 inheritanceWithStringType1 = (InheritanceWithStringType1) o; - return Objects.equals(this.b, inheritanceWithStringType1.b) && - super.equals(o); - } - - @Override - public int hashCode() { - return Objects.hash(b, super.hashCode()); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class InheritanceWithStringType1 {\n"); - sb.append(" ").append(toIndentedString(super.toString())).append("\n"); - sb.append(" b: ").append(toIndentedString(b)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/gen/main/java/testmodel/javaclient/InheritanceWithStringType2.java b/gen/main/java/testmodel/javaclient/InheritanceWithStringType2.java deleted file mode 100644 index 2a98cd21..00000000 --- a/gen/main/java/testmodel/javaclient/InheritanceWithStringType2.java +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Spec for api tests. - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package testmodel.javaclient; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import testmodel.javaclient.InheritanceWithStringType; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** - * InheritanceWithStringType2 - */ -@JsonPropertyOrder({ - InheritanceWithStringType2.JSON_PROPERTY_C -}) -@java.lang.SuppressWarnings("all") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class InheritanceWithStringType2 extends InheritanceWithStringType { - public static final String JSON_PROPERTY_C = "c"; - private String c; - - public InheritanceWithStringType2() { - - } - - public InheritanceWithStringType2 c(String c) { - - this.c = c; - return this; - } - - /** - * Get c - * @return c - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_C) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getC() { - return c; - } - - - @JsonProperty(JSON_PROPERTY_C) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setC(String c) { - this.c = c; - } - - @Override - public InheritanceWithStringType2 type(String type) { - this.setType(type); - return this; - } - - @Override - public InheritanceWithStringType2 a(String a) { - this.setA(a); - return this; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - InheritanceWithStringType2 inheritanceWithStringType2 = (InheritanceWithStringType2) o; - return Objects.equals(this.c, inheritanceWithStringType2.c) && - super.equals(o); - } - - @Override - public int hashCode() { - return Objects.hash(c, super.hashCode()); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class InheritanceWithStringType2 {\n"); - sb.append(" ").append(toIndentedString(super.toString())).append("\n"); - sb.append(" c: ").append(toIndentedString(c)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/gen/main/java/testmodel/javaclient/InheritanceWithoutType.java b/gen/main/java/testmodel/javaclient/InheritanceWithoutType.java deleted file mode 100644 index f94dd535..00000000 --- a/gen/main/java/testmodel/javaclient/InheritanceWithoutType.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Spec for api tests. - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package testmodel.javaclient; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** - * InheritanceWithoutType - */ -@JsonPropertyOrder({ - InheritanceWithoutType.JSON_PROPERTY_E -}) -@java.lang.SuppressWarnings("all") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -@JsonIgnoreProperties( - value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization - allowSetters = true // allows the type to be set during deserialization -) -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", visible = true) -@JsonSubTypes({ - @JsonSubTypes.Type(value = InheritanceWithoutType1.class, name = "Inheritance1"), - @JsonSubTypes.Type(value = InheritanceWithoutType2.class, name = "Inheritance2"), -}) - -public class InheritanceWithoutType { - public static final String JSON_PROPERTY_E = "e"; - private String e; - - public InheritanceWithoutType() { - } - - public InheritanceWithoutType e(String e) { - - this.e = e; - return this; - } - - /** - * Get e - * @return e - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_E) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getE() { - return e; - } - - - @JsonProperty(JSON_PROPERTY_E) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setE(String e) { - this.e = e; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - InheritanceWithoutType inheritanceWithoutType = (InheritanceWithoutType) o; - return Objects.equals(this.e, inheritanceWithoutType.e); - } - - @Override - public int hashCode() { - return Objects.hash(e); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class InheritanceWithoutType {\n"); - sb.append(" e: ").append(toIndentedString(e)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/gen/main/java/testmodel/javaclient/InheritanceWithoutType1.java b/gen/main/java/testmodel/javaclient/InheritanceWithoutType1.java deleted file mode 100644 index 2d8f872c..00000000 --- a/gen/main/java/testmodel/javaclient/InheritanceWithoutType1.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Spec for api tests. - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package testmodel.javaclient; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import testmodel.javaclient.InheritanceWithoutType; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** - * InheritanceWithoutType1 - */ -@JsonPropertyOrder({ - InheritanceWithoutType1.JSON_PROPERTY_F -}) -@java.lang.SuppressWarnings("all") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class InheritanceWithoutType1 extends InheritanceWithoutType { - public static final String JSON_PROPERTY_F = "f"; - private String f; - - public InheritanceWithoutType1() { - - } - - public InheritanceWithoutType1 f(String f) { - - this.f = f; - return this; - } - - /** - * Get f - * @return f - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_F) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getF() { - return f; - } - - - @JsonProperty(JSON_PROPERTY_F) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setF(String f) { - this.f = f; - } - - @Override - public InheritanceWithoutType1 e(String e) { - this.setE(e); - return this; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - InheritanceWithoutType1 inheritanceWithoutType1 = (InheritanceWithoutType1) o; - return Objects.equals(this.f, inheritanceWithoutType1.f) && - super.equals(o); - } - - @Override - public int hashCode() { - return Objects.hash(f, super.hashCode()); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class InheritanceWithoutType1 {\n"); - sb.append(" ").append(toIndentedString(super.toString())).append("\n"); - sb.append(" f: ").append(toIndentedString(f)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/gen/main/java/testmodel/javaclient/InheritanceWithoutType2.java b/gen/main/java/testmodel/javaclient/InheritanceWithoutType2.java deleted file mode 100644 index 8ba2445b..00000000 --- a/gen/main/java/testmodel/javaclient/InheritanceWithoutType2.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Spec for api tests. - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package testmodel.javaclient; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import testmodel.javaclient.InheritanceWithoutType; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** - * InheritanceWithoutType2 - */ -@JsonPropertyOrder({ - InheritanceWithoutType2.JSON_PROPERTY_G -}) -@java.lang.SuppressWarnings("all") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class InheritanceWithoutType2 extends InheritanceWithoutType { - public static final String JSON_PROPERTY_G = "g"; - private String g; - - public InheritanceWithoutType2() { - - } - - public InheritanceWithoutType2 g(String g) { - - this.g = g; - return this; - } - - /** - * Get g - * @return g - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_G) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getG() { - return g; - } - - - @JsonProperty(JSON_PROPERTY_G) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setG(String g) { - this.g = g; - } - - @Override - public InheritanceWithoutType2 e(String e) { - this.setE(e); - return this; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - InheritanceWithoutType2 inheritanceWithoutType2 = (InheritanceWithoutType2) o; - return Objects.equals(this.g, inheritanceWithoutType2.g) && - super.equals(o); - } - - @Override - public int hashCode() { - return Objects.hash(g, super.hashCode()); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class InheritanceWithoutType2 {\n"); - sb.append(" ").append(toIndentedString(super.toString())).append("\n"); - sb.append(" g: ").append(toIndentedString(g)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/gen/main/java/testmodel/javaclient/Model.java b/gen/main/java/testmodel/javaclient/Model.java deleted file mode 100644 index 4b81a4fd..00000000 --- a/gen/main/java/testmodel/javaclient/Model.java +++ /dev/null @@ -1,1177 +0,0 @@ -/* - * Spec for api tests. - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package testmodel.javaclient; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import java.io.File; -import java.math.BigDecimal; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Set; -import org.openapitools.jackson.nullable.JsonNullable; -import testmodel.javaclient.EnumerationModel; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** - * Model - */ -@JsonPropertyOrder({ - Model.JSON_PROPERTY_ID, - Model.JSON_PROPERTY_ID_WITH_EXAMPLE, - Model.JSON_PROPERTY_ID_WITH_DEFAULT, - Model.JSON_PROPERTY_NAME, - Model.JSON_PROPERTY_NAME_WITH_EXAMPLE, - Model.JSON_PROPERTY_NAME_WITH_DEFAULT, - Model.JSON_PROPERTY_DATE, - Model.JSON_PROPERTY_DATE_WITH_EXAMPLE, - Model.JSON_PROPERTY_DATE_TIME, - Model.JSON_PROPERTY_DATE_TIME_WITH_EXAMPLE, - Model.JSON_PROPERTY_NUMBER, - Model.JSON_PROPERTY_BINARY, - Model.JSON_PROPERTY_BYTES, - Model.JSON_PROPERTY_ANY, - Model.JSON_PROPERTY_ARRAY, - Model.JSON_PROPERTY_ARRAY_WITH_EXAMPLE, - Model.JSON_PROPERTY_SET, - Model.JSON_PROPERTY_SET_WITH_EXAMPLES, - Model.JSON_PROPERTY_MAP, - Model.JSON_PROPERTY_MAP_WITH_EXAMPLE, - Model.JSON_PROPERTY_OPTIONAL_ARRAY, - Model.JSON_PROPERTY_OPTIONAL_SET, - Model.JSON_PROPERTY_OPTIONAL_MAP, - Model.JSON_PROPERTY_NULLABLE_STRING, - Model.JSON_PROPERTY_NULLABLE_ARRAY, - Model.JSON_PROPERTY_NULLABLE_SET, - Model.JSON_PROPERTY_DEFAULT_STRING, - Model.JSON_PROPERTY_DEFAULT_INTEGER, - Model.JSON_PROPERTY_DEFAULT_LONG, - Model.JSON_PROPERTY_DEFAULT_NULLABLE, - Model.JSON_PROPERTY_REFERENED_MODEL -}) -@java.lang.SuppressWarnings("all") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class Model { - public static final String JSON_PROPERTY_ID = "id"; - private Integer id; - - public static final String JSON_PROPERTY_ID_WITH_EXAMPLE = "idWithExample"; - private Integer idWithExample; - - public static final String JSON_PROPERTY_ID_WITH_DEFAULT = "idWithDefault"; - private Integer idWithDefault = 32; - - public static final String JSON_PROPERTY_NAME = "name"; - private String name; - - public static final String JSON_PROPERTY_NAME_WITH_EXAMPLE = "nameWithExample"; - private String nameWithExample; - - public static final String JSON_PROPERTY_NAME_WITH_DEFAULT = "nameWithDefault"; - private String nameWithDefault = "MyDefaultName"; - - public static final String JSON_PROPERTY_DATE = "date"; - private LocalDate date; - - public static final String JSON_PROPERTY_DATE_WITH_EXAMPLE = "dateWithExample"; - private LocalDate dateWithExample; - - public static final String JSON_PROPERTY_DATE_TIME = "date-time"; - private OffsetDateTime dateTime; - - public static final String JSON_PROPERTY_DATE_TIME_WITH_EXAMPLE = "date-timeWithExample"; - private OffsetDateTime dateTimeWithExample; - - public static final String JSON_PROPERTY_NUMBER = "number"; - private BigDecimal number; - - public static final String JSON_PROPERTY_BINARY = "binary"; - private File binary; - - public static final String JSON_PROPERTY_BYTES = "bytes"; - private byte[] bytes; - - public static final String JSON_PROPERTY_ANY = "any"; - private Object any = null; - - public static final String JSON_PROPERTY_ARRAY = "array"; - private List array = new ArrayList<>(); - - public static final String JSON_PROPERTY_ARRAY_WITH_EXAMPLE = "arrayWithExample"; - private List arrayWithExample; - - public static final String JSON_PROPERTY_SET = "set"; - private Set set = new LinkedHashSet<>(); - - public static final String JSON_PROPERTY_SET_WITH_EXAMPLES = "setWithExamples"; - private Set setWithExamples; - - public static final String JSON_PROPERTY_MAP = "map"; - private Map map = new HashMap<>(); - - public static final String JSON_PROPERTY_MAP_WITH_EXAMPLE = "mapWithExample"; - private Map mapWithExample = new HashMap<>(); - - public static final String JSON_PROPERTY_OPTIONAL_ARRAY = "optionalArray"; - private List optionalArray; - - public static final String JSON_PROPERTY_OPTIONAL_SET = "optionalSet"; - private Set optionalSet; - - public static final String JSON_PROPERTY_OPTIONAL_MAP = "optionalMap"; - private Map optionalMap = new HashMap<>(); - - public static final String JSON_PROPERTY_NULLABLE_STRING = "nullableString"; - private String nullableString; - - public static final String JSON_PROPERTY_NULLABLE_ARRAY = "nullableArray"; - private List nullableArray; - - public static final String JSON_PROPERTY_NULLABLE_SET = "nullableSet"; - private Set nullableSet; - - public static final String JSON_PROPERTY_DEFAULT_STRING = "defaultString"; - private String defaultString = "defaultStringValue"; - - public static final String JSON_PROPERTY_DEFAULT_INTEGER = "defaultInteger"; - private Integer defaultInteger = 1234; - - public static final String JSON_PROPERTY_DEFAULT_LONG = "defaultLong"; - private Long defaultLong = 5678l; - - public static final String JSON_PROPERTY_DEFAULT_NULLABLE = "defaultNullable"; - private String defaultNullable = "defaultNullableValue"; - - public static final String JSON_PROPERTY_REFERENED_MODEL = "referenedModel"; - private EnumerationModel referenedModel; - - public Model() { - } - - public Model id(Integer id) { - - this.id = id; - return this; - } - - /** - * Get id - * @return id - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Integer getId() { - return id; - } - - - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Integer id) { - this.id = id; - } - - - public Model idWithExample(Integer idWithExample) { - - this.idWithExample = idWithExample; - return this; - } - - /** - * Get idWithExample - * @return idWithExample - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID_WITH_EXAMPLE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Integer getIdWithExample() { - return idWithExample; - } - - - @JsonProperty(JSON_PROPERTY_ID_WITH_EXAMPLE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIdWithExample(Integer idWithExample) { - this.idWithExample = idWithExample; - } - - - public Model idWithDefault(Integer idWithDefault) { - - this.idWithDefault = idWithDefault; - return this; - } - - /** - * Get idWithDefault - * @return idWithDefault - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID_WITH_DEFAULT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Integer getIdWithDefault() { - return idWithDefault; - } - - - @JsonProperty(JSON_PROPERTY_ID_WITH_DEFAULT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIdWithDefault(Integer idWithDefault) { - this.idWithDefault = idWithDefault; - } - - - public Model name(String name) { - - this.name = name; - return this; - } - - /** - * Get name - * @return name - **/ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public String getName() { - return name; - } - - - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { - this.name = name; - } - - - public Model nameWithExample(String nameWithExample) { - - this.nameWithExample = nameWithExample; - return this; - } - - /** - * Get nameWithExample - * @return nameWithExample - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME_WITH_EXAMPLE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getNameWithExample() { - return nameWithExample; - } - - - @JsonProperty(JSON_PROPERTY_NAME_WITH_EXAMPLE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNameWithExample(String nameWithExample) { - this.nameWithExample = nameWithExample; - } - - - public Model nameWithDefault(String nameWithDefault) { - - this.nameWithDefault = nameWithDefault; - return this; - } - - /** - * Get nameWithDefault - * @return nameWithDefault - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME_WITH_DEFAULT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getNameWithDefault() { - return nameWithDefault; - } - - - @JsonProperty(JSON_PROPERTY_NAME_WITH_DEFAULT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNameWithDefault(String nameWithDefault) { - this.nameWithDefault = nameWithDefault; - } - - - public Model date(LocalDate date) { - - this.date = date; - return this; - } - - /** - * Get date - * @return date - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public LocalDate getDate() { - return date; - } - - - @JsonProperty(JSON_PROPERTY_DATE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDate(LocalDate date) { - this.date = date; - } - - - public Model dateWithExample(LocalDate dateWithExample) { - - this.dateWithExample = dateWithExample; - return this; - } - - /** - * Get dateWithExample - * @return dateWithExample - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_WITH_EXAMPLE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public LocalDate getDateWithExample() { - return dateWithExample; - } - - - @JsonProperty(JSON_PROPERTY_DATE_WITH_EXAMPLE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDateWithExample(LocalDate dateWithExample) { - this.dateWithExample = dateWithExample; - } - - - public Model dateTime(OffsetDateTime dateTime) { - - this.dateTime = dateTime; - return this; - } - - /** - * Get dateTime - * @return dateTime - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_TIME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public OffsetDateTime getDateTime() { - return dateTime; - } - - - @JsonProperty(JSON_PROPERTY_DATE_TIME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDateTime(OffsetDateTime dateTime) { - this.dateTime = dateTime; - } - - - public Model dateTimeWithExample(OffsetDateTime dateTimeWithExample) { - - this.dateTimeWithExample = dateTimeWithExample; - return this; - } - - /** - * Get dateTimeWithExample - * @return dateTimeWithExample - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_TIME_WITH_EXAMPLE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public OffsetDateTime getDateTimeWithExample() { - return dateTimeWithExample; - } - - - @JsonProperty(JSON_PROPERTY_DATE_TIME_WITH_EXAMPLE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDateTimeWithExample(OffsetDateTime dateTimeWithExample) { - this.dateTimeWithExample = dateTimeWithExample; - } - - - public Model number(BigDecimal number) { - - this.number = number; - return this; - } - - /** - * Get number - * @return number - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NUMBER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public BigDecimal getNumber() { - return number; - } - - - @JsonProperty(JSON_PROPERTY_NUMBER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNumber(BigDecimal number) { - this.number = number; - } - - - public Model binary(File binary) { - - this.binary = binary; - return this; - } - - /** - * Get binary - * @return binary - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BINARY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public File getBinary() { - return binary; - } - - - @JsonProperty(JSON_PROPERTY_BINARY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBinary(File binary) { - this.binary = binary; - } - - - public Model bytes(byte[] bytes) { - - this.bytes = bytes; - return this; - } - - /** - * Get bytes - * @return bytes - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BYTES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public byte[] getBytes() { - return bytes; - } - - - @JsonProperty(JSON_PROPERTY_BYTES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBytes(byte[] bytes) { - this.bytes = bytes; - } - - - public Model any(Object any) { - - this.any = any; - return this; - } - - /** - * Get any - * @return any - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ANY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Object getAny() { - return any; - } - - - @JsonProperty(JSON_PROPERTY_ANY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAny(Object any) { - this.any = any; - } - - - public Model array(List array) { - - this.array = array; - return this; - } - - public Model addArrayItem(String arrayItem) { - if (this.array == null) { - this.array = new ArrayList<>(); - } - this.array.add(arrayItem); - return this; - } - - /** - * Get array - * @return array - **/ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ARRAY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public List getArray() { - return array; - } - - - @JsonProperty(JSON_PROPERTY_ARRAY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setArray(List array) { - this.array = array; - } - - - public Model arrayWithExample(List arrayWithExample) { - - this.arrayWithExample = arrayWithExample; - return this; - } - - public Model addArrayWithExampleItem(String arrayWithExampleItem) { - if (this.arrayWithExample == null) { - this.arrayWithExample = new ArrayList<>(); - } - this.arrayWithExample.add(arrayWithExampleItem); - return this; - } - - /** - * Get arrayWithExample - * @return arrayWithExample - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_WITH_EXAMPLE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public List getArrayWithExample() { - return arrayWithExample; - } - - - @JsonProperty(JSON_PROPERTY_ARRAY_WITH_EXAMPLE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayWithExample(List arrayWithExample) { - this.arrayWithExample = arrayWithExample; - } - - - public Model set(Set set) { - - this.set = set; - return this; - } - - public Model addSetItem(String setItem) { - if (this.set == null) { - this.set = new LinkedHashSet<>(); - } - this.set.add(setItem); - return this; - } - - /** - * Get set - * @return set - **/ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SET) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public Set getSet() { - return set; - } - - - @JsonDeserialize(as = LinkedHashSet.class) - @JsonProperty(JSON_PROPERTY_SET) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSet(Set set) { - this.set = set; - } - - - public Model setWithExamples(Set setWithExamples) { - - this.setWithExamples = setWithExamples; - return this; - } - - public Model addSetWithExamplesItem(String setWithExamplesItem) { - if (this.setWithExamples == null) { - this.setWithExamples = new LinkedHashSet<>(); - } - this.setWithExamples.add(setWithExamplesItem); - return this; - } - - /** - * Get setWithExamples - * @return setWithExamples - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SET_WITH_EXAMPLES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Set getSetWithExamples() { - return setWithExamples; - } - - - @JsonDeserialize(as = LinkedHashSet.class) - @JsonProperty(JSON_PROPERTY_SET_WITH_EXAMPLES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSetWithExamples(Set setWithExamples) { - this.setWithExamples = setWithExamples; - } - - - public Model map(Map map) { - - this.map = map; - return this; - } - - public Model putMapItem(String key, String mapItem) { - this.map.put(key, mapItem); - return this; - } - - /** - * Get map - * @return map - **/ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_MAP) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public Map getMap() { - return map; - } - - - @JsonProperty(JSON_PROPERTY_MAP) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMap(Map map) { - this.map = map; - } - - - public Model mapWithExample(Map mapWithExample) { - - this.mapWithExample = mapWithExample; - return this; - } - - public Model putMapWithExampleItem(String key, String mapWithExampleItem) { - if (this.mapWithExample == null) { - this.mapWithExample = new HashMap<>(); - } - this.mapWithExample.put(key, mapWithExampleItem); - return this; - } - - /** - * Get mapWithExample - * @return mapWithExample - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_WITH_EXAMPLE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Map getMapWithExample() { - return mapWithExample; - } - - - @JsonProperty(JSON_PROPERTY_MAP_WITH_EXAMPLE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapWithExample(Map mapWithExample) { - this.mapWithExample = mapWithExample; - } - - - public Model optionalArray(List optionalArray) { - - this.optionalArray = optionalArray; - return this; - } - - public Model addOptionalArrayItem(String optionalArrayItem) { - if (this.optionalArray == null) { - this.optionalArray = new ArrayList<>(); - } - this.optionalArray.add(optionalArrayItem); - return this; - } - - /** - * Get optionalArray - * @return optionalArray - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OPTIONAL_ARRAY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public List getOptionalArray() { - return optionalArray; - } - - - @JsonProperty(JSON_PROPERTY_OPTIONAL_ARRAY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOptionalArray(List optionalArray) { - this.optionalArray = optionalArray; - } - - - public Model optionalSet(Set optionalSet) { - - this.optionalSet = optionalSet; - return this; - } - - public Model addOptionalSetItem(String optionalSetItem) { - if (this.optionalSet == null) { - this.optionalSet = new LinkedHashSet<>(); - } - this.optionalSet.add(optionalSetItem); - return this; - } - - /** - * Get optionalSet - * @return optionalSet - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OPTIONAL_SET) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Set getOptionalSet() { - return optionalSet; - } - - - @JsonDeserialize(as = LinkedHashSet.class) - @JsonProperty(JSON_PROPERTY_OPTIONAL_SET) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOptionalSet(Set optionalSet) { - this.optionalSet = optionalSet; - } - - - public Model optionalMap(Map optionalMap) { - - this.optionalMap = optionalMap; - return this; - } - - public Model putOptionalMapItem(String key, String optionalMapItem) { - if (this.optionalMap == null) { - this.optionalMap = new HashMap<>(); - } - this.optionalMap.put(key, optionalMapItem); - return this; - } - - /** - * Get optionalMap - * @return optionalMap - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OPTIONAL_MAP) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Map getOptionalMap() { - return optionalMap; - } - - - @JsonProperty(JSON_PROPERTY_OPTIONAL_MAP) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOptionalMap(Map optionalMap) { - this.optionalMap = optionalMap; - } - - - public Model nullableString(String nullableString) { - - this.nullableString = nullableString; - return this; - } - - /** - * Get nullableString - * @return nullableString - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NULLABLE_STRING) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getNullableString() { - return nullableString; - } - - - @JsonProperty(JSON_PROPERTY_NULLABLE_STRING) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNullableString(String nullableString) { - this.nullableString = nullableString; - } - - - public Model nullableArray(List nullableArray) { - - this.nullableArray = nullableArray; - return this; - } - - public Model addNullableArrayItem(String nullableArrayItem) { - if (this.nullableArray == null) { - this.nullableArray = new ArrayList<>(); - } - this.nullableArray.add(nullableArrayItem); - return this; - } - - /** - * Get nullableArray - * @return nullableArray - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NULLABLE_ARRAY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public List getNullableArray() { - return nullableArray; - } - - - @JsonProperty(JSON_PROPERTY_NULLABLE_ARRAY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNullableArray(List nullableArray) { - this.nullableArray = nullableArray; - } - - - public Model nullableSet(Set nullableSet) { - - this.nullableSet = nullableSet; - return this; - } - - public Model addNullableSetItem(String nullableSetItem) { - if (this.nullableSet == null) { - this.nullableSet = new LinkedHashSet<>(); - } - this.nullableSet.add(nullableSetItem); - return this; - } - - /** - * Get nullableSet - * @return nullableSet - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NULLABLE_SET) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Set getNullableSet() { - return nullableSet; - } - - - @JsonProperty(JSON_PROPERTY_NULLABLE_SET) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNullableSet(Set nullableSet) { - this.nullableSet = nullableSet; - } - - - public Model defaultString(String defaultString) { - - this.defaultString = defaultString; - return this; - } - - /** - * Get defaultString - * @return defaultString - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DEFAULT_STRING) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getDefaultString() { - return defaultString; - } - - - @JsonProperty(JSON_PROPERTY_DEFAULT_STRING) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDefaultString(String defaultString) { - this.defaultString = defaultString; - } - - - public Model defaultInteger(Integer defaultInteger) { - - this.defaultInteger = defaultInteger; - return this; - } - - /** - * Get defaultInteger - * @return defaultInteger - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DEFAULT_INTEGER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Integer getDefaultInteger() { - return defaultInteger; - } - - - @JsonProperty(JSON_PROPERTY_DEFAULT_INTEGER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDefaultInteger(Integer defaultInteger) { - this.defaultInteger = defaultInteger; - } - - - public Model defaultLong(Long defaultLong) { - - this.defaultLong = defaultLong; - return this; - } - - /** - * Get defaultLong - * @return defaultLong - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DEFAULT_LONG) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Long getDefaultLong() { - return defaultLong; - } - - - @JsonProperty(JSON_PROPERTY_DEFAULT_LONG) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDefaultLong(Long defaultLong) { - this.defaultLong = defaultLong; - } - - - public Model defaultNullable(String defaultNullable) { - - this.defaultNullable = defaultNullable; - return this; - } - - /** - * Get defaultNullable - * @return defaultNullable - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DEFAULT_NULLABLE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getDefaultNullable() { - return defaultNullable; - } - - - @JsonProperty(JSON_PROPERTY_DEFAULT_NULLABLE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDefaultNullable(String defaultNullable) { - this.defaultNullable = defaultNullable; - } - - - public Model referenedModel(EnumerationModel referenedModel) { - - this.referenedModel = referenedModel; - return this; - } - - /** - * Get referenedModel - * @return referenedModel - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_REFERENED_MODEL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public EnumerationModel getReferenedModel() { - return referenedModel; - } - - - @JsonProperty(JSON_PROPERTY_REFERENED_MODEL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setReferenedModel(EnumerationModel referenedModel) { - this.referenedModel = referenedModel; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Model model = (Model) o; - return Objects.equals(this.id, model.id) && - Objects.equals(this.idWithExample, model.idWithExample) && - Objects.equals(this.idWithDefault, model.idWithDefault) && - Objects.equals(this.name, model.name) && - Objects.equals(this.nameWithExample, model.nameWithExample) && - Objects.equals(this.nameWithDefault, model.nameWithDefault) && - Objects.equals(this.date, model.date) && - Objects.equals(this.dateWithExample, model.dateWithExample) && - Objects.equals(this.dateTime, model.dateTime) && - Objects.equals(this.dateTimeWithExample, model.dateTimeWithExample) && - Objects.equals(this.number, model.number) && - Objects.equals(this.binary, model.binary) && - Arrays.equals(this.bytes, model.bytes) && - Objects.equals(this.any, model.any) && - Objects.equals(this.array, model.array) && - Objects.equals(this.arrayWithExample, model.arrayWithExample) && - Objects.equals(this.set, model.set) && - Objects.equals(this.setWithExamples, model.setWithExamples) && - Objects.equals(this.map, model.map) && - Objects.equals(this.mapWithExample, model.mapWithExample) && - Objects.equals(this.optionalArray, model.optionalArray) && - Objects.equals(this.optionalSet, model.optionalSet) && - Objects.equals(this.optionalMap, model.optionalMap) && - Objects.equals(this.nullableString, model.nullableString) && - Objects.equals(this.nullableArray, model.nullableArray) && - Objects.equals(this.nullableSet, model.nullableSet) && - Objects.equals(this.defaultString, model.defaultString) && - Objects.equals(this.defaultInteger, model.defaultInteger) && - Objects.equals(this.defaultLong, model.defaultLong) && - Objects.equals(this.defaultNullable, model.defaultNullable) && - Objects.equals(this.referenedModel, model.referenedModel); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(id, idWithExample, idWithDefault, name, nameWithExample, nameWithDefault, date, dateWithExample, dateTime, dateTimeWithExample, number, binary, Arrays.hashCode(bytes), any, array, arrayWithExample, set, setWithExamples, map, mapWithExample, optionalArray, optionalSet, optionalMap, nullableString, nullableArray, nullableSet, defaultString, defaultInteger, defaultLong, defaultNullable, referenedModel); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Model {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" idWithExample: ").append(toIndentedString(idWithExample)).append("\n"); - sb.append(" idWithDefault: ").append(toIndentedString(idWithDefault)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" nameWithExample: ").append(toIndentedString(nameWithExample)).append("\n"); - sb.append(" nameWithDefault: ").append(toIndentedString(nameWithDefault)).append("\n"); - sb.append(" date: ").append(toIndentedString(date)).append("\n"); - sb.append(" dateWithExample: ").append(toIndentedString(dateWithExample)).append("\n"); - sb.append(" dateTime: ").append(toIndentedString(dateTime)).append("\n"); - sb.append(" dateTimeWithExample: ").append(toIndentedString(dateTimeWithExample)).append("\n"); - sb.append(" number: ").append(toIndentedString(number)).append("\n"); - sb.append(" binary: ").append(toIndentedString(binary)).append("\n"); - sb.append(" bytes: ").append(toIndentedString(bytes)).append("\n"); - sb.append(" any: ").append(toIndentedString(any)).append("\n"); - sb.append(" array: ").append(toIndentedString(array)).append("\n"); - sb.append(" arrayWithExample: ").append(toIndentedString(arrayWithExample)).append("\n"); - sb.append(" set: ").append(toIndentedString(set)).append("\n"); - sb.append(" setWithExamples: ").append(toIndentedString(setWithExamples)).append("\n"); - sb.append(" map: ").append(toIndentedString(map)).append("\n"); - sb.append(" mapWithExample: ").append(toIndentedString(mapWithExample)).append("\n"); - sb.append(" optionalArray: ").append(toIndentedString(optionalArray)).append("\n"); - sb.append(" optionalSet: ").append(toIndentedString(optionalSet)).append("\n"); - sb.append(" optionalMap: ").append(toIndentedString(optionalMap)).append("\n"); - sb.append(" nullableString: ").append(toIndentedString(nullableString)).append("\n"); - sb.append(" nullableArray: ").append(toIndentedString(nullableArray)).append("\n"); - sb.append(" nullableSet: ").append(toIndentedString(nullableSet)).append("\n"); - sb.append(" defaultString: ").append(toIndentedString(defaultString)).append("\n"); - sb.append(" defaultInteger: ").append(toIndentedString(defaultInteger)).append("\n"); - sb.append(" defaultLong: ").append(toIndentedString(defaultLong)).append("\n"); - sb.append(" defaultNullable: ").append(toIndentedString(defaultNullable)).append("\n"); - sb.append(" referenedModel: ").append(toIndentedString(referenedModel)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/gen/main/java/testmodel/javaclient/OneOfImplementor1.java b/gen/main/java/testmodel/javaclient/OneOfImplementor1.java deleted file mode 100644 index 9aba2cc3..00000000 --- a/gen/main/java/testmodel/javaclient/OneOfImplementor1.java +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Spec for api tests. - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package testmodel.javaclient; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** - * OneOfImplementor1 - */ -@JsonPropertyOrder({ - OneOfImplementor1.JSON_PROPERTY_PROPERTY -}) -@java.lang.SuppressWarnings("all") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class OneOfImplementor1 { - public static final String JSON_PROPERTY_PROPERTY = "property"; - private String property; - - public OneOfImplementor1() { - } - - public OneOfImplementor1 property(String property) { - - this.property = property; - return this; - } - - /** - * Get property - * @return property - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getProperty() { - return property; - } - - - @JsonProperty(JSON_PROPERTY_PROPERTY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setProperty(String property) { - this.property = property; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - OneOfImplementor1 oneOfImplementor1 = (OneOfImplementor1) o; - return Objects.equals(this.property, oneOfImplementor1.property); - } - - @Override - public int hashCode() { - return Objects.hash(property); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class OneOfImplementor1 {\n"); - sb.append(" property: ").append(toIndentedString(property)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/gen/main/java/testmodel/javaclient/OneOfImplementor2.java b/gen/main/java/testmodel/javaclient/OneOfImplementor2.java deleted file mode 100644 index 22530432..00000000 --- a/gen/main/java/testmodel/javaclient/OneOfImplementor2.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Spec for api tests. - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package testmodel.javaclient; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.math.BigDecimal; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** - * OneOfImplementor2 - */ -@JsonPropertyOrder({ - OneOfImplementor2.JSON_PROPERTY_PROPERTY -}) -@java.lang.SuppressWarnings("all") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class OneOfImplementor2 { - public static final String JSON_PROPERTY_PROPERTY = "property"; - private BigDecimal property; - - public OneOfImplementor2() { - } - - public OneOfImplementor2 property(BigDecimal property) { - - this.property = property; - return this; - } - - /** - * Get property - * @return property - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public BigDecimal getProperty() { - return property; - } - - - @JsonProperty(JSON_PROPERTY_PROPERTY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setProperty(BigDecimal property) { - this.property = property; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - OneOfImplementor2 oneOfImplementor2 = (OneOfImplementor2) o; - return Objects.equals(this.property, oneOfImplementor2.property); - } - - @Override - public int hashCode() { - return Objects.hash(property); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class OneOfImplementor2 {\n"); - sb.append(" property: ").append(toIndentedString(property)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/gen/main/java/testmodel/javaclient/OneOfInterface.java b/gen/main/java/testmodel/javaclient/OneOfInterface.java deleted file mode 100644 index cc16b294..00000000 --- a/gen/main/java/testmodel/javaclient/OneOfInterface.java +++ /dev/null @@ -1,152 +0,0 @@ -/* - * Spec for api tests. - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package testmodel.javaclient; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.math.BigDecimal; -import testmodel.javaclient.OneOfImplementor1; -import testmodel.javaclient.OneOfImplementor2; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** - * OneOfInterface - */ -@JsonPropertyOrder({ - OneOfInterface.JSON_PROPERTY_TYPE, - OneOfInterface.JSON_PROPERTY_PROPERTY -}) -@java.lang.SuppressWarnings("all") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -@JsonIgnoreProperties( - value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization - allowSetters = true // allows the type to be set during deserialization -) -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", visible = true) -@JsonSubTypes({ - @JsonSubTypes.Type(value = OneOfImplementor1.class, name = "Implementation1"), - @JsonSubTypes.Type(value = OneOfImplementor2.class, name = "Implementation2"), -}) - -public class OneOfInterface { - public static final String JSON_PROPERTY_TYPE = "type"; - protected String type; - - public static final String JSON_PROPERTY_PROPERTY = "property"; - private BigDecimal property; - - public OneOfInterface() { - } - - public OneOfInterface type(String type) { - - this.type = type; - return this; - } - - /** - * Get type - * @return type - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getType() { - return type; - } - - - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(String type) { - this.type = type; - } - - - public OneOfInterface property(BigDecimal property) { - - this.property = property; - return this; - } - - /** - * Get property - * @return property - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public BigDecimal getProperty() { - return property; - } - - - @JsonProperty(JSON_PROPERTY_PROPERTY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setProperty(BigDecimal property) { - this.property = property; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - OneOfInterface oneOfInterface = (OneOfInterface) o; - return Objects.equals(this.type, oneOfInterface.type) && - Objects.equals(this.property, oneOfInterface.property); - } - - @Override - public int hashCode() { - return Objects.hash(type, property); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class OneOfInterface {\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" property: ").append(toIndentedString(property)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/gen/main/java/testmodel/javaclient/OneOfModel.java b/gen/main/java/testmodel/javaclient/OneOfModel.java deleted file mode 100644 index b39b9c05..00000000 --- a/gen/main/java/testmodel/javaclient/OneOfModel.java +++ /dev/null @@ -1,234 +0,0 @@ -/* - * Spec for api tests. - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package testmodel.javaclient; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import testmodel.javaclient.FirstModel; -import testmodel.javaclient.SecondLevelModel; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** - * OneOfModel - */ -@JsonPropertyOrder({ - OneOfModel.JSON_PROPERTY_TYPE, - OneOfModel.JSON_PROPERTY_FIRST, - OneOfModel.JSON_PROPERTY_SECOND_LEVEL, - OneOfModel.JSON_PROPERTY_ONE, - OneOfModel.JSON_PROPERTY_TWO -}) -@java.lang.SuppressWarnings("all") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class OneOfModel { - public static final String JSON_PROPERTY_TYPE = "type"; - private String type; - - public static final String JSON_PROPERTY_FIRST = "first"; - private String first; - - public static final String JSON_PROPERTY_SECOND_LEVEL = "secondLevel"; - private SecondLevelModel secondLevel; - - public static final String JSON_PROPERTY_ONE = "one"; - private String one; - - public static final String JSON_PROPERTY_TWO = "two"; - private String two; - - public OneOfModel() { - } - - public OneOfModel type(String type) { - - this.type = type; - return this; - } - - /** - * Get type - * @return type - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getType() { - return type; - } - - - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(String type) { - this.type = type; - } - - - public OneOfModel first(String first) { - - this.first = first; - return this; - } - - /** - * Get first - * @return first - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FIRST) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getFirst() { - return first; - } - - - @JsonProperty(JSON_PROPERTY_FIRST) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFirst(String first) { - this.first = first; - } - - - public OneOfModel secondLevel(SecondLevelModel secondLevel) { - - this.secondLevel = secondLevel; - return this; - } - - /** - * Get secondLevel - * @return secondLevel - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SECOND_LEVEL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public SecondLevelModel getSecondLevel() { - return secondLevel; - } - - - @JsonProperty(JSON_PROPERTY_SECOND_LEVEL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSecondLevel(SecondLevelModel secondLevel) { - this.secondLevel = secondLevel; - } - - - public OneOfModel one(String one) { - - this.one = one; - return this; - } - - /** - * Get one - * @return one - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ONE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getOne() { - return one; - } - - - @JsonProperty(JSON_PROPERTY_ONE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOne(String one) { - this.one = one; - } - - - public OneOfModel two(String two) { - - this.two = two; - return this; - } - - /** - * Get two - * @return two - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TWO) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getTwo() { - return two; - } - - - @JsonProperty(JSON_PROPERTY_TWO) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTwo(String two) { - this.two = two; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - OneOfModel oneOfModel = (OneOfModel) o; - return Objects.equals(this.type, oneOfModel.type) && - Objects.equals(this.first, oneOfModel.first) && - Objects.equals(this.secondLevel, oneOfModel.secondLevel) && - Objects.equals(this.one, oneOfModel.one) && - Objects.equals(this.two, oneOfModel.two); - } - - @Override - public int hashCode() { - return Objects.hash(type, first, secondLevel, one, two); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class OneOfModel {\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" first: ").append(toIndentedString(first)).append("\n"); - sb.append(" secondLevel: ").append(toIndentedString(secondLevel)).append("\n"); - sb.append(" one: ").append(toIndentedString(one)).append("\n"); - sb.append(" two: ").append(toIndentedString(two)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/gen/main/java/testmodel/javaclient/PropertyTypeOne.java b/gen/main/java/testmodel/javaclient/PropertyTypeOne.java deleted file mode 100644 index 77a90083..00000000 --- a/gen/main/java/testmodel/javaclient/PropertyTypeOne.java +++ /dev/null @@ -1,138 +0,0 @@ -/* - * Spec for api tests. - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package testmodel.javaclient; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** - * PropertyTypeOne - */ -@JsonPropertyOrder({ - PropertyTypeOne.JSON_PROPERTY_TYPE -}) -@java.lang.SuppressWarnings("all") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class PropertyTypeOne { - /** - * Gets or Sets type - */ - @java.lang.SuppressWarnings("all") -public enum TypeEnum { - ONE("one"); - - private String value; - - TypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static TypeEnum fromValue(String value) { - for (TypeEnum b : TypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type; - - public PropertyTypeOne() { - } - - public PropertyTypeOne type(TypeEnum type) { - - this.type = type; - return this; - } - - /** - * Get type - * @return type - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public TypeEnum getType() { - return type; - } - - - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(TypeEnum type) { - this.type = type; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PropertyTypeOne propertyTypeOne = (PropertyTypeOne) o; - return Objects.equals(this.type, propertyTypeOne.type); - } - - @Override - public int hashCode() { - return Objects.hash(type); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class PropertyTypeOne {\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/gen/main/java/testmodel/javaclient/PropertyTypeTwo.java b/gen/main/java/testmodel/javaclient/PropertyTypeTwo.java deleted file mode 100644 index 9caf41eb..00000000 --- a/gen/main/java/testmodel/javaclient/PropertyTypeTwo.java +++ /dev/null @@ -1,138 +0,0 @@ -/* - * Spec for api tests. - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package testmodel.javaclient; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** - * PropertyTypeTwo - */ -@JsonPropertyOrder({ - PropertyTypeTwo.JSON_PROPERTY_TYPE -}) -@java.lang.SuppressWarnings("all") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class PropertyTypeTwo { - /** - * Gets or Sets type - */ - @java.lang.SuppressWarnings("all") -public enum TypeEnum { - TWO("two"); - - private String value; - - TypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static TypeEnum fromValue(String value) { - for (TypeEnum b : TypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type; - - public PropertyTypeTwo() { - } - - public PropertyTypeTwo type(TypeEnum type) { - - this.type = type; - return this; - } - - /** - * Get type - * @return type - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public TypeEnum getType() { - return type; - } - - - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(TypeEnum type) { - this.type = type; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PropertyTypeTwo propertyTypeTwo = (PropertyTypeTwo) o; - return Objects.equals(this.type, propertyTypeTwo.type); - } - - @Override - public int hashCode() { - return Objects.hash(type); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class PropertyTypeTwo {\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/gen/main/java/testmodel/javaclient/SecondLevelModel.java b/gen/main/java/testmodel/javaclient/SecondLevelModel.java deleted file mode 100644 index 18221167..00000000 --- a/gen/main/java/testmodel/javaclient/SecondLevelModel.java +++ /dev/null @@ -1,170 +0,0 @@ -/* - * Spec for api tests. - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package testmodel.javaclient; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import testmodel.javaclient.SecondLevelOneModel; -import testmodel.javaclient.SecondLevelTwoModel; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** - * SecondLevelModel - */ -@JsonPropertyOrder({ - SecondLevelModel.JSON_PROPERTY_TYPE, - SecondLevelModel.JSON_PROPERTY_ONE, - SecondLevelModel.JSON_PROPERTY_TWO -}) -@java.lang.SuppressWarnings("all") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class SecondLevelModel { - public static final String JSON_PROPERTY_TYPE = "type"; - private String type; - - public static final String JSON_PROPERTY_ONE = "one"; - private String one; - - public static final String JSON_PROPERTY_TWO = "two"; - private String two; - - public SecondLevelModel() { - } - - public SecondLevelModel type(String type) { - - this.type = type; - return this; - } - - /** - * Get type - * @return type - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getType() { - return type; - } - - - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(String type) { - this.type = type; - } - - - public SecondLevelModel one(String one) { - - this.one = one; - return this; - } - - /** - * Get one - * @return one - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ONE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getOne() { - return one; - } - - - @JsonProperty(JSON_PROPERTY_ONE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOne(String one) { - this.one = one; - } - - - public SecondLevelModel two(String two) { - - this.two = two; - return this; - } - - /** - * Get two - * @return two - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TWO) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getTwo() { - return two; - } - - - @JsonProperty(JSON_PROPERTY_TWO) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTwo(String two) { - this.two = two; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SecondLevelModel secondLevelModel = (SecondLevelModel) o; - return Objects.equals(this.type, secondLevelModel.type) && - Objects.equals(this.one, secondLevelModel.one) && - Objects.equals(this.two, secondLevelModel.two); - } - - @Override - public int hashCode() { - return Objects.hash(type, one, two); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SecondLevelModel {\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" one: ").append(toIndentedString(one)).append("\n"); - sb.append(" two: ").append(toIndentedString(two)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/gen/main/java/testmodel/javaclient/SecondLevelOneModel.java b/gen/main/java/testmodel/javaclient/SecondLevelOneModel.java deleted file mode 100644 index 653d98a1..00000000 --- a/gen/main/java/testmodel/javaclient/SecondLevelOneModel.java +++ /dev/null @@ -1,136 +0,0 @@ -/* - * Spec for api tests. - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package testmodel.javaclient; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** - * SecondLevelOneModel - */ -@JsonPropertyOrder({ - SecondLevelOneModel.JSON_PROPERTY_TYPE, - SecondLevelOneModel.JSON_PROPERTY_ONE -}) -@java.lang.SuppressWarnings("all") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class SecondLevelOneModel { - public static final String JSON_PROPERTY_TYPE = "type"; - private String type; - - public static final String JSON_PROPERTY_ONE = "one"; - private String one; - - public SecondLevelOneModel() { - } - - public SecondLevelOneModel type(String type) { - - this.type = type; - return this; - } - - /** - * Get type - * @return type - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getType() { - return type; - } - - - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(String type) { - this.type = type; - } - - - public SecondLevelOneModel one(String one) { - - this.one = one; - return this; - } - - /** - * Get one - * @return one - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ONE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getOne() { - return one; - } - - - @JsonProperty(JSON_PROPERTY_ONE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOne(String one) { - this.one = one; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SecondLevelOneModel secondLevelOneModel = (SecondLevelOneModel) o; - return Objects.equals(this.type, secondLevelOneModel.type) && - Objects.equals(this.one, secondLevelOneModel.one); - } - - @Override - public int hashCode() { - return Objects.hash(type, one); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SecondLevelOneModel {\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" one: ").append(toIndentedString(one)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/gen/main/java/testmodel/javaclient/SecondLevelTwoModel.java b/gen/main/java/testmodel/javaclient/SecondLevelTwoModel.java deleted file mode 100644 index 1752362b..00000000 --- a/gen/main/java/testmodel/javaclient/SecondLevelTwoModel.java +++ /dev/null @@ -1,136 +0,0 @@ -/* - * Spec for api tests. - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package testmodel.javaclient; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** - * SecondLevelTwoModel - */ -@JsonPropertyOrder({ - SecondLevelTwoModel.JSON_PROPERTY_TYPE, - SecondLevelTwoModel.JSON_PROPERTY_TWO -}) -@java.lang.SuppressWarnings("all") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class SecondLevelTwoModel { - public static final String JSON_PROPERTY_TYPE = "type"; - private String type; - - public static final String JSON_PROPERTY_TWO = "two"; - private String two; - - public SecondLevelTwoModel() { - } - - public SecondLevelTwoModel type(String type) { - - this.type = type; - return this; - } - - /** - * Get type - * @return type - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getType() { - return type; - } - - - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(String type) { - this.type = type; - } - - - public SecondLevelTwoModel two(String two) { - - this.two = two; - return this; - } - - /** - * Get two - * @return two - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TWO) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getTwo() { - return two; - } - - - @JsonProperty(JSON_PROPERTY_TWO) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTwo(String two) { - this.two = two; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SecondLevelTwoModel secondLevelTwoModel = (SecondLevelTwoModel) o; - return Objects.equals(this.type, secondLevelTwoModel.type) && - Objects.equals(this.two, secondLevelTwoModel.two); - } - - @Override - public int hashCode() { - return Objects.hash(type, two); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SecondLevelTwoModel {\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" two: ").append(toIndentedString(two)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/pom.xml b/pom.xml index 891fd1b0..ab4edcf8 100644 --- a/pom.xml +++ b/pom.xml @@ -73,7 +73,7 @@ 4.1.6 - 7.0.1 + 7.1.0 0.2.6 diff --git a/src/test/java/org/openapitools/codegen/languages/OtherCodegenTest.java b/src/test/java/org/openapitools/codegen/languages/OtherCodegenTest.java index 07ee14cf..ae2d2dda 100644 --- a/src/test/java/org/openapitools/codegen/languages/OtherCodegenTest.java +++ b/src/test/java/org/openapitools/codegen/languages/OtherCodegenTest.java @@ -32,13 +32,6 @@ void modelMicronaut() { generate(JavaMicronautServerCodegen.class, SPEC_MODEL, "testmodel.micronaut-java", configurator -> {}); } - @DisplayName("model: java") - @Test - void modelJava() { - generate(JavaClientCodegen.class, SPEC_MODEL, "testmodel.javaclient", configurator -> configurator - .addAdditionalProperty(CodegenConstants.LIBRARY, JavaClientCodegen.JERSEY1)); - } - @DisplayName("model: jaxrs") @Test void modelJaxRS() {