{
"id": "pub.oysters.comment",
"defs": {
"main": {
"key": "tid",
"type": "record",
"record": {
"type": "object",
"required": [
"text",
"subject",
"createdAt"
],
"properties": {
"text": {
"type": "string",
"maxLength": 40000,
"minLength": 1,
"description": "The comment body, in plain text.",
"maxGraphemes": 10000
},
"parent": {
"ref": "com.atproto.repo.strongRef",
"type": "ref",
"description": "The comment being replied to. Absent on a top-level comment."
},
"subject": {
"ref": "com.atproto.repo.strongRef",
"type": "ref",
"description": "The post this comment belongs to — the thread root. Carried on every comment, including replies, so a consumer can attach a comment to its thread without walking the parent chain."
},
"createdAt": {
"type": "string",
"format": "datetime",
"description": "When the author wrote the comment."
}
}
},
"description": "A comment in a post's discussion, or a reply to another comment."
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1
}