{

"$schema": "http://json-schema.org/draft-07/schema",
"definitions": {
  "file_id": {
    "type": "string"
  },
  "file": {
    "type": "object",
    "description": "(defined by script)",
    "properties": {
      "id": {
        "$ref": "#/definitions/file_id"
      }
    }
  },
  "file_shared": {
    "type": "object",
    "description": "learn more: https://api.slack.com/events/file_shared",
    "properties": {
      "file": {
        "$ref": "#/definitions/file"
      },
      "file_id": {
        "$ref": "#/definitions/file_id"
      },
      "type": {
        "const": "file_shared"
      }
    },
    "example": {
      "file": {
        "id": "F2147483862"
      },
      "file_id": "F2147483862",
      "type": "file_shared"
    }
  }
}

}