{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "object",
    "properties": {
        "meta": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
                },
                "type": {
                    "type": "string",
                    "enum": [
                        "EiffelSourceChangeCreatedEvent"
                    ]
                },
                "version": {
                    "type": "string",
                    "enum": [
                        "1.1.0"
                    ],
                    "default": "1.1.0"
                },
                "time": {
                    "type": "integer"
                },
                "tags": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "source": {
                    "type": "object",
                    "properties": {
                        "domainId": {
                            "type": "string"
                        },
                        "host": {
                            "type": "string"
                        },
                        "name": {
                            "type": "string"
                        },
                        "serializer": {
                            "type": "object",
                            "properties": {
                                "groupId": {
                                    "type": "string"
                                },
                                "artifactId": {
                                    "type": "string"
                                },
                                "version": {
                                    "type": "string"
                                }
                            },
                            "required": [
                                "groupId",
                                "artifactId",
                                "version"
                            ],
                            "additionalProperties": false
                        },
                        "uri": {
                            "type": "string"
                        }
                    },
                    "additionalProperties": false
                },
                "security": {
                    "type": "object",
                    "properties": {
                        "sdm": {
                            "type": "object",
                            "properties": {
                                "authorIdentity": {
                                    "type": "string"
                                },
                                "encryptedDigest": {
                                    "type": "string"
                                }
                            },
                            "required": [
                                "authorIdentity",
                                "encryptedDigest"
                            ],
                            "additionalProperties": false
                        }
                    },
                    "additionalProperties": false
                }
            },
            "required": [
                "id",
                "type",
                "version",
                "time"
            ],
            "additionalProperties": false
        },
        "data": {
            "type": "object",
            "properties": {
                "author": {
                    "type": "object",
                    "properties": {
                        "name": {
                            "type": "string"
                        },
                        "email": {
                            "type": "string"
                        },
                        "id": {
                            "type": "string"
                        },
                        "group": {
                            "type": "string"
                        }
                    },
                    "additionalProperties": false
                },
                "change": {
                    "type": "object",
                    "properties": {
                        "insertions": {
                            "type": "integer"
                        },
                        "deletions": {
                            "type": "integer"
                        },
                        "files": {
                            "type": "string"
                        },
                        "details": {
                            "type": "string"
                        },
                        "tracker": {
                            "type": "string"
                        },
                        "id": {
                            "type": "string"
                        }
                    },
                    "additionalProperties": false
                },
                "issues": {
                    "type": "array",
                    "items": {
                        "properties": {
                            "type": {
                                "type": "string",
                                "enum": [
                                    "BUG",
                                    "IMPROVEMENT",
                                    "FEATURE",
                                    "WORK_ITEM",
                                    "REQUIREMENT",
                                    "OTHER"
                                ]
                            },
                            "tracker": {
                                "type": "string"
                            },
                            "id": {
                                "type": "string"
                            },
                            "uri": {
                                "type": "string"
                            },
                            "transition": {
                                "type": "string",
                                "enum": [
                                    "RESOLVED",
                                    "PARTIAL",
                                    "REMOVED"
                                ]
                            }
                        },
                        "required": [
                            "type",
                            "tracker",
                            "id",
                            "uri",
                            "transition"
                        ],
                        "additionalProperties": false
                    }
                },
                "gitIdentifier": {
                    "type": "object",
                    "properties": {
                        "commitId": {
                            "type": "string"
                        },
                        "branch": {
                            "type": "string"
                        },
                        "repoName": {
                            "type": "string"
                        },
                        "repoUri": {
                            "type": "string"
                        }
                    },
                    "required": [
                        "commitId",
                        "repoUri"
                    ],
                    "additionalProperties": false
                },
                "svnIdentifier": {
                    "type": "object",
                    "properties": {
                        "revision": {
                            "type": "integer"
                        },
                        "directory": {
                            "type": "string"
                        },
                        "repoName": {
                            "type": "string"
                        },
                        "repoUri": {
                            "type": "string"
                        }
                    },
                    "required": [
                        "revision",
                        "directory",
                        "repoUri"
                    ],
                    "additionalProperties": false
                },
                "ccCompositeIdentifier": {
                    "type": "object",
                    "properties": {
                        "vobs": {
                            "type": "array",
                            "items": {
                                "type": "string"
                            }
                        },
                        "branch": {
                            "type": "string"
                        },
                        "configSpec": {
                            "type": "string"
                        }
                    },
                    "required": [
                        "vobs",
                        "branch",
                        "configSpec"
                    ],
                    "additionalProperties": false
                },
                "hgIdentifier": {
                    "type": "object",
                    "properties": {
                        "commitId": {
                            "type": "string"
                        },
                        "branch": {
                            "type": "string"
                        },
                        "repoName": {
                            "type": "string"
                        },
                        "repoUri": {
                            "type": "string"
                        }
                    },
                    "required": [
                        "commitId",
                        "repoUri"
                    ],
                    "additionalProperties": false
                },
                "customData": {
                    "type": "array",
                    "items": {
                        "type": "object",
                        "properties": {
                            "key": {
                                "type": "string"
                            },
                            "value": {}
                        },
                        "required": [
                            "key",
                            "value"
                        ],
                        "additionalProperties": false
                    }
                }
            },
            "additionalProperties": false
        },
        "links": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "type": {
                        "type": "string"
                    },
                    "target": {
                        "type": "string",
                        "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
                    }
                },
                "required": [
                    "type",
                    "target"
                ],
                "additionalProperties": false
            }
        }
    },
    "required": [
        "meta",
        "data",
        "links"
    ],
    "additionalProperties": false
}