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

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

  @ApiProperty({ example: "0000" })
  @IsDefined()
  @IsNotEmpty()
  @IsString()
  pin: string;
}
