Skip to content

Commit

Permalink
feat: add IsString validation to username field in Post class
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel-logan committed Jan 24, 2025
1 parent 58e908e commit 33f245e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ import {
Length,
IsEmail,
IsNotBlank,
IsString,
IsFQDN,
IsDate,
Min,
Expand All @@ -84,6 +85,7 @@ export class Post {
@IsEmail()
email: string;

@IsString()
@IsNotBlank()
username: string;

Expand Down

0 comments on commit 33f245e

Please sign in to comment.