import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger'; import { IsEmail, IsNotEmpty, } from 'class-validator'; export class RegisterUserRequestDTO { @ApiProperty({ description: "User's email", example: 'user@example.com', type: 'string', }) @IsEmail() @IsNotEmpty() email: string; }