import { ApiProperty } from '@nestjs/swagger';
import { IsString, ValidateIf } from 'class-validator';

export class OtpVerifyDto {
  @ApiProperty({
    name: 'otp_code',
    type: String,
    required: true,
    example: '2345',
  })
  @IsString()
  @ValidateIf((body) => body.otp_code)
  otp_code: string;
}
