# diff-entry

From **GitHub v3 REST API**.

Diff Entry

- Type: `object`

## Properties

### `additions`

- Required: true
- Type: `integer`
- Example: `103`

### `blob_url`

- Required: true
- Type: `string`
- Format: `uri`
- Example: `https://github.com/octocat/Hello-World/blob/6dcb09b5b57875f334f61aebed695e2e4193db5e/file1.txt`

### `changes`

- Required: true
- Type: `integer`
- Example: `124`

### `contents_url`

- Required: true
- Type: `string`
- Format: `uri`
- Example: `https://api.github.com/repos/octocat/Hello-World/contents/file1.txt?ref=6dcb09b5b57875f334f61aebed695e2e4193db5e`

### `deletions`

- Required: true
- Type: `integer`
- Example: `21`

### `filename`

- Required: true
- Type: `string`
- Example: `file1.txt`

### `patch`

- Required: false
- Type: `string`
- Example: `@@ -132,7 +132,7 @@ module Test @@ -1000,7 +1000,7 @@ module Test`

### `previous_filename`

- Required: false
- Type: `string`
- Example: `file.txt`

### `raw_url`

- Required: true
- Type: `string`
- Format: `uri`
- Example: `https://github.com/octocat/Hello-World/raw/6dcb09b5b57875f334f61aebed695e2e4193db5e/file1.txt`

### `sha`

- Required: true
- Type: `string`
- Example: `bbcd538c8e72b8c175046e27cc8f907076331401`

### `status`

- Required: true
- Type: `string`
- Example: `added`
- Allowed values: `"added"`, `"removed"`, `"modified"`, `"renamed"`, `"copied"`, `"changed"`, `"unchanged"`

## JSON Schema

```json
{"description":"Diff Entry","properties":{"additions":{"example":103,"type":"integer"},"blob_url":{"example":"https://github.com/octocat/Hello-World/blob/6dcb09b5b57875f334f61aebed695e2e4193db5e/file1.txt","format":"uri","type":"string"},"changes":{"example":124,"type":"integer"},"contents_url":{"example":"https://api.github.com/repos/octocat/Hello-World/contents/file1.txt?ref=6dcb09b5b57875f334f61aebed695e2e4193db5e","format":"uri","type":"string"},"deletions":{"example":21,"type":"integer"},"filename":{"example":"file1.txt","type":"string"},"patch":{"example":"@@ -132,7 +132,7 @@ module Test @@ -1000,7 +1000,7 @@ module Test","type":"string"},"previous_filename":{"example":"file.txt","type":"string"},"raw_url":{"example":"https://github.com/octocat/Hello-World/raw/6dcb09b5b57875f334f61aebed695e2e4193db5e/file1.txt","format":"uri","type":"string"},"sha":{"example":"bbcd538c8e72b8c175046e27cc8f907076331401","type":"string"},"status":{"enum":["added","removed","modified","renamed","copied","changed","unchanged"],"example":"added","type":"string"}},"required":["additions","blob_url","changes","contents_url","deletions","filename","raw_url","sha","status"],"title":"Diff Entry","type":"object"}
```
