{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "object",
    "javaType": "com.ericsson.eiffel.semantics.events.EiffelSourceChangeCreatedEvent",
    "extendsJavaClass": "com.ericsson.eiffel.semantics.events.Event",
    "properties": {
        "meta": {
            "type": "object",
            "javaType": "com.ericsson.eiffel.semantics.events.EiffelSourceChangeCreatedEventMeta",
            "javaInterfaces": [
                "com.ericsson.eiffel.semantics.events.Meta"
            ],
            "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",
                    "format": "utc-millisec"
                },
                "tags": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "source": {
                    "type": "object",
                    "javaType": "com.ericsson.eiffel.semantics.events.Source",
                    "properties": {
                        "domainId": {
                            "type": "string"
                        },
                        "host": {
                            "type": "string"
                        },
                        "name": {
                            "type": "string"
                        },
                        "serializer": {
                            "type": "object",
                            "javaType": "com.ericsson.eiffel.semantics.events.Serializer",
                            "properties": {
                                "groupId": {
                                    "type": "string"
                                },
                                "artifactId": {
                                    "type": "string"
                                },
                                "version": {
                                    "type": "string"
                                }
                            },
                            "required": [
                                "groupId",
                                "artifactId",
                                "version"
                            ],
                            "additionalProperties": false
                        },
                        "uri": {
                            "type": "string"
                        }
                    },
                    "additionalProperties": false
                },
                "security": {
                    "type": "object",
                    "javaType": "com.ericsson.eiffel.semantics.events.Security",
                    "properties": {
                        "sdm": {
                            "type": "object",
                            "javaType": "com.ericsson.eiffel.semantics.events.Sdm",
                            "properties": {
                                "authorIdentity": {
                                    "type": "string"
                                },
                                "encryptedDigest": {
                                    "type": "string"
                                }
                            },
                            "required": [
                                "authorIdentity",
                                "encryptedDigest"
                            ],
                            "additionalProperties": false
                        }
                    },
                    "additionalProperties": false
                }
            },
            "required": [
                "id",
                "type",
                "version",
                "time"
            ],
            "additionalProperties": false
        },
        "data": {
            "type": "object",
            "javaType": "com.ericsson.eiffel.semantics.events.EiffelSourceChangeCreatedEventData",
            "properties": {
                "author": {
                    "type": "object",
                    "javaType": "com.ericsson.eiffel.semantics.events.Author",
                    "properties": {
                        "name": {
                            "type": "string"
                        },
                        "email": {
                            "type": "string"
                        },
                        "id": {
                            "type": "string"
                        },
                        "group": {
                            "type": "string"
                        }
                    },
                    "additionalProperties": false
                },
                "change": {
                    "type": "object",
                    "javaType": "com.ericsson.eiffel.semantics.events.Change",
                    "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",
                    "javaType": "com.ericsson.eiffel.semantics.events.GitIdentifier",
                    "properties": {
                        "commitId": {
                            "type": "string"
                        },
                        "branch": {
                            "type": "string"
                        },
                        "repoName": {
                            "type": "string"
                        },
                        "repoUri": {
                            "type": "string"
                        }
                    },
                    "required": [
                        "commitId",
                        "repoUri"
                    ],
                    "additionalProperties": false
                },
                "svnIdentifier": {
                    "type": "object",
                    "javaType": "com.ericsson.eiffel.semantics.events.SvnIdentifier",
                    "properties": {
                        "revision": {
                            "type": "integer"
                        },
                        "directory": {
                            "type": "string"
                        },
                        "repoName": {
                            "type": "string"
                        },
                        "repoUri": {
                            "type": "string"
                        }
                    },
                    "required": [
                        "revision",
                        "directory",
                        "repoUri"
                    ],
                    "additionalProperties": false
                },
                "ccCompositeIdentifier": {
                    "type": "object",
                    "javaType": "com.ericsson.eiffel.semantics.events.CcCompositeIdentifier",
                    "properties": {
                        "vobs": {
                            "type": "array",
                            "items": {
                                "type": "string"
                            }
                        },
                        "branch": {
                            "type": "string"
                        },
                        "configSpec": {
                            "type": "string"
                        }
                    },
                    "required": [
                        "vobs",
                        "branch",
                        "configSpec"
                    ],
                    "additionalProperties": false
                },
                "hgIdentifier": {
                    "type": "object",
                    "javaType": "com.ericsson.eiffel.semantics.events.HgIdentifier",
                    "properties": {
                        "commitId": {
                            "type": "string"
                        },
                        "branch": {
                            "type": "string"
                        },
                        "repoName": {
                            "type": "string"
                        },
                        "repoUri": {
                            "type": "string"
                        }
                    },
                    "required": [
                        "commitId",
                        "repoUri"
                    ],
                    "additionalProperties": false
                },
                "customData": {
                    "type": "array",
                    "items": {
                        "type": "object",
                        "javaType": "com.ericsson.eiffel.semantics.events.CustomData",
                        "properties": {
                            "key": {
                                "type": "string"
                            },
                            "value": {
                                "anyOf": [
                                    {
                                        "type": "object"
                                    },
                                    {
                                        "type": "string"
                                    },
                                    {
                                        "type": "array"
                                    },
                                    {
                                        "type": "number"
                                    }
                                ]
                            }
                        },
                        "required": [
                            "key",
                            "value"
                        ],
                        "additionalProperties": false
                    }
                }
            },
            "additionalProperties": false
        },
        "links": {
            "type": "array",
            "items": {
                "type": "object",
                "javaType": "com.ericsson.eiffel.semantics.events.Link",
                "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
}