🐛 Fix unexpected exception on handling export data validation.

This commit is contained in:
Andrey Antukh 2022-01-26 14:08:54 +01:00
parent ccbc519c04
commit 9f7a04e330

View File

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