about summary refs log tree commit diff
path: root/third_party/go/git-appraise/schema/comment.json
blob: a39b1a2e670bc2af0f0aa6cc06f605b17186f91e (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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
{
  "$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}"
    },

    "author": {
      "type": "string"
    },

    "original": {
      "description": "the SHA1 hash of another comment on the same revision, and it means this comment is an updated version of that comment",
      "type": "string"
    },

    "parent": {
      "description": "the SHA1 hash of another comment on the same revision, and it means this comment is a reply to that comment",
      "type": "string"
    },

    "location": {
      "type": "object",
      "properties": {
        "commit": {
          "type": "string"
        },
        "path": {
          "type": "string"
        },
        "range": {
          "type": "object",
          "properties": {
            "startLine": {
              "type": "integer"
            },
            "startColumn": {
              "type": "integer"
            },
            "endLine": {
              "type": "integer"
            },
            "endColumn": {
              "type": "integer"
            }
          }
        }
      }
    },

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

    "resolved": {
      "type": "boolean"
    },

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

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