{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/SearchQuery",
  "title": "SearchQuery",
  "type": "object",
  "description": "Structured query object for searching configuration and runtime trees. Supports field filtering, link filtering, child traversal, and collection item filtering.",
  "properties": {
    "fields": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "List of property names to include"
    },
    "links": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "List of link relations to include"
    },
    "children": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/components/schemas/SearchQuery"
      },
      "description": "Child collections to traverse"
    },
    "names": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Filter collection items by name"
    },
    "mergeCollection": {
      "type": "boolean",
      "description": "Merge results from multiple servers"
    },
    "mergeOn": {
      "type": "string",
      "description": "Property name to merge collection items on"
    }
  }
}