{
  "lexicon": 1,
  "id": "net.bisks.catspace.comment",
  "defs": {
    "main": {
      "type": "record",
      "description": "A guestbook comment left on someone else's catspace page, written to the commenter's own repo via createRecord (PDS-assigned TID rkey) and rendered on the subject's /cat/<handle> guestbook. Written and read by catspace (https://catspace.bisks.net).",
      "key": "tid",
      "record": {
        "type": "object",
        "required": ["subject", "text", "createdAt"],
        "properties": {
          "subject": {
            "type": "string",
            "format": "did",
            "description": "DID of the catspace profile owner this comment was left for."
          },
          "text": {
            "type": "string",
            "maxLength": 4000,
            "maxGraphemes": 1000,
            "description": "The guestbook comment text. No client-side length cap exists in the UI today, so this limit is a conservative guess rather than a mirrored constraint — worth tightening once the UI gains an explicit cap."
          },
          "createdAt": {
            "type": "string",
            "format": "datetime",
            "description": "When the comment was posted, as an ISO 8601 datetime."
          }
        }
      }
    }
  }
}
