{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "PredictiveCards",
    "type": "object",
    "additionalProperties": false,
    "description": "TAnalytics-v4 .. Log when a click on a destination renders the Details page for the Address or POI",
    "properties": {
        "log_context": {
            "$ref": "/resources/schema/analytics/client/v4/LogContext.json",
            "description": "Required Log Context Reference"
        },
        "event_name": {
            "type": "string",
            "enum": [
                "PREDICTIVE_CARDS"
            ]
        },
        "schema_definition": {
            "type": "string",
            "enum": [
                "PredictiveCards"
            ]
        },
        "session_id": {
            "type": "string",
            "description": "The session during which predictive card was displayed"
        },
        "trip_id": {
            "type": "string",
            "description": "The id of the trip during which predictive card was displayed. This is applicable for mobile devices."
        },
        "route_id": {
            "type": "string",
            "description": "If it's a guided navigation, then log the route_id for the trip"
        },
        "impression_id": {
            "type": "string",
            "description": "The identifier of the impression associated with an instance of cards displayed"
        },
        "request_id": {
            "type": "string",
            "description": "Unique id for each prediction response received from the server"
        },
        "predictive_card_list": {
            "type": "array",
            "items": {
                "$ref": "/resources/schema/analytics/client/v4/item/PredictiveListItem.json"
            },
            "description": "Required List of dest_lat, dest_lon, entity_id, label, confidence, status etc",
            "minItems": 1,
            "maxItems": 10
        },
        "display_screen": {
            "type": "string",
            "enum": ["PORCH_VIEW", "CLUSTER", "CSM"],
            "description": "This is for multi-screen tracking and will capture which screen predictive cards are being shown"
        }
    },
    "required": [
        "log_context",
        "event_name",
        "impression_id",
        "predictive_card_list",
        "request_id",
        "display_screen"
    ]
}