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

export class ChangePasswordDto {
  @ApiProperty({ example: "6~$*N+{g}gPH?q2D" })
  @IsDefined()
  @IsNotEmpty()
  @IsString()
  oldPassword: string;

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