{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/github/main/json-schema/github-review-comment-schema.json",
  "title": "Legacy Review Comment",
  "description": "Legacy Review Comment",
  "x-generated": "2026-10-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/github-pulls-api-openapi.yml#/components/schemas/review-comment",
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "format": "uri"
    },
    "pull_request_review_id": {
      "type": [
        "integer",
        "null"
      ]
    },
    "id": {
      "type": "integer"
    },
    "node_id": {
      "type": "string"
    },
    "diff_hunk": {
      "type": "string"
    },
    "path": {
      "type": "string"
    },
    "position": {
      "type": [
        "integer",
        "null"
      ]
    },
    "original_position": {
      "type": "integer"
    },
    "commit_id": {
      "type": "string"
    },
    "original_commit_id": {
      "type": "string"
    },
    "in_reply_to_id": {
      "type": "integer"
    },
    "user": {
      "$ref": "#/$defs/nullable-simple-user"
    },
    "body": {
      "type": "string"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "html_url": {
      "type": "string",
      "format": "uri"
    },
    "pull_request_url": {
      "type": "string",
      "format": "uri"
    },
    "author_association": {
      "$ref": "#/$defs/author-association"
    },
    "_links": {
      "type": "object",
      "properties": {
        "self": {
          "$ref": "#/$defs/link"
        },
        "html": {
          "$ref": "#/$defs/link"
        },
        "pull_request": {
          "$ref": "#/$defs/link"
        }
      },
      "required": [
        "self",
        "html",
        "pull_request"
      ]
    },
    "body_text": {
      "type": "string"
    },
    "body_html": {
      "type": "string"
    },
    "reactions": {
      "$ref": "#/$defs/reaction-rollup"
    },
    "side": {
      "description": "The side of the first line of the range for a multi-line comment.",
      "enum": [
        "LEFT",
        "RIGHT"
      ],
      "default": "RIGHT",
      "type": "string"
    },
    "start_side": {
      "type": [
        "string",
        "null"
      ],
      "description": "The side of the first line of the range for a multi-line comment.",
      "enum": [
        "LEFT",
        "RIGHT"
      ],
      "default": "RIGHT"
    },
    "line": {
      "description": "The line of the blob to which the comment applies. The last line of the range for a multi-line comment",
      "type": "integer"
    },
    "original_line": {
      "description": "The original line of the blob to which the comment applies. The last line of the range for a multi-line comment",
      "type": "integer"
    },
    "start_line": {
      "description": "The first line of the range for a multi-line comment.",
      "type": [
        "integer",
        "null"
      ]
    },
    "original_start_line": {
      "description": "The original first line of the range for a multi-line comment.",
      "type": [
        "integer",
        "null"
      ]
    }
  },
  "required": [
    "id",
    "node_id",
    "url",
    "body",
    "diff_hunk",
    "path",
    "position",
    "original_position",
    "commit_id",
    "original_commit_id",
    "user",
    "pull_request_review_id",
    "html_url",
    "pull_request_url",
    "_links",
    "author_association",
    "created_at",
    "updated_at"
  ],
  "$defs": {
    "author-association": {
      "title": "author_association",
      "type": "string",
      "description": "How the author is associated with the repository.",
      "enum": [
        "COLLABORATOR",
        "CONTRIBUTOR",
        "FIRST_TIMER",
        "FIRST_TIME_CONTRIBUTOR",
        "MANNEQUIN",
        "MEMBER",
        "NONE",
        "OWNER"
      ]
    },
    "link": {
      "title": "Link",
      "description": "Hypermedia Link",
      "type": "object",
      "properties": {
        "href": {
          "type": "string"
        }
      },
      "required": [
        "href"
      ]
    },
    "nullable-simple-user": {
      "title": "Simple User",
      "description": "A GitHub user.",
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "email": {
          "type": [
            "string",
            "null"
          ]
        },
        "login": {
          "type": "string"
        },
        "id": {
          "type": "integer"
        },
        "node_id": {
          "type": "string"
        },
        "avatar_url": {
          "type": "string",
          "format": "uri"
        },
        "gravatar_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "url": {
          "type": "string",
          "format": "uri"
        },
        "html_url": {
          "type": "string",
          "format": "uri"
        },
        "followers_url": {
          "type": "string",
          "format": "uri"
        },
        "following_url": {
          "type": "string"
        },
        "gists_url": {
          "type": "string"
        },
        "starred_url": {
          "type": "string"
        },
        "subscriptions_url": {
          "type": "string",
          "format": "uri"
        },
        "organizations_url": {
          "type": "string",
          "format": "uri"
        },
        "repos_url": {
          "type": "string",
          "format": "uri"
        },
        "events_url": {
          "type": "string"
        },
        "received_events_url": {
          "type": "string",
          "format": "uri"
        },
        "type": {
          "type": "string"
        },
        "site_admin": {
          "type": "boolean"
        },
        "starred_at": {
          "type": "string"
        }
      },
      "required": [
        "avatar_url",
        "events_url",
        "followers_url",
        "following_url",
        "gists_url",
        "gravatar_id",
        "html_url",
        "id",
        "node_id",
        "login",
        "organizations_url",
        "received_events_url",
        "repos_url",
        "site_admin",
        "starred_url",
        "subscriptions_url",
        "type",
        "url"
      ]
    },
    "reaction-rollup": {
      "title": "Reaction Rollup",
      "type": "object",
      "properties": {
        "url": {
          "type": "string",
          "format": "uri"
        },
        "total_count": {
          "type": "integer"
        },
        "+1": {
          "type": "integer"
        },
        "-1": {
          "type": "integer"
        },
        "laugh": {
          "type": "integer"
        },
        "confused": {
          "type": "integer"
        },
        "heart": {
          "type": "integer"
        },
        "hooray": {
          "type": "integer"
        },
        "eyes": {
          "type": "integer"
        },
        "rocket": {
          "type": "integer"
        }
      },
      "required": [
        "url",
        "total_count",
        "+1",
        "-1",
        "laugh",
        "confused",
        "heart",
        "hooray",
        "eyes",
        "rocket"
      ]
    }
  }
}