{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/daytona-io/json-schema/daytona-io-git-status-schema.json",
  "title": "GitStatus",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/daytona-io-git-api-openapi.yml#/components/schemas/GitStatus",
  "type": "object",
  "required": [
    "currentBranch",
    "fileStatus"
  ],
  "properties": {
    "ahead": {
      "type": "integer"
    },
    "behind": {
      "type": "integer"
    },
    "branchPublished": {
      "type": "boolean"
    },
    "currentBranch": {
      "type": "string"
    },
    "fileStatus": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/FileStatus"
      }
    }
  },
  "$defs": {
    "FileStatus": {
      "type": "object",
      "required": [
        "extra",
        "name",
        "staging",
        "worktree"
      ],
      "properties": {
        "extra": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "staging": {
          "$ref": "#/$defs/Status"
        },
        "worktree": {
          "$ref": "#/$defs/Status"
        }
      }
    },
    "Status": {
      "type": "string",
      "enum": [
        "Unmodified",
        "Untracked",
        "Modified",
        "Added",
        "Deleted",
        "Renamed",
        "Copied",
        "Updated but unmerged"
      ],
      "x-enum-varnames": [
        "Unmodified",
        "Untracked",
        "Modified",
        "Added",
        "Deleted",
        "Renamed",
        "Copied",
        "UpdatedButUnmerged"
      ]
    }
  }
}