Fixed YARA-1217

This commit is contained in:
SepehrYahyaee
2026-08-10 10:34:20 +03:30
parent 8e4c794d61
commit 210e96fcf1
4 changed files with 60 additions and 101 deletions

View File

@@ -1,5 +1,5 @@
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
import { IsNotEmpty, IsString, MaxLength } from "class-validator";
import { IsNotEmpty, IsOptional, IsString, MaxLength } from "class-validator";
import { Types } from "mongoose";
import { AddPlateDto } from "src/profile/dto/user/AddPlateDto";
import { StepsEnum } from "src/Types&Enums/blame-request-management/steps.enum";
@@ -98,20 +98,24 @@ export class DescriptionV4Dto {
@IsNotEmpty()
desc: string;
@ApiProperty({
description: "Date of the accident (required for all V4 files)",
@ApiPropertyOptional({
description:
"Date of the accident. Required for the first (guilty) party; " +
"optional for the second (damaged) party.",
example: "2025-12-08",
})
@IsNotEmpty()
accidentDate: Date;
@IsOptional()
accidentDate?: Date;
@ApiProperty({
description: "Time of the accident (required for all V4 files)",
@ApiPropertyOptional({
description:
"Time of the accident. Required for the first (guilty) party; " +
"optional for the second (damaged) party.",
example: "14:30",
})
@IsOptional()
@IsString()
@IsNotEmpty()
accidentTime: string;
accidentTime?: string;
}
/**