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

Resolve Utf8 bug #632

Merged
merged 7 commits into from
Aug 9, 2023
Merged

Resolve Utf8 bug #632

merged 7 commits into from
Aug 9, 2023

Conversation

lehecht
Copy link
Contributor

@lehecht lehecht commented Jul 28, 2023

Check value type and add test case.

@lehecht lehecht changed the title Utf8 bug Resolve Utf8 bug Jul 28, 2023
@mzur mzur linked an issue Aug 7, 2023 that may be closed by this pull request
Copy link
Member

@mzur mzur left a comment

Choose a reason for hiding this comment

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

Now I understand the problem better. It seems that there was invalid user input (a string instead of a file). So in addition to also accepting a string in the Utf8 rule, we should prepend bail to the validation rules, so they fail already if the value is not a file and skip the remaining rules.

@mzur mzur merged commit 772f9f7 into master Aug 9, 2023
5 checks passed
@mzur mzur deleted the utf8-bug branch August 9, 2023 07:11
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.

Fix Utf8 validation rule
2 participants