Fork me on GitHub
#malli
<
2020-10-22
>
borkdude10:10:45

@ikitommi I was noticing a regex/parse function in one of the examples. Why is there a special regex/parse function: shouldn't all schema's support parse - not only regex schemas? And maybe parse is just a special case of a transformer?

borkdude10:10:39

Note: this question is coming from a relatively inexperienced user of malli

ikitommi10:10:44

@borkdude good question! it’s the internal api, not yet integrated into malli.core. after it’s integrated, there will ne a`-destructure` or -parse method in Schema. My first guess was that there is no need to have a reverse function for that in Schema (like spec has conform and unform), but not 100% sure.

ikitommi10:10:09

oh, haven’t pushed the current draft into github. will have time tomorrow for this, will push the stuff out.