Well, kind of. This is the kind of problem that you might throw schemas (eg. Malli) at pre 1.13.
It’ll be nice to have it at hand in the base language though.