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

export class ResetUserPasswordDto {
  @ApiProperty({ example: "pasien@example.com" })
  @IsDefined()
  @IsNotEmpty()
  @IsString()
  emailOrPhone: string;

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