{
    "$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": [
                        "EiffelTestCaseFinishedEvent"
                    ]
                },
                "version": {
                    "type": "string",
                    "enum": [
                        "3.0.0"
                    ],
                    "default": "3.0.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": "string",
                            "pattern": "^pkg:"
                        },
                        "uri": {
                            "type": "string"
                        }
                    },
                    "additionalProperties": false
                },
                "security": {
                    "type": "object",
                    "properties": {
                        "authorIdentity": {
                            "type": "string"
                        },
                        "integrityProtection": {
                            "type": "object",
                            "properties": {
                                "signature": {
                                    "type": "string"
                                },
                                "alg": {
                                    "type": "string",
                                    "enum": [
                                        "HS256",
                                        "HS384",
                                        "HS512",
                                        "RS256",
                                        "RS384",
                                        "RS512",
                                        "ES256",
                                        "ES384",
                                        "ES512",
                                        "PS256",
                                        "PS384",
                                        "PS512"
                                    ]
                                },
                                "publicKey": {
                                    "type": "string"
                                }
                            },
                            "required": [
                                "signature",
                                "alg"
                            ],
                            "additionalProperties": false
                        },
                        "sequenceProtection": {
                            "type": "array",
                            "items": {
                                "type": "object",
                                "properties": {
                                    "sequenceName": {
                                        "type": "string"
                                    },
                                    "position": {
                                        "type": "integer"
                                    }
                                },
                                "additionalProperties": false,
                                "required": [
                                    "sequenceName",
                                    "position"
                                ]
                            }
                        }
                    },
                    "additionalProperties": false,
                    "required": [
                        "authorIdentity"
                    ]
                }
            },
            "required": [
                "id",
                "type",
                "version",
                "time"
            ],
            "additionalProperties": false
        },
        "data": {
            "type": "object",
            "properties": {
                "outcome": {
                    "type": "object",
                    "properties": {
                        "verdict": {
                            "type": "string",
                            "enum": [
                                "PASSED",
                                "FAILED",
                                "INCONCLUSIVE"
                            ]
                        },
                        "conclusion": {
                            "type": "string",
                            "enum": [
                                "SUCCESSFUL",
                                "FAILED",
                                "ABORTED",
                                "TIMED_OUT",
                                "INCONCLUSIVE"
                            ]
                        },
                        "description": {
                            "type": "string"
                        },
                        "metrics": {
                            "type": "array",
                            "items": {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "value": {}
                                },
                                "required": [
                                    "name",
                                    "value"
                                ],
                                "additionalProperties": false
                            }
                        }
                    },
                    "required": [
                        "verdict",
                        "conclusion"
                    ],
                    "additionalProperties": false
                },
                "persistentLogs": {
                    "type": "array",
                    "items": {
                        "type": "object",
                        "properties": {
                            "name": {
                                "type": "string"
                            },
                            "uri": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "name",
                            "uri"
                        ],
                        "additionalProperties": false
                    }
                },
                "customData": {
                    "type": "array",
                    "items": {
                        "type": "object",
                        "properties": {
                            "key": {
                                "type": "string"
                            },
                            "value": {}
                        },
                        "required": [
                            "key",
                            "value"
                        ],
                        "additionalProperties": false
                    }
                }
            },
            "required": [
                "outcome"
            ],
            "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
}