Fork me on GitHub

Is there a malli helper that converts a map to a := schema? Input is {:a 1 :b 2} Output is [:map [:a [:= 1]] [:b [:= 2]]] I’m trying to validate a subset of a map (and the input is the sub map)


@aaron51 not yet. but plan is to build both a first-class inferrer and re-visit the type hierarchies so we could narrow down things. before that, you could hack the malli.provider, it’s quite small and relatively simple.

🔥 2

Understood, thank you 👍