{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "CustomEvent",
    "type": "object",
    "additionalProperties": false,
    "description": "TAnalytics-v4 .. A custom event which is expected to have a flexible schema defined by internal teams",
    "properties": {
        "log_context": {
            "$ref": "/resources/schema/analytics/client/v4/LogContext.json",
            "description": "Required Log Context Reference"
        },
        "event_name": {
            "type": "string",
            "enum": ["CUSTOM_EVENT"]
        },
        "schema_definition": {
            "type": "string",
            "enum": ["CustomEvent"]
        },
        "custom_event_name": {
            "type": "string",
            "description": "The name of the event being logged by an internal application"
        },
        "custom_event_properties": {
            "type": "object",
            "additionalProperties": true,
            "minProperties": 1,
            "maxProperties": 50,
            "description": "The properties of the custom event being logged"
        }
    },
    "required": [
        "log_context",
        "event_name",
        "schema_definition",
        "custom_event_name",
        "custom_event_properties"
    ]
}