{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/stainless/main/json-schema/stainless-project-branch-minimal-schema.json",
  "title": "ProjectBranchMinimal",
  "description": "A project branch names a line of development for a project. Like a Git\nbranch, it points to a Git commit with a set of config files. In addition, a\nproject branch also points to a set of custom code changes, corresponding to\nGit branches in the staging repos.",
  "x-generated": "2026-10-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/stainless-projects-api-openapi.yml#/components/schemas/ProjectBranchMinimal",
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "enum": [
        "project_branch"
      ]
    },
    "branch": {
      "type": "string",
      "description": "Branch name"
    },
    "org": {
      "type": "string"
    },
    "project": {
      "type": "string",
      "description": "Project name"
    },
    "config_commit": {
      "type": "object",
      "properties": {
        "sha": {
          "type": "string"
        },
        "repo": {
          "type": "object",
          "properties": {
            "host": {
              "type": "string"
            },
            "owner": {
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "branch": {
              "type": "string"
            }
          },
          "required": [
            "host",
            "owner",
            "name",
            "branch"
          ]
        },
        "tree_oid": {
          "type": [
            "string",
            "null"
          ]
        },
        "stats": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "additions": {
              "type": "integer",
              "minimum": 0
            },
            "deletions": {
              "type": "integer",
              "minimum": 0
            },
            "total": {
              "type": "integer",
              "minimum": 0
            }
          },
          "required": [
            "additions",
            "deletions",
            "total"
          ]
        }
      },
      "required": [
        "sha",
        "repo",
        "tree_oid",
        "stats"
      ],
      "description": "A Git commit that points to the latest set of config files on a given\nbranch."
    },
    "latest_build_id": {
      "type": "string"
    }
  },
  "required": [
    "object",
    "branch",
    "org",
    "project",
    "config_commit",
    "latest_build_id"
  ]
}