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
System (please complete the following information):
macOS
1.17
1.2.11
Describe the bug
If we have nested struct in second or more level it can't find a value to item.
To Reproduce
type MainStruct struct { Second []SecondStruct `json:"second" validate:"slice"` } type SecondStruct struct { Third []ThirdStruct `json:"third" validate:"slice"` } type ThirdStruct struct { Val string `json:"val" validate:"required"` }
Expected behavior
I expect that Val from ThirdStruct would be validated.
Screenshots
I get error:
SecondStruct.0.ThirdStruct.0.Val val is required and not empty
SecondStruct.0.ThirdStruct.0.Val
val is required and not empty
But this field in struct is filled.
The text was updated successfully, but these errors were encountered:
4dc93ac
inhere
No branches or pull requests
System (please complete the following information):
macOS
[e.g. linux, macOS]1.17
1.2.11
Describe the bug
If we have nested struct in second or more level it can't find a value to item.
To Reproduce
Expected behavior
I expect that Val from ThirdStruct would be validated.
Screenshots
I get error:
SecondStruct.0.ThirdStruct.0.Val
val is required and not empty
But this field in struct is filled.
The text was updated successfully, but these errors were encountered: