import { IsArray, IsEnum, IsNotEmpty, IsOptional, IsString, IsUUID, MaxLength, } from "class-validator"; import { ContentType } from "./create-content.dto"; export class UploadContentDto { @IsEnum(ContentType) type!: "meme" | "gif" | "video"; @IsString() @IsNotEmpty() @MaxLength(255) title!: string; @IsOptional() @IsUUID() categoryId?: string; @IsOptional() @IsArray() @IsString({ each: true }) @MaxLength(64, { each: true }) tags?: string[]; }