10 lines
244 B
TypeScript
10 lines
244 B
TypeScript
import { ApiProperty } from "@nestjs/swagger";
|
|
import { IsString, Length } from "class-validator";
|
|
|
|
export class CreateCommentDto {
|
|
@ApiProperty({ example: "Мой комментарий" })
|
|
@IsString()
|
|
@Length(1, 1000)
|
|
text: string;
|
|
}
|