We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I used filepath tag with * in path, and library hadn't reported error about wrong path, because syscall.ENOENT not checked in tag function
1.25
ConfigPath string `validate:"omitempty,filepath"` value was nonexisting file /path/not/exist/*
The text was updated successfully, but these errors were encountered:
PR for fixing this problem #1388
Sorry, something went wrong.
if you wish to check existence of file use the file validator. filepath doesn't support checking file existence
file
filepath
Links to docs: https://pkg.go.dev/github.com/go-playground/validator/v10#hdr-File https://pkg.go.dev/github.com/go-playground/validator/v10#hdr-File_Path
No branches or pull requests
What happened?
I used filepath tag with * in path, and library hadn't reported error about wrong path, because syscall.ENOENT not checked in tag function
Version
1.25
Example Code
The text was updated successfully, but these errors were encountered: