{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "snapshotId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 512,
      "pattern": "^[^\\s]+$"
    },
    "action": {
      "type": "string",
      "enum": [
        "create",
        "reply",
        "edit",
        "delete",
        "status",
        "reattach"
      ]
    },
    "threadId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 512,
      "pattern": "^[^\\s]+$"
    },
    "commentId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 512,
      "pattern": "^[^\\s]+$"
    },
    "path": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1024,
      "pattern": "^(?!/)(?!.*(?:^|/)\\.\\.?(?:/|$))[^\\\\\\u0000]+$"
    },
    "lineStart": {
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    },
    "lineEnd": {
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    },
    "blobHash": {
      "type": "string",
      "maxLength": 128
    },
    "sha256": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$"
    },
    "bodyMarkdown": {
      "type": "string",
      "maxLength": 8192
    },
    "status": {
      "type": "string",
      "enum": [
        "open",
        "resolved"
      ]
    },
    "expectedVersion": {
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    },
    "requestDecision": {
      "type": "boolean"
    },
    "poll": {
      "type": "object"
    }
  },
  "required": [
    "snapshotId",
    "action"
  ]
}