Fork me on GitHub
#malli
<
2020-04-29
>
daveliepmann15:04:48

How much control does Malli currently give over map keys? For instance that they should be of a particular set, or within a range, or keywords or strings, but without specifying the key precisely? I have an existing non-relational database for which I'd like to infer schemas with mp/provide , but it seems to get confused around hashmaps that are built to store user input (e.g. a mapping from username to info).

ikitommi16:04:46

@daveliepmann there is :map-of , like in spec.

4
ikitommi16:04:10

the mp/provide is not smart enough yet to figure those out. Could be..

teodorlu20:04:22

@daveliepmann @ikitommi I was also getting more corarse-grained results with provide than I would like. I would love to be able to provide a "starting point" for the schema. Please excuse my backseat driving: