{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/vertesiahq/json-schema/vertesiahq-content-query-payload-schema.json",
  "title": "ContentQueryPayload",
  "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/ContentQueryPayload",
  "type": "object",
  "properties": {
    "sql": {
      "type": "string"
    },
    "esql": {
      "type": "string"
    },
    "dsl": {
      "type": "object",
      "properties": {
        "query": {
          "type": "object",
          "additionalProperties": true
        },
        "aggs": {
          "type": "object",
          "additionalProperties": true
        },
        "size": {
          "type": "number"
        },
        "from": {
          "type": "number"
        },
        "sort": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": true
          }
        }
      },
      "additionalProperties": false
    },
    "format": {
      "type": "string",
      "enum": [
        "json",
        "csv",
        "table"
      ]
    }
  },
  "additionalProperties": false
}