summaryrefslogtreecommitdiff
path: root/spec/fixtures/api/schemas/public_api/v4/system_hook.json
blob: b6f56b948a0ad9597f1bc98f3b000868262e4385 (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
{
  "type": "object",
  "required": [
    "id",
    "url",
    "created_at",
    "push_events",
    "tag_push_events",
    "merge_requests_events",
    "repository_update_events",
    "enable_ssl_verification",
    "alert_status",
    "disabled_until",
    "url_variables"
  ],
  "properties": {
    "id": { "type": "integer" },
    "url": { "type": "string" },
    "created_at": { "type": "string" },
    "push_events": { "type": "boolean" },
    "tag_push_events": { "type": "boolean" },
    "merge_requests_events": { "type": "boolean" },
    "repository_update_events": { "type": "boolean" },
    "enable_ssl_verification": { "type": "boolean" },
    "alert_status": { "type": "string", "enum": ["executable", "disabled", "temporarily_disabled"] },
    "disabled_until": { "type": ["string", "null"] },
    "url_variables": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": ["key"],
        "properties": {
          "key": { "type": "string" }
        }
      }
    }
  },
  "additionalProperties": false
}