{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-codecommit/json-schema/amazon-codecommit-batch-get-commits-output-schema.json",
  "title": "BatchGetCommitsOutput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-codecommit-commit-api-openapi.yml#/components/schemas/BatchGetCommitsOutput",
  "type": "object",
  "properties": {
    "commits": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Commit"
      },
      "description": "An array of commit data type objects, each of which contains information about a specified commit."
    },
    "errors": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/BatchGetCommitsError"
      },
      "description": "Returns any commit IDs for which information could not be found. For example, if one of the commit IDs was a shortened SHA ID or that commit was not found in the specified repository, the ID returns an error object with more information."
    }
  },
  "$defs": {
    "BatchGetCommitsError": {
      "type": "object",
      "properties": {
        "commitId": {
          "type": "string",
          "description": "A commit ID that either could not be found or was not in a valid format."
        },
        "errorCode": {
          "type": "string",
          "description": "An error code that specifies whether the commit ID was not valid or not found."
        },
        "errorMessage": {
          "type": "string",
          "description": "An error message that provides detail about why the commit ID either was not found or was not valid."
        }
      }
    },
    "Commit": {
      "type": "object",
      "properties": {
        "commitId": {
          "type": "string",
          "description": "The full SHA ID of the specified commit."
        },
        "treeId": {
          "type": "string",
          "description": "Tree information for the specified commit."
        },
        "parents": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of parent commits for the specified commit. Each parent commit ID is the full commit ID."
        },
        "message": {
          "type": "string",
          "description": "The commit message associated with the specified commit."
        },
        "author": {
          "$ref": "#/$defs/UserInfo"
        },
        "committer": {
          "$ref": "#/$defs/UserInfo"
        },
        "additionalData": {
          "type": "string",
          "description": "Any other data associated with the specified commit."
        }
      }
    },
    "UserInfo": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the user who made the specified commit."
        },
        "email": {
          "type": "string",
          "description": "The email address associated with the user who made the commit, if any."
        },
        "date": {
          "type": "string",
          "description": "The date when the specified commit was commited, in timestamp format with GMT offset."
        }
      }
    }
  }
}