forked from mtusi2026/mtusi2026lab2
chore: migrate minimum from lab1
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import { IsString } from 'class-validator';
|
||||
import { CodePointLength } from '../../common/dto/code-point-length.validator';
|
||||
|
||||
export class CreateMessageDto {
|
||||
@IsString()
|
||||
@CodePointLength(0, 4000)
|
||||
text!: string;
|
||||
}
|
||||
Reference in New Issue
Block a user