{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aopx-fr/json-schema/aopx-fr-recommend-request-schema.json",
  "title": "RecommendRequest",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aopx-fr-openapi.json#/components/schemas/RecommendRequest",
  "properties": {
    "category": {
      "type": "string",
      "const": "SEARCH",
      "title": "Category",
      "default": "SEARCH"
    },
    "mode": {
      "type": "string",
      "enum": [
        "ECONOMY",
        "BALANCED",
        "CRITICAL"
      ],
      "title": "Mode"
    },
    "query_family": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "FRESH_NEWS",
            "FACTUAL",
            "TECHNICAL",
            "COMPANY_BUSINESS",
            "NICHE_LONGTAIL"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Query Family"
    },
    "client_id": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 120
        },
        {
          "type": "null"
        }
      ],
      "title": "Client Id"
    },
    "max_cost_eur": {
      "anyOf": [
        {
          "type": "number",
          "maximum": 30.0,
          "exclusiveMinimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Max Cost Eur"
    },
    "max_latency_ms": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 60000.0,
          "exclusiveMinimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Max Latency Ms"
    }
  },
  "type": "object",
  "required": [
    "mode"
  ]
}