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

/**
 * DTO for searching educational institutes based on optional filters.
 * Currently supports filtering by country.
 */
export class SearchInstitutesDto {
  /**
   * Optional country ID to filter institutes by country.
   * Example: "80" for India, "103" for USA.
   */
  @ApiPropertyOptional({
    description: 'Filter institutes by country ID',
    example: '80',
  })
  @IsOptional()
  @IsString({ message: 'country_id must be a string' })
  country_id?: string;
}
