mirror of
https://github.com/penpot/penpot.git
synced 2026-04-27 20:28:11 +00:00
Add more validators to schema.
This commit is contained in:
parent
7327bfba76
commit
73a8829e1c
@ -41,7 +41,15 @@
|
||||
[v]
|
||||
(vector? v))
|
||||
|
||||
|
||||
(v/defvalidator function
|
||||
"Validats if `v` is function."
|
||||
{:default-message-format "%s must be a function."}
|
||||
[v]
|
||||
(fn? v))
|
||||
|
||||
(def required v/required)
|
||||
(def number v/number)
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; Public Api
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user