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
When I send POST request using formData , the validation work well. But if I send POST request with json payload. Gin fw not validate anything at all.
It seem like the time_format only work with formData? How can I validate POST request input field with the specific time format. For example just only date: 2006-01-02.
The text was updated successfully, but these errors were encountered:
I read this example from official docs: https://gin-gonic.com/docs/examples/custom-validators/
And I try to apply time_format tag to my struct
When I send POST request using formData , the validation work well. But if I send POST request with json payload. Gin fw not validate anything at all.
It seem like the time_format only work with formData? How can I validate POST request input field with the specific time format. For example just only date: 2006-01-02.
The text was updated successfully, but these errors were encountered: