{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/upriver-ai/json-schema/upriver-ai-category-search-input-schema.json",
  "title": "CategorySearchInput",
  "description": "Input for category search endpoint.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/upriver-ai-taxonomy-api-openapi.yml#/components/schemas/CategorySearchInput",
  "properties": {
    "text": {
      "type": "string",
      "title": "Text",
      "description": "Freeform text to match against category taxonomy"
    },
    "top_k": {
      "type": "integer",
      "maximum": 20.0,
      "minimum": 1.0,
      "title": "Top K",
      "description": "Number of categories to return, ordered by relevance",
      "default": 5
    }
  },
  "type": "object",
  "required": [
    "text"
  ]
}