{
"id": "app.didpic.feed.comment",
"defs": {
"main": {
"key": "tid",
"type": "record",
"record": {
"type": "object",
"required": [
"subject",
"createdAt"
],
"properties": {
"alt": {
"type": "string",
"maxLength": 10000,
"description": "Alt text for accessibility. Required by the client when `image` is set and the author has the requireAltText pref enabled.",
"maxGraphemes": 1000
},
"text": {
"type": "string",
"maxLength": 10000,
"maxGraphemes": 1000
},
"image": {
"type": "blob",
"accept": [
"image/png",
"image/jpeg",
"image/webp"
],
"maxSize": 5000000
},
"facets": {
"type": "array",
"items": {
"ref": "app.didpic.richtext.facet",
"type": "ref"
}
},
"labels": {
"ref": "app.didpic.feed.post#selfLabels",
"type": "ref",
"description": "Self-applied content labels (e.g. nsfw) on the comment's image."
},
"parent": {
"ref": "com.atproto.repo.strongRef",
"type": "ref",
"description": "The comment being replied to."
},
"subject": {
"ref": "com.atproto.repo.strongRef",
"type": "ref",
"description": "The post being commented on."
},
"createdAt": {
"type": "string",
"format": "datetime"
},
"aspectRatio": {
"ref": "app.didpic.feed.post#aspectRatio",
"type": "ref"
}
}
},
"description": "A comment on a post. Optionally includes a single image with alt text and self-applied labels — same image shape as feed.post. Either text or image (or both) must be present in practice; the lexicon doesn't enforce that since 'one of N required' isn't expressible."
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1
}