You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the type assumed for Data in SelfDescribingData struct is a map.
This results in error (Error unmarshaling context JSON) when trying to parse unstruct events or contexts having a different type (e.g. json array) for their data.
Error can be reproduced in tests when replacing the contextString with something like:
var contextsString = `{"schema":"iglu:com.snowplowanalytics.snowplow/contexts/jsonschema/1-0-0","data":[{"schema":"iglu:com.acme.test/testing/jsonschema/1-0-0","data":["aa","bb"]}]}`
The text was updated successfully, but these errors were encountered:
Thanks for raising - according to our documentation, arrays at the top level aren't valid. The do pass validation, but I consider that to be the problem underlying this issue. I've created a ticket against the enrich repo: snowplow/enrich#749
Currently, the type assumed for
Data
inSelfDescribingData
struct is a map.This results in error (
Error unmarshaling context JSON
) when trying to parse unstruct events or contexts having a different type (e.g. json array) for their data.Error can be reproduced in tests when replacing the contextString with something like:
The text was updated successfully, but these errors were encountered: