Fork me on GitHub
#malli
<
2022-03-01
>
vemv01:03:47

Is there a supported way to introspect that the type of the following schema is string??

[:fn {:description "An ID"}
 string?]
malli.core/type returns :fn for it, which is not as useful. ...`(m/type string?)` does return string? (as a symbol), so I'd say that my expectation is reasonable

vemv01:03:55

I had some luck with considering this vector to be "just data" but yeah... an official helper would be reassuring

Ben Sless04:03:16

My unofficial hot take is fn specs are evil for this very reason

2
Casey17:03:48

Is it not possible to pass an options map (containing a registry) to malli.util/update-in ? The other functions in that ns take options map, but this one doesn't appear too. update also lacks an options arg. I can't use a local registry because I've a non-map (primitive) registry.