We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 18455fe commit 69585dfCopy full SHA for 69585df
src/chat/dto/createMessage.dto.ts
@@ -4,6 +4,7 @@ import {
4
IsNotEmpty,
5
IsOptional,
6
IsString,
7
+ MaxLength,
8
ValidateIf,
9
} from 'class-validator';
10
import { ChatType } from '../enum/chatMessageType.enum';
@@ -32,11 +33,13 @@ export class CreateChatMessageDto {
32
33
34
/**
35
* Text content of the message
- *
36
+ * content must not exceed 64 characters
37
+ *
38
* @example "Let’s meet at Soul Arena!"
39
*/
40
@IsString()
41
@IsNotEmpty()
42
+ @MaxLength(64, { message: "content must not exceed 64 characters" })
43
content: string;
44
45
0 commit comments