malli

https://github.com/metosin/malli :malli:
ikitommi 2020-05-25T08:29:00.446600Z

looking forward to this!

ikitommi 2020-05-25T08:42:11.447800Z

could someone check the reasoning in https://github.com/metosin/malli/pull/201?

ikitommi 2020-05-25T08:45:05.450300Z

I now understand why schema.core/both got deprecated. :or is kinda complex when you wan’t to cover both validation and transformation. Same thing was “fixed” in spec-tools some weeks ago: results of a transformed branch needs to be validated to know if the branch was good.

2020-05-28T11:12:38.461400Z

I faced the same issue in my lib, and tried to separate shape-type elements from the predicates which are checking properties on them.

ikitommi 2020-05-25T08:46:56.450900Z

schema had s/conditional, maybe Malli should have :conditional too :thinking_face:

1➕
ikitommi 2020-05-25T08:48:14.452Z

could be implemented using :multi with just few extra lines to swap the dispatch function & values.