It's not clear how i could say that i want a non-empty map in my schema, that also works with generators 🙂
(mg/generate [:and
[:fn not-empty]
[:map-of
[:string {:gen/gen gen/string-ascii}]
[:string {:gen/gen gen/string-ascii}]]])
this ofc works for validation but not with generators@helios try reversing that, :map-of
as first child. :and
generates based on first, and narrows with the rest.
uh, nice one 🙂
malli is absolutely awesome, thanks a lot guys! đź‘Ť
Is there a “canonical representation” for malli? I guess it’s the “vector” syntax as opposed to the “map” syntax, right?