Skip to content

Commit 70e3210

Browse files
committed
feat: add IsNotBlank validation to username field in Post class README.md
1 parent 881cabd commit 70e3210

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ import {
6262
IsInt,
6363
Length,
6464
IsEmail,
65+
IsNotBlank,
6566
IsFQDN,
6667
IsDate,
6768
Min,
@@ -83,6 +84,9 @@ export class Post {
8384
@IsEmail()
8485
email: string;
8586

87+
@IsNotBlank()
88+
username: string;
89+
8690
@IsFQDN()
8791
site: string;
8892

0 commit comments

Comments
 (0)