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

show value received in error #36

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

show value received in error #36

wants to merge 1 commit into from

Conversation

ready4god2513
Copy link
Contributor

While working on some tests I noticed that when using Include you don't get the value that was being passed in to the validator so it can be difficult to tell if you just sent it an empty value or just the value was wrong. This adds a got "x" suffix to the string.

@ready4god2513
Copy link
Contributor Author

I actually now am nervous to merge this. It's going to break all of our tests where we check the validation error matches that old string :(

Copy link

codecov bot commented Aug 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.07%. Comparing base (8d2cfab) to head (50875fe).

Additional details and impacted files
Files Coverage Δ
messages.go 75.00% <ø> (ø)
validate.go 96.64% <100.00%> (ø)

@ripexz
Copy link
Member

ripexz commented Aug 8, 2024

I actually now am nervous to merge this. It's going to break all of our tests where we check the validation error matches that old string :(

It could be time for a v2, if you have the time and resources... we can probably consolidate a good few funcs as well with generics 🤔

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.

3 participants