From 08a9371322f1f64a63de26830b456dc05b5c3256 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Mon, 28 Oct 2024 15:37:30 +0100 Subject: [PATCH] :bug: Use proper ::sm/int schema type on color and shape schemas --- common/src/app/common/types/color.cljc | 4 ++-- common/src/app/common/types/shape.cljc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/common/src/app/common/types/color.cljc b/common/src/app/common/types/color.cljc index fd20b0330..ab50f4be0 100644 --- a/common/src/app/common/types/color.cljc +++ b/common/src/app/common/types/color.cljc @@ -56,8 +56,8 @@ (def schema:image-color [:map {:title "ImageColor"} [:name {:optional true} :string] - [:width :int] - [:height :int] + [:width ::sm/int] + [:height ::sm/int] [:mtype {:optional true} [:maybe :string]] [:id ::sm/uuid] [:keep-aspect-ratio {:optional true} :boolean]]) diff --git a/common/src/app/common/types/shape.cljc b/common/src/app/common/types/shape.cljc index 4ede3a641..5dfa9a016 100644 --- a/common/src/app/common/types/shape.cljc +++ b/common/src/app/common/types/shape.cljc @@ -224,8 +224,8 @@ [:map {:title "ImageAttrs"} [:metadata [:map - [:width {:gen/gen (sg/small-int :min 1)} :int] - [:height {:gen/gen (sg/small-int :min 1)} :int] + [:width {:gen/gen (sg/small-int :min 1)} ::sm/int] + [:height {:gen/gen (sg/small-int :min 1)} ::sm/int] [:mtype {:optional true :gen/gen (sg/elements ["image/jpeg" "image/png"])}