mirror of
https://github.com/penpot/penpot.git
synced 2026-05-04 07:39:05 +00:00
🐛 Fix unexpected exception on handling export data validation.
This commit is contained in:
parent
ccbc519c04
commit
9f7a04e330
@ -276,8 +276,9 @@
|
||||
:luminosity})
|
||||
|
||||
(s/def ::shape-attrs
|
||||
(s/keys :req-un [::type ::name]
|
||||
:opt-un [::id
|
||||
(s/keys :opt-un [::id
|
||||
::type
|
||||
::name
|
||||
::component-id
|
||||
::component-file
|
||||
::component-root?
|
||||
@ -379,7 +380,11 @@
|
||||
(s/and ::shape-attrs
|
||||
(s/keys :opt-un [:internal.shape/hide-fill-on-export])))
|
||||
|
||||
(s/def ::shape (s/multi-spec shape-spec :type))
|
||||
(s/def ::shape
|
||||
(s/and (s/multi-spec shape-spec :type)
|
||||
#(contains? % :name)
|
||||
#(contains? % :type)))
|
||||
|
||||
(s/def :internal.page/objects (s/map-of uuid? ::shape))
|
||||
|
||||
(s/def ::page
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user