import { IsDefined, IsString, IsNotEmpty } from "class-validator";
import { ApiProperty } from "@nestjs/swagger";

export class ResetPasswordDto {
  @ApiProperty({ example: "" })
  @IsDefined()
  @IsNotEmpty()
  @IsString()
  pin: string;

  @ApiProperty({ example: "john@example.com" })
  @IsDefined()
  @IsNotEmpty()
  @IsString()
  username: string;

  @ApiProperty({ example: "Password123?" })
  @IsDefined()
  @IsNotEmpty()
  @IsString()
  newPassword: string;
}
