{
	"$schema":"http://json-schema.org/draft-04/schema#",
	"title":"OpenExternalLink",
	"type":"object",
	"additionalProperties":false,
	"description":"Analytics-v2 .. Open external link object",
	"properties":{
		"log_context":{
			"$ref":"/resources/schema/analytics/client/v2/LogContext.json",
			"description":"Required Log Context Reference"
		},
		"event_name":{
			"type": "string",
			"enum": ["OPEN_EXTERNAL_LINK"]		
		},
		"schema_definition":{
			"type": "string",
			"enum": ["OpenExternalLink"]
		},
		"action":{
			"$ref":"/resources/schema/analytics/client/v2/ClickActionType.json",
			"description":"Required .. Log Click when user clicks on an external link"
		},
		"type":{
			"type":"string",
			"description":"Whether the link was Yelp or TripAdvisor, etc ."
		},
        	"entity_id" : {
            		"type" : "string",
            		"description" : "Entity ID of the address or POI if is_sponsored is false."
        	},
        	"merchant_id" : {
            		"type" : "string",
            		"description" : "Merchant ID offering the coupon."
        	},
        	"distance" : {
            		"type" : "number",
            		"description" : "Calculated distance."
        	},
        	"category_id" : {
            		"type" : "string",
            		"description" : "Category ID of entity"
        	},
        	"category" : {
            		"type" : "string",
            		"description" : "Category like Address, Thai, Coffee, etc displayed on Place Details"
        	},
        	"is_sponsored" : {
            		"type" : "boolean",
            		"description" : "Whether advertised or organic if resulted from a search"
        	},
        	"search_id" : {
            		"type" : "string",
            		"description" : "LogID of Search that led to the detail page if from search result"
        	},
        	"coupon_detail_id" : {
            		"type" : "string",
            		"description" : "LogID of CouponDetails that led to the detail page if from coupons page"
        	}
		
	},
	"required":[
		"log_context",
		"event_name",
		"schema_definition",
		"action",
		"type"
	]
}