# git-tree

From **GitHub v3 REST API**.

The hierarchy between files in a Git repository.

- Type: `object`

## Properties

### `sha`

- Required: true
- Type: `string`

### `tree`

- Required: true
- Type: `array`
- Example: `[
  {
    "mode": "100644",
    "path": "file.rb",
    "properties": {
      "mode": {
        "type": "string"
      },
      "path": {
        "type": "string"
      },
      "sha": {
        "type": "string"
      },
      "size": {
        "type": "integer"
      },
      "type": {
        "type": "string"
      },
      "url": {
        "type": "string"
      }
    },
    "required": [
      "path",
      "mode",
      "type",
      "sha",
      "url",
      "size"
    ],
    "sha": "44b4fc6d56897b048c772eb4087f854f46256132",
    "size": 30,
    "type": "blob",
    "url": "https://api.github.com/repos/octocat/Hello-World/git/blobs/44b4fc6d56897b048c772eb4087f854f46256132"
  }
]`

Objects specifying a tree structure

### `truncated`

- Required: true
- Type: `boolean`

### `url`

- Required: true
- Type: `string`
- Format: `uri`

## JSON Schema

```json
{"description":"The hierarchy between files in a Git repository.","properties":{"sha":{"type":"string"},"tree":{"description":"Objects specifying a tree structure","example":[{"mode":"100644","path":"file.rb","properties":{"mode":{"type":"string"},"path":{"type":"string"},"sha":{"type":"string"},"size":{"type":"integer"},"type":{"type":"string"},"url":{"type":"string"}},"required":["path","mode","type","sha","url","size"],"sha":"44b4fc6d56897b048c772eb4087f854f46256132","size":30,"type":"blob","url":"https://api.github.com/repos/octocat/Hello-World/git/blobs/44b4fc6d56897b048c772eb4087f854f46256132"}],"items":{"properties":{"mode":{"example":"040000","type":"string"},"path":{"example":"test/file.rb","type":"string"},"sha":{"example":"23f6827669e43831def8a7ad935069c8bd418261","type":"string"},"size":{"example":12,"type":"integer"},"type":{"example":"tree","type":"string"},"url":{"example":"https://api.github.com/repos/owner-482f3203ecf01f67e9deb18e/BBB_Private_Repo/git/blobs/23f6827669e43831def8a7ad935069c8bd418261","type":"string"}},"type":"object"},"type":"array"},"truncated":{"type":"boolean"},"url":{"format":"uri","type":"string"}},"required":["sha","url","tree","truncated"],"title":"Git Tree","type":"object"}
```
