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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 46 additions and 3 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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