{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "PushNotification",
    "description": "Schema for push notification events.",
    "type": "object",
    "properties": {
        "log_context": {
            "$ref": "/resources/schema/analytics/service/eventhub/v1/LogContext.json",
            "description": "Required Log Context Reference"
        },
        "event_name": {
            "type": "string",
            "enum": [
                "PUSH_NOTIFICATION"
            ]
        },
        "schema_definition": {
            "type": "string",
            "enum": [
                "PushNotification"
            ]
        },
        "notification_type": {
            "type": "string",
            "description": "Type of notification pushed to the user."
        },
        "policy_id": {
            "type": "string",
            "description": "Policy ID of the user."
        },
        "trip_id": {
            "type": "string",
            "description": "Trip ID associated with the notification."
        },
        "event_details": {
            "type": "string",
            "description": "Optional JSON data (as a string) containing additional details for the event."
        },
        "user_role": {
            "type": "string",
            "description": "Role of user."
        }
    },
    "required": [
        "notification_type"
    ],
    "additionalProperties": false
}