{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "SetHome",
    "type": "object",
    "additionalProperties": false,
    "description": "Set Home Event Schema",
    "properties": {
        "log_context": {
            "$ref": "/resources/schema/analytics/client/v4/LogContext.json",
            "description": "Required Log Context Reference"
        },
        "event_name": {
            "type": "string",
            "enum": [
                "SET_HOME"
            ]
        },
        "schema_definition": {
            "type": "string",
            "enum": [
                "SetHome"
            ]
        },
        "entity_id": {
            "type": "string",
            "description": "Entity ID of the result that was set as home"
        },
        "action": {
            "type": "string",
            "enum": [
                "SET",
                "REMOVE"
            ]
        },
        "label": {
            "type": "string",
            "description": "Label of the home address"
        },
        "lat": {
			"type": "number",
			"description": "Latitude of entity"
		},
		"lon": {
			"type": "number",
			"description": "Longitude of entity"
		}
    },
    "required": [
        "log_context",
        "event_name",
        "schema_definition",
        "entity_id",
        "action",
        "lat",
        "lon"
    ]
}