summaryrefslogtreecommitdiff
path: root/spec/fixtures/api/schemas/entities/merge_request_sidebar.json
blob: 7e9e048a9fd101e577bd39e5861dc054643f2df6 (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
{
  "type": "object",
  "properties" : {
    "id": { "type": "integer" },
    "type": { "type": "string" },
    "author_id": { "type": "integer" },
    "project_id": { "type": "integer" },
    "discussion_locked": { "type": ["boolean", "null"] },
    "reference": { "type": "string" },
    "current_user": {
      "allOf": [
        { "$ref": "../public_api/v4/user/basic.json" },
        { "type": "object",
          "properties" : {
            "todo": { "$ref": "issuable_sidebar_todo.json" },
            "can_edit": { "type": "boolean" },
            "can_move": { "type": "boolean" },
            "can_admin_label": { "type": "boolean" }
          }
        }
      ]
    },
    "milestone": {
      "oneOf": [
        { "type": "null" },
        { "$ref": "../public_api/v4/milestones.json" }
      ]
    },
    "labels": {
      "type": "array",
      "items": { "$ref": "label.json" }
    },
    "assignee": {
      "allOf": [
        { "$ref": "../public_api/v4/user/basic.json" },
        { "type": "object",
          "properties" : {
            "can_merge": { "type": "boolean" }
          }
        }
      ]
    },
    "issuable_json_path": { "type": "string" },
    "namespace_path": { "type": "string" },
    "project_path": { "type": "string" },
    "project_full_path": { "type": "string" },
    "project_issuables_path": { "type": "string" },
    "create_todo_path": { "type": "string" },
    "project_milestones_path": { "type": "string" },
    "project_labels_path": { "type": "string" },
    "toggle_subscription_path": { "type": "string" },
    "move_issue_path": { "type": "string" },
    "projects_autocomplete_path": { "type": "string" }
  },
  "additionalProperties": false
}