{
  "$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."
    },
    "Path": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "description": "Path is a location in the world: labels from a root organizer down, relative to the world."
    }
  },
  "properties": {
    "operation_id": {
      "type": "string"
    },
    "path": {
      "$ref": "#/$defs/Path"
    },
    "expected_cutoff": {
      "oneOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ]
    },
    "selections": {
      "items": {
        "$ref": "#/$defs/EntryRef"
      },
      "type": "array"
    },
    "rules": true,
    "interpretation_profile": {
      "type": "string"
    },
    "metadata": {
      "additionalProperties": {
        "type": "string"
      },
      "type": "object"
    }
  },
  "type": "object",
  "required": [
    "operation_id",
    "path",
    "selections",
    "rules",
    "interpretation_profile"
  ],
  "title": "ComposeRequest",
  "description": "ComposeRequest composes a view from exact occurrence selections and publishes it as a record under views/."
}
