{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "object",
    "javaType": "com.ericsson.eiffel.semantics.events.EiffelTestCaseTriggeredEvent",
    "extendsJavaClass": "com.ericsson.eiffel.semantics.events.Event",
    "properties": {
        "meta": {
            "type": "object",
            "javaType": "com.ericsson.eiffel.semantics.events.EiffelTestCaseTriggeredEventMeta",
            "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": [
                        "EiffelTestCaseTriggeredEvent"
                    ]
                },
                "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.EiffelTestCaseTriggeredEventData",
            "properties": {
                "testCase": {
                    "type": "object",
                    "javaType": "com.ericsson.eiffel.semantics.events.TestCase",
                    "properties": {
                        "tracker": {
                            "type": "string"
                        },
                        "id": {
                            "type": "string"
                        },
                        "version": {
                            "type": "string"
                        },
                        "uri": {
                            "type": "string"
                        }
                    },
                    "required": [
                        "id"
                    ],
                    "additionalProperties": false
                },
                "recipeId": {
                    "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}$"
                },
                "triggers": {
                    "type": "array",
                    "items": {
                        "type": "object",
                        "javaType": "com.ericsson.eiffel.semantics.events.Trigger",
                        "properties": {
                            "type": {
                                "type": "string",
                                "enum": [
                                    "MANUAL",
                                    "EIFFEL_EVENT",
                                    "SOURCE_CHANGE",
                                    "TIMER",
                                    "OTHER"
                                ]
                            },
                            "description": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "type"
                        ],
                        "additionalProperties": false
                    }
                },
                "executionType": {
                    "type": "string",
                    "enum": [
                        "MANUAL",
                        "SEMI_AUTOMATED",
                        "AUTOMATED",
                        "OTHER"
                    ]
                },
                "parameters": {
                    "type": "array",
                    "items": {
                        "type": "object",
                        "javaType": "com.ericsson.eiffel.semantics.events.Parameter",
                        "properties": {
                            "name": {
                                "type": "string"
                            },
                            "value": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "name",
                            "value"
                        ],
                        "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
                    }
                }
            },
            "required": [
                "testCase"
            ],
            "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
}