It'd be nice to be able to easily define functions that don't do anything but check their inputs, and generate their outputs. This is very helpful for a few use cases:
better with-redefs in testing
quickly prototype shapes of data, when working with another team
"battle harden" malli schemas before having to implement the underlying machinery
workflow where users build up functions before implementing them, this is very help
We know it's actually pretty simple, but this should be hooked up with mx/defn.
It'd be nice to be able to easily define functions that don't do anything but check their inputs, and generate their outputs. This is very helpful for a few use cases:
We know it's actually pretty simple, but this should be hooked up with mx/defn.
Here's how one can do it today, manually:
mock-eff
called with good input, returns output that matches the return schema:mock-eff
throws on bad inputOpen questions
Q: Worth including :humanized output?