This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-07-07
Channels
- # babashka (7)
- # beginners (218)
- # boot (1)
- # chlorine-clover (2)
- # cider (36)
- # cljsrn (8)
- # clojure (71)
- # clojure-dev (9)
- # clojure-europe (11)
- # clojure-france (1)
- # clojure-italy (5)
- # clojure-nl (5)
- # clojure-uk (24)
- # clojurescript (9)
- # conjure (16)
- # cursive (65)
- # datomic (76)
- # devcards (21)
- # emacs (1)
- # etaoin (1)
- # figwheel-main (47)
- # fulcro (37)
- # hyperfiddle (9)
- # java (2)
- # kaocha (1)
- # malli (11)
- # music (14)
- # observability (8)
- # off-topic (32)
- # re-frame (13)
- # reagent (2)
- # reitit (5)
- # ring (3)
- # shadow-cljs (40)
- # slack-help (17)
- # spacemacs (15)
- # tools-deps (5)
- # xtdb (16)
@ikitommi sample repo up and running: https://github.com/stevebuik/fork-malli-ideas
first question to come from it: can the fast validation i.e. m/validator be used with m/explain?
and what was the “nested data” problem you had with this integration? maybe it’s another good demo in this repo
does malli
support default error messages for enums? I’m getting "message": "unknown error"
unless I do something like this for each enum:
(def source-system
[:enum
{:error/message "should be either: foo|bar"
:swagger/type "string"
:description "source system from where the request comes in"}
"foo" "bar"])
@jkent the default errors are defined in https://github.com/metosin/malli/blob/master/src/malli/error.cljc. There is no default for :enum
, but could be. PR welcome!