Skip to content

Commit af9a898

Browse files
committed
Add dataTypeAlias to equals/hashCode/toString
1 parent 9658c05 commit af9a898

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -986,6 +986,7 @@ public String toString() {
986986
sb.append(", setter='").append(setter).append('\'');
987987
sb.append(", description='").append(description).append('\'');
988988
sb.append(", dataType='").append(dataType).append('\'');
989+
sb.append(", dataTypeAlias='").append(dataTypeAlias).append('\'');
989990
sb.append(", datatypeWithEnum='").append(datatypeWithEnum).append('\'');
990991
sb.append(", dataFormat='").append(dataFormat).append('\'');
991992
sb.append(", name='").append(name).append('\'');
@@ -1173,6 +1174,7 @@ public boolean equals(Object o) {
11731174
Objects.equals(setter, that.setter) &&
11741175
Objects.equals(description, that.description) &&
11751176
Objects.equals(dataType, that.dataType) &&
1177+
Objects.equals(dataTypeAlias, that.dataTypeAlias) &&
11761178
Objects.equals(datatypeWithEnum, that.datatypeWithEnum) &&
11771179
Objects.equals(dataFormat, that.dataFormat) &&
11781180
Objects.equals(name, that.name) &&
@@ -1217,7 +1219,7 @@ public boolean equals(Object o) {
12171219
public int hashCode() {
12181220

12191221
return Objects.hash(openApiType, baseName, complexType, getter, setter, description,
1220-
dataType, datatypeWithEnum, dataFormat, name, min, max, defaultValue,
1222+
dataType, dataTypeAlias, datatypeWithEnum, dataFormat, name, min, max, defaultValue,
12211223
defaultValueWithParam, baseType, containerType, containerTypeMapped, title, unescapedDescription,
12221224
maxLength, minLength, pattern, example, jsonSchema, minimum, maximum,
12231225
exclusiveMinimum, exclusiveMaximum, required, deprecated,

0 commit comments

Comments
 (0)