I want to check whether the string named RedirectUri is a url, but it gives an error, my data schema is like this;
type TokenReq struct {
ClientId string `json:"clientId" validate:"excluded_unless=GrantType password"`
ClientSecret string `json:"clientSecret" validate:"excluded_unless=GrantType password"`
Username string `json:"username" validate:"required_if=grantType password,email"`
Password string `json:"password" validate:"required_if=grantType password"`
GrantType string `json:"grantType" validate:"required,oneof=password authorization_code refresh_token"`
RefreshToken string `json:"refreshToken" validate:"required_if=GrantType refresh_token"`
RedirectUri string `json:"redirectUri" validate:"url,excluded_unless=GrantType password"`
}