feat(f4): add GEDO officialization DTO
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user