From 44766f817c4043351b238dc470f3e83d264b0c0f Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Tue, 25 Oct 2016 22:16:32 +0200 Subject: [PATCH] Remove shape-type struct validator. --- src/uxbox/util/schema.cljs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/uxbox/util/schema.cljs b/src/uxbox/util/schema.cljs index ef8187623..1750c1935 100644 --- a/src/uxbox/util/schema.cljs +++ b/src/uxbox/util/schema.cljs @@ -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))