import { ApiProperty } from '@nestjs/swagger';
import { Matches } from 'class-validator';

export class OtpRequestDto {
  @ApiProperty({ example: '+919876543210' })
  @Matches(/^\+?[1-9]\d{7,14}$/)
  phone!: string;
}
