mirror of
https://github.com/penpot/penpot.git
synced 2026-03-11 21:06:48 +00:00
Remove shape-type struct validator.
This commit is contained in:
@@ -8,8 +8,7 @@
|
||||
(ns uxbox.util.schema
|
||||
(:refer-clojure :exclude [keyword uuid vector boolean map set])
|
||||
(:require [struct.core :as st]
|
||||
[uxbox.util.i18n :refer (tr)]
|
||||
[uxbox.main.geom :refer (shape?)]))
|
||||
[uxbox.util.i18n :refer (tr)]))
|
||||
|
||||
;; (def datetime
|
||||
;; {:message "must be an instant"
|
||||
@@ -65,11 +64,6 @@
|
||||
:optional true
|
||||
:validate #(not (nil? (re-find #"^#[0-9A-Fa-f]{6}$" %)))})
|
||||
|
||||
(def shape-type
|
||||
{:message "should be shape"
|
||||
:optional true
|
||||
:validate #(shape? %)})
|
||||
|
||||
(defn validate
|
||||
([data schema]
|
||||
(validate data schema nil))
|
||||
|
||||
Reference in New Issue
Block a user