summaryrefslogtreecommitdiff
path: root/spec/fixtures/api/schemas/deployment.json
blob: 0828f11349512c0ac9dd7400c7acb96c19cf2aa5 (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
{
  "type": "object",
  "required": [
    "sha",
    "created_at",
    "iid",
    "tag",
    "last?",
    "ref",
    "id"
  ],
  "properties": {
    "created_at": { "type": "string" },
    "id": { "type": "integer" },
    "iid": { "type": "integer" },
    "last?": { "type": "boolean" },
    "ref": {
      "type": "object",
      "required": [
        "name"
      ],
      "properties": {
        "name": { "type": "string" },
        "ref_path": { "type": "string" }
      },
      "additionalProperties": false
    },
    "sha": { "type": "string" },
    "tag": { "type": "boolean" },
    "user": {
      "oneOf": [
        { "type": "null" },
        { "$ref": "entities/user.json" }
      ]
    },
    "commit": {
      "oneOf": [
        { "type": "null" },
        { "$ref": "entities/commit.json" }
      ]
    },
    "deployable": {
      "oneOf": [
        { "type": "null" },
        { "$ref": "job/job.json" }
      ]
    },
    "manual_actions": {
      "type": "array",
      "items": { "$ref": "job/job.json" }
    },
    "scheduled_actions": {
      "type": "array",
      "items": { "$ref": "job/job.json" }
    }
  },
  "additionalProperties": false
}