MysteriousPotato

Results 5 comments of MysteriousPotato

related to #1142 Nested struct validation was not supported in previous version, hence why no error was returned. However, support extends only to a few tags including the ones that...

>ChunkNumber should not be validated when Finish is equal to 1 ? > >Because the default value of the int type of the struct is 0,how can I fix it...

Is it possible the required tag contains an invisible char? I'd try deleting the tag and rewriting it just in case. Ex.: ```go func TestNastyInvisibleChar(t *testing.T) { v := validator.New(validator.WithRequiredStructEnabled())...

You're missing an "s" in the `excludesall` rule. It should be `excludesall=@!*` That being said, I'm not sure what your use case is but `@!*` may all be valid path...

> **Tried:** Use of filepatha and dirpath, but is does not even allow _ or - in the file name which should be allowed. Hence it does not server the...