{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$id": "#CodeCommit",
    "description": "A code commit to a repo. The commit id is captured in the _id property of the Entity.",
    "type": "object",
    "allOf": [
        {
            "$ref": "#Entity"
        },
        {
            "properties": {
                "branch": {
                    "description": "The branch the code was committed to.",
                    "type": "string"
                },
                "message": {
                    "description": "The commit message.",
                    "type": "string"
                },
                "merge": {
                    "description": "Indicates if this commit is a merge, defaults to false.",
                    "type": "boolean",
                    "default": false
                },
                "versionBump": {
                    "description": "Indicates if this commit is a versionBump, defaults to false.",
                    "type": "boolean",
                    "default": false
                }
            },
            "required": ["branch", "message", "merge", "versionBump"]
        }
    ]
}
