{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A reference to another work, and the ways in which that work is referenced by this one.",
      "properties": {
        "shapes": {
          "items": {
            "ref": "#shapeRef",
            "type": "ref"
          },
          "maxLength": 50,
          "type": "array"
        },
        "work": {
          "description": "A reference to the source work.",
          "ref": "com.atproto.repo.strongRef",
          "type": "ref"
        }
      },
      "required": [
        "work"
      ],
      "type": "object"
    },
    "shapeRef": {
      "description": "A reference to a shape in another work.",
      "properties": {
        "dest": {
          "description": "The index of the \"destination\" shape (in this work) that references the source shape.",
          "maximum": 49,
          "minimum": 0,
          "type": "integer"
        },
        "src": {
          "description": "The index of the \"source\" shape that is being referenced. The source shape must not reference any shape.",
          "maximum": 49,
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "src",
        "dest"
      ],
      "type": "object"
    }
  },
  "id": "app.blots.work.ref",
  "lexicon": 1
}
