{ "$schema": "http://json-schema.org/draft-04/schema#", "type": "object", "properties": { "eventType": { "type": "string" }, "payload": { "type": "object", "properties": { "sessionId": { "type": "string" }, "user": { "type": "string" }, "tenant": { "type": "string" }, "action": { "type": "string" }, "source": { "type": "array", "items": [ { "type": "object", "properties": { "search": { "type": "string" } } }, { "type": "object", "properties": { "search_count": { "type": "string" } } } ] } }, "required": [ "sessionId", "user", "tenant", "action", "source" ] } }, "required": [ "eventType", "payload" ] }