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
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
-
I have the following struct
I want to ensure that this field exists always in the request payload for my requests, a simple
required
was not workingI tried to create a custom validator, like so
and change the struct to
the request body reading code
but this is not working, the validator is not being called, i tried adding print statements and see if the validator function is being called.
wasn't able to figure out how to get this working, any help is appreciated 🙏🏻
Beta Was this translation helpful? Give feedback.
All reactions