Open piotr-yuxuan opened 2 years ago
Would be good to support protocol methods too. But, how would that work? How do Spec and Plumatic handle these?
I haven't donw a lot of research about it, but I have been left under the impression that:
defn-spec
(link) so protocol and multimethods probably aren't handled.Not sure it's feasible, but I will try to think more about a path toward protocol function instrumentation.
This would also be something I would love to see as well. I have several protocols that are used on many different implementations which I want guarantees for inputs/outputs.
Hello, thank you very much once again for this great tool.
The doc for function schema instrumentation (link) mentions
defn
and doesn't refer to protocol functions so I guess the behaviour below isn't a bug, but more a feature request.Would you consider and review a PR that would extend malli and add support for protocol function instrumentation? Any thoughts about it off the top of your mind?