attachment
This commit is contained in:
@@ -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[];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user