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

export class SignupStartDto {
  @ApiProperty({ example: 'john@example.com' })
  @IsEmail()
  email!: string;

  @ApiProperty({ minLength: 8 })
  @IsString()
  @Length(8, 64)
  password!: string;

  @ApiProperty({ minLength: 8 })
  @IsString()
  @Length(8, 64)
  confirmPassword!: string;
}
