import { ApiProperty } from '@nestjs/swagger'; import { IsString, MaxLength, MinLength } from 'class-validator'; import { IsIranMobile } from '../../../common/decorators/is-iran-mobile.decorator'; export class LoginPasswordDto { @ApiProperty({ example: '09122222222' }) @IsIranMobile() mobile!: string; @ApiProperty({ example: 'mySecurePass123' }) @IsString() @MinLength(1) @MaxLength(72) password!: string; }