import { ApiProperty } from '@nestjs/swagger';
import { IsBoolean, IsNotEmpty } from 'class-validator';

export class CreatePollItemDto {
  @ApiProperty({ example: '' })
  @IsNotEmpty()
  title: string;

  @ApiProperty({ example: true })
  @IsNotEmpty()
  @IsBoolean()
  isSatisfied: boolean;

  @ApiProperty({ example: true })
  @IsNotEmpty()
  @IsBoolean()
  isService: boolean;
}
