src/request/dto/create-request.dto.ts
Properties |
| content |
Type : string
|
Decorators :
@ApiProperty()
|
|
Defined in src/request/dto/create-request.dto.ts:16
|
| title |
Type : string
|
Decorators :
@ApiProperty()
|
|
Defined in src/request/dto/create-request.dto.ts:10
|
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;
}