import { ApiProperty } from '@nestjs/swagger'; import { IsString, MinLength } from 'class-validator'; export class LoginUserDto { @ApiProperty({ description: '사용자 이름', example: 'username' }) @IsString() readonly name: string; @ApiProperty({ description: '비밀번호', example: 'password' }) @IsString() @MinLength(4) readonly password: string; }