1{
2  "type": "object",
3  "required" : [
4    "id",
5    "notes",
6    "individual_note"
7  ],
8  "properties" : {
9    "id": { "type": "string" },
10    "individual_note": { "type": "boolean" },
11    "notes": {
12      "type": "array",
13      "items": {
14        "type": "object",
15        "properties" : {
16          "id": { "type": "string" },
17          "type": { "type": ["string", "null"] },
18          "body": { "type": "string" },
19          "attachment": { "type": ["string", "null"]},
20          "award_emoji": { "type": "array" },
21          "author": {
22            "type": "object",
23            "properties": {
24              "name": { "type": "string" },
25              "username": { "type": "string" },
26              "id": { "type": "integer" },
27              "state": { "type": "string" },
28              "avatar_url": { "type": "uri" },
29              "web_url": { "type": "uri" },
30              "status_tooltip_html": { "type": ["string", "null"] },
31              "path": { "type": "string" }
32            },
33            "required": [
34              "id",
35              "state",
36              "avatar_url",
37              "path",
38              "name",
39              "username"
40            ]
41          },
42          "created_at": { "type": "string", "format": "date-time" },
43          "updated_at": { "type": "string", "format": "date-time" },
44          "system": { "type": "boolean" },
45          "noteable_id": { "type": "integer" },
46          "noteable_iid": { "type": ["integer", "null"] },
47          "noteable_type": { "type": "string" },
48          "resolved": { "type": "boolean" },
49          "resolvable": { "type": "boolean" },
50          "resolved_by": { "type": ["string", "null"] },
51          "resolved_at": { "type": ["string", "null"], "format": "date-time" },
52          "note": { "type": "string" },
53          "note_html": { "type": "string"  },
54          "current_user": { "type": "object" },
55          "suggestions": { "type": "array" },
56          "discussion_id": { "type": "string" },
57          "emoji_awardable": { "type": "boolean" },
58          "report_abuse_path": { "type": "string" },
59          "noteable_note_url": { "type": "string" },
60          "resolve_path": { "type": "string" },
61          "resolve_with_issue_path": { "type": "string" },
62          "cached_markdown_version": { "type": "integer" },
63          "human_access": { "type": ["string", "null"] },
64          "is_noteable_author": { "type": "boolean" },
65          "is_contributor": { "type": "boolean" },
66          "project_name": { "type": "string" },
67          "toggle_award_path": { "type": "string" },
68          "path": { "type": "string" },
69          "commands_changes": { "type": "object", "additionalProperties": true },
70          "confidential": { "type": ["boolean", "null"] }
71        },
72        "required": [
73          "id", "attachment", "author", "created_at", "updated_at",
74          "system", "noteable_id", "noteable_type"
75        ],
76        "additionalProperties": false
77      }
78    }
79  }
80}
81