Fork me on GitHub
#malli
<
2021-09-08
>
aaron5112:09:45

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)

ikitommi12:09:55

@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
aaron5112:09:24

Understood, thank you 👍