@kenny couldn't you do this with a multi-spec defmethods returning select
specs?
Not when it's a nested collection.
Ah right, agreed this would be great to have built in
Definitely agree. Fortunately it's not that hard to build in yourself if it doesn't include it. It really does seem like something it should support by default though.
Right, I built a spec that did something like this for spec-1, basically “clamped” nested multi-specs. It was a bit unwieldy because the definitions had to be so long.
hi, when to use :req or :req-un? I’ve used :req-un always
If you have maps with namespaced keywords, use :req
👍