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

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

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