import { Transform } from 'class-transformer'; import { IsOptional, IsString, MaxLength } from 'class-validator'; export class UpdateInspectionReportDto { @IsOptional() @Transform(({ value }) => typeof value === 'string' ? value.trim() || null : value) @IsString() @MaxLength(20000) executiveSummary?: string | null; @IsOptional() @Transform(({ value }) => typeof value === 'string' ? value.trim() || null : value) @IsString() @MaxLength(40000) description?: string | null; }