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