{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/upriver-ai/json-schema/upriver-ai-radar-search-input-schema.json",
  "title": "RadarSearchInput",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/upriver-ai-trends-radar-beta-api-openapi.yml#/components/schemas/RadarSearchInput",
  "properties": {
    "query": {
      "type": "string",
      "maxLength": 500,
      "minLength": 2,
      "title": "Query",
      "description": "Natural-language description of the trend, topic, or audience."
    },
    "limit": {
      "type": "integer",
      "maximum": 50.0,
      "minimum": 1.0,
      "title": "Limit",
      "default": 10
    },
    "card_type": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "trend_moment",
            "topic",
            "entity_breakout"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Card Type",
      "description": "Restrict results to one item type."
    },
    "program": {
      "type": "string",
      "const": "general_market",
      "title": "Program",
      "description": "Production market catalog searched for results.",
      "default": "general_market"
    },
    "lifecycle": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Lifecycle",
      "description": "Restrict results to one lifecycle state."
    },
    "brand_safety": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Brand Safety",
      "description": "Restrict results by brand-safety assessment."
    }
  },
  "type": "object",
  "required": [
    "query"
  ]
}