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

export class CryptoTestDto {
  @ApiProperty({
    description: 'The URL of the website to test for cryptographic failures',
    example: 'https://example.com',
  })
  @IsNotEmpty()
  @IsUrl({
    require_tld: true,
    require_protocol: false,
    require_valid_protocol: true,
    protocols: ['http', 'https'],
  })
  url: string;
}
