summaryrefslogtreecommitdiff
path: root/spec/fixtures/api/schemas/public_api/v4/job.json
blob: c038ae0a664fbd976aeef2fff647608b30c69118 (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
{
  "type": "object",
  "required": [
    "id",
    "status",
    "stage",
    "name",
    "ref",
    "tag",
    "coverage",
    "created_at",
    "started_at",
    "finished_at",
    "duration",
    "user",
    "commit",
    "pipeline",
    "web_url",
    "artifacts",
    "artifacts_expire_at",
    "runner"
  ],
  "properties": {
    "id": { "type": "integer" },
    "status": { "type": "string" },
    "stage": { "type": "string" },
    "name": { "type": "string" },
    "ref": { "type": "string" },
    "tag": { "type": "boolean" },
    "coverage": { "type": ["number", "null"] },
    "allow_failure": { "type": "boolean" },
    "created_at": { "type": "string" },
    "started_at": { "type": ["null", "string"] },
    "finished_at": { "type": ["null", "string"] },
    "duration": { "type": ["null", "number"] },
    "user": { "$ref": "user/basic.json" },
    "commit": {
      "oneOf": [
        { "type": "null" },
        { "$ref": "commit/basic.json" }
      ]
    },
    "pipeline": { "$ref": "pipeline/basic.json" },
    "web_url": { "type": "string" },
    "artifacts": {
      "type": "array",
      "items": { "$ref": "artifact.json" }
    },
    "artifacts_file": {
      "oneOf": [
        { "type": "null" },
        { "$ref": "artifact_file.json" }
      ]
    },
    "artifacts_expire_at": { "type": ["null", "string"] },
    "runner": {
      "oneOf": [
        { "type": "null" },
        { "$ref": "runner.json" }
      ]
    }
  },
  "additionalProperties":false
}