{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Record containing a reply to a forum topic or another reply.",
      "key": "tid",
      "record": {
        "properties": {
          "community": {
            "description": "DID of the community where this reply was created. Immutable origin identifier.",
            "format": "did",
            "type": "string"
          },
          "content": {
            "description": "Reply body content. Open union for extensible content formats.",
            "refs": [
              "forum.barazo.richtext#markdown"
            ],
            "type": "union"
          },
          "createdAt": {
            "description": "Client-declared timestamp when this reply was originally created.",
            "format": "datetime",
            "type": "string"
          },
          "facets": {
            "description": "Annotations of text (mentions, URLs, hashtags, etc).",
            "items": {
              "ref": "app.bsky.richtext.facet",
              "type": "ref"
            },
            "type": "array"
          },
          "labels": {
            "description": "Self-label values for content maturity.",
            "refs": [
              "com.atproto.label.defs#selfLabels"
            ],
            "type": "union"
          },
          "langs": {
            "description": "BCP 47 language tags indicating the primary language(s) of the content.",
            "items": {
              "format": "language",
              "type": "string"
            },
            "maxLength": 3,
            "type": "array"
          },
          "parent": {
            "description": "Direct parent (topic or reply). For top-level replies, parent == root.",
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "root": {
            "description": "The original topic (AT URI of forum.barazo.topic.post).",
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          }
        },
        "required": [
          "content",
          "root",
          "parent",
          "community",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "description": "A reply to a forum topic or another reply, with threaded parent references and community attribution.",
  "id": "forum.barazo.topic.reply",
  "lexicon": 1
}
