Fork me on GitHub
#malli
<
2020-04-19
>
teodorlu20:04:28

Are anyone using Malli for recursive schemas? Attached schema generated with malli.provider/provide. In spec, I'd do something like this (not tested, and missing some properties):

(s/def ::title string?)
(s/def ::children (s/coll-of ::node))

(s/def ::node
  (s/keys :req-un [::title
                   ::children]))

roklenarcic21:04:58

I am trying to add an error message to an existing schema, I tried simply saying: [:and {:error/message "X"} myschema] and that didn’t work