{
	"$schema":"http://json-schema.org/draft-04/schema#",
	"title":"Autosuggest",
	"type":"object",
	"additionalProperties":false,
	"description":"Analytics-v1 .. Autosuggest object",
	"properties":{
		"log_context":{
			"$ref":"/resources/schema/analytics/service/entity/v1/LogContext.json",
			"description":"Required Log Context Reference"
		},
		"event_name":{
			"type": "string",
			"enum": ["AUTOSUGGEST"]		
		},
		"schema_definition":{
			"type": "string",
			"enum": ["Autosuggest"]
		},
		"term":{
			"type":"string",
			"description":"Required .. The string entered in Onebox at which point the suggestion api was called."
		},
		"suggestion_list":{
			"type" : "array",
			"items" : {
			   "$ref" : "/resources/schema/analytics/service/entity/v1/AutosuggestListItem.json"
            		},
			"uniqueItems" : true,
            		"description" : "Required List consisting of position,entity_id, category_id, term, type"			
		},
        	"transaction_id" : {
            		"type" : "string",
            		"description" : "The transaction ID for the request"
        	}
		
	},
	"required":[
		"log_context",
		"event_name",
		"schema_definition",
		"term",
		"transaction_id"
	]
}