Skip to content

Commit

Permalink
fix(be): use is-optional (#2149)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaehyeon1020 authored Oct 9, 2024
1 parent 699f223 commit 5b9e050
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/backend/apps/client/src/user/dto/signup.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {
IsEmail,
IsNotEmpty,
IsNumberString,
IsOptional,
IsString,
Matches
} from 'class-validator'
Expand All @@ -24,9 +25,11 @@ export class SignUpDto {
@IsNotEmpty()
readonly realName: string

@IsOptional()
@IsNumberString()
readonly studentId?: string

@IsOptional()
@IsString()
readonly major?: string
}

0 comments on commit 5b9e050

Please sign in to comment.