This can occur when using unqualified specs in a ‘keys’ spec i.e. using ‘req-in’ or ‘opt-un’. The issue isn’t related to the namespace structure, it’s just that expound can’t figure out what spec you mean if the explain data only refers to the unqualified key e.g. :name.
The only real solution is to use ‘req’ instead - its an issue with the lack of information included in the explain data returned by clojure.spec
Hopefully that makes sense. It’s confusing. If you post the explain data, I can provide more specifics. It might be something that could be fixed upstream in spec though :man-shrugging:
It’s also possible this is a bug in Expound, but I’d have to see the explain data to know for sure