(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.
writing GraphQL<->Malli would be easier with that for sure.
IIRC they're very close to Turing complete, so 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.