0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-08 07:50:43 -05:00

🐛 Use proper ::sm/int schema type on color and shape schemas

This commit is contained in:
Andrey Antukh 2024-10-28 15:37:30 +01:00
parent f96da090d6
commit 08a9371322
2 changed files with 4 additions and 4 deletions

View file

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

View file

@ -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"])}