mirror of
https://github.com/penpot/penpot.git
synced 2026-09-18 18:06:14 +00:00
🐛 Relax text shape content spec validation.
Allow to be null in some circumstances.
This commit is contained in:
parent
16788d7ab7
commit
f6cf8d2b1b
@ -345,12 +345,13 @@
|
|||||||
(s/def :internal.shape.text/key string?)
|
(s/def :internal.shape.text/key string?)
|
||||||
|
|
||||||
(s/def :internal.shape.text/content
|
(s/def :internal.shape.text/content
|
||||||
(s/or :container
|
(s/nilable
|
||||||
(s/keys :req-un [:internal.shape.text/type
|
(s/or :container
|
||||||
:internal.shape.text/children]
|
(s/keys :req-un [:internal.shape.text/type
|
||||||
:opt-un [:internal.shape.text/key])
|
:internal.shape.text/children]
|
||||||
:content
|
:opt-un [:internal.shape.text/key])
|
||||||
(s/keys :req-un [:internal.shape.text/text])))
|
:content
|
||||||
|
(s/keys :req-un [:internal.shape.text/text]))))
|
||||||
|
|
||||||
(s/def :internal.shape.path/command keyword?)
|
(s/def :internal.shape.path/command keyword?)
|
||||||
(s/def :internal.shape.path/params (s/nilable (s/map-of keyword? any?)))
|
(s/def :internal.shape.path/params (s/nilable (s/map-of keyword? any?)))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user