{
    "$schema" : "http://json-schema.org/draft-04/schema#",
    "title" : "CardRename",
    "type" : "object",
    "additionalProperties" : false,
    "description" : "TAnalytics-v2 .. Log when user goes to card rename screen",
    "properties" : {
        "log_context" : {
            "$ref" : "/resources/schema/analytics/client/v2/LogContext.json",
            "description" : "Required Log Context Reference"
        },
        "event_name" : {
            "type" : "string",
            "enum" : [
                "CARD_RENAME"
            ]
        },
        "schema_definition" : {
            "type" : "string",
            "enum" : [
                "CardRename"
            ]
        },
        "action" : {
            "type" : "string",
            "description" : "Action taken by user on the card rename screen"
        },
        "trigger" : {
            "type" : "string",
            "description" : "What triggered this event. SYSTEM - when system decide to hide the card for any reason e.g. Auto-hide, user not following the predicted route etc. trigger_cause will have additional information on this. USER - When user explicitly triggers the event"
        },
        "card_id" : {
            "type" : "string",
            "description" : "Required Identifier of the start engine"
        },
        "impression_id" : {
            "type" : "string",
            "description" : "The Identifier of the Impression associated with the place"
        },
        "label" : {
            "type" : "string",
            "description" : "selected reason from the reason_list"
        },
        "original_destination_detail":{
            "$ref":"/resources/schema/analytics/client/v2/DestinationDetails.json",
            "description":"Original Label, Lat , Lon of Destination in predictive card"
        },
        "annotated_destination_detail":{
            "$ref":"/resources/schema/analytics/client/v2/DestinationDetails.json",
            "description":"Annotated Label, Lat , Lon of Destination in predictive card"
        },
        "interaction_method": {
            "$ref": "/resources/schema/analytics/client/v2/InteractionMethodValues.json",
            "description": "for each user interaction log the interation method"
        }
    },
    "required" : [
        "log_context",
        "event_name",
        "action",
        "trigger",
        "impression_id",
        "card_id"
    ]
}