malli

https://github.com/metosin/malli :malli:
ikitommi 2020-08-05T10:50:53.304200Z

Comments on https://github.com/metosin/malli/pull/194? e.g. allowing spec2-like schema+select using just :map.

ikitommi 2020-08-05T10:51:29.304400Z

teodorlu 2020-08-05T14:50:27.308600Z

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?

teodorlu 2020-08-09T11:54:14.352400Z

I stuck to the README for now. Here's a PR: https://github.com/metosin/malli/pull/240

teodorlu 2020-08-09T11:56:06.352700Z

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.

teodorlu 2020-08-09T11:57:01.352900Z

Very long homogenous maps also gets https://malli.io/ into performance problems.

teodorlu 2020-08-09T11:58:20.353200Z

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.

ikitommi 2020-08-05T15:56:11.308900Z

definetely! All doc improvements most welcome

1👍
ikitommi 2020-08-05T15:57:06.309100Z

someone suggested setting up real docs too, under docs so that cljdoc would pick them up too