{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$defs": {
    "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"
        }
      ]
    },
    "profile": {
      "type": "string"
    },
    "record": true,
    "metadata": {
      "additionalProperties": {
        "type": "string"
      },
      "type": "object"
    }
  },
  "type": "object",
  "required": [
    "operation_id",
    "path",
    "profile",
    "record"
  ],
  "title": "PublishRequest",
  "description": "PublishRequest appends a record to the individual record's leaf journal at path, creating the leaf under its organizer when absent."
}
