-
Notifications
You must be signed in to change notification settings - Fork 7
url
Myles Megyesi edited this page Apr 28, 2013
·
1 revision
(defvalidator user-validator
[:website :url])
(user-validator {:website "foo://localhost"})
; {:website ["must be a valid url"]}
(user-validator {:website "http://google.com"})
; {}
-
allow-all-schemes
Consider all schemes valid. Defaultfalse
. -
allow-local-urls
Allows urls such as "http://localhost/". Defaultfalse
. -
allow-two-slashes
Allows the path to have two trailing slashes. Defaultfalse
. -
no-fragments
Disallows url fragments (trailing "#"). Defaultfalse
. -
schemes
A list of schemes that should be considered valid. Default["http" "https"]
.
None.
"must be a valid url"