More updates for isBoolean (#9802)

* more updates for isBoolean

* update samples
This commit is contained in:
William Cheng
2021-06-19 10:44:00 +08:00
committed by GitHub
parent 41afcd0f86
commit d13685a3ad
7 changed files with 46 additions and 3 deletions

View File

@@ -614,6 +614,14 @@ public class CodegenModel implements IJsonSchemaValidationProperties {
this.isShort = isShort;
}
@Override
public boolean getIsBoolean() { return isBoolean; }
@Override
public void setIsBoolean(boolean isBoolean) {
this.isBoolean= isBoolean;
}
@Override
public boolean getIsUnboundedInteger() { return isUnboundedInteger; }
@@ -771,6 +779,7 @@ public class CodegenModel implements IJsonSchemaValidationProperties {
isShort == that.isShort &&
isLong == that.isLong &&
isUnboundedInteger == that.isUnboundedInteger &&
isBoolean == that.isBoolean &&
isNumber == that.isNumber &&
isNumeric == that.isNumeric &&
isFloat == that.isFloat &&
@@ -857,7 +866,7 @@ public class CodegenModel implements IJsonSchemaValidationProperties {
getDescription(), getClassVarName(), getModelJson(), getDataType(), getXmlPrefix(), getXmlNamespace(),
getXmlName(), getClassFilename(), getUnescapedDescription(), getDiscriminator(), getDefaultValue(),
getArrayModelType(), isAlias, isString, isInteger, isLong, isNumber, isNumeric, isFloat, isDouble,
isDate, isDateTime, isNull, hasValidation, isShort, isUnboundedInteger,
isDate, isDateTime, isNull, hasValidation, isShort, isUnboundedInteger, isBoolean,
getVars(), getAllVars(), getRequiredVars(), getOptionalVars(), getReadOnlyVars(), getReadWriteVars(),
getParentVars(), getAllowableValues(), getMandatory(), getAllMandatory(), getImports(), hasVars,
isEmptyVars(), hasMoreModels, hasEnums, isEnum, isNullable, hasRequired, hasOptional, isArray,
@@ -902,6 +911,7 @@ public class CodegenModel implements IJsonSchemaValidationProperties {
sb.append(", isShort=").append(isShort);
sb.append(", isLong=").append(isLong);
sb.append(", isUnboundedInteger=").append(isUnboundedInteger);
sb.append(", isBoolean=").append(isBoolean);
sb.append(", isNumber=").append(isNumber);
sb.append(", isNumeric=").append(isNumeric);
sb.append(", isFloat=").append(isFloat);

View File

@@ -574,6 +574,14 @@ public class CodegenParameter implements IJsonSchemaValidationProperties {
this.isShort = isShort;
}
@Override
public boolean getIsBoolean() { return isBoolean; }
@Override
public void setIsBoolean(boolean isBoolean) {
this.isBoolean = isBoolean;
}
@Override
public boolean getIsUnboundedInteger() { return isUnboundedInteger; }

View File

@@ -517,6 +517,14 @@ public class CodegenProperty implements Cloneable, IJsonSchemaValidationProperti
this.isShort = isShort;
}
@Override
public boolean getIsBoolean() { return isBoolean; }
@Override
public void setIsBoolean(boolean isBoolean) {
this.isBoolean = isBoolean;
}
@Override
public boolean getIsUnboundedInteger() { return isUnboundedInteger; }

View File

@@ -328,6 +328,14 @@ public class CodegenResponse implements IJsonSchemaValidationProperties {
this.isShort = isShort;
}
@Override
public boolean getIsBoolean() { return isBoolean; }
@Override
public void setIsBoolean(boolean isBoolean) {
this.isBoolean = isBoolean;
}
@Override
public boolean getIsUnboundedInteger() { return isUnboundedInteger; }

View File

@@ -83,6 +83,10 @@ public interface IJsonSchemaValidationProperties {
void setIsShort(boolean isShort);
boolean getIsBoolean();
void setIsBoolean(boolean isBoolean);
boolean getIsUnboundedInteger();
void setIsUnboundedInteger(boolean isUnboundedInteger);
@@ -118,4 +122,4 @@ public interface IJsonSchemaValidationProperties {
boolean getHasRequired();
void setHasRequired(boolean hasRequired);
}
}

View File

@@ -383,6 +383,7 @@ export enum EnumArraysArrayEnumEnum {
* @export
* @enum {string}
*/
export enum EnumClass {
Abc = '_abc',
Efg = '-efg',
@@ -1017,6 +1018,7 @@ export interface OuterComposite {
* @export
* @enum {string}
*/
export enum OuterEnum {
Placed = 'placed',
Approved = 'approved',
@@ -1028,6 +1030,7 @@ export enum OuterEnum {
* @export
* @enum {string}
*/
export enum OuterEnumDefaultValue {
Placed = 'placed',
Approved = 'approved',
@@ -1039,6 +1042,7 @@ export enum OuterEnumDefaultValue {
* @export
* @enum {string}
*/
export enum OuterEnumInteger {
NUMBER_0 = 0,
NUMBER_1 = 1,
@@ -1050,6 +1054,7 @@ export enum OuterEnumInteger {
* @export
* @enum {string}
*/
export enum OuterEnumIntegerDefaultValue {
NUMBER_0 = 0,
NUMBER_1 = 1,