Comments on https://github.com/metosin/malli/pull/194? e.g. allowing spec2-like schema+select using just :map
.
Hey! I just found :map-of
through after some searching, first reading the Readme, then guessing its name after rechecking the documentation for Spec. Is there interest for a PR adding an example to the Readme?
I stuck to the README for now. Here's a PR: https://github.com/metosin/malli/pull/240
When I last used the generator, I got a :map
schema for a really long homogenous map that I wanted to be of a :map-of
. I'm not sure if changing the current behavior is worth it, though. I've only used the generators from the REPL, and in that case I can just check the result.
Very long homogenous maps also gets https://malli.io/ into performance problems.
If choosing between :map
and :map-of
should be deterministic, I guess the user would have to "hint" at a "start schema", and then malli
could incrementally expand it.
definetely! All doc improvements most welcome
1👍someone suggested setting up real docs too, under docs
so that cljdoc would pick them up too