{
	"$schema":"http://json-schema.org/draft-04/schema#",
	"title":"Waypoint",
	"type":"object",
	"additionalProperties":false,
	"description":"Analytics-v2 .. Waypoint object",
	"properties":{
		"log_context":{
			"$ref":"/resources/schema/analytics/client/v2/LogContext.json",
			"description":"Required Log Context Reference"
		},
		"event_name":{
			"type": "string",
			"enum": ["WAYPOINT"]		
		},
		"schema_definition":{
			"type": "string",
			"enum": ["Waypoint"]
		},
		"action":{
			"$ref":"/resources/schema/analytics/client/v2/WaypointActionType.json",
			"description":"Required .. Log AddStop when user adds a stop during navigation. Log Cancel if user cancels the result returned without adding the stop. Log DeleteStop when user removes the detour after adding the stop."
		},
		"trigger":{
			"$ref":"/resources/schema/analytics/client/v2/SearchType.json",
			"description":"Required .. Log AddStop when user adds a stop during navigation. Log Cancel if user cancels the result returned without adding the stop. Log DeleteStop when user removes the detour after adding the stop."
		},
		"category_id":{
			"type":"string",
			"description":"Required .. Category ID of the place"
		},
		"category":{
			"$ref":"/resources/schema/analytics/client/v2/CategoryType.json",
			"description":"Required .. POI category like Coffee, Food, Gas, Brand, etc."
		},
		"entity_id":{
			"type":"string",
			"description":"Entity ID of the POI added or deleted"
		},
		"nav_id":{
			"type":"string",
			"description":"Required .. LogID of NavStart"
		},
		"search_id":{
			"type":"string",
			"description":"Required .. LogID of Search that led to the detail page"
		},
		"route_id":{
			"type":"string",
			"description":"Required .. LogID of Search that led to the detail page"
		},
		"status" : {
            "$ref" : "/resources/schema/analytics/client/v2/StatusType.json",
            "description" : "Successfully submitted or not if action was Submit."
        },
		"caused by":{
			"type":"string",
			"description":"Required .. LogID of Search that led to the detail page"
		},
		"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",
		"category_id",
		"category",
		"search_id"
	]
}