import { ApiProperty } from '@nestjs/swagger';
import { IsDateString } from 'class-validator';

// Only the date can change. The slot is fixed when the deadline is created,
// and the global ValidationPipe rejects any other field.
export class UpdateProgressReportDeadlineDto {
  @ApiProperty({
    example: '2026-08-05',
    description: 'Deadline date in YYYY-MM-DD format.',
  })
  @IsDateString()
  deadline!: string;
}
