Skip to content

Commit

Permalink
Merge pull request #143 from boostcampwm-2024/fix/order
Browse files Browse the repository at this point in the history
[BE] 매도/매수 시 종목 코드 isNotEmpty 확인 추가
  • Loading branch information
sieunie authored Nov 19, 2024
2 parents 405e2d3 + 8d60390 commit c0d2270
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion BE/src/stock/order/dto/stock-order-request.dto.ts
Original file line number Diff line number Diff line change
@@ -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: '매수/매도 희망 가격' })
Expand Down

0 comments on commit c0d2270

Please sign in to comment.