We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e7d807 commit d7af249Copy full SHA for d7af249
pkg/service/json.go
@@ -207,6 +207,8 @@ func ValidateStruct(ctx context.Context, obj interface{}) error {
207
switch ruleName {
208
case "email":
209
return NewInvalidParameterError(fieldName, "must be a valid email")
210
+ case "url":
211
+ return NewInvalidParameterError(fieldName, "must be a valid url")
212
case "max":
213
return NewInvalidParameterError(fieldName, fmt.Sprintf("must be less than %s", validationRules[ruleName]))
214
case "min":
0 commit comments