From aac044fa0afdb1da437c488fcf4f68da5e8ae5ee Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Mon, 31 Jul 2023 15:49:08 +0200 Subject: [PATCH] :bug: Fix incorrect schema on bool-content --- common/src/app/common/types/shape.cljc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/common/src/app/common/types/shape.cljc b/common/src/app/common/types/shape.cljc index 3f2e3113cf..ae1687e91e 100644 --- a/common/src/app/common/types/shape.cljc +++ b/common/src/app/common/types/shape.cljc @@ -177,13 +177,14 @@ ;; FIXME: improve this schema [:bool-type :keyword] - ;; FIXME: improve this schema [:bool-content [:vector {:gen/max 2} [:map [:command :keyword] [:relative {:optional true} :boolean] - [:params [:map-of {:gen/max 5} :keyword ::sm/safe-number]]]]]]) + [:prev-pos {:optional true} ::gpt/point] + [:params {:optional true} + [:map-of {:gen/max 5} :keyword ::sm/safe-number]]]]]]) (sm/def! ::rect-attrs [:map {:title "RectAttrs"}