about summary refs log tree commit diff
path: root/third_party/go/git-appraise/schema/ci.json
blob: 7436408290ce3216ef921f31c1956f97514eae6e (plain) (blame)
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
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",

  "properties": {
    "timestamp": {
      "description": "the number of seconds since the Unix epoch",
      "type": "string",
      "minLength": 10,
      "maxLength": 10,
      "pattern": "[0-9]{10,10}"
    },

    "agent": {
      "description": "a free-form string that identifies the build and test runner",
      "type": "string"
    },

    "status": {
      "description": "the final status of a build or test",
      "type": "string",
      "enum": [
        "success",
        "failure"
      ]
    },

    "url": {
      "type": "string"
    },

    "v": {
      "type": "integer",
      "enum": [0]
    }
  },

  "required": [
    "timestamp",
    "agent"
  ]
}