{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Record representing a comment on an article or comic. 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"
          },
          "page": {
            "description": "For comics: the work.sequential.page or work.sequential.slice of the chapter the comment is about. Replies keep their parent's value.",
            "format": "at-uri",
            "type": "string"
          },
          "panel": {
            "description": "For comics: index into the panels of the page or strip the comment is about. Replies keep their parent's value.",
            "minimum": 0,
            "type": "integer"
          },
          "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 record being commented on: a site.mochott.article, or a work.sequential.chapter or work.sequential.strip.",
            "format": "at-uri",
            "type": "string"
          }
        },
        "required": [
          "subject",
          "content",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "description": "A comment on an article or a comic chapter or strip. Supports single-level threading via the optional parent field.",
  "id": "site.mochott.comment",
  "lexicon": 1,
  "revision": 2
}
