{
    "$schema" : "http://json-schema.org/draft-04/schema#",
    "title" : "Share",
    "type" : "object",
    "additionalProperties" : false,
    "description" : "TAnalytics-v2 .. Any time user uses ETA, position, event or any social sharing features",
    "properties" : {
        "log_context" : {
            "$ref" : "/resources/schema/analytics/client/v2/LogContext.json",
            "description" : "Required Log Context Reference"
        },
	"event_name":{
	    "type": "string",
	    "enum": ["SHARE"]		
	},
	"schema_definition":{
	    "type": "string",
	    "enum": ["Share"]
	},
        "trigger" : {
            "$ref" : "/resources/schema/analytics/client/v2/ShareTriggerType.json",
            "description" : "The aspect of the app/about the app was shared by the user"
        },
        "share_type" : {
            "$ref" : "/resources/schema/analytics/client/v2/ShareType.json",
            "description" : "Medium used for the share"
        },
        "entity_id" : {
            "type" : "string",
            "description" : "Required entity ID, if share_event is POI or Address"
        },
        "eta" : {
            "type" : "number",
            "description" : "Required eta, if share_event is ETA"
        },
        "distance" : {
            "type" : "number",
            "description" : "Optional distance for place shared"
        },
        "recipient_count" : {
            "type" : "number",
            "description" : "Optional Number of users the share was with"
        },
        "route_id" : {
            "type" : "string",
            "description" : "The LogID of the chosen Route, if ETA was shared during navigation"
        },
        "dest_lat" : {
            "type" : "number",
            "description" : "Optional Latitude for place shared"
        },
        "dest_lon" : {
            "type" : "number",
            "description" : "Optional longitude for place shared"
        },
        "search_id" : {
            "type" : "string",
            "description" : "The LogID of the Search that resulted in the Share"
        }
    },
    "required" : [
        "log_context",
        "event_name",
        "schema_definition",
        "trigger",
        "share_type"
    ]
}