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

/**
 * DTO for searching visa countries based on a product ID.
 * This DTO expects a single product identifier and will be used
 * to filter visa countries applicable to that product.
 */
export class SearchVisaCountriesDto {
  /**
   * The unique ID of the product to filter visa countries.
   * Example: '12345'
   */
  @ApiProperty({
    description: 'Unique product ID used to search visa countries',
    example: '12345',
  })
  @IsNotEmpty({ message: 'product_id is required' })
  @IsString({ message: 'product_id must be a string' })
  product_id: string;
}
