summaryrefslogtreecommitdiff
path: root/spec/fixtures/api/schemas/entities/merge_request_widget.json
blob: 779a47222b74a53e0f2356f7655834da2d52ce0f (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
{
  "type": "object",
  "allOf": [
    { "$ref": "merge_request_poll_cached_widget.json" },
    { "$ref": "merge_request_poll_widget.json" },
    {
      "properties" : {
        "merge_params": { "type": ["object", "null"] },
        "source_project_full_path": { "type": ["string", "null"]},
        "target_project_full_path": { "type": ["string", "null"]},
        "email_patches_path": { "type": "string" },
        "plain_diff_path": { "type": "string" },
        "merge_request_basic_path": { "type": "string" },
        "merge_request_widget_path": { "type": "string" },
        "merge_request_cached_widget_path": { "type": "string" },
        "create_note_path": { "type": ["string", "null"] },
        "commit_change_content_path": { "type": "string" },
        "preview_note_path": { "type": ["string", "null"] },
        "conflicts_docs_path": { "type": ["string", "null"] },
        "merge_request_pipelines_docs_path": { "type": ["string", "null"] },
        "ci_environments_status_path": { "type": "string" },
        "issues_links": {
          "type": "object",
          "required": ["closing", "mentioned_but_not_closing", "assign_to_closing"],
          "properties" : {
            "closing": { "type": "string" },
            "mentioned_but_not_closing": { "type": "string" },
            "assign_to_closing": { "type": ["string", "null"] }
          },
          "additionalProperties": false
        }
      }
    }
  ]
}