{
  "$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": {
    "kind": {
      "type": "string"
    },
    "target": {
      "$ref": "#/$defs/EntryRef"
    }
  },
  "type": "object",
  "required": [
    "kind",
    "target"
  ],
  "title": "Relation",
  "description": "Relation names a declaration's relation to another occurrence: supersedes, challenges or withdraws."
}
