{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A change to what readers see of a post, recorded without editing the text itself. Patches apply in order of createdAt, then id.",
      "key": "tid",
      "record": {
        "properties": {
          "anchor": {
            "description": "Text that appears exactly once in the post as it currently reads.",
            "type": "string"
          },
          "createdAt": {
            "description": "When this record was written (UTC).",
            "format": "datetime",
            "type": "string"
          },
          "id": {
            "description": "Name of the patch, unique on the site (lowercase letters, digits and hyphens).",
            "type": "string"
          },
          "lang": {
            "description": "Which version the patch changes: ko or en. Absent means ko.",
            "knownValues": [
              "ko",
              "en"
            ],
            "type": "string"
          },
          "op": {
            "description": "What to do at the anchor: replace it, insert text before or after it, or delete it.",
            "knownValues": [
              "replace",
              "insert-before",
              "insert-after",
              "delete"
            ],
            "type": "string"
          },
          "post": {
            "description": "Id of the post this record belongs to (the rkey of its com.guineeeeeeeeeeeeeeeeeeeeeeeerm.post record, YYYYMMDD-HHMMSS).",
            "type": "string"
          },
          "text": {
            "description": "The new text. Required for replace, insert-before and insert-after; absent for delete.",
            "type": "string"
          },
          "why": {
            "description": "Why the author made this change, in their own words.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "post",
          "why",
          "op",
          "anchor",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "com.guineeeeeeeeeeeeeeeeeeeeeeeerm.patch",
  "lexicon": 1
}
