{
	"$schema":"http://json-schema.org/draft-04/schema#",
	"title":"AddFavorite",
	"type":"object",
	"additionalProperties":false,
	"description":"Analytics-v2 .. Add Favorite object",
	"properties":{
		"log_context":{
			"$ref":"/resources/schema/analytics/client/v2/LogContext.json",
			"description":"Required Log Context Reference"
		},
		"event_name":{
			"type": "string",
			"enum": ["ADD_FAVORITE"]
		},
		"schema_definition":{
			"type": "string",
			"enum": ["AddFavorite"]
		},
		"trigger" : {
            "$ref": "/resources/schema/analytics/client/v2/AddFavoriteTriggerType.json",
            "description" : "Entry point of Add favorites"
        },
		"action":{
			"$ref":"/resources/schema/analytics/client/v2/AddFavoriteActionType.json",
			"description":"Required .. Whether the place was Liked or Unliked"
		},
		"display_screen":{
			"$ref":"/resources/schema/analytics/client/v2/PlaceDisplayScreenType.json",
			"description":"Required .. Which screen was the Like or Unlike done from."
		},
		"entity_id":{
			"type":"string",
			"description":"Required .. Entity ID of the place Liked or Unliked"
		},
		"distance":{
			"type":"number",
			"description":"Distance for the POI or Address in miles."
		},
		"search_id":{
			"type":"string",
			"description":"LogID of Search that rendered the POI or Address Like or Unliked action, if resulted from a search."
		},
		"card_id" : {
            "type" : "string",
            "description" : "Predictive card id, if user add favorite from predictive card list."
        },
		"interaction_method": {
			"$ref": "/resources/schema/analytics/client/v2/InteractionMethodValues.json",
			"description": "for each user interaction log the interation method"
		}
	},
	"required":[
		"log_context",
		"event_name",
		"schema_definition",
		"action",
		"display_screen",
		"entity_id"
	]
}