Hi. We’re trying to make use of a schema where a field is optional but, if present, has a minimum length. The problem we’re seeing is that when the field is absent, snowplow is rejecting it for violating the
minLength validation criteria.
What we’re seeing is that if the optional field is left out of the context when we make the snowplow api call, that the message shows up in bad logs with a schema violation. Snowplow is reporting it as violating the
minLength criteria, and the
value we see in bad logs is
What’s the correct way to not pass an optional field that has validation criteria? Should we include the field in the context packet but set its value to
NULL? Or something else?
Thank you in advance!