mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2025-08-24 21:32:28 +00:00
10 lines
356 B
TypeScript
10 lines
356 B
TypeScript
import { ApiProperty } from '@nestjs/swagger';
|
|
import { IsEmail } from 'class-validator';
|
|
import { i18nValidationMessage as i18n } from 'nestjs-i18n';
|
|
|
|
export class SendLoginOtpRequestDto {
|
|
@ApiProperty({ example: 'test@test.com' })
|
|
@IsEmail({}, { message: i18n('validation.IsEmail', { path: 'general', property: 'auth.email' }) })
|
|
email!: string;
|
|
}
|