import { IsMongoId, IsNotEmpty, IsString } from 'class-validator'; export class AuthorDTO { @IsNotEmpty() @IsMongoId() userId: string; @IsString() @IsNotEmpty() fullName: string; }