Fork me on GitHub
#malli
<
2021-08-20
>
dominicm19:08:37

Is there anything higher level than m/type for determining, e.g. sequences? I'd like to lump :* ,`:+`, :tuple, etc. together for my purposes when doing programmatic work on schemas. Same idea for pos-int? int?, etc.

ikitommi19:08:40

@dominicm currently no, ideas welcome. There is an issue about derived types. int? is actually just a :`int`, silly to have to declare humanized error messages, generators, JSON schema mappings, transformers for both.

dominicm20:08:30

@ikitommi For sure. My use-case is along those lines. I'm trying to determine if a schema is, e.g. valid JSON (without transforms). Pairs nicely with Muuntaja 😉

dominicm20:08:30

I'll have a look at the source of those features for my solution