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

/**
 * DTO used to search or filter visa countries
 * based on a specific product.
 *
 * Ensures that a product ID is provided to fetch
 * relevant visa countries associated with that product.
 */
export class SearchVisaCountriesDto {
  /**
   * Product identifier.
   *
   * Required field:
   * - Must be a non-empty string representing the product ID.
   * - Used to fetch visa countries linked to this product.
   */
  @ApiProperty()
  @IsNotEmpty() // Field cannot be empty
  @IsString() // Must be a string
  product_id: string;
}
