Files
memegoat/backend/src/contents/dto/upload-content.dto.ts
Mathis HERRIOT 975e29dea1
Some checks failed
Backend Tests / test (push) Has been cancelled
Lint / lint (push) Has been cancelled
refactor: format imports, fix indentation, and improve readability across files
Apply consistent import ordering and indentation in frontend and backend files. Ensure better maintainability and adherence to code style standards.
2026-01-14 21:06:38 +01:00

31 lines
462 B
TypeScript

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";
@IsString()
@IsNotEmpty()
@MaxLength(255)
title!: string;
@IsOptional()
@IsUUID()
categoryId?: string;
@IsOptional()
@IsArray()
@IsString({ each: true })
@MaxLength(64, { each: true })
tags?: string[];
}