{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "SetWork",
    "type": "object",
    "additionalProperties": false,
    "description": "Set Work Event Schema",
    "properties": {
        "log_context": {
            "$ref": "/resources/schema/analytics/client/v4/LogContext.json",
            "description": "Required Log Context Reference"
        },
        "event_name": {
            "type": "string",
            "enum": [
                "SET_WORK"
            ]
        },
        "schema_definition": {
            "type": "string",
            "enum": [
                "SetWork"
            ]
        },
        "entity_id": {
            "type": "string",
            "description": "Entity ID of the result that was set as work"
        },
        "action": {
            "type": "string",
            "enum": [
                "SET",
                "REMOVE"
            ]
        },
        "label": {
            "type": "string",
            "description": "Label of the work 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"
    ]
}