malli

https://github.com/metosin/malli :malli:
ikitommi 2020-08-20T06:07:16.001Z

... but just filter or reduce the keys?

Casey 2020-08-20T07:00:12.001400Z

Yup, that's what I did 🙂

Casey 2020-08-20T07:03:54.003500Z

I'm finding malli very useful for client and server side entity validation. When you have an entity that a client can submit, but is only allowed to submit a subset of all possible attributes and the other attributes are populated by the server. In a ns for an entity, I have one main custom registry (which is just a map!) that defines all possible attributes of the entity, then I build little schemas that pick out the "views" of what a valid entity looks like at different stages in its lifecycle.

👍 1
Casey 2020-08-20T11:45:25.005800Z

What's the story behind the name malli, is there one?

ikitommi 2020-08-20T12:28:44.006200Z

https://www.slideshare.net/metosin/malli-inside-datadriven-schemas#21 (slide 21)

🎉 1