{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Record representing a comment on an article. Deleting this record removes the comment.",
      "key": "tid",
      "record": {
        "properties": {
          "content": {
            "description": "The text content of the comment.",
            "maxGraphemes": 3000,
            "maxLength": 30000,
            "type": "string"
          },
          "createdAt": {
            "description": "Timestamp when the comment was created.",
            "format": "datetime",
            "type": "string"
          },
          "parent": {
            "description": "AT URI of the parent comment record. Used for single-level threading.",
            "format": "at-uri",
            "type": "string"
          },
          "subject": {
            "description": "AT URI of the article record being commented on.",
            "format": "at-uri",
            "type": "string"
          }
        },
        "required": [
          "subject",
          "content",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "description": "A comment on an article. Supports single-level threading via the optional parent field.",
  "id": "site.mochott.comment",
  "lexicon": 1,
  "revision": 1
}
