src/uploads/dto/embed-setter.dto.ts
EmbedDto
Properties |
| bare |
Type : boolean
|
Decorators :
@IsNotEmpty()
|
|
Defined in src/uploads/dto/embed-setter.dto.ts:18
|
| color |
Type : string
|
Decorators :
@IsNotEmpty()
|
|
Defined in src/uploads/dto/embed-setter.dto.ts:27
|
| descr |
Type : string
|
Decorators :
@IsNotEmpty()
|
|
Defined in src/uploads/dto/embed-setter.dto.ts:14
|
| name |
Type : string
|
Decorators :
@IsNotEmpty()
|
|
Defined in src/uploads/dto/embed-setter.dto.ts:31
|
| title |
Type : string
|
Decorators :
@IsNotEmpty()
|
|
Defined in src/uploads/dto/embed-setter.dto.ts:23
|
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;
}