From 5b9e050cf25e625b2889e7fdd59e2c87cd8d9e44 Mon Sep 17 00:00:00 2001 From: Jaehyeon Kim Date: Wed, 9 Oct 2024 17:11:29 +0900 Subject: [PATCH] fix(be): use is-optional (#2149) --- apps/backend/apps/client/src/user/dto/signup.dto.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/backend/apps/client/src/user/dto/signup.dto.ts b/apps/backend/apps/client/src/user/dto/signup.dto.ts index 388a83277c..465effa018 100644 --- a/apps/backend/apps/client/src/user/dto/signup.dto.ts +++ b/apps/backend/apps/client/src/user/dto/signup.dto.ts @@ -3,6 +3,7 @@ import { IsEmail, IsNotEmpty, IsNumberString, + IsOptional, IsString, Matches } from 'class-validator' @@ -24,9 +25,11 @@ export class SignUpDto { @IsNotEmpty() readonly realName: string + @IsOptional() @IsNumberString() readonly studentId?: string + @IsOptional() @IsString() readonly major?: string }