Skip to content

Commit

Permalink
Merge pull request #298 from boostcampwm2023/BE-feature/board-name-le…
Browse files Browse the repository at this point in the history
…ngth

보드 이름 최대 길이 추가
  • Loading branch information
tnpfldyd authored Dec 13, 2023
2 parents 4dc84ee + 6643c94 commit 50ab58c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nestjs-BE/server/src/boards/dto/create-board.dto.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty, IsString } from 'class-validator';
import { IsNotEmpty, IsString, MaxLength } from 'class-validator';
import { MAX_NAME_LENGTH } from 'src/config/magic-number';

export class CreateBoardDto {
@ApiProperty({ description: '보드 이름' })
@IsString()
@IsNotEmpty()
@MaxLength(MAX_NAME_LENGTH)
boardName: string;

@ApiProperty({ description: '스페이스 id' })
Expand Down
1 change: 1 addition & 0 deletions nestjs-BE/server/src/config/magic-number.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ export const REFRESH_TOKEN_EXPIRY_DAYS = 14;
export const INVITE_CODE_CACHE_SIZE = 5000;
export const INVITE_CODE_LENGTH = 10;
export const INVITE_CODE_EXPIRY_HOURS = 6;
export const MAX_NAME_LENGTH = 20;

0 comments on commit 50ab58c

Please sign in to comment.