|
9 | 9 | public class CodegenProperty extends CodegenObject implements Cloneable { |
10 | 10 | public String baseName, complexType, getter, setter, description, datatype, |
11 | 11 | datatypeWithEnum, dataFormat, name, min, max, defaultValue, defaultValueWithParam, |
12 | | - baseType, containerType, title; |
| 12 | + baseType, containerType, title, schemaType; |
13 | 13 |
|
14 | 14 | /** The 'description' string without escape charcters needed by some programming languages/targets */ |
15 | 15 | public String unescapedDescription; |
@@ -248,6 +248,14 @@ public void setMaximum(String maximum) { |
248 | 248 | this.maximum = maximum; |
249 | 249 | } |
250 | 250 |
|
| 251 | + public String getSchemaType() { |
| 252 | + return schemaType; |
| 253 | + } |
| 254 | + |
| 255 | + public void setSchemaType(String schemaType) { |
| 256 | + this.schemaType = schemaType; |
| 257 | + } |
| 258 | + |
251 | 259 | public boolean getExclusiveMinimum() { |
252 | 260 | return exclusiveMinimum; |
253 | 261 | } |
@@ -386,6 +394,7 @@ public int hashCode() |
386 | 394 | result = prime * result + ((_enum == null) ? 0 : _enum.hashCode()); |
387 | 395 | result = prime * result + ((allowableValues == null) ? 0 : allowableValues.hashCode()); |
388 | 396 | result = prime * result + ((baseName == null) ? 0 : baseName.hashCode()); |
| 397 | + result = prime * result + ((schemaType == null) ? 0 : schemaType.hashCode()); |
389 | 398 | result = prime * result + ((baseType == null) ? 0 : baseType.hashCode()); |
390 | 399 | result = prime * result + ((complexType == null) ? 0 : complexType.hashCode()); |
391 | 400 | result = prime * result + ((containerType == null) ? 0 : containerType.hashCode()); |
@@ -438,6 +447,9 @@ public boolean equals(Object obj) { |
438 | 447 | if ((this.baseName == null) ? (other.baseName != null) : !this.baseName.equals(other.baseName)) { |
439 | 448 | return false; |
440 | 449 | } |
| 450 | + if ((this.schemaType == null) ? (other.schemaType != null) : !this.schemaType.equals(other.schemaType)) { |
| 451 | + return false; |
| 452 | + } |
441 | 453 | if ((this.complexType == null) ? (other.complexType != null) : !this.complexType.equals(other.complexType)) { |
442 | 454 | return false; |
443 | 455 | } |
|
0 commit comments