Fork me on GitHub
#malli
<
2021-11-15
>
chrisetheridge10:11:16

is it possible to ignore {:optional true} specs when generating values?

chrisetheridge11:11:28

for anyone wanting to do this, i found this: https://github.com/metosin/malli/blob/master/docs/tips.md#allowing-invalid-values-on-optional-keys which i modified to do what i need!

Hukka11:11:02

When would I want to use :sequential instead of :repeat without options? Latter would seem simpler to remember, since I have to use :repeat with min and max now and then.

ikitommi12:11:04

you can also do [:sequential {:min 1, :max 10}]

ikitommi12:11:15

I would recommend using :sequential always if possible, it’s much faster and always a standalone schema. having :repeat inside of :cat makes it part of the :cat, not a standalone sequence.

Hukka13:11:03

Ah, I see, good to know