Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
fix: Validator Bind can't cast value #336
fix: Validator Bind can't cast value #336
Changes from 16 commits
3bd48d0
31f93d1
388f6d0
c933d2b
f54b8cf
62c723a
231c340
1042844
e34d489
ae74072
84394bf
f95059f
430bf34
ff0aeb1
502c615
f2c86a7
6f5cb7b
e26f1d0
8055271
2960b2d
eb5cc00
11d2785
a22a9a9
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Check warning on line 44 in validation/validation.go
Codecov / codecov/patch
validation/validation.go#L41-L44
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I refactored it by referring to the
New
method ofgithub.com/gookit/validate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now validator only Bind safe data, it meens validation must passed, so I change some test data.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't need to release this fix to v1.13.x, right? because it's a breaking change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes
Check warning on line 100 in validation/validator.go
Codecov / codecov/patch
validation/validator.go#L95-L100
Check warning on line 113 in validation/validator.go
Codecov / codecov/patch
validation/validator.go#L106-L113
Check warning on line 124 in validation/validator.go
Codecov / codecov/patch
validation/validator.go#L124