{
  "type": "object",
  "properties": {
    "commit_id": {
      "type": "string",
      "description": "The SHA of the commit that needs a review. Not using the latest commit SHA may render your review comment outdated if a subsequent commit modifies the line you specify as the `position`. Defaults to the most recent commit in the pull request when you do not specify a value."
    },
    "body": {
      "type": "string",
      "description": "**Required** when using `REQUEST_CHANGES` or `COMMENT` for the `event` parameter. The body text of the pull request review."
    },
    "event": {
      "type": "string",
      "description": "The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. By leaving this blank, you set the review action state to `PENDING`, which means you will need to [submit the pull request review](https://docs.github.com/rest/pulls/reviews#submit-a-review-for-a-pull-request) when you are ready.",
      "enum": [
        "APPROVE",
        "REQUEST_CHANGES",
        "COMMENT"
      ]
    },
    "comments": {
      "type": "array",
      "description": "Use the following table to specify the location, destination, and contents of the draft review comment.",
      "items": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "description": "The relative path to the file that necessitates a review comment."
          },
          "position": {
            "type": "integer",
            "description": "The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. The `position` value equals the number of lines down from the first \"@@\" hunk header in the file you want to add a comment. The line just below the \"@@\" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file."
          },
          "body": {
            "type": "string",
            "description": "Text of the review comment."
          },
          "line": {
            "type": "integer"
          },
          "side": {
            "type": "string"
          },
          "start_line": {
            "type": "integer"
          },
          "start_side": {
            "type": "string"
          }
        },
        "required": [
          "path",
          "body"
        ]
      }
    }
  },
  "$schema": "https://json-schema.org/draft/2019-09/schema"
}