import { IsString, IsOptional, MinLength, MaxLength } from "class-validator"; /** * DTO for quick capturing ideas with minimal fields * Intended for rapid idea capture without complex categorization */ export class CaptureIdeaDto { @IsString({ message: "content must be a string" }) @MinLength(1, { message: "content must not be empty" }) @MaxLength(50000, { message: "content must not exceed 50000 characters" }) content!: string; @IsOptional() @IsString({ message: "title must be a string" }) @MaxLength(500, { message: "title must not exceed 500 characters" }) title?: string; }