Skip to content

Commit 33f245e

Browse files
committed
feat: add IsString validation to username field in Post class
1 parent 58e908e commit 33f245e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ import {
6363
Length,
6464
IsEmail,
6565
IsNotBlank,
66+
IsString,
6667
IsFQDN,
6768
IsDate,
6869
Min,
@@ -84,6 +85,7 @@ export class Post {
8485
@IsEmail()
8586
email: string;
8687

88+
@IsString()
8789
@IsNotBlank()
8890
username: string;
8991

0 commit comments

Comments
 (0)