field
This commit is contained in:
@@ -8,17 +8,16 @@ export class CreateFieldDto {
|
||||
@ApiProperty()
|
||||
name: string;
|
||||
|
||||
@IsString()
|
||||
@IsNotEmpty()
|
||||
@ApiProperty()
|
||||
sectionId!: string;
|
||||
|
||||
|
||||
@IsBoolean()
|
||||
@Type(() => Boolean)
|
||||
@ApiPropertyOptional({ example: true })
|
||||
isRequired: boolean;
|
||||
|
||||
@IsBoolean()
|
||||
@Type(() => Boolean)
|
||||
@ApiPropertyOptional({ example: true })
|
||||
multiple: boolean;
|
||||
|
||||
@IsNotEmpty()
|
||||
@IsEnum(FieldType)
|
||||
@ApiProperty({ enum: FieldType, example: FieldType.select })
|
||||
|
||||
Reference in New Issue
Block a user