DH V2 CI / WEB · typecheck, build (push) Successful in 27s
Production dependency audit / API · production dependencies (push) Successful in 15s
Production dependency audit / WEB · production dependencies (push) Successful in 15s
DH V2 CI / API · typecheck, tests, build (push) Successful in 2m3s
DH V2 CI / Docker / migrations / production images (push) Successful in 2m58s
DH V2 CI / Promote verified main to deploy (push) Successful in 3s
Android CI / RC / Android · lint, tests, debug APK, release compile (push) Successful in 5m55s
15 lines
418 B
TypeScript
15 lines
418 B
TypeScript
import { Transform } from 'class-transformer';
|
|
import { IsDateString, IsOptional, IsString, MaxLength, MinLength } from 'class-validator';
|
|
|
|
export class SetInspectionReportResponseDeadlineDto {
|
|
@IsDateString()
|
|
responseDueOn!: string;
|
|
|
|
@IsOptional()
|
|
@Transform(({ value }) => typeof value === 'string' ? value.trim() || null : value)
|
|
@IsString()
|
|
@MinLength(3)
|
|
@MaxLength(1000)
|
|
reason?: string | null;
|
|
}
|