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
Validation failed for a field of Child inside the Children slice.
But in my case, I would need to know that Children failed for the top-level struct.
Is there any way I can access that information? I would need to serialize the entire Children slice to remain compatible with another validation framework.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I'm facing the following situation:
Validation failed for a field of
Child
inside theChildren
slice.But in my case, I would need to know that
Children
failed for the top-level struct.Is there any way I can access that information? I would need to serialize the entire
Children
slice to remain compatible with another validation framework.Beta Was this translation helpful? Give feedback.
All reactions