{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "key": "tid",
      "record": {
        "properties": {
          "context": {
            "description": "Why this link exists",
            "maxLength": 512,
            "type": "string"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "linkType": {
            "knownValues": [
              "related-to",
              "depends-on",
              "extends",
              "contradicts",
              "is-example-of",
              "supersedes",
              "references",
              "defines",
              "is-part-of"
            ],
            "type": "string"
          },
          "source": {
            "format": "at-uri",
            "type": "string"
          },
          "sourceAnchor": {
            "description": "Section heading slug in source",
            "type": "string"
          },
          "target": {
            "format": "at-uri",
            "type": "string"
          },
          "targetAnchor": {
            "description": "Section heading slug in target",
            "type": "string"
          }
        },
        "required": [
          "source",
          "target",
          "linkType",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "description": "Typed semantic link between any two ATProto records. Supports 9 link types and cross-PDS targeting.",
  "id": "diy.razorgirl.winter.wikiLink",
  "lexicon": 1
}
