This commit is contained in:
2026-01-28 10:02:29 +03:30
parent 6f86eb51c2
commit 0e23e09568
8 changed files with 174 additions and 27 deletions
+5 -6
View File
@@ -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 })