You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to validate the B struct, when T2 is not empty can pass the vaildate . the 'T1' in A is ignored.
typeAstruct {
T1string`validate:"required"`T2string`validate:"required"`
}
typeBstruct {
T1string// is not requiredA
}
// In this case, json works good. sometimes I need to change the A sturct.
I try the 'structonly',but does't work.
I need your guidance.
I'm sorry my English is poor
At last,Thank you for your work.
The text was updated successfully, but these errors were encountered:
Package version v10:
Question
I want to validate the B struct, when T2 is not empty can pass the vaildate . the 'T1' in A is ignored.
I try the 'structonly',but does't work.
I need your guidance.
I'm sorry my English is poor
At last,Thank you for your work.
The text was updated successfully, but these errors were encountered: