{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fluxito-app/json-schema/fluxito-app-batch-response-schema.json",
  "title": "BatchResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fluxito-app-dashboard-query-api-openapi.yml#/components/schemas/BatchResponse",
  "properties": {
    "results": {
      "additionalProperties": {
        "$ref": "#/$defs/CardResult"
      },
      "type": "object",
      "title": "Results"
    }
  },
  "type": "object",
  "required": [
    "results"
  ],
  "$defs": {
    "CardResult": {
      "properties": {
        "rows": {
          "anyOf": [
            {
              "items": {
                "additionalProperties": true,
                "type": "object"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Rows"
        },
        "row_count": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Row Count"
        },
        "columns": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Columns"
        },
        "cache_hit": {
          "type": "boolean",
          "title": "Cache Hit",
          "default": false
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Error"
        }
      },
      "type": "object",
      "title": "CardResult"
    }
  }
}