{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/posit/main/json-schema/posit-git-location-output-schema.json",
  "title": "GitLocationOutput",
  "description": "Git location associated with a content item.",
  "x-generated": "2026-10-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/posit-content-api-openapi.yml#/components/schemas/GitLocationOutput",
  "additionalProperties": false,
  "properties": {
    "repository": {
      "description": "URL for the repository.",
      "type": "string"
    },
    "branch": {
      "description": "The tracked Git branch.",
      "type": "string"
    },
    "directory": {
      "description": "Directory containing the content.",
      "type": "string"
    },
    "polling": {
      "description": "Indicates that the Git repository is regularly polled.",
      "type": "boolean"
    },
    "last_error": {
      "description": "The last error encountered when polling the Git repository, if one occurred.",
      "type": "string"
    },
    "last_known_commit": {
      "description": "The last known commit in the Git repository.",
      "type": "string"
    },
    "last_fetched_time": {
      "description": "The last time the Git repository was fetched.",
      "format": "date-time",
      "type": "string"
    }
  },
  "type": "object"
}