{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$defs": {
    "EntryRef": {
      "properties": {
        "root_id": {
          "type": "string"
        },
        "space_id": {
          "type": "string"
        },
        "position": {
          "type": "integer"
        }
      },
      "type": "object",
      "required": [
        "root_id",
        "space_id",
        "position"
      ],
      "description": "EntryRef is the occurrence identity of one entry: a position in one journal."
    }
  },
  "properties": {
    "view": {
      "$ref": "#/$defs/EntryRef"
    },
    "outcome": {
      "type": "string"
    },
    "records": {
      "items": true,
      "type": "array"
    },
    "coverage": true,
    "limits": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "next_cursor": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "type": "object",
  "required": [
    "view",
    "outcome",
    "records",
    "coverage",
    "limits"
  ],
  "title": "QueryResult",
  "description": "QueryResult carries records with the view, coverage and limits it holds for."
}
