feat: initial commit
This commit is contained in:
9
src/comments/dto/create-comment.dto.ts
Normal file
9
src/comments/dto/create-comment.dto.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { ApiProperty } from "@nestjs/swagger";
|
||||
import { IsString, Length } from "class-validator";
|
||||
|
||||
export class CreateCommentDto {
|
||||
@ApiProperty({ example: "Мой комментарий" })
|
||||
@IsString()
|
||||
@Length(1, 1000)
|
||||
text: string;
|
||||
}
|
||||
Reference in New Issue
Block a user