import { Transform } from 'class-transformer'; import { IsISO8601, IsString, MaxLength, MinLength } from 'class-validator'; export class OfficializeInspectionReportDto { @Transform(({ value }) => typeof value === 'string' ? value.trim() : value) @IsString() @MinLength(2) @MaxLength(255) gedoIfIdentifier!: string; @IsISO8601({ strict: true }) gedoOfficializedAt!: string; }