about summary refs log tree commit diff
path: root/third_party/go/git-appraise/schema/request.json
blob: 9ec022a16e9e4e67d1e43bdc116840877f6be037 (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{
  "$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}"
    },

    "requester": {
      "type": "string"
    },

    "baseCommit": {
      "type": "string"
    },

    "reviewRef": {
      "description": "used to specify a git ref that tracks the current revision under review",
      "type": "string"
    },

    "targetRef": {
      "description": "used to specify the git ref that should be updated once the review is approved",
      "type": "string"
    },

    "reviewers": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },

    "description": {
      "type": "string"
    },

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

    "alias": {
      "description": "used to specify a post-rebase commit hash for the review",
      "type": "string"
    }
  },

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