# branch-with-protection

From **GitHub v3 REST API**.

Branch With Protection

- Type: `object`

## Properties

### `_links`

- Required: true
- Type: `object`

### `commit`

- Required: true
- Type: `object`

Commit

### `name`

- Required: true
- Type: `string`

### `pattern`

- Required: false
- Type: `string`
- Example: `"mas*"`

### `protected`

- Required: true
- Type: `boolean`

### `protection`

- Required: true
- Type: `object`

Branch Protection

### `protection_url`

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

### `required_approving_review_count`

- Required: false
- Type: `integer`
- Example: `1`

## JSON Schema

```json
{"description":"Branch With Protection","properties":{"_links":{"properties":{"html":{"type":"string"},"self":{"format":"uri","type":"string"}},"required":["html","self"],"type":"object"},"commit":{"$ref":"#/components/schemas/commit"},"name":{"type":"string"},"pattern":{"example":"\"mas*\"","type":"string"},"protected":{"type":"boolean"},"protection":{"$ref":"#/components/schemas/branch-protection"},"protection_url":{"format":"uri","type":"string"},"required_approving_review_count":{"example":1,"type":"integer"}},"required":["name","commit","_links","protection","protected","protection_url"],"title":"Branch With Protection","type":"object"}
```
