Skip to content

Commit 0ad096f

Browse files
committed
add schemaType to CodegenProperty
1 parent aa915ae commit 0ad096f

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

modules/swagger-codegen/src/main/java/io/swagger/codegen/v3/CodegenProperty.java

+13-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
public class CodegenProperty extends CodegenObject implements Cloneable {
1010
public String baseName, complexType, getter, setter, description, datatype,
1111
datatypeWithEnum, dataFormat, name, min, max, defaultValue, defaultValueWithParam,
12-
baseType, containerType, title;
12+
baseType, containerType, title, schemaType;
1313

1414
/** The 'description' string without escape charcters needed by some programming languages/targets */
1515
public String unescapedDescription;
@@ -248,6 +248,14 @@ public void setMaximum(String maximum) {
248248
this.maximum = maximum;
249249
}
250250

251+
public String getSchemaType() {
252+
return schemaType;
253+
}
254+
255+
public void setSchemaType(String schemaType) {
256+
this.schemaType = schemaType;
257+
}
258+
251259
public boolean getExclusiveMinimum() {
252260
return exclusiveMinimum;
253261
}
@@ -386,6 +394,7 @@ public int hashCode()
386394
result = prime * result + ((_enum == null) ? 0 : _enum.hashCode());
387395
result = prime * result + ((allowableValues == null) ? 0 : allowableValues.hashCode());
388396
result = prime * result + ((baseName == null) ? 0 : baseName.hashCode());
397+
result = prime * result + ((schemaType == null) ? 0 : schemaType.hashCode());
389398
result = prime * result + ((baseType == null) ? 0 : baseType.hashCode());
390399
result = prime * result + ((complexType == null) ? 0 : complexType.hashCode());
391400
result = prime * result + ((containerType == null) ? 0 : containerType.hashCode());
@@ -438,6 +447,9 @@ public boolean equals(Object obj) {
438447
if ((this.baseName == null) ? (other.baseName != null) : !this.baseName.equals(other.baseName)) {
439448
return false;
440449
}
450+
if ((this.schemaType == null) ? (other.schemaType != null) : !this.schemaType.equals(other.schemaType)) {
451+
return false;
452+
}
441453
if ((this.complexType == null) ? (other.complexType != null) : !this.complexType.equals(other.complexType)) {
442454
return false;
443455
}

0 commit comments

Comments
 (0)