summaryrefslogtreecommitdiff
path: root/spec/fixtures/api/schemas/entities/discussion.json
blob: bcc1db79e83b4f0368fc9cb5e86afcccedec268e (plain)
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
{
  "type": "object",
  "required" : [
    "id",
    "notes",
    "individual_note"
  ],
  "properties" : {
    "id": { "type": "string" },
    "individual_note": { "type": "boolean" },
    "notes": {
      "type": "array",
      "items": {
        "type": "object",
        "properties" : {
          "id": { "type": "string" },
          "type": { "type": ["string", "null"] },
          "body": { "type": "string" },
          "attachment": { "type": ["string", "null"]},
          "award_emoji": { "type": "array" },
          "author": {
            "type": "object",
            "properties": {
              "name": { "type": "string" },
              "username": { "type": "string" },
              "id": { "type": "integer" },
              "state": { "type": "string" },
              "avatar_url": { "type": "uri" },
              "web_url": { "type": "uri" },
              "status_tooltip_html": { "type": ["string", "null"] },
              "path": { "type": "string" }
            },
            "additionalProperties": false
          },
          "created_at": { "type": "date" },
          "updated_at": { "type": "date" },
          "system": { "type": "boolean" },
          "noteable_id": { "type": "integer" },
          "noteable_iid": { "type": "integer" },
          "noteable_type": { "type": "string" },
          "resolved": { "type": "boolean" },
          "resolvable": { "type": "boolean" },
          "resolved_by": { "type": ["string", "null"] },
          "note": { "type": "string" },
          "note_html": { "type": "string"  },
          "current_user": { "type": "object" },
          "suggestions": { "type": "array" },
          "discussion_id": { "type": "string" },
          "emoji_awardable": { "type": "boolean" },
          "report_abuse_path": { "type": "string" },
          "noteable_note_url": { "type": "string" },
          "resolve_path": { "type": "string" },
          "resolve_with_issue_path": { "type": "string" },
          "cached_markdown_version": { "type": "integer" },
          "human_access": { "type": ["string", "null"] },
          "toggle_award_path": { "type": "string" },
          "path": { "type": "string" }
        },
        "required": [
          "id", "attachment", "author", "created_at", "updated_at",
          "system", "noteable_id", "noteable_type"
        ],
        "additionalProperties": false
      }
    }
  }
}