snowplow / enrich

Snowplow Enrichment jobs and library
https://snowplowanalytics.com
Other
21 stars 39 forks source link

Don't pass field value to ValidatorReport if validation fails #892

Closed spenes closed 6 months ago

spenes commented 6 months ago

In 4.2.0, we've started to use SchemaViolations instead of EnrichmentFailures with some errors. While doing this change, we've used ValidatorReport to wrap atomic field validation errors and we've passed field values as well to ValidatorReport. However, field values shouldn't be passed to ValidatorReport. This PR makes necessary changes to remove those values from ValidatorReport.