Open khmelevskii opened 1 year ago
there is no built-in utility at the moment for it, but should be easy to build one, on top of the malli.util
, see https://github.com/metosin/malli/issues/82.
for best effort checking, you could also:
(every? (m/validator person-full-name) (mg/sample person {:size 1000}))
; => true
PR most welcome on mu/intersection
or such.
For example, there are 2 schemas:
So, I'm trying to check that
person-full-name
is fully compatible withperson
schema and any value which conformperson
schema will be conformperson-full-name
schema too.