Skip to content

πŸ“¨ The ultimate agentic social media scheduling tool πŸ€–

293 B
Raw Blame
import { IsDefined, IsIn, IsOptional, IsString } from 'class-validator';

export class AnnouncementDto {
  @IsString()
  @IsDefined()
  title: string;

  @IsString()
  @IsDefined()
  description: string;

  @IsOptional()
  @IsString()
  @IsIn(['INFO', 'WARNING', 'ERROR'])
  color?: string;
}