import { IsNotEmpty, MinLength, MaxLength, Matches, ValidateIf } from 'class-validator';
import { validationMessages } from '../../../messages/validation-messages';
import { ApiProperty } from '@nestjs/swagger';

export class VerifyOtpDto {
    @ApiProperty({ example: 'test@yopmail.com', required: true, type: 'string' })
    @IsNotEmpty({ message: validationMessages.user.email_required })
    email: string;

    @ApiProperty({ example: '111111', required: true, type: 'string' })
    @IsNotEmpty({ message: validationMessages.user.otp_required })
    otp: string;

    @ApiProperty({ example: 'en', required: false, type: 'string' })
    language_code: string;
}
