import { IsNotEmpty, IsString } from 'class-validator'; import { PhoneDTO } from './login.dto'; import { i18nValidationMessage as t } from 'nestjs-i18n'; import { ApiProperty } from '@nestjs/swagger'; export class VerifyOtpDTO extends PhoneDTO { @IsString() @IsNotEmpty({ message: t('validation.requiredField', { field: '$t(auth.fields.otp)', }), }) @ApiProperty({ type: 'string', description: '5-digit OTP code', example: '12345', required: true, }) otp!: string; }