import { ApiProperty } from '@nestjs/swagger';
import { IsEmail, IsString, MaxLength, MinLength } from 'class-validator';

export class RequestEmailChangeDto {
  @ApiProperty({ example: 'new.email@example.com' })
  @IsEmail()
  @MaxLength(254)
  newEmail!: string;

  @ApiProperty({ example: 'CurrentPassword123' })
  @IsString()
  @MinLength(8)
  currentPassword!: string;
}
