F4: add explicit inspection cancellation DTO

This commit is contained in:
2026-09-07 21:18:43 -03:00
parent 2b63638c35
commit 83ab2d4060
@@ -0,0 +1,10 @@
import { Transform } from 'class-transformer';
import { IsString, MaxLength, MinLength } from 'class-validator';
export class CancelInspectionVisitDto {
@Transform(({ value }) => typeof value === 'string' ? value.trim() : value)
@IsString()
@MinLength(10)
@MaxLength(4000)
reason!: string;
}