{
    "additionalProperties": true,
    "definitions": {
        "owner": {
            "anyOf": [
                {
                    "additionalProperties": true,
                    "properties": {
                        "name": {
                            "description": "Name of the repository owner",
                            "maxLength": 100
                        }
                    },
                    "required": [
                        "name"
                    ]
                },
                {
                    "additionalProperties": true,
                    "properties": {
                        "login": {
                            "description": "Name of the repository owner",
                            "maxLength": 100
                        }
                    },
                    "required": [
                        "login"
                    ]
                }
            ],
            "type": "object"
        },
        "repository": {
            "additionalProperties": true,
            "properties": {
                "name": {
                    "description": "Name of the repository",
                    "maxLength": 100
                },
                "owner": {
                    "$ref": "#/definitions/owner"
                }
            },
            "required": [
                "name",
                "owner"
            ],
            "type": "object"
        }
    },
    "properties": {
        "deleted": {
            "default": false,
            "description": "Boolean value indicated if this is payload for delete hook",
            "type": "boolean"
        },
        "ref": {
            "description": "Github branch/tag",
            "maxLength": 255,
            "type": "string"
        },
        "repository": {
            "$ref": "#/definitions/repository"
        }
    },
    "required": [
        "repository"
    ],
    "title": "Schema for githook payload",
    "type": "object"
}