This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-10-11
Channels
- # announcements (2)
- # babashka (27)
- # beginners (99)
- # biff (16)
- # calva (15)
- # clj-kondo (6)
- # clj-on-windows (38)
- # clojure (54)
- # clojure-austin (1)
- # clojure-europe (30)
- # clojure-france (4)
- # clojure-nl (1)
- # clojure-norway (43)
- # clojure-spec (10)
- # conjure (28)
- # core-async (4)
- # cursive (7)
- # figwheel-main (1)
- # graphql (9)
- # gratitude (3)
- # honeysql (9)
- # introduce-yourself (1)
- # jobs (1)
- # joyride (128)
- # lambdaisland (2)
- # malli (8)
- # membrane (12)
- # nbb (5)
- # off-topic (1)
- # polylith (11)
- # re-frame (9)
- # reitit (1)
- # remote-jobs (5)
- # sci (15)
- # shadow-cljs (50)
- # tools-deps (2)
- # xtdb (12)
has anyone had a go at writing malli specs with https://github.com/lambdaisland/regal ? what i like about this is that it makes the regex a little more self-documenting edit: nevermind, there's a malli section right in the readme!
I haven’t updated the Regal-side in some time. please update if the integration is out-of-date
will do!
Hi I have a schema that looks like this
[:map
...
[:timeline-type [:enum :reactive :proactive-actual :proactive-alternative]]]
And I'm trying to use this schema with malli coercion to coerce the query params, now from the frontend i send this timeline-type as a string (obviously as it's in the query string) but it's not coerced to a keyword. Is there some option for :enum
(or any other type for that matter) that I can specify a specific coercer for reitit. For example something like:
[:enum {:malli.coerce/coerce-as :keyword} :reactive :proactive-actual :proactive-alternative]
or something along those lines? Or what else could I do here.Hi. There is an issue for resolving the real type from schemas, see https://github.com/metosin/malli/issues/264. Before that, you can use :and
-> [:and :keyword [:enum :reactive :proactive-actual :proactive-alternative]]
Hi guys, quick question: If I run m/walk in clojurescript like this:
(m/walk
[:map [:id string?]]
(m/schema-walker identity)
I'm getting back a "#object[malli.core.t_malli$core35871]" instead of the vector I put in. What can I do with this object?