diff --git a/api-v3/src/inspection-reports/dto/update-inspection-report.dto.ts b/api-v3/src/inspection-reports/dto/update-inspection-report.dto.ts new file mode 100644 index 0000000..dc73883 --- /dev/null +++ b/api-v3/src/inspection-reports/dto/update-inspection-report.dto.ts @@ -0,0 +1,16 @@ +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; +}