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