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

export class CreateTicketDto {
  @ApiProperty()
  @IsNotEmpty()
  parentId: number;

  @ApiProperty({ example: true, required: false })
  @IsOptional()
  isClosed?: boolean;

  @ApiProperty({ required: false })
  @IsOptional()
  description?: string;
}
