{
    "additionalProperties": true,
    "definitions": {
        "repository": {
            "additionalProperties": true,
            "properties": {
                "name": {
                    "maxLength": 100,
                    "title": "SCM repository name (e.g.: spec-python)",
                    "type": "string"
                },
                "owner_name": {
                    "maxLength": 100,
                    "title": "Owner/Organization of the SCM repository (e.g. totem)",
                    "type": "string"
                }
            },
            "required": [
                "owner_name",
                "name"
            ]
        }
    },
    "properties": {
        "branch": {
            "description": "Name of the branch",
            "maxLength": 100,
            "type": "string"
        },
        "commit": {
            "maxLength": 100,
            "title": "Git SHA Commit ID",
            "type": "string"
        },
        "repository": {
            "$ref": "#/definitions/repository"
        },
        "status": {
            "description": "Status of the build. 0: success  1: failed",
            "enum": [
                0,
                1
            ]
        }
    },
    "required": [
        "repository",
        "branch",
        "commit",
        "status"
    ],
    "title": "Schema for Travis Hook payload",
    "type": "object"
}