mirror of
https://github.com/penpot/penpot.git
synced 2025-01-09 08:20:45 -05:00
🐛 Relax text shape content spec validation.
Allow to be null in some circumstances.
This commit is contained in:
parent
16788d7ab7
commit
f6cf8d2b1b
1 changed files with 7 additions and 6 deletions
|
@ -345,12 +345,13 @@
|
|||
(s/def :internal.shape.text/key string?)
|
||||
|
||||
(s/def :internal.shape.text/content
|
||||
(s/or :container
|
||||
(s/keys :req-un [:internal.shape.text/type
|
||||
:internal.shape.text/children]
|
||||
:opt-un [:internal.shape.text/key])
|
||||
:content
|
||||
(s/keys :req-un [:internal.shape.text/text])))
|
||||
(s/nilable
|
||||
(s/or :container
|
||||
(s/keys :req-un [:internal.shape.text/type
|
||||
:internal.shape.text/children]
|
||||
:opt-un [:internal.shape.text/key])
|
||||
:content
|
||||
(s/keys :req-un [:internal.shape.text/text]))))
|
||||
|
||||
(s/def :internal.shape.path/command keyword?)
|
||||
(s/def :internal.shape.path/params (s/nilable (s/map-of keyword? any?)))
|
||||
|
|
Loading…
Reference in a new issue