From f6cf8d2b1bbd16d9ce59dd39855c7854e1940872 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Wed, 26 Jan 2022 12:56:42 +0100 Subject: [PATCH] :bug: Relax text shape content spec validation. Allow to be null in some circumstances. --- common/src/app/common/pages/spec.cljc | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/common/src/app/common/pages/spec.cljc b/common/src/app/common/pages/spec.cljc index 9bd6957567..90c7d024a7 100644 --- a/common/src/app/common/pages/spec.cljc +++ b/common/src/app/common/pages/spec.cljc @@ -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?)))