{
	"$schema": "http://json-schema.org/draft-04/schema#",
	"title": "Autosuggest",
	"type": "object",
	"additionalProperties": false,
	"description": "Analytics-v4 .. Autosuggest object",
	"properties": {
		"log_context": {
			"$ref": "/resources/schema/analytics/client/v4/LogContext.json",
			"description": "Required Log Context Reference"
		},
		"event_name": {
			"type": "string",
			"enum": ["AUTOSUGGEST"]
		},
		"schema_definition": {
			"type": "string",
			"enum": ["Autosuggest"]
		},
		"transaction_id": {
			"type": "string",
			"description": "The transaction ID for the request"
		},
		"term": {
			"type": "string",
			"description": "The string entered in Onebox at which point a suggestion was made."
		},
		"suggestion_list": {
			"type": "array",
			"items": {
				"$ref": "/resources/schema/analytics/client/v4/item/SearchListItem.json"
			},
			"uniqueItems": true,
			"description": "List consisting of impression_id, entity_id, category_id, term and type. Will be empty if no result in autosuggest"
		},
		"interaction_method": {
			"$ref": "/resources/schema/analytics/client/v4/type/InteractionMethodValues.json",
			"description": "for each user interaction log the interation method"
		},
		"time_taken": {
			"type": "number",
			"description": "Time taken for response in milliseconds"
		}
	},
	"required": [
		"log_context",
		"event_name",
		"schema_definition",
		"transaction_id",
		"term",
		"suggestion_list",
		"time_taken"
	]
}