The first argument of ContextGenerator, event does not match the type definition of SelfDescribingJson.
SelfDescribingJson contains properties data and scheme, but event does not.
Consequently it implies that both data and schema exists in the event value. But in usage, they do not exist.
Describe the bug
The first argument of ContextGenerator,
event
does not match the type definition ofSelfDescribingJson
.SelfDescribingJson
contains propertiesdata
andscheme
, butevent
does not.Consequently it implies that both
data
andschema
exists in theevent
value. But in usage, they do not exist.In actual usage the
args.event
payload looks more like this: https://github.com/snowplow/snowplow/wiki/snowplow-tracker-protocol#3-snowplow-eventsReferences for the type and interfaces mentioned: https://github.com/snowplow/snowplow-javascript-tracker/blob/abb0d37ee512a5efb9ed0d2e56d50ecd6ae6787e/core/src/contexts.ts#L36-L47
https://github.com/snowplow/snowplow-javascript-tracker/blob/abb0d37ee512a5efb9ed0d2e56d50ecd6ae6787e/core/src/core.ts#L21-L28
To Reproduce N/A
Expected behavior
Should
event
beRecord<string, unknown>
instead?Screenshots N/A
Desktop (please complete the following information): N/A
Smartphone (please complete the following information): N/A
Additional context snowplow-tracker-core@0.9.1