{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/vertesiahq/json-schema/vertesiahq-content-query-result-schema.json",
  "title": "ContentQueryResult",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/vertesiahq-content-query-api-openapi.yml#/components/schemas/ContentQueryResult",
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "sql",
        "esql",
        "dsl"
      ]
    },
    "columns": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "type"
        ],
        "additionalProperties": false
      }
    },
    "rows": {
      "type": "array",
      "items": {
        "type": "array",
        "items": {}
      }
    },
    "hits": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "score": {
            "type": "number"
          },
          "source": {}
        },
        "required": [
          "id",
          "score",
          "source"
        ],
        "additionalProperties": false
      }
    },
    "total": {
      "type": "number"
    },
    "aggregations": {
      "type": "object",
      "additionalProperties": true
    },
    "cursor": {
      "type": "string"
    },
    "took": {
      "type": "number"
    }
  },
  "required": [
    "type"
  ],
  "additionalProperties": false
}