This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-04-17
Channels
- # announcements (2)
- # babashka (52)
- # beginners (10)
- # calva (9)
- # cider (2)
- # clj-kondo (7)
- # clojure (63)
- # clojure-europe (26)
- # clojuredesign-podcast (5)
- # clojurescript (13)
- # datalog (2)
- # datomic (6)
- # defnpodcast (1)
- # fulcro (46)
- # incanter (4)
- # integrant (5)
- # jobs-discuss (12)
- # kaocha (1)
- # lsp (31)
- # malli (10)
- # meander (1)
- # off-topic (6)
- # podcasts-discuss (1)
- # polylith (20)
- # rewrite-clj (6)
- # shadow-cljs (23)
- # tools-deps (9)
- # xtdb (13)
- # yada (10)
(defn restart []
(mount.core/stop)
(mount.core/start))
@lkorogodski in your example, there are both clojure specs (`:authorization)` and malli schemas (`:query)`. You should pick either one via :coercion
option in the route data and use it in all the places. The error comes from spec-tools, so I believe you have coercion set to clojure.spec.
there are malli examples under examples
. Hope this helps you to the right direction
@schmee sure, nothing built-in I guess, but you can add a custom decoder into the :map
schema, reduce over the all map entries and remove nils.
there are similar imps in malli.transform
for stripping out extra keys and transforming keys.
Thanks!
looking at GraphQL fragments, would be relatively easy to support those in malli. But not sure if that would be a good idea. Maybe not.
There's https://github.com/Vincit/venia which is data based so maybe have venia/Malli thingy instead? Would save you from implementing your own GraphQL parsing stuff as well.