File

src/request/dto/create-request.dto.ts

Index

Properties

Properties

content
Type : string
Decorators :
@ApiProperty()
@IsString()
@IsNotEmpty()
@MinLength(5)
title
Type : string
Decorators :
@ApiProperty()
@IsString()
@IsNotEmpty()
@MinLength(5)
@MaxLength(300)
import { ApiProperty } from "@nestjs/swagger";
import { IsNotEmpty, IsString, MaxLength, MinLength } from "class-validator";

export class CreateRequestDto {
  @ApiProperty()
  @IsString()
  @IsNotEmpty()
  @MinLength(5)
  @MaxLength(300)
  title: string;

  @ApiProperty()
  @IsString()
  @IsNotEmpty()
  @MinLength(5)
  content: string;
}

results matching ""

    No results matching ""