I have been stuck with the snowplow mini with passing event containing custom context data.
For test case, I use the the snowplow link_click schema for the context just incase if there are other factor mess up the schema validation, e.g. iglu server not setup properly.
Here is the context field:
‘co’ => ‘{“schema”:“iglu:com.snowplowanalytics.snowplow\/contexts\/jsonschema\/1-0-1”,“data”:{“schema”:“iglu:com.snowplowanalytics.snowplow\/link_click\/jsonschema\/1-0-1”,“data”:{“elementId”:“1234”,“targetUrl”:“http:\/\/www.google.com”}}}’,
However, it always falls to the bad bucket with this error:
{“level”:“error”,“message”:“error: instance type (object) does not match any allowed primitive type (allowed: [“array”])\n level: “error”\n schema: {“loadingURI”:”#",“pointer”:""}\n instance: {“pointer”:""}\n domain: “validation”\n keyword: “type”\n found: “object”\n expected: [“array”]\n"}
I really don’t get it. Can any one please help me with this issue.
Looks like you’re sending an Object instead of an Array? Can you copy the link_click request you’re sending? And are you sending something custom or using the link_click function buildin from Snowplow?