/
issue.schema.json
92 lines (92 loc) · 2.97 KB
/
issue.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "common/issue.schema.json",
"description": "The [issue](https://docs.github.com/en/rest/reference/issues) itself.",
"required": [
"url",
"repository_url",
"labels_url",
"comments_url",
"events_url",
"html_url",
"id",
"node_id",
"number",
"title",
"user",
"assignees",
"milestone",
"comments",
"created_at",
"updated_at",
"closed_at",
"author_association",
"active_lock_reason",
"body",
"reactions"
],
"type": "object",
"properties": {
"url": {
"type": "string",
"format": "uri",
"description": "URL for the issue"
},
"repository_url": { "type": "string", "format": "uri" },
"labels_url": { "type": "string", "format": "uri-template" },
"comments_url": { "type": "string", "format": "uri" },
"events_url": { "type": "string", "format": "uri" },
"html_url": { "type": "string", "format": "uri" },
"id": { "type": "integer" },
"node_id": { "type": "string" },
"number": { "type": "integer" },
"title": { "type": "string", "description": "Title of the issue" },
"user": { "$ref": "user.schema.json" },
"labels": { "type": "array", "items": { "$ref": "label.schema.json" } },
"state": {
"type": "string",
"enum": ["open", "closed"],
"description": "State of the issue; either 'open' or 'closed'"
},
"locked": { "type": "boolean" },
"assignee": {
"oneOf": [{ "$ref": "user.schema.json" }, { "type": "null" }]
},
"assignees": { "type": "array", "items": { "$ref": "user.schema.json" } },
"milestone": {
"oneOf": [{ "$ref": "milestone.schema.json" }, { "type": "null" }]
},
"comments": { "type": "integer" },
"created_at": { "type": "string", "format": "date-time" },
"updated_at": { "type": "string", "format": "date-time" },
"closed_at": { "type": ["string", "null"], "format": "date-time" },
"author_association": { "$ref": "author_association.schema.json" },
"active_lock_reason": {
"type": ["string", "null"],
"enum": ["resolved", "off-topic", "too heated", "spam", null]
},
"draft": { "type": "boolean" },
"performed_via_github_app": {
"oneOf": [{ "$ref": "app.schema.json" }, { "type": "null" }]
},
"pull_request": {
"type": "object",
"properties": {
"url": { "type": "string", "format": "uri" },
"html_url": { "type": "string", "format": "uri" },
"diff_url": { "type": "string", "format": "uri" },
"patch_url": { "type": "string", "format": "uri" },
"merged_at": { "type": ["string", "null"], "format": "date-time" }
},
"additionalProperties": false
},
"body": {
"type": ["string", "null"],
"description": "Contents of the issue"
},
"reactions": { "$ref": "reactions.schema.json" },
"timeline_url": { "type": "string", "format": "uri" }
},
"additionalProperties": false,
"title": "Issue"
}