feat(validation): make path translator more generic

This applies not only to capacity, but to indexed path in general.