File

src/uploads/dto/embed-setter.dto.ts

Implements

EmbedDto

Index

Properties

Properties

bare
Type : boolean
Decorators :
@IsNotEmpty()
@IsBoolean()
color
Type : string
Decorators :
@IsNotEmpty()
@IsHexColor()
descr
Type : string
Decorators :
@IsNotEmpty()
@IsString()
@MaxLength(300)
name
Type : string
Decorators :
@IsNotEmpty()
@IsString()
@MaxLength(250)
title
Type : string
Decorators :
@IsNotEmpty()
@IsString()
@MaxLength(100)
import {
  IsBoolean,
  IsHexColor,
  IsNotEmpty,
  IsString,
  MaxLength,
} from 'class-validator';
import { EmbedDto } from '../../../types';

export default class EmbedSetterDto implements EmbedDto {
  @IsNotEmpty()
  @IsString()
  @MaxLength(300)
  descr: string;

  @IsNotEmpty()
  @IsBoolean()
  bare: boolean;

  @IsNotEmpty()
  @IsString()
  @MaxLength(100)
  title: string;

  @IsNotEmpty()
  @IsHexColor()
  color: string;
  @IsNotEmpty()
  @IsString()
  @MaxLength(250)
  name: string;
}

results matching ""

    No results matching ""