{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-codecommit/json-schema/amazon-codecommit-get-comments-for-pull-request-input-schema.json",
  "title": "GetCommentsForPullRequestInput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-codecommit-comment-api-openapi.yml#/components/schemas/GetCommentsForPullRequestInput",
  "type": "object",
  "properties": {
    "pullRequestId": {
      "type": "string",
      "description": "The system-generated ID of the pull request. To get this ID, use ListPullRequests."
    },
    "repositoryName": {
      "type": "string",
      "description": "The name of the repository that contains the pull request. Requirement is conditional: repositoryName must be specified when beforeCommitId and afterCommitId are included."
    },
    "beforeCommitId": {
      "type": "string",
      "description": "The full commit ID of the commit in the destination branch that was the tip of the branch at the time the pull request was created. Requirement is conditional: beforeCommitId must be specified when repositoryName is included."
    },
    "afterCommitId": {
      "type": "string",
      "description": "The full commit ID of the commit in the source branch that was the tip of the branch at the time the comment was made. Requirement is conditional: afterCommitId must be specified when repositoryName is included."
    },
    "nextToken": {
      "type": "string",
      "description": "An enumeration token that, when provided in a request, returns the next batch of the results."
    },
    "maxResults": {
      "type": "integer",
      "description": "A non-zero, non-negative integer used to limit the number of returned results. The default is 100 comments. You can return up to 500 comments with a single request."
    }
  },
  "required": [
    "pullRequestId"
  ]
}