diff --git a/common/src/app/common/types/grid.cljc b/common/src/app/common/types/grid.cljc index 4901c2934..29e90af4c 100644 --- a/common/src/app/common/types/grid.cljc +++ b/common/src/app/common/types/grid.cljc @@ -21,7 +21,7 @@ (sm/def! ::column-params [:map [:color ::grid-color] - [:type [::sm/one-of #{:stretch :left :center :right}]] + [:type {:optional true} [::sm/one-of #{:stretch :left :center :right}]] [:size {:optional true} [:maybe ::sm/safe-number]] [:margin {:optional true} [:maybe ::sm/safe-number]] [:item-length {:optional true} [:maybe ::sm/safe-number]] diff --git a/common/src/app/common/types/shape.cljc b/common/src/app/common/types/shape.cljc index 2c5c140e5..aa8441fac 100644 --- a/common/src/app/common/types/shape.cljc +++ b/common/src/app/common/types/shape.cljc @@ -100,7 +100,7 @@ [:vector {:gen/max 4 :gen/min 4} ::gpt/point]) (sm/def! ::fill - [:map {:title "Fill" :min 1} + [:map {:title "Fill"} [:fill-color {:optional true} ::ctc/rgb-color] [:fill-opacity {:optional true} ::sm/safe-number] [:fill-color-gradient {:optional true} ::ctc/gradient] @@ -201,7 +201,7 @@ (sm/def! ::group-attrs [:map {:title "GroupAttrs"} [:type [:= :group]] - [:shapes [:vector {:min 1 :gen/max 10 :gen/min 1} ::sm/uuid]]]) + [:shapes [:vector {:gen/max 10 :gen/min 1} ::sm/uuid]]]) (sm/def! ::frame-attrs [:map {:title "FrameAttrs"} @@ -214,7 +214,7 @@ (sm/def! ::bool-attrs [:map {:title "BoolAttrs"} [:type [:= :bool]] - [:shapes [:vector {:min 1 :gen/max 10 :gen/min 1} ::sm/uuid]] + [:shapes [:vector {:gen/max 10 :gen/min 1} ::sm/uuid]] ;; FIXME: improve this schema [:bool-type :keyword]