From 420525cdf01dc77fcb9a21474231a4dae5dc801b Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Wed, 26 Jan 2022 18:11:20 +0100 Subject: [PATCH] :bug: Make the path command params optional. --- common/src/app/common/pages/spec.cljc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/common/src/app/common/pages/spec.cljc b/common/src/app/common/pages/spec.cljc index 1e6a020b3..59ded8f62 100644 --- a/common/src/app/common/pages/spec.cljc +++ b/common/src/app/common/pages/spec.cljc @@ -355,10 +355,12 @@ (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?))) +(s/def :internal.shape.path/params + (s/nilable (s/map-of keyword? any?))) + (s/def :internal.shape.path/command-item - (s/keys :req-un [:internal.shape.path/command - :internal.shape.path/params])) + (s/keys :req-un [:internal.shape.path/command] + :opt-un [:internal.shape.path/params])) (s/def :internal.shape.path/content (s/coll-of :internal.shape.path/command-item :kind vector?))