This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-11-18
Channels
- # aws (1)
- # babashka (35)
- # beginners (52)
- # biff (4)
- # calva (55)
- # cider (19)
- # clojure (54)
- # clojure-dev (3)
- # clojure-europe (23)
- # clojure-nl (1)
- # clojure-norway (3)
- # clojure-uk (2)
- # clojurescript (9)
- # code-reviews (3)
- # datahike (1)
- # fulcro (1)
- # funcool (4)
- # graalvm (21)
- # gratitude (2)
- # java (5)
- # jobs (2)
- # joyride (1)
- # kaocha (13)
- # malli (2)
- # off-topic (22)
- # other-languages (11)
- # pathom (4)
- # re-frame (35)
- # reagent (3)
- # reitit (3)
- # releases (2)
- # remote-jobs (1)
- # rum (1)
- # shadow-cljs (42)
- # sql (18)
- # tools-deps (72)
- # web-security (6)
- # xtdb (15)
Hello
I can't seem to figure out how to make humanize and explain give me reason
fit for me.
So i gotta a schema
[:map
{:closed true}
[:client [:fn #function[app.validation/fn--37864]]]
[:sport [:fn #function[app.validation/fn--37866]]]
[:stream [:fn #function[app.validation/fn--37868]]]
[:timestamp [:fn #function[app.validation/fn--37870]]]]
All these are custom functions (more tight than regular predicate)
And when i send gibberish to be validated i wanted to have human readable output (in logs)
(me/humanize (m/explain schema data))
But i get
{:sport ["unknown error"], :stream ["unknown error"]}
which i don't find very useful and i would like these to be more useful.
is there anyway for these errors to be different?
solved
[:fn {:error/message "AAA"}
(fn [val] ...)))]