diff --git a/common/src/app/common/schema/desc_js_like.cljc b/common/src/app/common/schema/desc_js_like.cljc index 28f19e196..e60c329e8 100644 --- a/common/src/app/common/schema/desc_js_like.cljc +++ b/common/src/app/common/schema/desc_js_like.cljc @@ -92,8 +92,8 @@ (defmethod visit :select-keys [_ schema _ options] (describe* (m/deref schema) options)) (defmethod visit :and [_ s children _] (str (str/join ", and " children) (-titled s))) (defmethod visit :enum [_ s children _options] (str "enum" (-titled s) " of " (str/join ", " children))) -(defmethod visit :maybe [_ _ children _] (str (first children) "?")) -(defmethod visit :tuple [_ s children _] (str "vector " (-titled s) "with exactly " (count children) " items of type: " (str/join ", " children))) +(defmethod visit :maybe [_ _ children _] (str (first children) " nullable")) +(defmethod visit :tuple [_ _ children _] (str "(" (str/join ", " children) ")")) (defmethod visit :re [_ s _ options] (str "regex pattern " (-titled s) "matching " (pr-str (first (m/children s options))))) (defmethod visit :any [_ s _ _] (str "anything" (-titled s))) (defmethod visit :some [_ _ _ _] "anything but null")