/
edited.schema.json
73 lines (73 loc) · 2.14 KB
/
edited.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "discussion_comment$edited",
"type": "object",
"required": [
"action",
"changes",
"comment",
"discussion",
"repository",
"sender",
"installation"
],
"properties": {
"changes": {
"type": "object",
"required": ["body"],
"properties": {
"body": {
"type": "object",
"required": ["from"],
"properties": { "from": { "type": "string" } },
"additionalProperties": false
}
},
"additionalProperties": false
},
"action": { "type": "string", "enum": ["edited"] },
"comment": {
"type": "object",
"required": [
"id",
"node_id",
"html_url",
"parent_id",
"child_comment_count",
"repository_url",
"discussion_id",
"author_association",
"user",
"created_at",
"updated_at",
"body",
"reactions"
],
"properties": {
"id": { "type": "integer" },
"node_id": { "type": "string" },
"html_url": { "type": "string" },
"parent_id": { "type": ["integer", "null"] },
"child_comment_count": { "type": "integer" },
"repository_url": { "type": "string" },
"discussion_id": { "type": "integer" },
"author_association": {
"$ref": "common/author_association.schema.json"
},
"user": { "$ref": "common/user.schema.json" },
"created_at": { "type": "string", "format": "date-time" },
"updated_at": { "type": "string", "format": "date-time" },
"body": { "type": "string" },
"reactions": { "$ref": "common/reactions.schema.json" }
},
"additionalProperties": false
},
"discussion": { "$ref": "common/discussion.schema.json" },
"repository": { "$ref": "common/repository.schema.json" },
"sender": { "$ref": "common/user.schema.json" },
"installation": { "$ref": "common/installation-lite.schema.json" },
"organization": { "$ref": "common/organization.schema.json" }
},
"additionalProperties": false,
"title": "discussion_comment edited event"
}