malli

https://github.com/metosin/malli :malli:
daveliepmann 2020-04-29T15:47:48.423300Z

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).

ikitommi 2020-04-29T16:18:46.425400Z

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

1
ikitommi 2020-04-29T16:20:10.427Z

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

daveliepmann 2020-04-29T16:23:17.427300Z

Thanks!

teodorlu 2020-04-29T20:27:22.428900Z

@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: