{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "Favorite",
    "type": "object",
    "additionalProperties": false,
    "description": "Favorite Event Schema",
    "properties": {
        "log_context": {
            "$ref": "/resources/schema/analytics/client/v4/LogContext.json",
            "description": "Required Log Context Reference"
        },
        "event_name": {
            "type": "string",
            "enum": [
                "FAVORITE"
            ]
        },
        "schema_definition": {
            "type": "string",
            "enum": [
                "Favorite"
            ]
        },
        "action": {
            "type": "string",
            "enum": [
                "ADD",
                "DELETE"
            ],
            "description": "Whether the place was Liked or Unliked"
        },
        "entity_id": {
            "type": "string",
            "description": "Entity ID of the place Liked or Unliked"
        }
    },
    "required": [
        "log_context",
        "event_name",
        "schema_definition",
        "action",
        "entity_id"
    ]
}