Fork me on GitHub
#malli
<
2021-10-13
>
Carsten Behring16:10:41

can I easely declare in a schema that all keys are optional ?

Hukka18:10:25

Easily as data, no, but there are helpers that transform a schema recursively to open or closed

Hukka18:10:50

Whoops, what am I saying, that'd completely different, of course

Hukka18:10:45

There's a separate helper for opening and closing

Hukka18:10:12

And then others for optional and required

lsenjov22:10:28

malli.util has basically everything you’ll need

lsenjov22:10:02

Specifically, optional-keys

lsenjov22:10:11

There’s also malli.core/children for getting all keys out