import { ApiProperty } from '@nestjs/swagger';
import { IsString, Matches } from 'class-validator';
import { ForgotPasswordDto } from './forgot-password.dto';

export class VerifyResetOtpDto extends ForgotPasswordDto {
  @ApiProperty({
    example: '123456',
    description: '6-digit OTP sent to the user email',
  })
  @IsString()
  @Matches(/^[0-9]{6}$/, { message: 'OTP must contain exactly 6 digits' })
  otp!: string;
}
