Skip to content

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

519 B
Raw Blame
import { IsDefined, IsString, MinLength } from 'class-validator';
import { JSONSchema } from 'class-validator-jsonschema';

export class SkoolDto {
  @MinLength(1)
  @IsDefined()
  @IsString()
  @JSONSchema({
    description: 'Group must be an id',
  })
  group: string;

  @MinLength(1)
  @IsDefined()
  @IsString()
  @JSONSchema({
    description: 'Label must be an id',
  })
  label: string;

  @MinLength(1)
  @IsDefined()
  @IsString()
  @JSONSchema({
    description: 'Title of the post',
  })
  title: string;
}