{ "$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": { "source": { "type": "array", "items": [ { "type": "object", "properties": { "product": { "type": "object", "properties": { "id": { "type": "string" }, "sku": { "type": "string" }, "name": { "type": "string" }, "published": { "type": "boolean" }, "metadata": { "type": "object", "properties": { "createdAt": { "type": "string" }, "modifiedAt": { "type": "string" }, "version": { "type": "integer" } } } } } } }, { "type": "object", "properties": { "prices": { "type": "array", "items": { "type": "object", "properties": { "priceId": { "type": "string" }, "originalAmount": { "type": "integer" }, "effectiveAmount": { "type": "integer" }, "currency": { "type": "string" } } } } } }, { "type": "object", "properties": { "categories": { "type": "array", "items": [ { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "code": { "type": "string" }, "description": { "type": "string" }, "published": { "type": "boolean" } } }, { "type": "object", "properties": { "id": { "type": "string" }, "parentId": { "type": "string" }, "name": { "type": "string" }, "code": { "type": "string" }, "description": { "type": "string" }, "published": { "type": "boolean" } } } ] } } } ] } } } ] } }, "required": [ "eventType", "payload" ] }