0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-04-06 03:51:21 -05:00

Remove shape-type struct validator.

This commit is contained in:
Andrey Antukh 2016-10-25 22:16:32 +02:00
parent 4fff0e9c6c
commit 44766f817c
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95

View file

@ -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))