import { ApiProperty } from '@nestjs/swagger';
import { Type } from 'class-transformer';
import { IsInt, IsNotEmpty, IsString, MaxLength, Min } from 'class-validator';

export class SaveProgressReportIssueCommentDto {
  @ApiProperty({ example: 1 })
  @Type(() => Number)
  @IsInt()
  @Min(1)
  commentTypeId!: number;

  @ApiProperty({ example: 'Please provide more supporting information.' })
  @IsString()
  @IsNotEmpty()
  @MaxLength(10000)
  comment!: string;
}
