Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
May 6, 2024

Conversation

spenes
Copy link
Contributor

@spenes spenes commented Apr 30, 2024

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.

@spenes spenes requested a review from benjben April 30, 2024 22:46
Copy link
Contributor

@benjben benjben left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great @spenes !

@spenes spenes changed the base branch from master to develop May 6, 2024 10:03
@spenes spenes merged commit 5d132ec into develop May 6, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants