forked from loafle/openapi-generator-original
Better tests for string (number) (#3953)
* beter test for string (number) * fix mapping * fix mapping in csharp generators
This commit is contained in:
@@ -54,6 +54,9 @@ public class FormatTest {
|
||||
@JsonProperty("password")
|
||||
private String password;
|
||||
|
||||
@JsonProperty("BigDecimal")
|
||||
private BigDecimal bigDecimal;
|
||||
|
||||
public FormatTest integer(Integer integer) {
|
||||
this.integer = integer;
|
||||
return this;
|
||||
@@ -298,6 +301,24 @@ public class FormatTest {
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
public FormatTest bigDecimal(BigDecimal bigDecimal) {
|
||||
this.bigDecimal = bigDecimal;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get bigDecimal
|
||||
* @return bigDecimal
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public BigDecimal getBigDecimal() {
|
||||
return bigDecimal;
|
||||
}
|
||||
|
||||
public void setBigDecimal(BigDecimal bigDecimal) {
|
||||
this.bigDecimal = bigDecimal;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
@@ -320,12 +341,13 @@ public class FormatTest {
|
||||
Objects.equals(this.date, formatTest.date) &&
|
||||
Objects.equals(this.dateTime, formatTest.dateTime) &&
|
||||
Objects.equals(this.uuid, formatTest.uuid) &&
|
||||
Objects.equals(this.password, formatTest.password);
|
||||
Objects.equals(this.password, formatTest.password) &&
|
||||
Objects.equals(this.bigDecimal, formatTest.bigDecimal);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(integer, int32, int64, number, _float, _double, string, _byte, binary, date, dateTime, uuid, password);
|
||||
return Objects.hash(integer, int32, int64, number, _float, _double, string, _byte, binary, date, dateTime, uuid, password, bigDecimal);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -346,6 +368,7 @@ public class FormatTest {
|
||||
sb.append(" dateTime: ").append(toIndentedString(dateTime)).append("\n");
|
||||
sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n");
|
||||
sb.append(" password: ").append(toIndentedString(password)).append("\n");
|
||||
sb.append(" bigDecimal: ").append(toIndentedString(bigDecimal)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
@@ -55,6 +55,9 @@ public class FormatTest {
|
||||
@JsonProperty("password")
|
||||
private String password;
|
||||
|
||||
@JsonProperty("BigDecimal")
|
||||
private BigDecimal bigDecimal;
|
||||
|
||||
public FormatTest integer(Integer integer) {
|
||||
this.integer = integer;
|
||||
return this;
|
||||
@@ -308,6 +311,24 @@ public class FormatTest {
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
public FormatTest bigDecimal(BigDecimal bigDecimal) {
|
||||
this.bigDecimal = bigDecimal;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get bigDecimal
|
||||
* @return bigDecimal
|
||||
**/
|
||||
@Valid
|
||||
public BigDecimal getBigDecimal() {
|
||||
return bigDecimal;
|
||||
}
|
||||
|
||||
public void setBigDecimal(BigDecimal bigDecimal) {
|
||||
this.bigDecimal = bigDecimal;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
@@ -330,12 +351,13 @@ public class FormatTest {
|
||||
Objects.equals(date, formatTest.date) &&
|
||||
Objects.equals(dateTime, formatTest.dateTime) &&
|
||||
Objects.equals(uuid, formatTest.uuid) &&
|
||||
Objects.equals(password, formatTest.password);
|
||||
Objects.equals(password, formatTest.password) &&
|
||||
Objects.equals(bigDecimal, formatTest.bigDecimal);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(integer, int32, int64, number, _float, _double, string, _byte, binary, date, dateTime, uuid, password);
|
||||
return Objects.hash(integer, int32, int64, number, _float, _double, string, _byte, binary, date, dateTime, uuid, password, bigDecimal);
|
||||
}
|
||||
|
||||
@SuppressWarnings("StringBufferReplaceableByString")
|
||||
@@ -357,6 +379,7 @@ public class FormatTest {
|
||||
sb.append(" dateTime: ").append(toIndentedString(dateTime)).append("\n");
|
||||
sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n");
|
||||
sb.append(" password: ").append(toIndentedString(password)).append("\n");
|
||||
sb.append(" bigDecimal: ").append(toIndentedString(bigDecimal)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
@@ -2021,6 +2021,10 @@
|
||||
"maxLength" : 64,
|
||||
"minLength" : 10,
|
||||
"type" : "string"
|
||||
},
|
||||
"BigDecimal" : {
|
||||
"format" : "number",
|
||||
"type" : "string"
|
||||
}
|
||||
},
|
||||
"required" : [ "byte", "date", "number", "password" ],
|
||||
|
||||
@@ -59,6 +59,9 @@ public class FormatTest {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private String password;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private BigDecimal bigDecimal;
|
||||
/**
|
||||
* Get integer
|
||||
* minimum: 10
|
||||
@@ -307,6 +310,24 @@ public class FormatTest {
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get bigDecimal
|
||||
* @return bigDecimal
|
||||
**/
|
||||
@JsonProperty("BigDecimal")
|
||||
public BigDecimal getBigDecimal() {
|
||||
return bigDecimal;
|
||||
}
|
||||
|
||||
public void setBigDecimal(BigDecimal bigDecimal) {
|
||||
this.bigDecimal = bigDecimal;
|
||||
}
|
||||
|
||||
public FormatTest bigDecimal(BigDecimal bigDecimal) {
|
||||
this.bigDecimal = bigDecimal;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
@@ -326,6 +347,7 @@ public class FormatTest {
|
||||
sb.append(" dateTime: ").append(toIndentedString(dateTime)).append("\n");
|
||||
sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n");
|
||||
sb.append(" password: ").append(toIndentedString(password)).append("\n");
|
||||
sb.append(" bigDecimal: ").append(toIndentedString(bigDecimal)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
@@ -44,7 +44,8 @@ import javax.validation.Valid;
|
||||
FormatTest.JSON_PROPERTY_DATE,
|
||||
FormatTest.JSON_PROPERTY_DATE_TIME,
|
||||
FormatTest.JSON_PROPERTY_UUID,
|
||||
FormatTest.JSON_PROPERTY_PASSWORD
|
||||
FormatTest.JSON_PROPERTY_PASSWORD,
|
||||
FormatTest.JSON_PROPERTY_BIG_DECIMAL
|
||||
})
|
||||
|
||||
public class FormatTest implements Serializable {
|
||||
@@ -100,6 +101,10 @@ public class FormatTest implements Serializable {
|
||||
@JsonProperty(JSON_PROPERTY_PASSWORD)
|
||||
private String password;
|
||||
|
||||
public static final String JSON_PROPERTY_BIG_DECIMAL = "BigDecimal";
|
||||
@JsonProperty(JSON_PROPERTY_BIG_DECIMAL)
|
||||
private BigDecimal bigDecimal;
|
||||
|
||||
public FormatTest integer(Integer integer) {
|
||||
this.integer = integer;
|
||||
return this;
|
||||
@@ -370,6 +375,26 @@ public class FormatTest implements Serializable {
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
public FormatTest bigDecimal(BigDecimal bigDecimal) {
|
||||
this.bigDecimal = bigDecimal;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get bigDecimal
|
||||
* @return bigDecimal
|
||||
**/
|
||||
@JsonProperty("BigDecimal")
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
public BigDecimal getBigDecimal() {
|
||||
return bigDecimal;
|
||||
}
|
||||
|
||||
public void setBigDecimal(BigDecimal bigDecimal) {
|
||||
this.bigDecimal = bigDecimal;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
@@ -392,12 +417,13 @@ public class FormatTest implements Serializable {
|
||||
Objects.equals(this.date, formatTest.date) &&
|
||||
Objects.equals(this.dateTime, formatTest.dateTime) &&
|
||||
Objects.equals(this.uuid, formatTest.uuid) &&
|
||||
Objects.equals(this.password, formatTest.password);
|
||||
Objects.equals(this.password, formatTest.password) &&
|
||||
Objects.equals(this.bigDecimal, formatTest.bigDecimal);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(integer, int32, int64, number, _float, _double, string, _byte, binary, date, dateTime, uuid, password);
|
||||
return Objects.hash(integer, int32, int64, number, _float, _double, string, _byte, binary, date, dateTime, uuid, password, bigDecimal);
|
||||
}
|
||||
|
||||
|
||||
@@ -419,6 +445,7 @@ public class FormatTest implements Serializable {
|
||||
sb.append(" dateTime: ").append(toIndentedString(dateTime)).append("\n");
|
||||
sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n");
|
||||
sb.append(" password: ").append(toIndentedString(password)).append("\n");
|
||||
sb.append(" bigDecimal: ").append(toIndentedString(bigDecimal)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
@@ -34,6 +34,7 @@ public class FormatTest implements Serializable {
|
||||
private @Valid Date dateTime;
|
||||
private @Valid UUID uuid;
|
||||
private @Valid String password;
|
||||
private @Valid BigDecimal bigDecimal;
|
||||
|
||||
/**
|
||||
* minimum: 10
|
||||
@@ -270,6 +271,23 @@ public class FormatTest implements Serializable {
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
/**
|
||||
**/
|
||||
public FormatTest bigDecimal(BigDecimal bigDecimal) {
|
||||
this.bigDecimal = bigDecimal;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("BigDecimal")
|
||||
public BigDecimal getBigDecimal() {
|
||||
return bigDecimal;
|
||||
}
|
||||
public void setBigDecimal(BigDecimal bigDecimal) {
|
||||
this.bigDecimal = bigDecimal;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
@@ -292,12 +310,13 @@ public class FormatTest implements Serializable {
|
||||
Objects.equals(this.date, formatTest.date) &&
|
||||
Objects.equals(this.dateTime, formatTest.dateTime) &&
|
||||
Objects.equals(this.uuid, formatTest.uuid) &&
|
||||
Objects.equals(this.password, formatTest.password);
|
||||
Objects.equals(this.password, formatTest.password) &&
|
||||
Objects.equals(this.bigDecimal, formatTest.bigDecimal);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(integer, int32, int64, number, _float, _double, string, _byte, binary, date, dateTime, uuid, password);
|
||||
return Objects.hash(integer, int32, int64, number, _float, _double, string, _byte, binary, date, dateTime, uuid, password, bigDecimal);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -318,6 +337,7 @@ public class FormatTest implements Serializable {
|
||||
sb.append(" dateTime: ").append(toIndentedString(dateTime)).append("\n");
|
||||
sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n");
|
||||
sb.append(" password: ").append(toIndentedString(password)).append("\n");
|
||||
sb.append(" bigDecimal: ").append(toIndentedString(bigDecimal)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
@@ -1626,6 +1626,9 @@ components:
|
||||
maxLength: 64
|
||||
minLength: 10
|
||||
type: string
|
||||
BigDecimal:
|
||||
format: number
|
||||
type: string
|
||||
required:
|
||||
- byte
|
||||
- date
|
||||
|
||||
@@ -34,6 +34,7 @@ public class FormatTest implements Serializable {
|
||||
private @Valid Date dateTime;
|
||||
private @Valid UUID uuid;
|
||||
private @Valid String password;
|
||||
private @Valid BigDecimal bigDecimal;
|
||||
|
||||
/**
|
||||
* minimum: 10
|
||||
@@ -270,6 +271,23 @@ public class FormatTest implements Serializable {
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
/**
|
||||
**/
|
||||
public FormatTest bigDecimal(BigDecimal bigDecimal) {
|
||||
this.bigDecimal = bigDecimal;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("BigDecimal")
|
||||
public BigDecimal getBigDecimal() {
|
||||
return bigDecimal;
|
||||
}
|
||||
public void setBigDecimal(BigDecimal bigDecimal) {
|
||||
this.bigDecimal = bigDecimal;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
@@ -292,12 +310,13 @@ public class FormatTest implements Serializable {
|
||||
Objects.equals(this.date, formatTest.date) &&
|
||||
Objects.equals(this.dateTime, formatTest.dateTime) &&
|
||||
Objects.equals(this.uuid, formatTest.uuid) &&
|
||||
Objects.equals(this.password, formatTest.password);
|
||||
Objects.equals(this.password, formatTest.password) &&
|
||||
Objects.equals(this.bigDecimal, formatTest.bigDecimal);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(integer, int32, int64, number, _float, _double, string, _byte, binary, date, dateTime, uuid, password);
|
||||
return Objects.hash(integer, int32, int64, number, _float, _double, string, _byte, binary, date, dateTime, uuid, password, bigDecimal);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -318,6 +337,7 @@ public class FormatTest implements Serializable {
|
||||
sb.append(" dateTime: ").append(toIndentedString(dateTime)).append("\n");
|
||||
sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n");
|
||||
sb.append(" password: ").append(toIndentedString(password)).append("\n");
|
||||
sb.append(" bigDecimal: ").append(toIndentedString(bigDecimal)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
@@ -1626,6 +1626,9 @@ components:
|
||||
maxLength: 64
|
||||
minLength: 10
|
||||
type: string
|
||||
BigDecimal:
|
||||
format: number
|
||||
type: string
|
||||
required:
|
||||
- byte
|
||||
- date
|
||||
|
||||
@@ -42,7 +42,8 @@ import javax.validation.Valid;
|
||||
FormatTest.JSON_PROPERTY_DATE,
|
||||
FormatTest.JSON_PROPERTY_DATE_TIME,
|
||||
FormatTest.JSON_PROPERTY_UUID,
|
||||
FormatTest.JSON_PROPERTY_PASSWORD
|
||||
FormatTest.JSON_PROPERTY_PASSWORD,
|
||||
FormatTest.JSON_PROPERTY_BIG_DECIMAL
|
||||
})
|
||||
|
||||
public class FormatTest {
|
||||
@@ -98,6 +99,10 @@ public class FormatTest {
|
||||
@JsonProperty(JSON_PROPERTY_PASSWORD)
|
||||
private String password;
|
||||
|
||||
public static final String JSON_PROPERTY_BIG_DECIMAL = "BigDecimal";
|
||||
@JsonProperty(JSON_PROPERTY_BIG_DECIMAL)
|
||||
private BigDecimal bigDecimal;
|
||||
|
||||
public FormatTest integer(Integer integer) {
|
||||
this.integer = integer;
|
||||
return this;
|
||||
@@ -368,6 +373,26 @@ public class FormatTest {
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
public FormatTest bigDecimal(BigDecimal bigDecimal) {
|
||||
this.bigDecimal = bigDecimal;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get bigDecimal
|
||||
* @return bigDecimal
|
||||
**/
|
||||
@JsonProperty("BigDecimal")
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
public BigDecimal getBigDecimal() {
|
||||
return bigDecimal;
|
||||
}
|
||||
|
||||
public void setBigDecimal(BigDecimal bigDecimal) {
|
||||
this.bigDecimal = bigDecimal;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
@@ -390,12 +415,13 @@ public class FormatTest {
|
||||
Objects.equals(this.date, formatTest.date) &&
|
||||
Objects.equals(this.dateTime, formatTest.dateTime) &&
|
||||
Objects.equals(this.uuid, formatTest.uuid) &&
|
||||
Objects.equals(this.password, formatTest.password);
|
||||
Objects.equals(this.password, formatTest.password) &&
|
||||
Objects.equals(this.bigDecimal, formatTest.bigDecimal);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(integer, int32, int64, number, _float, _double, string, _byte, binary, date, dateTime, uuid, password);
|
||||
return Objects.hash(integer, int32, int64, number, _float, _double, string, _byte, binary, date, dateTime, uuid, password, bigDecimal);
|
||||
}
|
||||
|
||||
|
||||
@@ -417,6 +443,7 @@ public class FormatTest {
|
||||
sb.append(" dateTime: ").append(toIndentedString(dateTime)).append("\n");
|
||||
sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n");
|
||||
sb.append(" password: ").append(toIndentedString(password)).append("\n");
|
||||
sb.append(" bigDecimal: ").append(toIndentedString(bigDecimal)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
@@ -42,7 +42,8 @@ import javax.validation.Valid;
|
||||
FormatTest.JSON_PROPERTY_DATE,
|
||||
FormatTest.JSON_PROPERTY_DATE_TIME,
|
||||
FormatTest.JSON_PROPERTY_UUID,
|
||||
FormatTest.JSON_PROPERTY_PASSWORD
|
||||
FormatTest.JSON_PROPERTY_PASSWORD,
|
||||
FormatTest.JSON_PROPERTY_BIG_DECIMAL
|
||||
})
|
||||
|
||||
public class FormatTest {
|
||||
@@ -98,6 +99,10 @@ public class FormatTest {
|
||||
@JsonProperty(JSON_PROPERTY_PASSWORD)
|
||||
private String password;
|
||||
|
||||
public static final String JSON_PROPERTY_BIG_DECIMAL = "BigDecimal";
|
||||
@JsonProperty(JSON_PROPERTY_BIG_DECIMAL)
|
||||
private BigDecimal bigDecimal;
|
||||
|
||||
public FormatTest integer(Integer integer) {
|
||||
this.integer = integer;
|
||||
return this;
|
||||
@@ -368,6 +373,26 @@ public class FormatTest {
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
public FormatTest bigDecimal(BigDecimal bigDecimal) {
|
||||
this.bigDecimal = bigDecimal;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get bigDecimal
|
||||
* @return bigDecimal
|
||||
**/
|
||||
@JsonProperty("BigDecimal")
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
public BigDecimal getBigDecimal() {
|
||||
return bigDecimal;
|
||||
}
|
||||
|
||||
public void setBigDecimal(BigDecimal bigDecimal) {
|
||||
this.bigDecimal = bigDecimal;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
@@ -390,12 +415,13 @@ public class FormatTest {
|
||||
Objects.equals(this.date, formatTest.date) &&
|
||||
Objects.equals(this.dateTime, formatTest.dateTime) &&
|
||||
Objects.equals(this.uuid, formatTest.uuid) &&
|
||||
Objects.equals(this.password, formatTest.password);
|
||||
Objects.equals(this.password, formatTest.password) &&
|
||||
Objects.equals(this.bigDecimal, formatTest.bigDecimal);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(integer, int32, int64, number, _float, _double, string, _byte, binary, date, dateTime, uuid, password);
|
||||
return Objects.hash(integer, int32, int64, number, _float, _double, string, _byte, binary, date, dateTime, uuid, password, bigDecimal);
|
||||
}
|
||||
|
||||
|
||||
@@ -417,6 +443,7 @@ public class FormatTest {
|
||||
sb.append(" dateTime: ").append(toIndentedString(dateTime)).append("\n");
|
||||
sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n");
|
||||
sb.append(" password: ").append(toIndentedString(password)).append("\n");
|
||||
sb.append(" bigDecimal: ").append(toIndentedString(bigDecimal)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
@@ -42,7 +42,8 @@ import javax.validation.Valid;
|
||||
FormatTest.JSON_PROPERTY_DATE,
|
||||
FormatTest.JSON_PROPERTY_DATE_TIME,
|
||||
FormatTest.JSON_PROPERTY_UUID,
|
||||
FormatTest.JSON_PROPERTY_PASSWORD
|
||||
FormatTest.JSON_PROPERTY_PASSWORD,
|
||||
FormatTest.JSON_PROPERTY_BIG_DECIMAL
|
||||
})
|
||||
|
||||
public class FormatTest {
|
||||
@@ -98,6 +99,10 @@ public class FormatTest {
|
||||
@JsonProperty(JSON_PROPERTY_PASSWORD)
|
||||
private String password;
|
||||
|
||||
public static final String JSON_PROPERTY_BIG_DECIMAL = "BigDecimal";
|
||||
@JsonProperty(JSON_PROPERTY_BIG_DECIMAL)
|
||||
private BigDecimal bigDecimal;
|
||||
|
||||
public FormatTest integer(Integer integer) {
|
||||
this.integer = integer;
|
||||
return this;
|
||||
@@ -368,6 +373,26 @@ public class FormatTest {
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
public FormatTest bigDecimal(BigDecimal bigDecimal) {
|
||||
this.bigDecimal = bigDecimal;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get bigDecimal
|
||||
* @return bigDecimal
|
||||
**/
|
||||
@JsonProperty("BigDecimal")
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
public BigDecimal getBigDecimal() {
|
||||
return bigDecimal;
|
||||
}
|
||||
|
||||
public void setBigDecimal(BigDecimal bigDecimal) {
|
||||
this.bigDecimal = bigDecimal;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
@@ -390,12 +415,13 @@ public class FormatTest {
|
||||
Objects.equals(this.date, formatTest.date) &&
|
||||
Objects.equals(this.dateTime, formatTest.dateTime) &&
|
||||
Objects.equals(this.uuid, formatTest.uuid) &&
|
||||
Objects.equals(this.password, formatTest.password);
|
||||
Objects.equals(this.password, formatTest.password) &&
|
||||
Objects.equals(this.bigDecimal, formatTest.bigDecimal);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(integer, int32, int64, number, _float, _double, string, _byte, binary, date, dateTime, uuid, password);
|
||||
return Objects.hash(integer, int32, int64, number, _float, _double, string, _byte, binary, date, dateTime, uuid, password, bigDecimal);
|
||||
}
|
||||
|
||||
|
||||
@@ -417,6 +443,7 @@ public class FormatTest {
|
||||
sb.append(" dateTime: ").append(toIndentedString(dateTime)).append("\n");
|
||||
sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n");
|
||||
sb.append(" password: ").append(toIndentedString(password)).append("\n");
|
||||
sb.append(" bigDecimal: ").append(toIndentedString(bigDecimal)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
@@ -42,7 +42,8 @@ import javax.validation.Valid;
|
||||
FormatTest.JSON_PROPERTY_DATE,
|
||||
FormatTest.JSON_PROPERTY_DATE_TIME,
|
||||
FormatTest.JSON_PROPERTY_UUID,
|
||||
FormatTest.JSON_PROPERTY_PASSWORD
|
||||
FormatTest.JSON_PROPERTY_PASSWORD,
|
||||
FormatTest.JSON_PROPERTY_BIG_DECIMAL
|
||||
})
|
||||
|
||||
public class FormatTest {
|
||||
@@ -98,6 +99,10 @@ public class FormatTest {
|
||||
@JsonProperty(JSON_PROPERTY_PASSWORD)
|
||||
private String password;
|
||||
|
||||
public static final String JSON_PROPERTY_BIG_DECIMAL = "BigDecimal";
|
||||
@JsonProperty(JSON_PROPERTY_BIG_DECIMAL)
|
||||
private BigDecimal bigDecimal;
|
||||
|
||||
public FormatTest integer(Integer integer) {
|
||||
this.integer = integer;
|
||||
return this;
|
||||
@@ -368,6 +373,26 @@ public class FormatTest {
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
public FormatTest bigDecimal(BigDecimal bigDecimal) {
|
||||
this.bigDecimal = bigDecimal;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get bigDecimal
|
||||
* @return bigDecimal
|
||||
**/
|
||||
@JsonProperty("BigDecimal")
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
public BigDecimal getBigDecimal() {
|
||||
return bigDecimal;
|
||||
}
|
||||
|
||||
public void setBigDecimal(BigDecimal bigDecimal) {
|
||||
this.bigDecimal = bigDecimal;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
@@ -390,12 +415,13 @@ public class FormatTest {
|
||||
Objects.equals(this.date, formatTest.date) &&
|
||||
Objects.equals(this.dateTime, formatTest.dateTime) &&
|
||||
Objects.equals(this.uuid, formatTest.uuid) &&
|
||||
Objects.equals(this.password, formatTest.password);
|
||||
Objects.equals(this.password, formatTest.password) &&
|
||||
Objects.equals(this.bigDecimal, formatTest.bigDecimal);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(integer, int32, int64, number, _float, _double, string, _byte, binary, date, dateTime, uuid, password);
|
||||
return Objects.hash(integer, int32, int64, number, _float, _double, string, _byte, binary, date, dateTime, uuid, password, bigDecimal);
|
||||
}
|
||||
|
||||
|
||||
@@ -417,6 +443,7 @@ public class FormatTest {
|
||||
sb.append(" dateTime: ").append(toIndentedString(dateTime)).append("\n");
|
||||
sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n");
|
||||
sb.append(" password: ").append(toIndentedString(password)).append("\n");
|
||||
sb.append(" bigDecimal: ").append(toIndentedString(bigDecimal)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
@@ -63,4 +63,7 @@ class FormatTest
|
||||
|
||||
/** @var string $password */
|
||||
private $password;
|
||||
|
||||
/** @var BigDecimal $bigDecimal */
|
||||
private $bigDecimal;
|
||||
}
|
||||
|
||||
@@ -103,4 +103,11 @@ class FormatTest
|
||||
* @var string
|
||||
*/
|
||||
public $password;
|
||||
/**
|
||||
* @DTA\Data(field="BigDecimal", nullable=true)
|
||||
* @DTA\Strategy(name="Object", options={"type":BigDecimal::class})
|
||||
* @DTA\Validator(name="Dictionary", options={"type":BigDecimal::class})
|
||||
* @var BigDecimal
|
||||
*/
|
||||
public $big_decimal;
|
||||
}
|
||||
|
||||
@@ -58,6 +58,9 @@ public class FormatTest {
|
||||
@JsonProperty("password")
|
||||
private String password;
|
||||
|
||||
@JsonProperty("BigDecimal")
|
||||
private BigDecimal bigDecimal;
|
||||
|
||||
public FormatTest integer(Integer integer) {
|
||||
this.integer = integer;
|
||||
return this;
|
||||
@@ -337,6 +340,27 @@ public class FormatTest {
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
public FormatTest bigDecimal(BigDecimal bigDecimal) {
|
||||
this.bigDecimal = bigDecimal;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get bigDecimal
|
||||
* @return bigDecimal
|
||||
*/
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
@Valid
|
||||
|
||||
public BigDecimal getBigDecimal() {
|
||||
return bigDecimal;
|
||||
}
|
||||
|
||||
public void setBigDecimal(BigDecimal bigDecimal) {
|
||||
this.bigDecimal = bigDecimal;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
@@ -359,12 +383,13 @@ public class FormatTest {
|
||||
Objects.equals(this.date, formatTest.date) &&
|
||||
Objects.equals(this.dateTime, formatTest.dateTime) &&
|
||||
Objects.equals(this.uuid, formatTest.uuid) &&
|
||||
Objects.equals(this.password, formatTest.password);
|
||||
Objects.equals(this.password, formatTest.password) &&
|
||||
Objects.equals(this.bigDecimal, formatTest.bigDecimal);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(integer, int32, int64, number, _float, _double, string, _byte, binary, date, dateTime, uuid, password);
|
||||
return Objects.hash(integer, int32, int64, number, _float, _double, string, _byte, binary, date, dateTime, uuid, password, bigDecimal);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -385,6 +410,7 @@ public class FormatTest {
|
||||
sb.append(" dateTime: ").append(toIndentedString(dateTime)).append("\n");
|
||||
sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n");
|
||||
sb.append(" password: ").append(toIndentedString(password)).append("\n");
|
||||
sb.append(" bigDecimal: ").append(toIndentedString(bigDecimal)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
@@ -58,6 +58,9 @@ public class FormatTest {
|
||||
@JsonProperty("password")
|
||||
private String password;
|
||||
|
||||
@JsonProperty("BigDecimal")
|
||||
private BigDecimal bigDecimal;
|
||||
|
||||
public FormatTest integer(Integer integer) {
|
||||
this.integer = integer;
|
||||
return this;
|
||||
@@ -337,6 +340,27 @@ public class FormatTest {
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
public FormatTest bigDecimal(BigDecimal bigDecimal) {
|
||||
this.bigDecimal = bigDecimal;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get bigDecimal
|
||||
* @return bigDecimal
|
||||
*/
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
@Valid
|
||||
|
||||
public BigDecimal getBigDecimal() {
|
||||
return bigDecimal;
|
||||
}
|
||||
|
||||
public void setBigDecimal(BigDecimal bigDecimal) {
|
||||
this.bigDecimal = bigDecimal;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
@@ -359,12 +383,13 @@ public class FormatTest {
|
||||
Objects.equals(this.date, formatTest.date) &&
|
||||
Objects.equals(this.dateTime, formatTest.dateTime) &&
|
||||
Objects.equals(this.uuid, formatTest.uuid) &&
|
||||
Objects.equals(this.password, formatTest.password);
|
||||
Objects.equals(this.password, formatTest.password) &&
|
||||
Objects.equals(this.bigDecimal, formatTest.bigDecimal);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(integer, int32, int64, number, _float, _double, string, _byte, binary, date, dateTime, uuid, password);
|
||||
return Objects.hash(integer, int32, int64, number, _float, _double, string, _byte, binary, date, dateTime, uuid, password, bigDecimal);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -385,6 +410,7 @@ public class FormatTest {
|
||||
sb.append(" dateTime: ").append(toIndentedString(dateTime)).append("\n");
|
||||
sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n");
|
||||
sb.append(" password: ").append(toIndentedString(password)).append("\n");
|
||||
sb.append(" bigDecimal: ").append(toIndentedString(bigDecimal)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
@@ -58,6 +58,9 @@ public class FormatTest {
|
||||
@JsonProperty("password")
|
||||
private String password;
|
||||
|
||||
@JsonProperty("BigDecimal")
|
||||
private BigDecimal bigDecimal;
|
||||
|
||||
public FormatTest integer(Integer integer) {
|
||||
this.integer = integer;
|
||||
return this;
|
||||
@@ -337,6 +340,27 @@ public class FormatTest {
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
public FormatTest bigDecimal(BigDecimal bigDecimal) {
|
||||
this.bigDecimal = bigDecimal;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get bigDecimal
|
||||
* @return bigDecimal
|
||||
*/
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
@Valid
|
||||
|
||||
public BigDecimal getBigDecimal() {
|
||||
return bigDecimal;
|
||||
}
|
||||
|
||||
public void setBigDecimal(BigDecimal bigDecimal) {
|
||||
this.bigDecimal = bigDecimal;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
@@ -359,12 +383,13 @@ public class FormatTest {
|
||||
Objects.equals(this.date, formatTest.date) &&
|
||||
Objects.equals(this.dateTime, formatTest.dateTime) &&
|
||||
Objects.equals(this.uuid, formatTest.uuid) &&
|
||||
Objects.equals(this.password, formatTest.password);
|
||||
Objects.equals(this.password, formatTest.password) &&
|
||||
Objects.equals(this.bigDecimal, formatTest.bigDecimal);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(integer, int32, int64, number, _float, _double, string, _byte, binary, date, dateTime, uuid, password);
|
||||
return Objects.hash(integer, int32, int64, number, _float, _double, string, _byte, binary, date, dateTime, uuid, password, bigDecimal);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -385,6 +410,7 @@ public class FormatTest {
|
||||
sb.append(" dateTime: ").append(toIndentedString(dateTime)).append("\n");
|
||||
sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n");
|
||||
sb.append(" password: ").append(toIndentedString(password)).append("\n");
|
||||
sb.append(" bigDecimal: ").append(toIndentedString(bigDecimal)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
@@ -58,6 +58,9 @@ public class FormatTest {
|
||||
@JsonProperty("password")
|
||||
private String password;
|
||||
|
||||
@JsonProperty("BigDecimal")
|
||||
private BigDecimal bigDecimal;
|
||||
|
||||
public FormatTest integer(Integer integer) {
|
||||
this.integer = integer;
|
||||
return this;
|
||||
@@ -337,6 +340,27 @@ public class FormatTest {
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
public FormatTest bigDecimal(BigDecimal bigDecimal) {
|
||||
this.bigDecimal = bigDecimal;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get bigDecimal
|
||||
* @return bigDecimal
|
||||
*/
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
@Valid
|
||||
|
||||
public BigDecimal getBigDecimal() {
|
||||
return bigDecimal;
|
||||
}
|
||||
|
||||
public void setBigDecimal(BigDecimal bigDecimal) {
|
||||
this.bigDecimal = bigDecimal;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
@@ -359,12 +383,13 @@ public class FormatTest {
|
||||
Objects.equals(this.date, formatTest.date) &&
|
||||
Objects.equals(this.dateTime, formatTest.dateTime) &&
|
||||
Objects.equals(this.uuid, formatTest.uuid) &&
|
||||
Objects.equals(this.password, formatTest.password);
|
||||
Objects.equals(this.password, formatTest.password) &&
|
||||
Objects.equals(this.bigDecimal, formatTest.bigDecimal);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(integer, int32, int64, number, _float, _double, string, _byte, binary, date, dateTime, uuid, password);
|
||||
return Objects.hash(integer, int32, int64, number, _float, _double, string, _byte, binary, date, dateTime, uuid, password, bigDecimal);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -385,6 +410,7 @@ public class FormatTest {
|
||||
sb.append(" dateTime: ").append(toIndentedString(dateTime)).append("\n");
|
||||
sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n");
|
||||
sb.append(" password: ").append(toIndentedString(password)).append("\n");
|
||||
sb.append(" bigDecimal: ").append(toIndentedString(bigDecimal)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
@@ -58,6 +58,9 @@ public class FormatTest {
|
||||
@JsonProperty("password")
|
||||
private String password;
|
||||
|
||||
@JsonProperty("BigDecimal")
|
||||
private BigDecimal bigDecimal;
|
||||
|
||||
public FormatTest integer(Integer integer) {
|
||||
this.integer = integer;
|
||||
return this;
|
||||
@@ -337,6 +340,27 @@ public class FormatTest {
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
public FormatTest bigDecimal(BigDecimal bigDecimal) {
|
||||
this.bigDecimal = bigDecimal;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get bigDecimal
|
||||
* @return bigDecimal
|
||||
*/
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
@Valid
|
||||
|
||||
public BigDecimal getBigDecimal() {
|
||||
return bigDecimal;
|
||||
}
|
||||
|
||||
public void setBigDecimal(BigDecimal bigDecimal) {
|
||||
this.bigDecimal = bigDecimal;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
@@ -359,12 +383,13 @@ public class FormatTest {
|
||||
Objects.equals(this.date, formatTest.date) &&
|
||||
Objects.equals(this.dateTime, formatTest.dateTime) &&
|
||||
Objects.equals(this.uuid, formatTest.uuid) &&
|
||||
Objects.equals(this.password, formatTest.password);
|
||||
Objects.equals(this.password, formatTest.password) &&
|
||||
Objects.equals(this.bigDecimal, formatTest.bigDecimal);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(integer, int32, int64, number, _float, _double, string, _byte, binary, date, dateTime, uuid, password);
|
||||
return Objects.hash(integer, int32, int64, number, _float, _double, string, _byte, binary, date, dateTime, uuid, password, bigDecimal);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -385,6 +410,7 @@ public class FormatTest {
|
||||
sb.append(" dateTime: ").append(toIndentedString(dateTime)).append("\n");
|
||||
sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n");
|
||||
sb.append(" password: ").append(toIndentedString(password)).append("\n");
|
||||
sb.append(" bigDecimal: ").append(toIndentedString(bigDecimal)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
@@ -58,6 +58,9 @@ public class FormatTest {
|
||||
@JsonProperty("password")
|
||||
private String password;
|
||||
|
||||
@JsonProperty("BigDecimal")
|
||||
private BigDecimal bigDecimal;
|
||||
|
||||
public FormatTest integer(Integer integer) {
|
||||
this.integer = integer;
|
||||
return this;
|
||||
@@ -337,6 +340,27 @@ public class FormatTest {
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
public FormatTest bigDecimal(BigDecimal bigDecimal) {
|
||||
this.bigDecimal = bigDecimal;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get bigDecimal
|
||||
* @return bigDecimal
|
||||
*/
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
@Valid
|
||||
|
||||
public BigDecimal getBigDecimal() {
|
||||
return bigDecimal;
|
||||
}
|
||||
|
||||
public void setBigDecimal(BigDecimal bigDecimal) {
|
||||
this.bigDecimal = bigDecimal;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
@@ -359,12 +383,13 @@ public class FormatTest {
|
||||
Objects.equals(this.date, formatTest.date) &&
|
||||
Objects.equals(this.dateTime, formatTest.dateTime) &&
|
||||
Objects.equals(this.uuid, formatTest.uuid) &&
|
||||
Objects.equals(this.password, formatTest.password);
|
||||
Objects.equals(this.password, formatTest.password) &&
|
||||
Objects.equals(this.bigDecimal, formatTest.bigDecimal);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(integer, int32, int64, number, _float, _double, string, _byte, binary, date, dateTime, uuid, password);
|
||||
return Objects.hash(integer, int32, int64, number, _float, _double, string, _byte, binary, date, dateTime, uuid, password, bigDecimal);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -385,6 +410,7 @@ public class FormatTest {
|
||||
sb.append(" dateTime: ").append(toIndentedString(dateTime)).append("\n");
|
||||
sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n");
|
||||
sb.append(" password: ").append(toIndentedString(password)).append("\n");
|
||||
sb.append(" bigDecimal: ").append(toIndentedString(bigDecimal)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
@@ -58,6 +58,9 @@ public class FormatTest {
|
||||
@JsonProperty("password")
|
||||
private String password;
|
||||
|
||||
@JsonProperty("BigDecimal")
|
||||
private BigDecimal bigDecimal;
|
||||
|
||||
public FormatTest integer(Integer integer) {
|
||||
this.integer = integer;
|
||||
return this;
|
||||
@@ -337,6 +340,27 @@ public class FormatTest {
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
public FormatTest bigDecimal(BigDecimal bigDecimal) {
|
||||
this.bigDecimal = bigDecimal;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get bigDecimal
|
||||
* @return bigDecimal
|
||||
*/
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
@Valid
|
||||
|
||||
public BigDecimal getBigDecimal() {
|
||||
return bigDecimal;
|
||||
}
|
||||
|
||||
public void setBigDecimal(BigDecimal bigDecimal) {
|
||||
this.bigDecimal = bigDecimal;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
@@ -359,12 +383,13 @@ public class FormatTest {
|
||||
Objects.equals(this.date, formatTest.date) &&
|
||||
Objects.equals(this.dateTime, formatTest.dateTime) &&
|
||||
Objects.equals(this.uuid, formatTest.uuid) &&
|
||||
Objects.equals(this.password, formatTest.password);
|
||||
Objects.equals(this.password, formatTest.password) &&
|
||||
Objects.equals(this.bigDecimal, formatTest.bigDecimal);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(integer, int32, int64, number, _float, _double, string, _byte, binary, date, dateTime, uuid, password);
|
||||
return Objects.hash(integer, int32, int64, number, _float, _double, string, _byte, binary, date, dateTime, uuid, password, bigDecimal);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -385,6 +410,7 @@ public class FormatTest {
|
||||
sb.append(" dateTime: ").append(toIndentedString(dateTime)).append("\n");
|
||||
sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n");
|
||||
sb.append(" password: ").append(toIndentedString(password)).append("\n");
|
||||
sb.append(" bigDecimal: ").append(toIndentedString(bigDecimal)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
@@ -58,6 +58,9 @@ public class FormatTest {
|
||||
@JsonProperty("password")
|
||||
private String password;
|
||||
|
||||
@JsonProperty("BigDecimal")
|
||||
private BigDecimal bigDecimal;
|
||||
|
||||
public FormatTest integer(Integer integer) {
|
||||
this.integer = integer;
|
||||
return this;
|
||||
@@ -337,6 +340,27 @@ public class FormatTest {
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
public FormatTest bigDecimal(BigDecimal bigDecimal) {
|
||||
this.bigDecimal = bigDecimal;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get bigDecimal
|
||||
* @return bigDecimal
|
||||
*/
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
@Valid
|
||||
|
||||
public BigDecimal getBigDecimal() {
|
||||
return bigDecimal;
|
||||
}
|
||||
|
||||
public void setBigDecimal(BigDecimal bigDecimal) {
|
||||
this.bigDecimal = bigDecimal;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
@@ -359,12 +383,13 @@ public class FormatTest {
|
||||
Objects.equals(this.date, formatTest.date) &&
|
||||
Objects.equals(this.dateTime, formatTest.dateTime) &&
|
||||
Objects.equals(this.uuid, formatTest.uuid) &&
|
||||
Objects.equals(this.password, formatTest.password);
|
||||
Objects.equals(this.password, formatTest.password) &&
|
||||
Objects.equals(this.bigDecimal, formatTest.bigDecimal);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(integer, int32, int64, number, _float, _double, string, _byte, binary, date, dateTime, uuid, password);
|
||||
return Objects.hash(integer, int32, int64, number, _float, _double, string, _byte, binary, date, dateTime, uuid, password, bigDecimal);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -385,6 +410,7 @@ public class FormatTest {
|
||||
sb.append(" dateTime: ").append(toIndentedString(dateTime)).append("\n");
|
||||
sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n");
|
||||
sb.append(" password: ").append(toIndentedString(password)).append("\n");
|
||||
sb.append(" bigDecimal: ").append(toIndentedString(bigDecimal)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
@@ -1626,6 +1626,9 @@ components:
|
||||
maxLength: 64
|
||||
minLength: 10
|
||||
type: string
|
||||
BigDecimal:
|
||||
format: number
|
||||
type: string
|
||||
required:
|
||||
- byte
|
||||
- date
|
||||
|
||||
@@ -58,6 +58,9 @@ public class FormatTest {
|
||||
@JsonProperty("password")
|
||||
private String password;
|
||||
|
||||
@JsonProperty("BigDecimal")
|
||||
private BigDecimal bigDecimal;
|
||||
|
||||
public FormatTest integer(Integer integer) {
|
||||
this.integer = integer;
|
||||
return this;
|
||||
@@ -337,6 +340,27 @@ public class FormatTest {
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
public FormatTest bigDecimal(BigDecimal bigDecimal) {
|
||||
this.bigDecimal = bigDecimal;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get bigDecimal
|
||||
* @return bigDecimal
|
||||
*/
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
@Valid
|
||||
|
||||
public BigDecimal getBigDecimal() {
|
||||
return bigDecimal;
|
||||
}
|
||||
|
||||
public void setBigDecimal(BigDecimal bigDecimal) {
|
||||
this.bigDecimal = bigDecimal;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
@@ -359,12 +383,13 @@ public class FormatTest {
|
||||
Objects.equals(this.date, formatTest.date) &&
|
||||
Objects.equals(this.dateTime, formatTest.dateTime) &&
|
||||
Objects.equals(this.uuid, formatTest.uuid) &&
|
||||
Objects.equals(this.password, formatTest.password);
|
||||
Objects.equals(this.password, formatTest.password) &&
|
||||
Objects.equals(this.bigDecimal, formatTest.bigDecimal);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(integer, int32, int64, number, _float, _double, string, _byte, binary, date, dateTime, uuid, password);
|
||||
return Objects.hash(integer, int32, int64, number, _float, _double, string, _byte, binary, date, dateTime, uuid, password, bigDecimal);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -385,6 +410,7 @@ public class FormatTest {
|
||||
sb.append(" dateTime: ").append(toIndentedString(dateTime)).append("\n");
|
||||
sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n");
|
||||
sb.append(" password: ").append(toIndentedString(password)).append("\n");
|
||||
sb.append(" bigDecimal: ").append(toIndentedString(bigDecimal)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
@@ -58,6 +58,9 @@ public class FormatTest {
|
||||
@JsonProperty("password")
|
||||
private String password;
|
||||
|
||||
@JsonProperty("BigDecimal")
|
||||
private BigDecimal bigDecimal;
|
||||
|
||||
public FormatTest integer(Integer integer) {
|
||||
this.integer = integer;
|
||||
return this;
|
||||
@@ -337,6 +340,27 @@ public class FormatTest {
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
public FormatTest bigDecimal(BigDecimal bigDecimal) {
|
||||
this.bigDecimal = bigDecimal;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get bigDecimal
|
||||
* @return bigDecimal
|
||||
*/
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
@Valid
|
||||
|
||||
public BigDecimal getBigDecimal() {
|
||||
return bigDecimal;
|
||||
}
|
||||
|
||||
public void setBigDecimal(BigDecimal bigDecimal) {
|
||||
this.bigDecimal = bigDecimal;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
@@ -359,12 +383,13 @@ public class FormatTest {
|
||||
Objects.equals(this.date, formatTest.date) &&
|
||||
Objects.equals(this.dateTime, formatTest.dateTime) &&
|
||||
Objects.equals(this.uuid, formatTest.uuid) &&
|
||||
Objects.equals(this.password, formatTest.password);
|
||||
Objects.equals(this.password, formatTest.password) &&
|
||||
Objects.equals(this.bigDecimal, formatTest.bigDecimal);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(integer, int32, int64, number, _float, _double, string, _byte, binary, date, dateTime, uuid, password);
|
||||
return Objects.hash(integer, int32, int64, number, _float, _double, string, _byte, binary, date, dateTime, uuid, password, bigDecimal);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -385,6 +410,7 @@ public class FormatTest {
|
||||
sb.append(" dateTime: ").append(toIndentedString(dateTime)).append("\n");
|
||||
sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n");
|
||||
sb.append(" password: ").append(toIndentedString(password)).append("\n");
|
||||
sb.append(" bigDecimal: ").append(toIndentedString(bigDecimal)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
@@ -58,6 +58,9 @@ public class FormatTest {
|
||||
@JsonProperty("password")
|
||||
private String password;
|
||||
|
||||
@JsonProperty("BigDecimal")
|
||||
private BigDecimal bigDecimal;
|
||||
|
||||
public FormatTest integer(Integer integer) {
|
||||
this.integer = integer;
|
||||
return this;
|
||||
@@ -337,6 +340,27 @@ public class FormatTest {
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
public FormatTest bigDecimal(BigDecimal bigDecimal) {
|
||||
this.bigDecimal = bigDecimal;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get bigDecimal
|
||||
* @return bigDecimal
|
||||
*/
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
@Valid
|
||||
|
||||
public BigDecimal getBigDecimal() {
|
||||
return bigDecimal;
|
||||
}
|
||||
|
||||
public void setBigDecimal(BigDecimal bigDecimal) {
|
||||
this.bigDecimal = bigDecimal;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
@@ -359,12 +383,13 @@ public class FormatTest {
|
||||
Objects.equals(this.date, formatTest.date) &&
|
||||
Objects.equals(this.dateTime, formatTest.dateTime) &&
|
||||
Objects.equals(this.uuid, formatTest.uuid) &&
|
||||
Objects.equals(this.password, formatTest.password);
|
||||
Objects.equals(this.password, formatTest.password) &&
|
||||
Objects.equals(this.bigDecimal, formatTest.bigDecimal);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(integer, int32, int64, number, _float, _double, string, _byte, binary, date, dateTime, uuid, password);
|
||||
return Objects.hash(integer, int32, int64, number, _float, _double, string, _byte, binary, date, dateTime, uuid, password, bigDecimal);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -385,6 +410,7 @@ public class FormatTest {
|
||||
sb.append(" dateTime: ").append(toIndentedString(dateTime)).append("\n");
|
||||
sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n");
|
||||
sb.append(" password: ").append(toIndentedString(password)).append("\n");
|
||||
sb.append(" bigDecimal: ").append(toIndentedString(bigDecimal)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user