{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-devops/json-schema/microsoft-azure-devops-git-commit-ref-schema.json",
  "title": "GitCommitRef",
  "description": "A reference to a Git commit",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-devops-commits-api-openapi.yml#/components/schemas/GitCommitRef",
  "type": "object",
  "properties": {
    "commitId": {
      "type": "string",
      "description": "Full SHA hash of the commit"
    },
    "comment": {
      "type": "string",
      "description": "Commit message"
    },
    "commentTruncated": {
      "type": "boolean",
      "description": "Whether the comment has been truncated"
    },
    "author": {
      "$ref": "#/$defs/GitUserDate"
    },
    "committer": {
      "$ref": "#/$defs/GitUserDate"
    },
    "parents": {
      "type": "array",
      "description": "Parent commit SHAs",
      "items": {
        "type": "string"
      }
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "remoteUrl": {
      "type": "string",
      "format": "uri"
    },
    "changeCounts": {
      "type": "object",
      "description": "Number of files changed (Add, Edit, Delete)",
      "properties": {
        "Add": {
          "type": "integer"
        },
        "Edit": {
          "type": "integer"
        },
        "Delete": {
          "type": "integer"
        }
      }
    }
  },
  "$defs": {
    "GitUserDate": {
      "type": "object",
      "description": "Git user and date information",
      "properties": {
        "name": {
          "type": "string",
          "description": "User display name"
        },
        "email": {
          "type": "string",
          "format": "email",
          "description": "User email address"
        },
        "date": {
          "type": "string",
          "format": "date-time",
          "description": "Date and time of the action"
        },
        "imageUrl": {
          "type": "string",
          "format": "uri"
        }
      }
    }
  }
}