Hi, I am instrumenting Self-Describing (unstruct) events based on a rigid taxonomy where we want to capture categories and sub-categories for events, but not expose those as properties for the developers to have to specify in the tracking call.
For example, the event “Make Payment Failed” would be tracked as the unstruct event
subcategory: "Payments", and property
failure_reason passed as a property in the tracker call, but we don’t want developers to pass in
subcategory because of the potential for error.
Our attempt to do this was to utilize jsonschema
default in the Self-Describing event’s schema. Upon firing some test events, however, we discovered that the default values are not getting populated by the validator in the snowplow pipeline.
Is this not a functionality that has been implemented?
Does anyone know of a way that we can get the functionality we want?