{
  "lexicon": 1,
  "id": "net.bisks.subatomic.comment",
  "defs": {
    "main": {
      "type": "record",
      "description": "One comment on a subatomic post. Flat (no nested replies) in this version. Written to the commenter's own repo; src/index.ts's /api/submit-comment reads it back off that repo to verify it before folding it into the post's shared comment thread at https://subatomic.bisks.net.",
      "key": "tid",
      "record": {
        "type": "object",
        "required": ["post", "text", "createdAt"],
        "properties": {
          "post": {
            "type": "string",
            "format": "at-uri",
            "description": "The at-uri of the net.bisks.subatomic.post this comments on."
          },
          "text": {
            "type": "string",
            "maxLength": 5000,
            "maxGraphemes": 2000,
            "description": "The comment body."
          },
          "createdAt": {
            "type": "string",
            "format": "datetime",
            "description": "When this was posted, as an ISO 8601 datetime."
          }
        }
      }
    }
  }
}
