mirror of
https://github.com/penpot/penpot.git
synced 2026-09-07 20:49:37 +00:00
Add more validators to schema.
This commit is contained in:
parent
7327bfba76
commit
73a8829e1c
@ -41,7 +41,15 @@
|
|||||||
[v]
|
[v]
|
||||||
(vector? 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 required v/required)
|
||||||
|
(def number v/number)
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
;; Public Api
|
;; Public Api
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user