mirror of
https://github.com/penpot/penpot.git
synced 2025-06-07 06:51:38 +02:00
Add more validators to schema.
This commit is contained in:
parent
7327bfba76
commit
73a8829e1c
1 changed files with 8 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue