Skip to content

Commit 733b841

Browse files
authored
feat: make mentorship request fields mandatory (#230)
1 parent d4d45e5 commit 733b841

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/modules/mentorships/dto/mentorship.dto.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export class MentorshipDto {
2424
@ApiModelProperty()
2525
@IsDefined()
2626
@IsString()
27-
@Length(3, 5000)
27+
@Length(30, 5000)
2828
readonly message: string;
2929

3030
@ApiModelPropertyOptional()
@@ -33,15 +33,15 @@ export class MentorshipDto {
3333
readonly goals: string[];
3434

3535
@ApiModelPropertyOptional()
36-
@IsOptional()
36+
@IsDefined()
3737
@IsString()
38-
@Length(3, 5000)
38+
@Length(30, 5000)
3939
readonly expectation: string;
4040

4141
@ApiModelPropertyOptional()
42-
@IsOptional()
42+
@IsDefined()
4343
@IsString()
44-
@Length(3, 5000)
44+
@Length(30, 5000)
4545
readonly background: string;
4646

4747
@ApiModelPropertyOptional()

0 commit comments

Comments
 (0)