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

export class ChangePinDto {
  @ApiProperty({ example: "1111", maxLength: 4, minLength: 4 })
  @IsDefined()
  @IsNotEmpty()
  @IsString()
  newPin: string;
}
