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 am having an issue with validating the email format of string. I am trying to pass regular email like john.doe@example.com or my email, but no matter what, I am getting a validation error:
json: error calling MarshalJSON for type types.Email: email: failed to pass regex validation
My schema
# ...email:
type: stringformat: email# ...
I am using Fiber as my HTTP server. Golang 1.22.3 on macOS (darwin/arm64).
The text was updated successfully, but these errors were encountered:
Hello,
I am having an issue with validating the email format of string. I am trying to pass regular email like
john.doe@example.com
or my email, but no matter what, I am getting a validation error:My schema
I am using Fiber as my HTTP server. Golang 1.22.3 on macOS (
darwin/arm64
).The text was updated successfully, but these errors were encountered: