Provides just a bit more convenient functionality to clojure.spec.
Provides just a bit more convenient functionality to clojure.spec.
(only-keys & {:keys [req req-un opt opt-un] :as m})Takes the same arguments as clojure.spec.alpha/keys and creates a map validating spec. However, the spec disallows undefined keys.
Takes the same arguments as clojure.spec.alpha/keys and creates a map validating spec. However, the spec disallows undefined keys.
(re-find re)Returns a spec that validates a string satisfying re regexp, using clojure.core/re-find.
Returns a spec that validates a string satisfying re regexp, using clojure.core/re-find.
(re-matches re)Returns a spec that validates a string satisfying re regexp, using clojure.core/re-matches.
Returns a spec that validates a string satisfying re regexp, using clojure.core/re-matches.
(string & {:keys [not-empty not-blank count min-count max-count re]})Returns a spec for a string.
Takes several kwargs options that further constrain the string:
:not-empty - the string is not empty (default false) :not-blank - the string is not blank (default false) :count - specifies the string length exactly (default nil) :min-count, :max-count - range of the string length (<= min-count count max-count) (defaults nil) :re - the string matches a regexp, using clojure.core/re-find (default nil)
Returns a spec for a string.
Takes several kwargs options that further constrain the string:
:not-empty - the string is not empty (default false)
:not-blank - the string is not blank (default false)
:count - specifies the string length exactly (default nil)
:min-count, :max-count - range of the string length (<= min-count count max-count)
(defaults nil)
:re - the string matches a regexp, using clojure.core/re-find (default nil)cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |