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

export class CreateBreachDataDto {

  @ApiProperty({ description: 'Password from the breach' })
  @IsString()
  @IsNotEmpty()
  password: string;

  @ApiProperty({ description: 'Source of the breach data', required: false })
  @IsString()
  @IsOptional()
  source?: string;
}
