From 8d60390153e3cd3cc7b838c8a8a5a4b29d33bb31 Mon Sep 17 00:00:00 2001 From: anjdydhody Date: Tue, 19 Nov 2024 13:04:21 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20fix:=20=EB=A7=A4=EB=8F=84/?= =?UTF-8?q?=EB=A7=A4=EC=88=98=20=EC=8B=9C=20=EC=A2=85=EB=AA=A9=20=EC=BD=94?= =?UTF-8?q?=EB=93=9C=20isNotEmpty=20=ED=99=95=EC=9D=B8=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BE/src/stock/order/dto/stock-order-request.dto.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/BE/src/stock/order/dto/stock-order-request.dto.ts b/BE/src/stock/order/dto/stock-order-request.dto.ts index 407d05ad..458f54af 100644 --- a/BE/src/stock/order/dto/stock-order-request.dto.ts +++ b/BE/src/stock/order/dto/stock-order-request.dto.ts @@ -1,8 +1,9 @@ import { ApiProperty } from '@nestjs/swagger'; -import { IsInt, IsNumber, IsPositive } from 'class-validator'; +import { IsInt, IsNotEmpty, IsNumber, IsPositive } from 'class-validator'; export class StockOrderRequestDto { @ApiProperty({ description: '주식 id', example: '005930' }) + @IsNotEmpty() stock_code: string; @ApiProperty({ description: '매수/매도 희망 가격' })