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

export class ResetPasswordDto {
  @ApiProperty()
  @IsString()
  resetToken!: string;

  @ApiProperty({ minLength: 8, example: 'NewStrongPass123!' })
  @IsString()
  @Length(8, 64)
  newPassword!: string;

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