50 lines
1.2 KiB
JSON
50 lines
1.2 KiB
JSON
|
{
|
||
|
"title": "Comment",
|
||
|
"description": "Comment associated to a commentable object (i.e. issue, review, etc.). Forge users add a comment to an object to create a non-threaded conversation.",
|
||
|
|
||
|
"type": "object",
|
||
|
"additionalProperties": false,
|
||
|
"properties": {
|
||
|
"index": {
|
||
|
"description": "Unique identifier of the comment.",
|
||
|
"type": "string"
|
||
|
},
|
||
|
"poster_id": {
|
||
|
"description": "Unique identifier of the comment author.",
|
||
|
"type": "string"
|
||
|
},
|
||
|
"created": {
|
||
|
"description": "Creation time.",
|
||
|
"type": "string",
|
||
|
"format": "date-time"
|
||
|
},
|
||
|
"updated": {
|
||
|
"description": "Last update time.",
|
||
|
"type": "string",
|
||
|
"format": "date-time"
|
||
|
},
|
||
|
"content": {
|
||
|
"description": "Markdown content of the comment.",
|
||
|
"type": "string"
|
||
|
},
|
||
|
"reactions": {
|
||
|
"description": "List of reactions.",
|
||
|
"type": "array",
|
||
|
"items": {
|
||
|
"$ref": "reaction.json"
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"required": [
|
||
|
"index",
|
||
|
"poster_id",
|
||
|
"created",
|
||
|
"updated",
|
||
|
"content"
|
||
|
],
|
||
|
|
||
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
||
|
"$id": "https://code.forgejo.org/f3/f3-schemas/src/branch/main/comment.json",
|
||
|
"$$target": "comment.json"
|
||
|
}
|