// lessons/dto/update-lesson.dto.ts
import { PartialType } from '@nestjs/mapped-types';
import { CreateLessonDto } from './create-lesson.dto';
import { IsOptional, IsString, MaxLength } from 'class-validator';

export class UpdateLessonDto extends PartialType(CreateLessonDto) {
  // If you want to be explicit (not required when using PartialType)
  @IsString()
  @MaxLength(200)
  @IsOptional()
  title?: string;

  @IsString()
  @IsOptional()
  description?: string;
}
