support versions of validator without getConstraint method