mirror of
https://github.com/penpot/penpot.git
synced 2025-08-07 14:38:33 +02:00
🐛 Use proper ::sm/int schema type on color and shape schemas
This commit is contained in:
parent
f96da090d6
commit
08a9371322
2 changed files with 4 additions and 4 deletions
|
@ -56,8 +56,8 @@
|
||||||
(def schema:image-color
|
(def schema:image-color
|
||||||
[:map {:title "ImageColor"}
|
[:map {:title "ImageColor"}
|
||||||
[:name {:optional true} :string]
|
[:name {:optional true} :string]
|
||||||
[:width :int]
|
[:width ::sm/int]
|
||||||
[:height :int]
|
[:height ::sm/int]
|
||||||
[:mtype {:optional true} [:maybe :string]]
|
[:mtype {:optional true} [:maybe :string]]
|
||||||
[:id ::sm/uuid]
|
[:id ::sm/uuid]
|
||||||
[:keep-aspect-ratio {:optional true} :boolean]])
|
[:keep-aspect-ratio {:optional true} :boolean]])
|
||||||
|
|
|
@ -224,8 +224,8 @@
|
||||||
[:map {:title "ImageAttrs"}
|
[:map {:title "ImageAttrs"}
|
||||||
[:metadata
|
[:metadata
|
||||||
[:map
|
[:map
|
||||||
[:width {: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)} :int]
|
[:height {:gen/gen (sg/small-int :min 1)} ::sm/int]
|
||||||
[:mtype {:optional true
|
[:mtype {:optional true
|
||||||
:gen/gen (sg/elements ["image/jpeg"
|
:gen/gen (sg/elements ["image/jpeg"
|
||||||
"image/png"])}
|
"image/png"])}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue