{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/datagraph-city/json-schema/datagraph-city-query-response-schema.json",
  "title": "QueryResponse",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/datagraph-city-openapi.json#/components/schemas/QueryResponse",
  "properties": {
    "results": {
      "items": {
        "type": "object"
      },
      "type": "array",
      "title": "Results"
    },
    "count": {
      "type": "integer",
      "title": "Count"
    },
    "execution_time_ms": {
      "type": "integer",
      "title": "Execution Time Ms"
    },
    "query_type": {
      "$ref": "#/$defs/QueryType"
    },
    "credits_used": {
      "type": "integer",
      "title": "Credits Used"
    }
  },
  "type": "object",
  "required": [
    "results",
    "count",
    "execution_time_ms",
    "query_type",
    "credits_used"
  ],
  "$defs": {
    "QueryType": {
      "type": "string",
      "enum": [
        "graph",
        "vector",
        "hybrid"
      ],
      "title": "QueryType"
    }
  }
}