malli

https://github.com/metosin/malli :malli:
martinklepsch 2021-06-14T21:43:56.133700Z

Hey 🙂 Is there a way to combine multiple schemas to one? Specifically I have a bunch of “base” keys and a few keys that I want to check based on the :type key in the set of “base” keys. I kind of see how I could do that with multi and a bit of repetition but I probably want :merge? Is there a way to get :merge without getting into registries and all that?

martinklepsch 2021-06-16T15:03:02.155200Z

Is there a “recommended way” to achieve this currently?

martinklepsch 2021-06-16T15:03:33.155400Z

It seems like a common need so if there is one I think documenting that could be useful. Happy to open a PR once I know 😄

martinklepsch 2021-06-14T21:50:47.133900Z

Duh, I just realized I can just into more key to existing [:map] schemas