Skip to content

Commit

Permalink
add schemaType to CodegenProperty
Browse files Browse the repository at this point in the history
  • Loading branch information
frantuma committed Aug 26, 2024
1 parent aa915ae commit 0ad096f
Showing 1 changed file with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
public class CodegenProperty extends CodegenObject implements Cloneable {
public String baseName, complexType, getter, setter, description, datatype,
datatypeWithEnum, dataFormat, name, min, max, defaultValue, defaultValueWithParam,
baseType, containerType, title;
baseType, containerType, title, schemaType;

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

public String getSchemaType() {
return schemaType;
}

public void setSchemaType(String schemaType) {
this.schemaType = schemaType;
}

public boolean getExclusiveMinimum() {
return exclusiveMinimum;
}
Expand Down Expand Up @@ -386,6 +394,7 @@ public int hashCode()
result = prime * result + ((_enum == null) ? 0 : _enum.hashCode());
result = prime * result + ((allowableValues == null) ? 0 : allowableValues.hashCode());
result = prime * result + ((baseName == null) ? 0 : baseName.hashCode());
result = prime * result + ((schemaType == null) ? 0 : schemaType.hashCode());
result = prime * result + ((baseType == null) ? 0 : baseType.hashCode());
result = prime * result + ((complexType == null) ? 0 : complexType.hashCode());
result = prime * result + ((containerType == null) ? 0 : containerType.hashCode());
Expand Down Expand Up @@ -438,6 +447,9 @@ public boolean equals(Object obj) {
if ((this.baseName == null) ? (other.baseName != null) : !this.baseName.equals(other.baseName)) {
return false;
}
if ((this.schemaType == null) ? (other.schemaType != null) : !this.schemaType.equals(other.schemaType)) {
return false;
}
if ((this.complexType == null) ? (other.complexType != null) : !this.complexType.equals(other.complexType)) {
return false;
}
Expand Down

0 comments on commit 0ad096f

Please sign in to comment.