about summary refs log blame commit diff
path: root/third_party/go/git-appraise/schema/comment.json
blob: a39b1a2e670bc2af0f0aa6cc06f605b17186f91e (plain) (tree)










































































                                                                                                                                              
{
  "$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"
  ]
}