1
0
Fork 0
golang-forgejo-f3-gof3/f3/schemas/reviewcomment.json

78 lines
2 KiB
JSON
Raw Permalink Normal View History

{
"title": "Review comment",
"description": "A comment in the context of a review.",
"type": "object",
"additionalProperties": false,
"properties": {
"index": {
"description": "Unique identifier of the review comment.",
"type": "string"
},
"content": {
"description": "The text of the review comment.",
"type": "string"
},
"tree_path": {
"description": "The relative path to the file commented on.",
"type": "string"
},
"diff_hunk": {
"description": "The hunk commented on.",
"type": "string"
},
"line": {
"description": "The line number of the comment relative to the tree_path.",
"type": "number"
},
"lines_count": {
"description": "The range of lines that are commented on. If absent it defaults to one and is a single line comment. If specified it must be a positive number. If line is N and lines_count is C, the range of lines commented on is ]N-C,N]. In other words, the range starts lines_count before line, which is the last of the range",
"type": "number"
},
"commit_id": {
"description": "The SHA of the tree_path commented on.",
"type": "string"
},
"poster_id": {
"description": "Unique identifier of the user who authored the comment.",
"type": "string"
},
"reactions": {
"description": "List of reactions.",
"type": "array",
"items": {
"$ref": "reaction.json"
}
},
"created_at": {
"description": "Creation time.",
"type": "string",
"format": "date-time"
},
"updated_at": {
"description": "Last update time.",
"type": "string",
"format": "date-time"
},
"resolver": {
"description": "Unique identifier of the user who resolved the comment.",
"type": "string"
}
},
"required": [
"index",
"content",
"tree_path",
"diff_hunk",
"line",
"commit_id",
"poster_id",
"created_at",
"updated_at"
],
"$schema": "http://json-schema.org/draft-04/schema#",
"$id": "https://code.forgejo.org/f3/f3-schemas/src/branch/main/reviewcomment.json",
"$$target": "reviewcomment.json"
}