feat(f4): add editable INF narrative DTO
This commit is contained in:
@@ -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;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user