attachment

This commit is contained in:
2026-01-28 10:49:09 +03:30
parent b90654250c
commit 90bb299fb7
5 changed files with 17 additions and 58 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
import { ApiProperty } from "@nestjs/swagger";
import { IsNotEmpty, IsOptional, IsString, IsUUID, IsUrl, Length } from "class-validator";
import { IsNotEmpty, IsOptional, IsString, IsUrl, Length } from "class-validator";
import { AttachmentType } from "../interfaces/ticket";
import { TicketMessageEnum } from "../../../common/enums/message.enum";
@@ -15,6 +15,6 @@ export class CreateTicketDto {
@IsNotEmpty({ message: TicketMessageEnum.ATTACHMENT_REQUIRED })
@IsUrl({ protocols: ["http", "https"], require_protocol: true }, { each: true, message: TicketMessageEnum.ATTACHMENT_SHOULD_BE_URL })
@ApiProperty({ description: "attachment url", example: ["https://example.com/test.png"] })
attachments?: string[];
attachments?: AttachmentType[];
}