forked from Yara724/api
Fixed YARA-1217
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user